Skip to content

Camera: CameraException(Previous capture has not returned yet., takePicture was called before the previous capture returned.) #120774

@HonestElf

Description

@HonestElf

My source code is a little different, but I also tried to run official example and got the same error

Steps to Reproduce

  1. copy-paste code from https://docs.flutter.dev/cookbook/plugins/picture-using-camera
  2. Run example
  3. Press camera button
  4. Nothing happens, but camera freezes
  5. Press camera button again and get exeption: CameraException(Previous capture has not returned yet., takePicture was called before the previous capture returned.)

Device

Emulator Pixel XL API 33
OS: Android Tiramisu

flutter doctor -v

[√] Flutter (Channel stable, 3.7.3, on Microsoft Windows [Version 10.0.19045.2486], locale ru-RU)
• Flutter version 3.7.3 on channel stable at C:\flutterSDK\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 9944297 (6 days ago), 2023-02-08 15:46:04 -0800
• Engine revision 248290d6d5
• Dart version 2.19.2
• DevTools version 2.20.1

[X] Windows Version (Unable to confirm if installed Windows version is 10 or greater)

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
• Android SDK at C:\Users\vd.prokudin\AppData\Local\Android\sdk
• Platform android-33, build-tools 33.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
• All Android licenses accepted.

[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.3.6)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.3.32929.385
• Windows 10 SDK version 10.0.20348.0

[√] Android Studio (version 2021.3)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[√] VS Code (version 1.75.1)
• VS Code at C:\Users\vd.prokudin\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.58.0

[√] Connected device (4 available)
• sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64 • Android 13 (API 33) (emulator)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.2486]
• Chrome (web) • chrome • web-javascript • Google Chrome 110.0.5481.77
• Edge (web) • edge • web-javascript • Microsoft Edge 109.0.1518.78

[√] HTTP Host Availability
• All required HTTP hosts are available

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: duplicateIssue is closed as a duplicate of an existing issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions