Closed rubenferreira97 closed 1 year ago
This issue has already been reported as #86
Someone created a PR (#330) that is supposed to fix the above mentioned issue. It didn't seem to solve the problem in my tests, but you may give it a try.
Feel free to comment if you think it's not the same bug. You can also contribute to the original issue with your own insights. 👍
@apalala-dev that issue is on iOS, it does not seems related if the problem is on the native side of Android I think. But I will check out.
It's the same kind of bug, we'll try to fix it for both platforms at once 👍
Steps to Reproduce
Switch between widgets (camerAwesome and another) fast. Check https://github.com/rubenferreira97/camerawesome_bug for a repo.
https://user-images.githubusercontent.com/43851289/236505261-1cbfef8a-4a31-49c8-920e-9a9b5a60735d.mp4
Expected results
Camera should be correctly terminated. Not showing the camera usage icon on status bar.
Actual results
We see camera usage on Android status bar when the camerAwesome widget is not running. My guess is, in flutter there is no camera widget but native is still consuming the camera.
The following exception is given:
W/System (25532): A resource failed to call release.
About your device
I can reproduce this on any android phone.
Your flutter version
Flutter 3.10.0-6.0.pre.28 • channel master • https://github.com/flutter/flutter.git Framework • revision 50171bbae3 (3 weeks ago) • 2023-04-16 13:37:40 -0400 Engine • revision 4a998b73a2 Tools • Dart 3.1.0 (build 3.1.0-11.0.dev) • DevTools 2.23.1