-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
team-androidOwned by Android platform teamOwned by Android platform team
Description
A bunch of Linux_pixel_7pro are failing in post-submit with this error:
[2025-09-04 00:35:05.893558] [STDERR] Task failed: Bad state: Too many elements
[2025-09-04 00:35:05.893772] [STDERR]
[2025-09-04 00:35:05.893802] [STDERR] Stack trace:
[2025-09-04 00:35:05.911669] [STDERR] dart:core Iterable.single
[2025-09-04 00:35:05.911731] [STDERR] package:flutter_devicelab/framework/devices.dart 689:73 AndroidDevice._getWakefulness
[2025-09-04 00:35:05.911739] [STDERR] ===== asynchronous gap ===========================
[2025-09-04 00:35:05.911748] [STDERR] dart:async _CustomZone.registerBinaryCallback
[2025-09-04 00:35:05.911758] [STDERR] package:flutter_devicelab/framework/framework.dart 309:28 _TaskRunner._performTask.<fn>
[2025-09-04 00:35:05.911769] [STDERR] package:stack_trace Chain.capture
[2025-09-04 00:35:05.911778] [STDERR] package:flutter_devicelab/framework/framework.dart 307:11 _TaskRunner._performTask
[2025-09-04 00:35:05.911796] [STDERR] package:flutter_devicelab/framework/framework.dart 200:43 _TaskRunner.run
[2025-09-04 00:35:05.911806] [STDERR]
[2025-09-04 00:35:05.914682] [STDOUT] Checking for reboot
[platform_interaction_test] Process terminated with exit code 0.
It's crashing on usage of single:
| final String wakefulness = grep(wakefulnessRegexp, from: powerInfo).single.split('=')[1].trim(); |
Looks like it's now returning two values for mWakefulness:
mWakefulness=Awake
...
mWakefulness=1
Metadata
Metadata
Assignees
Labels
team-androidOwned by Android platform teamOwned by Android platform team