-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
flutter/engine
#49958Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.team-webOwned by Web platform teamOwned by Web platform team
Description
I'm seeing the following error in the JS console when hot restarting:
══╡ EXCEPTION CAUGHT BY SCHEDULER LIBRARY ╞═════════════════════════════════════════════════════════
js_primitives.dart:30 The following assertion was thrown during a scheduler callback:
js_primitives.dart:30 Assertion failed: org-dartlang-sdk:///lib/_engine/engine/window.dart:91:12
js_primitives.dart:30 !isDisposed
js_primitives.dart:30 "Trying to render a disposed EngineFlutterView."
js_primitives.dart:30
js_primitives.dart:30 When the exception was thrown, this was the stack:
js_primitives.dart:30 dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 297:3 throw_
js_primitives.dart:30 dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 38:3 assertFailed
js_primitives.dart:30 lib/_engine/engine/window.dart 91:13 render
js_primitives.dart:30 packages/flutter/src/rendering/view.dart 309:7 compositeFrame
js_primitives.dart:30 packages/flutter/src/rendering/binding.dart 582:19 drawFrame
js_primitives.dart:30 packages/flutter/src/widgets/binding.dart 991:13 drawFrame
js_primitives.dart:30 packages/flutter/src/rendering/binding.dart 443:5 [_handlePersistentFrameCallback]
js_primitives.dart:30 packages/flutter/src/scheduler/binding.dart 1386:7 [_invokeFrameCallback]
js_primitives.dart:30 packages/flutter/src/scheduler/binding.dart 1311:9 handleDrawFrame
js_primitives.dart:30 packages/flutter/src/scheduler/binding.dart 1169:5 [_handleDrawFrame]
js_primitives.dart:30 lib/_engine/engine/platform_dispatcher.dart 1346:5 invoke
js_primitives.dart:30 lib/_engine/engine/platform_dispatcher.dart 260:5 invokeOnDrawFrame
js_primitives.dart:30 lib/_engine/engine/initialization.dart 185:36 <fn>
js_primitives.dart:30 dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 550:37 _checkAndCall
js_primitives.dart:30 dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 555:39 dcall
js_primitives.dart:30 ════════════════════════════════════════════════════════════════════════════════════════════════════
It looks like this is coming from the call to ext.flutter.disassemble which invokes this method in the Flutter engine: https://github.com/flutter/engine/blob/c16710721f7c18121a70650bcebc4a96a03353ae/lib/web_ui/lib/src/engine/initialization.dart#L191
Originally posted by @elliette in #141588 (comment)
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.team-webOwned by Web platform teamOwned by Web platform team