8000 [Samsung device][Android 6]: CameraController.stopVideoRecording() cause CameraException(videoRecordingFailed, Operation timed out in camera service) · Issue #75506 · flutter/flutter · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Samsung device][Android 6]: CameraController.stopVideoRecording() cause CameraException(videoRecordingFailed, Operation timed out in camera service) #75506
Closed
@JmyW

Description

@JmyW

I'm using the Camera 0.7.0+2 example code on my Samsung Galaxy J7 phone. It can successfully take pictures, but failed on video record. Please refer details below:
I did refer the closed issue [https://github.com//issues/63928] but seems different issue. The solution is not helping in my case.
In this case, the Samsumg Galaxy J7 is Android 6.0.1. I also take another device HTC Desire 816 which is Android 6.0. The HTC one is workable but Samesung failed.
Could anyone help?

[Reproduced Steps]
Execute the example code
Tap video record icon
Tap "stop" icon
Program hang for 5 sec then logged message "Unhandled Exception: CameraException(videoRecordingFailed, Operation timed out in camera service)"
[Source Code] Just use the example code in GitHub
https://github.com/flutter/plugins/tree/master/packages/camera/camera/example

[Device] Samsung Galaxy J7 Prime
[Error Code]

E/CameraCaptureSession( 5434): Session 2: Failed to create capture session; configuration failed
E/flutter ( 5434): [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: CameraException(videoRecordingFailed, Operation timed out in camera service)
E/flutter ( 5434): #0 CameraController.stopVideoRecording (package:camera/src/camera_controller.dart:479:7)
E/flutter ( 5434):
E/flutter ( 5434): #1 _CameraExampleHomeState.onStopButtonPressed. (package:camera_example/main.dart)
E/flutter ( 5434):

[Flutter doctor -v]

flutter doctor -v
[√] Flutter (Channel dev, 1.26.0-17.2.pre, on Microsoft Windows [Version 10.0.18363.1316], locale zh-TW)
• Flutter version 1.26.0-17.2.pre at C:\flutter
• Framework revision 79b49b9 (2 days ago), 2021-02-03 15:33:39 -0800
• Engine revision 2c527d6c7e
• Dart version 2.12.0 (build 2.12.0-259.8.beta)

[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at C:\Users\Jemmy_Wu\AppData\Local\Android\sdk
• Platform android-30, build-tools 29.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
X Android license status unknown.
Run flutter doctor --android-licenses to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

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

[√] Android Studio (version 4.1.0)
• 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 1.8.0_242-release-1644-b01)

[√] Connected device (3 available)
• SM G610Y (mobile) • 5210ff844cbc83f1 • android-arm • Android 6.0.1 (API 23)
• Chrome (web) • chrome • web-javascript • Google Chrome 88.0.4324.146
• Edge (web) • edge • web-javascript • Microsoft Edge 87.0.664.75

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work liste: OS-version specificAffects only some versions of the relevant operating systeme: device-specificOnly manifests on certain devicesfound in release: 1.22Found to occur in 1.22has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: cameraThe camera pluginpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform teamwaiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter responds

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0