Skip to content

Linter crashes on Mac due to absent stdout on result of WorkerJob. #68053

@chinmaygarde

Description

@chinmaygarde

This occurred on a Mac host while trying to reproduce a linter error on the bot.

The stack trace in the linter was:

NoSuchMethodError: The getter 'isEmpty' was called on null.
Receiver: null
Tried calling: isEmpty
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
#1      main (file:////engine/src/flutter/ci/bin/lint.dart:248:28)
<asynchronous suspension>
#2      _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32)
#3      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)

The line that caused the exception reads if (job.result?.stdout.isEmpty ?? true) which indicates that the ProcessRunnerResult.stdout was null. Unclear why this can be the case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: tests"flutter test", flutter_test, or one of our testsengineflutter/engine related. See also e: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions