-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
RuntimeException: getParameters failed (empty parameters) #270
Comments
I'm getting a similar issue, randomly on one device (Asus Zenfone Pegasus 3). API 23 Update: Still happens on 3.4.0
|
I'd be happy to make a PR. But as my current pull request is open for about 3 month now I'm not sure if this project is abandoned? |
@PaulWoitaschek Did you manage to find the issue? Issues like this are often device-specific, which makes it very difficult to debug without the device. The project is not abandoned, but I have been slow with maintenance over the last few months. Looking at your PR now. |
device: Redmi Note 4 |
These errors are difficult to debug. It could be due to state management issues (still using the camera after it has been closed), or due to to a bug in the Camera framework of the device. The best I can do for now is handle these errors by logging them, instead of letting the application crash. @PaulWoitaschek Added a workaround for your issue in e3aed41. The stack trace seems related to the torch, so it should be OK to just ignore the error. @therottman Added workaround for your issue in 2cf4b60. In this case it's an error when receiving a preview frame. If this happens either as a once-off frame issue, or because we were already closing the camera, the workaround should solve the issue. If it happens repeatedly, there may be a deeper underlying issue we'll have to investigate. @nikeru8 Your issue may be the same as @PaulWoitaschek. If not, I'll need a proper stack trace to investigate. |
Fixed released in v3.5.0. |
Tks! :) |
I'm facing similar issue on Motorola Moto G5 running on Android Nougat 7.0 |
In my crashlogs I see a few RuntimeException where getParameters crashed. It appears for various devices, so far all API 23 and 24.
The text was updated successfully, but these errors were encountered: