-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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 plugin silently crashes when call takePicture() immediately after stopImageStream(); #30680
Comments
Hi @yfer |
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away! Thanks for your contribution. |
I got the same problem, i can't find a solution. JNI critical lock held for 21.299ms on Thread[13,tid=24836,Runnable,Thread*=0xd32b6a00,peer=0x12dc0300,"Binder:24813_1" |
I solved on the emulator upgrading NDK and setting the camera on "Emulated" and not on "Virtual Scene". |
I am facing the same issue. |
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 |
When i was writing my app for Flutter Create contest i've notices a strange bug.
I am not sure if i can provide full source code for good reproducing of it until challenge results aired. ( Will be nice to have an answer from somebody from a challenge team, so i put source code on github )
Crash appears on Pixel 1(only backwards camera) and Xiaomi A2(all cameras) phones.
If i try to takePicture imidiately after stopImageStream then plugin silently crashes with a java NullReference message (i'll provide a bit later). And picture not taken.
But when i insert some delay between calls, then everything is alright.
It seems like not all necessary resources are disposed when call to stopImageStream ends.
And something more strange, not all devices are behaving like this. And even on one device (Google Pixel 1) frontal camera was ok, but backward - throws.
The text was updated successfully, but these errors were encountered: