Closed
Description
I have trouble with camera plugin (0.7.0+2) - the second time I try to:
XFile file = await controller.takePicture();
return file;
... the call ends up with "timeout". The first time I take a photo everything works fine, but all subsequent calls fail. It all happens with example application too:
https://github.com/flutter/plugins/tree/master/packages/camera/camera/example
I/flutter ( 4707): Error: captureTimeout
I/flutter ( 4707): Error Message: Picture capture request timed out
W/System ( 4707): A resource failed to call release.
It works on some low-level phone I have here (myPhone Hammer Iron 2).
tomucha@tomucha-mx:~$ flutter --version
Flutter 1.22.6 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 9b2d32b605 (4 weeks ago) • 2021-01-22 14:36:39 -0800
Engine • revision 2f0af37152
Tools • Dart 2.10.5
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.22.6, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Android Studio (version 3.5)
[✓] IntelliJ IDEA Ultimate Edition (version 2019.3)
[✓] VS Code (version 1.52.1)
[✓] Connected device (1 available)