Skip to content

Failing camera tests on Android #93686

@blasten

Description

@blasten

Result: https://firebase.corp.google.com/u/0/project/flutter-cirrus/testlab/histories/bh.a4615392b31c422b/matrices/6218121754841754569/executions/bs.5e94df04f68376bb/test-cases

The following tests are failing:

  1. Capture specific image resolutions

Logs:

The following CameraException was thrown running a test:
CameraException(error, Attempt to invoke virtual method 'int
android.hardware.camera2.CameraCaptureSession.capture(android.hardware.camera2.CaptureRequest,
android.hardware.camera2.CameraCaptureSession$CaptureCallback,
android.os.Handler)' on a null object reference)
When the exception was thrown, this was the stack:
#0 CameraController.takePicture (package:camera/src/camera_controller.dart:392:7)
<asynchronous suspension>
#1 main.testCaptureImageResolution (file:///tmp/cirrus-ci-build/packages/camera/camera/example/integration_test/camera_test.dart:62:18)
<asynchronous suspension>
#2 main.<anonymous closure> (file:///tmp/cirrus-ci-build/packages/camera/camera/example/integration_test/camera_test.dart:88:13)
<asynchronous suspension>
#3 testWidgets.<anonymous closure>.<anonymous closure> (package:flutter_test/src/widget_tester.dart:176:15)
<asynchronous suspension>
#4 TestWidgetsFlutterBinding._runTestBody (package:flutter_test/src/binding.dart:817:5)
  1. Capture specific video resolutions
    Logs:
java.lang.Exception: ══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞═════════════════
The following CameraException was thrown running a test:
CameraException(error, stop failed.)
When the exception was thrown, this was the stack:
#0 CameraController.stopVideoRecording (package:camera/src/camera_controller.dart:531:7)
<asynchronous suspension>
#1 main.testCaptureVideoResolution (file:///tmp/cirrus-ci-build/packages/camera/camera/example/integration_test/camera_test.dart:109:18)
<asynchronous suspension>
#2 main.<anonymous closure> (file:///tmp/cirrus-ci-build/packages/camera/camera/example/integration_test/camera_test.dart:139:13)
<asynchronous suspension>
#3 testWidgets.<anonymous closure>.<anonymous closure> (package:flutter_test/src/widget_tester.dart:176:15)
<asynchronous suspension>
#4 TestWidgetsFlutterBinding._runTestBody (package:flutter_test/src/binding.dart:817:5)
<asynchronous suspension>
The test description was:
Capture specific video resolutions
═════════════════════════════════════════════════════════════════
at dev.flutter.plugins.integration_test.FlutterTestRunner.run(FlutterTestRunner.java:81)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:27)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
at androidx.test.internal.runner.TestExecutor.execute(TestExecutor.java:56)
at androidx.test.runner.AndroidJUnitRunner.onStart(AndroidJUnitRunner.java:392)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:2205)

cc @camsim99, @stuartmorgan

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: tests"flutter test", flutter_test, or one of our testsc: disabled testTracks the restoration of a disabled testp: cameraThe camera pluginpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions