-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: contributor-productivityTeam-specific productivity, code health, technical debt.Team-specific productivity, code health, technical debt.dependency: dartDart team may need to help usDart team may need to help usengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.team-engineOwned by Engine teamOwned by Engine teamtriaged-engineTriaged by Engine teamTriaged by Engine team
Description
I might be holding it wrong, but I've been getting this error frequently when building Flutter with a local engine. We might want a better error message.
In Flutter engine
flutter fetch --all
flutter pull
gclient sync
./tools/gn --unoptimized --simulator
./tools/gn --unoptimized --simulator --ios
autoninja -C ../out/host_debug_sim_unopt
autoninja -C ../out/ios_debug_sim_unoptdo everything again in a few hours, then in a Flutter project
flutter run --local-engine=ios_debug_sim_unoptthen I tend to get
Unhandled exception:
Unexpected Kernel SDK Version 5831471fac (expected 8e50ccae25).
#0 BinaryBuilder._readAndVerifySdkHash (package:kernel/binary/ast_from_binary.dart:502:7)
#1 BinaryBuilder.readComponent.<anonymous closure> (package:kernel/binary/ast_from_binary.dart:534:7)
#2 Timeline.timeSync (dart:developer/timeline.dart:163:22)
#3 BinaryBuilder.readComponent (package:kernel/binary/ast_from_binary.dart:518:21)
#4 IncrementalCompiler.prepareSummary (package:front_end/src/fasta/incremental_compiler.dart:1446:12)
#5 IncrementalCompiler.ensurePlatformAndInitialize (package:front_end/src/fasta/incremental_compiler.dart:1000:23)
<asynchronous suspension>
#6 IncrementalCompiler.computeDelta.<anonymous closure> (package:front_end/src/fasta/incremental_compiler.dart:215:17)
<asynchronous suspension>
#7 IncrementalCompiler.computeDelta.<anonymous closure> (package:front_end/src/fasta/incremental_compiler.dart)
#8 CompilerContext.runInContext.<anonymous closure>.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:123:46)
#9 new Future.sync (dart:async/future.dart:223:31)
#10 CompilerContext.runInContext.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:123:19)
#11 _rootRun (dart:async/zone.dart:1190:13)
#12 _CustomZone.run (dart:async/zone.dart:1093:19)
#13 _runZoned (dart:async/zone.dart:1630:10)
#14 runZoned (dart:async/zone.dart:1550:10)
#15 CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:122:12)
#16 IncrementalCompiler.computeDelta (package:front_end/src/fasta/incremental_compiler.dart:206:20)
#17 IncrementalCompiler.compile (package:vm/incremental_compiler.dart:69:46)
#18 FrontendCompiler.compile.<anonymous closure> (package:frontend_server/frontend_server.dart:524:59)
#19 new Future.<anonymous closure> (dart:async/future.dart:175:37)
#20 _rootRun (dart:async/zone.dart:1182:47)
#21 _CustomZone.run (dart:async/zone.dart:1093:19)
#22 _CustomZone.runGuarded (dart:async/zone.dart:997:7)
#23 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1037:23)
#24 _rootRun (dart:async/zone.dart:1190:13)
#25 _CustomZone.run (dart:async/zone.dart:1093:19)
#26 _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:1021:23)
#27 Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:18:15)
#28 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:397:19)
#29 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:428:5)
#30 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
the Dart compiler exited unexpectedly.
the Dart compiler exited unexpectedly.
Haven't found a good way to get around it yet. Typically I just give up and try to rebuild everything for a different platform to keep testing.
Deleting the whole out/[ios/host]_debug_sim_unopt folder and rebuilding everything seems to fix it but is very time consuming.
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: contributor-productivityTeam-specific productivity, code health, technical debt.Team-specific productivity, code health, technical debt.dependency: dartDart team may need to help usDart team may need to help usengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.team-engineOwned by Engine teamOwned by Engine teamtriaged-engineTriaged by Engine teamTriaged by Engine team