Skip to content
This repository has been archived by the owner on Jun 29, 2021. It is now read-only.

Almond crashes whenever the Bluetooth Service is destroyed #96

Open
MateusRodCosta opened this issue Oct 9, 2019 · 0 comments
Open
Labels

Comments

@MateusRodCosta
Copy link
Contributor

MateusRodCosta commented Oct 9, 2019

Basically, I just leave the Almond app on the background for half minute or more and then it crashes. It seems to be realted to the Bluetooth Service.

Part of the logcat follows:

2019-10-08 20:36:08.823 25771-25780/edu.stanford.thingengine.engine W/System: A resource failed to call close. 
2019-10-08 20:37:14.243 25771-25771/edu.stanford.thingengine.engine I/thingengine.Service: Destroying service
2019-10-08 20:37:14.244 25771-25771/edu.stanford.thingengine.engine I/thingengine.Service: Destroyed service
2019-10-08 20:37:14.251 25771-25771/edu.stanford.thingengine.engine E/ActivityThread: Service edu.stanford.thingengine.engine.service.EngineService has leaked IntentReceiver edu.stanford.thingengine.engine.jsapi.BluetoothAPI$Receiver@4d7252a that was originally registered here. Are you missing a call to unregisterReceiver()?
    android.app.IntentReceiverLeaked: Service edu.stanford.thingengine.engine.service.EngineService has leaked IntentReceiver edu.stanford.thingengine.engine.jsapi.BluetoothAPI$Receiver@4d7252a that was originally registered here. Are you missing a call to unregisterReceiver()?
        at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:1438)
        at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:1219)
        at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1491)
        at android.app.ContextImpl.registerReceiver(ContextImpl.java:1452)
        at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:636)
        at edu.stanford.thingengine.engine.jsapi.BluetoothAPI.start(BluetoothAPI.java:149)
        at edu.stanford.thingengine.engine.jsapi.BluetoothAPI.access$500(BluetoothAPI.java:39)
        at edu.stanford.thingengine.engine.jsapi.BluetoothAPI$1.run(BluetoothAPI.java:93)
        at edu.stanford.thingengine.engine.jsapi.JavascriptAPI$1.invoke(JavascriptAPI.java:42)
        at edu.stanford.thingengine.nodejs.NodeJSLauncher$1.run(NodeJSLauncher.java:32)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:764)
2019-10-08 20:37:14.252 25771-25801/edu.stanford.thingengine.engine E/nodejs: Lost exception TypeError: No such callback stop

This is with commit 228ea15 on a Moto G7 running Android 9

@gcampax gcampax added the bug label Nov 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants