You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The app is crashing on some of our devices as soon as it opens even when not in the flow which requires Camera component.
Occurring at androidx.concurrent.futures.b$b The completer object was garbage collected - this future would otherwise never complete. The tag was: Initialize extensions
As far as I can tell this looks to be happening from when we create an ExtensionsManger object via ExtensionsManager.getInstanceAsync(context, provider).await(mainExecutor), somehow the completer object provided to the future is getting garbage collected, so we will need to handle this edge case scenario.
Note: was not able to replicate this locally, getting crashes on production app, so putting in sample value for Camera Device field
Fatal Exception: androidx.concurrent.futures.b$b: The completer object was garbage collected - this future would otherwise never complete. The tag was: Initialize extensions
CameraManagerGlobal:
at android.os.MessageQueue.nativePollOnce(MessageQueue.java)
at android.os.MessageQueue.next(MessageQueue.java:350)
at android.os.Looper.loopOnce(Looper.java:187)
at android.os.Looper.loop(Looper.java:368)
at android.os.HandlerThread.run(HandlerThread.java:67)
mrousavy/VisionCamera.video:
at android.os.MessageQueue.nativePollOnce(MessageQueue.java)
at android.os.MessageQueue.next(MessageQueue.java:350)
at android.os.Looper.loopOnce(Looper.java:187)
at android.os.Looper.loop(Looper.java:368)
at android.os.HandlerThread.run(HandlerThread.java:67)
CameraX-scheduler:
at android.os.MessageQueue.nativePollOnce(MessageQueue.java)
at android.os.MessageQueue.next(MessageQueue.java:350)
at android.os.Looper.loopOnce(Looper.java:187)
at android.os.Looper.loop(Looper.java:368)
at android.os.HandlerThread.run(HandlerThread.java:67)
Thank you for providing detailed information about ze crash you're experiencing. It seems like a complex issue, especially since you cannot replicate it locally. To help mrousavy get a clearer picture, could you please provide logs from adb logcat when ze crash occurs?
This would really help isolate ze problem. If you need assistance with gathering logs, just let me know! And remember, sponsoring the project helps ze maintainers give priority to issues like yours. You can do it here.
Looking forward to your response!
Note: If you think I made a mistake, please ping @mrousavy to take a look.
What's happening?
The app is crashing on some of our devices as soon as it opens even when not in the flow which requires Camera component.
Occurring at
androidx.concurrent.futures.b$b
The completer object was garbage collected - this future would otherwise never complete. The tag was: Initialize extensions
As far as I can tell this looks to be happening from when we create an
ExtensionsManger
object viaExtensionsManager.getInstanceAsync(context, provider).await(mainExecutor)
, somehow the completer object provided to the future is getting garbage collected, so we will need to handle this edge case scenario.Note: was not able to replicate this locally, getting crashes on production app, so putting in sample value for Camera Device field
Reproduceable Code
Relevant log output
Fatal Exception: androidx.concurrent.futures.b$b: The completer object was garbage collected - this future would otherwise never complete. The tag was: Initialize extensions CameraManagerGlobal: at android.os.MessageQueue.nativePollOnce(MessageQueue.java) at android.os.MessageQueue.next(MessageQueue.java:350) at android.os.Looper.loopOnce(Looper.java:187) at android.os.Looper.loop(Looper.java:368) at android.os.HandlerThread.run(HandlerThread.java:67) mrousavy/VisionCamera.video: at android.os.MessageQueue.nativePollOnce(MessageQueue.java) at android.os.MessageQueue.next(MessageQueue.java:350) at android.os.Looper.loopOnce(Looper.java:187) at android.os.Looper.loop(Looper.java:368) at android.os.HandlerThread.run(HandlerThread.java:67) CameraX-scheduler: at android.os.MessageQueue.nativePollOnce(MessageQueue.java) at android.os.MessageQueue.next(MessageQueue.java:350) at android.os.Looper.loopOnce(Looper.java:187) at android.os.Looper.loop(Looper.java:368) at android.os.HandlerThread.run(HandlerThread.java:67)
Camera Device
Device
Realme RMX3998 (Android 14), Realme 12 5G (Android 14)
VisionCamera Version
4.5.1
Can you reproduce this issue in the VisionCamera Example app?
No, I cannot reproduce the issue in the Example app
Additional information
The text was updated successfully, but these errors were encountered: