You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[ Widget Preview ] TypeError: type 'DisposedAnalysisContextResult' is not a subtype of type 'ErrorsResult' in type cast #178472
Crash detected via crashlytics for 3.38.0 release:
Thread 0 main thread_TypeError: type 'DisposedAnalysisContextResult' is not a subtype of type 'ErrorsResult' in type cast
at LibraryPreviewNode.populateErrors(dependency_graph.dart:219)
at <asynchronous gap>(async)
at PreviewDetector._findPreviewFunctions(preview_detector.dart:251)
at <asynchronous gap>(async)
at PreviewDetector.initialize(preview_detector.dart:73)
at <asynchronous gap>(async)
at WidgetPreviewStartCommand.runCommand(widget_preview.dart:340)
at <asynchronous gap>(async)
at FlutterCommand.run.<anonymous closure>(flutter_command.dart:1559)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:154)
at <asynchronous gap>(async)
at CommandRunner.runCommand(command_runner.dart:212)
at <asynchronous gap>(async)
at FlutterCommandRunner.runCommand.<anonymous closure>(flutter_command_runner.dart:487)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:154)
at <asynchronous gap>(async)
at FlutterCommandRunner.runCommand(flutter_command_runner.dart:422)
at <asynchronous gap>(async)
at run.<anonymous closure>.<anonymous closure>(runner.dart:101)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:154)
at <asynchronous gap>(async)
at main(executable.dart:103)
at <asynchronous gap>(async)
We're making a bad assumption about the return type as errors can be returned once the analysis context is disposed while we're in the middle of updating the preview dependency graph.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
[ Widget Preview ] Gracefully handle unexpected analysis context disp…
[ Widget Preview ] Gracefully handle unexpected analysis context disp…
[ Widget Preview ] Gracefully handle unexpected analysis context disp…
[ Widget Preview ] Gracefully handle unexpected analysis context disp…
[CP-stable][ Widget Preview ] Gracefully handle unexpected analysis c…
[CP-beta][ Widget Preview ] Gracefully handle unexpected analysis con…
[ Widget Preview ] Gracefully handle unexpected analysis context disp…
github-actions commentedon Nov 29, 2025
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.[ Widget Preview ] Gracefully handle unexpected analysis context disp…
[ Widget Preview ] Gracefully handle unexpected analysis context disp…
[ Widget Preview ] Gracefully handle unexpected analysis context disp…