Skip to content

[tool_crash] Null check operator used on a null value - computeTransitiveDependencies (package:flutter_tools/src/package_graph.dart:76:29) #194444

Closed

Description

@DanTup

I had a failure in Dart-Code's E2E tests on GitHub here:

https://github.com/Dart-Code/E2E-Tests/actions/runs/38724380407

In the logs for the widget preview was the crash below. Unfortunately the URL was truncated in my logs, but hopefully there's enough here to understand what failed.

The full log file from the Dart-Code extension is widgetpreview.txt.

Given the ! in the code is not new, the issue seems intermittent (and happening infrequently), possible some kind of race? This was raised previously at #185272 but was closed due to inability to repro.

cc @bkonyi

Command

flutter widget-preview start --machine --web-server --dtd-url ws://127.0.0.1:36281/xc4KLaryNuQ= --devtools-server-address http://127.0.0.1:9100/

Logs

_TypeError: (#0 computeTransitiveDependencies (package:flutter_tools/src/package_graph.dart:76:29))

#0      computeTransitiveDependencies (package:flutter_tools/src/package_graph.dart:76:29)
#1      ManifestAssetBundle.build (package:flutter_tools/src/asset.dart:420:11)
<asynchronous suspension>
#2      ResidentWebRunner._updateDevFS (package:flutter_tools/src/isolated/resident_web_runner.dart:753:26)
<asynchronous suspension>
#3      ResidentWebRunner.run.<anonymous closure> (package:flutter_tools/src/isolated/resident_web_runner.dart:316:41)
<asynchronous suspension>
#4      asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:108:24)
<asynchronous suspension>
[✓] Flutter (Channel master, 3.50.0-1.0.pre-60, on Ubuntu 24.04.5 LTS 6.17.0-1022-azure, locale C.UTF-8) [448ms]
    • Flutter version 3.50.0-1.0.pre-60 on channel master at /home/runner/work/E2E-Tests/E2E-Tests/flutter
    • Upstream repository https://github.com/flutter/flutter
    • Framework revision 8274c72edd (3 hours ago), 2026-10-15 07:58:40 +0000
    • Engine revision 8274c72edd
    • Dart version 3.15.0<truncated>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listteam-toolOwned by Flutter Tool teamtriaged-toolTriaged by Flutter Tool team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions