-
Notifications
You must be signed in to change notification settings - Fork 26.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[camera] MessageQueue: java.lang.IllegalStateException: Handler sending message to a Handler on a dead thread #96140
Comments
@Tom3652 |
Yes sure i have tried the replication but it seems fixed by the PR in his case. However, the use case is almost like mine meaning when switching "pages". Unfortunately, even by changing a bit the sample code provided (instead of the |
Please check if this link helps. |
It's actually the logic i had before changing to |
Can you please elaborate on this ? Are you saying changing to
Which solution are you referring to ? |
Probably, because i was using the
The solution would be to let the |
Would be good if there's a pattern or repro code you can come up with using |
It actually depends on the android version, i have got ARN on some phones that have Android 11 and above. My code is this one :
And in
|
Thanks for above code. I am trying to inculcate that into camera plugin example. Can you also try to do the same using the plugin example and see if you are able to replicate it ? |
Well with the example i got this error first :
You get the above error when tweaking around with the pause button, the start video recording and the stop video recording (all the time if you do it a bit fast). Regarding the lifecycle i was not able to reproduce this issue using the example code yet, i had much time lately i will try better a bit later. |
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Steps to Reproduce
I have no way to reproduce this issue i am sorry, but sometimes (4 times so far) i have the following error using the
camera: ^0.9.4+5
package on my Android devices :Here is a bit of the code that handle the lifecycle :
I provide a bit more logs below that show maybe better the context (camera related) of what's happening at this moment.
Note : this is not crashing the application.
Do you have any ideas about what might cause this ?
Expected results:
The logs should not show an error
IllegalStateException
from Java code.Actual results:
The logs are showing a thrown
IllegalStateException
.Logs
The text was updated successfully, but these errors were encountered: