You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bad state: Invalid DartDevelopmentServiceException JSON error from Linux_android_emu tests causing many flakes #152684
[2024-08-01 02:41:47.004421] [STDOUT] stdout: [ +14 ms] Launching a Dart Developer Service (DDS) instance at http://127.0.0.1:0/, connecting to VM service at http://127.0.0.1:45843/hII3gND_jls=/.
[2024-08-01 02:41:48.230663] [STDOUT] stderr:
[2024-08-01 02:41:48.230740] [STDOUT] stderr: Bad state: Invalid DartDevelopmentServiceException JSON: {error_code: 2, message: Failed to start Dart Development Service}
[2024-08-01 02:41:48.231206] [STDOUT] stderr: #0 new DartDevelopmentServiceException.fromJson (package:flutter_tools/src/base/dds.dart:144:5)
Not sure if it's related, but it looks like this started happening after the API level updated from 34 to 35 in c3fbf3d. cc @camsim99
Since it seems like the error in parsing the dds json is obscuring the actual failure, also cc @bkonyi and @andrewkolos
I'm not sure what DartDevelopmentService is but I also experienced another socket/connection issue when trying to run tests on Android 35 emulators where localhost wouldn't resolves as a host for Sockets:
java.lang.RuntimeException: java.net.UnknownHostException: Unable to resolve host "localhost": No address associated with hostname
at dev.flutter.scenariosui.ScreenshotUtil.lambda$onCreate$0(ScreenshotUtil.java:73)
at dev.flutter.scenariosui.ScreenshotUtil$$ExternalSyntheticLambda1.run(Unknown Source:0)
As stated, this issue has been addressed. The root cause was instability in the API Level 35 emulator, but this symptom was addressed by disabling DDS in most tests.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
bkonyi commentedon Aug 1, 2024
Looks like some bad pattern matching in the DDS exception parsing code. I should have a fix up shortly.
Fix bad pattern matching in DDS exception parsing
bkonyi commentedon Aug 1, 2024
Fix up for review: #152685
Fix bad pattern matching in DDS exception parsing (#152685)
Fix bad pattern matching in DDS exception parsing
Disable DDS and Dart profiling for Android driver tests. (#152696)
zanderso commentedon Aug 1, 2024
The parse error is fixed, but tests are still flaking on DDS failing to start.
From https://ci.chromium.org/ui/p/flutter/builders/prod/Linux_android_emu%20android_defines_test/2794/overview
camsim99 commentedon Aug 1, 2024
I'm not sure what DartDevelopmentService is but I also experienced another socket/connection issue when trying to run tests on Android 35 emulators where
localhostwouldn't resolves as a host forSockets:from https://github.com/flutter/engine/blob/30ffe6eb428b76e9a9223d7261ec0e7adece4ad6/testing/scenario_app/android/app/src/androidTest/java/dev/flutter/scenariosui/ScreenshotUtil.java#L70
However,
127.0.0.1does. Could that possibly be related?zanderso commentedon Aug 1, 2024
@bkonyi would you be able to help interpret the error messages above?
31 remaining items
Also run Linux_android_emu tests on API level 34 image (#153175)
Shift Linux_android_emu tests from staging to prod (flutter#153110)
Also run Linux_android_emu tests on API level 34 image (flutter#153175)
zanderso commentedon Aug 22, 2024
As stated, this issue has been addressed. The root cause was instability in the API Level 35 emulator, but this symptom was addressed by disabling DDS in most tests.
[ DDS ] Add tests for DDS exception parsing
Fix bad pattern matching in DDS exception parsing (flutter#152685)
Disable DDS and Dart profiling for Android driver tests. (flutter#152696
Mark Linux_android_emu tests bringup: true (flutter#152867)
Fix Linux_android_emu tests late initialization errors (flutter#152932)
Shift Linux_android_emu tests from staging to prod (flutter#153110)
Also run Linux_android_emu tests on API level 34 image (flutter#153175)
github-actions commentedon Sep 5, 2024
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.