flutter / flutter/flutter

Flutter engine C++ core unit tests failed on `ShellTest.EncodeImageRetryOverflows`

Open
#164,277 0 comments 0 reactions 0 assignees View on GitHub
engine from: manual-qa P3 team-engine triaged-engine
Dominant language
Dart
Stars
179k
Forks
31.1k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

1. Install Xcode 16.3 (beta) (Build 16E5104o) (unsure if this is a critical factor/step as I'm currently using this version)
2. [Compiling engine for testing](https://github.com/flutter/engine/blob/main/docs/contributing/Compiling-the-engine.md#compiling-for-testing) on master channel (3.30.0-1.0.pre.363)
3. Run [C++ - core engine](https://github.com/flutter/engine/blob/main/docs/testing/Testing-the-engine.md#c---core-engine)

```console
testing/run_tests.py --type=engine
```

This seems to have occurred recently at https://github.com/flutter/flutter/issues/163104.

### Expected results

Tests are passed

### Actual results

Test run is interrupted in `ShellTest.EncodeImageRetryOverflows` with code 254 and the trace in Logs section

### Code sample

Code sample

```dart
[Paste your code here]
```

### Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

### Logs

Logs

```console
INTERRUPTED TESTS (1/108):
Interrupted: /Users/huynq/Documents/GitHub/flutter_master/engine/src/out/host_debug_unopt/ui_unittests ShellTest.EncodeImageRetryOverflows (try #1)
SUMMARY:
/Users/huynq/Documents/GitHub/flutter_master/engine/src/out/host_debug_unopt/ui_unittests ShellTest.EncodeImageRetryOverflows passed 1 / 2 times (1 interrupted).

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Traceback (most recent call last):
File "/Users/huynq/Documents/GitHub/flutter_master/engine/src/flutter/testing/run_tests.py", line 1383, in
sys_exit(main())
^^^^^^
File "/Users/huynq/Documents/GitHub/flutter_master/engine/src/flutter/testing/run_tests.py", line 1302, in main
run_cc_tests(build_dir, engine_filter, args.coverage, args.engine_capture_core_dump)
File "/Users/huynq/Documents/GitHub/flutter_master/engine/src/flutter/testing/run_tests.py", line 494, in run_cc_tests
run_engine_executable(
File "/Users/huynq/Documents/GitHub/flutter_master/engine/src/flutter/testing/run_tests.py", line 318, in run_engine_executable
run_cmd(
File "/Users/huynq/Documents/GitHub/flutter_master/engine/src/flutter/testing/run_tests.py", line 128, in run_cmd
raise RuntimeError(
RuntimeError: Command "python3 /Users/huynq/Documents/GitHub/flutter_master/engine/src/flutter/third_party/gtest-parallel/gtest-parallel /Users/huynq/Documents/GitHub/flutter_master/engine/src/out/host_debug_unopt/ui_unittests --repeat=2 --timeout=90" (in /Users/huynq/Documents/GitHub/flutter_master/engine/src) exited with code 254.
➜ flutter git:(master) ✗
```

The complete test run output here: [run_tests.log.zip](https://github.com/user-attachments/files/19005265/run_tests.log.zip)

### Flutter Doctor output

Doctor output

```console
[!] Flutter (Channel master, 3.30.0-1.0.pre.363, on macOS 15.3.1 24D70 darwin-x64, locale en-VN) [7.3s]
• Flutter version 3.30.0-1.0.pre.363 on channel master at /Users/huynq/Documents/GitHub/flutter_master
! Warning: `flutter` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/flutter, which is not inside your current
Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding
/Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
! Warning: `dart` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/dart, which is not inside your current
Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding
/Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision d8a57c61dd (4 hours ago), 2025-02-27 17:14:20 +1300
• Engine revision d8a57c61dd
• Dart version 3.8.0 (build 3.8.0-147.0.dev)
• DevTools version 2.43.0
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform
update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.1) [18.7s]
• Android SDK at /Users/huynq/Library/Android/sdk
• Platform android-35, build-tools 35.0.1
• ANDROID_HOME = /Users/huynq/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
This JDK is specified in your Flutter configuration.
To change the current JDK, run: `flutter config --jdk-dir="path/to/jdk"`.
• Java version OpenJDK Runtime Environment (build 21.0.5+-12932927-b750.29)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.3) [6.3s]
• Xcode at /Applications/Xcode-beta.app/Contents/Developer
• Build 16E5104o
• CocoaPods version 1.16.2

[✓] Chrome - develop for the web [72ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.3) [69ms]
• Android Studio at /Applications/Android Studio.app/Contents
• 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
• android-studio-dir = /Applications/Android Studio.app
• Java version OpenJDK Runtime Environment (build 21.0.5+-12932927-b750.29)

[✓] Android Studio (version 2024.3) [64ms]
• Android Studio at /Applications/Android Studio RC 2024.3.1.11.app/Contents
• 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 21.0.5+-12932927-b750.29)

[✓] VS Code (version 1.97.2) [63ms]
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.104.0

[✓] Connected device (4 available) [11.5s]
• iPhone 16 pro max (wireless) (mobile) • 00008140-00194CC23A68801C • ios • iOS 18.3.1 22D72
• iPhone 16 Pro (mobile) • 726906EC-69A2-4C2C-8613-B233B9ADB599 • ios •
com.apple.CoreSimulator.SimRuntime.iOS-18-4 (simulator)
• macOS (desktop) • macos • darwin-x64 • macOS 15.3.1 24D70 darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 133.0.6943.128

[✓] Network resources [2.1s]
• All expected network resources are available.

! Doctor found issues in 1 category.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.