Skip to content

[camera] "set description" integration test is flaky: CameraException(error, native_reset failed.) #126830

@stuartmorgan-g

Description

@stuartmorgan-g

https://cirrus-ci.com/task/5844398164934656 is a run where it failed on one device on one run, and on the other device on the other run.

In both cases the error was

java.lang.Exception: ══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞═════════════════
The following CameraException was thrown running a test:
CameraException(error, native_reset failed.)
When the exception was thrown, this was the stack:
#0 AndroidCamera.createCamera (package:camera_android/src/android_camera.dart:112:7)
<asynchronous suspension>
#1 CameraController._initializeWithDescription (package:camera_example/camera_controller.dart:226:17)
<asynchronous suspension>
#2 main.<anonymous closure> (file:///tmp/cirrus-ci-build/packages/camera/camera_android/example/integration_test/camera_test.dart:263:5)
<asynchronous suspension>
#3 testWidgets.<anonymous closure>.<anonymous closure> (package:flutter_test/src/widget_tester.dart:163:15)
<asynchronous suspension>
#4 TestWidgetsFlutterBinding._runTestBody (package:flutter_test/src/binding.dart:994:5)
<asynchronous suspension>
The test description was:
Set description
═════════════════════════════════════════════════════════════════
at dev.flutter.plugins.integration_test.FlutterTestRunner.run(FlutterTestRunner.java:81)

This is a recently added feature, so it may well have always been flaky.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: contributor-productivityTeam-specific productivity, code health, technical debt.c: flakeTests that sometimes, but not always, incorrectly passp: 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