Issue 1:
run a dart app

command

flutter run --machine --device-id=00b632821d6e1a49 lib/main.dart

exception

FormatException: FormatException: Bad UTF-8 encoding 0xff (at offset 1126)

dart:isolate _RawReceivePortImpl._handleMessage

flutter doctor

[✓] Flutter (on Linux, channel master)
• Flutter at /home/mark/git/flutter
• Framework revision 1457f3dbb0 (23 hours ago), 2017-03-15 10:53:22
• Engine revision b97103b441
• Tools Dart version 1.23.0-dev.2.0

[✓] Android toolchain - develop for Android devices (Android SDK 25.0.0)
• Android SDK at /home/mark/Android/Sdk
• Platform android-25, build-tools 25.0.0
• Java binary at: /usr/bin/java
• Java version: OpenJDK Runtime Environment (build 1.8.0_121-8u121-b13-0ubuntu1.16.04.2-b13)

[✓] Android Studio (version 2.2)
• Android Studio at /home/mark/Programming/android-studio
• Gradle version 2.14.1

[✓] IntelliJ IDEA Community Edition (version 2016.3)
• Dart plugin version 163.13137
• Flutter plugin version 0.1.11.2

[✓] Connected devices
• Nexus 5X • 00b632821d6e1a49 • android-arm • Android 7.1.1 (API 25)

Issue 2:
Steps to Reproduce

1. flutter drive --target=test_driver/screenshots.dart --flavor production

result: the test executes fine, until the control flow want to execute a compute.
expected: the compute should execute and the result should be used to continue control flow.

Logs

± % flutter drive --target=test_driver/screenshots.dart --flavor production !4781
Using device Android SDK built for x86 64.
Starting application: test_driver/screenshots.dart
Initializing gradle... 0.5s
Resolving dependencies... 1.7s
Installing build/app/outputs/apk/app.apk... 1.8s
Gradle task 'assembleProductionDebug'... Gradle task 'assembleProductionDebug'... Done 3.8s
Built build/app/outputs/apk/production/debug/app-production-debug.apk.
Installing build/app/outputs/apk/app.apk... 1.6s
I/flutter (12198): Observatory listening on http://127.0.0.1:55289/
00:00 +0: scrolling performance test (setUpAll)
[info ] FlutterDriver: Connecting to Flutter application at http://127.0.0.1:46417/
[trace] FlutterDriver: Isolate found with number: 359134432
[trace] FlutterDriver: Isolate is paused at start.
[trace] FlutterDriver: Attempting to resume isolate
[trace] FlutterDriver: Waiting for service extension
[info ] FlutterDriver: Connected to Flutter application.
00:00 +0: scrolling performance test nl
...
02:14 +0 -1: scrolling performance test nl [E]
DriverError: Error in Flutter application: Timeout while executing waitFor: TimeoutException after 0:02:00.000000: Future not completed

± % flutter doctor -v !4781
[✓] Flutter (Channel beta, v0.11.9, on Linux, locale en_US.UTF-8)
• Flutter version 0.11.9 at /home/.../Developer/flutter
• Framework revision d48e6e433c (7 days ago), 2018-11-20 22:05:23 -0500
• Engine revision 5c8147450d
• Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at /home/.../Android/Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: /home/.../android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.

[✓] Android Studio (version 3.2)
• Android Studio at /home/.../android-studio
• Flutter plugin version 30.0.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[✓] Connected device (1 available)
• Android SDK built for x86 64 • emulator-5554 • android-x64 • Android 6.0 (API 23) (emulator)

! Doctor found issues in 1 category.