Skip to content

Crash while running flutter commands #69863

@mit-mit

Description

@mit-mit

Steps to Reproduce

Ran flutter upgrade --force

Logs

$ flutter upgrade --force
Upgrading Flutter from /Users/mit/dev/flutter...
Downloading Dart SDK from Flutter engine e66a720137d9e9c5f0d78439a025fea74f40b46b...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0  177M    0 12564    0     0  20630      0  2:29:59 --:--:--  2:29:59 20596
  9  177M    9 16.6M    0     0  11.1M      0  0:00:15  0:00:01  0:00:14 11.1M
 22  177M   22 39.9M    0     0  16.0M      0  0:00:11  0:00:02  0:00:09 16.0M
 37  177M   37 66.3M    0     0  18.8M      0  0:00:09  0:00:03  0:00:06 18.8M
 51  177M   51 92.0M    0     0  20.4M      0  0:00:08  0:00:04  0:00:04 20.4M
 66  177M   66  117M    0     0  21.3M      0  0:00:08  0:00:05  0:00:03 23.9M
 81  177M   81  144M    0     0  22.1M      0  0:00:07  0:00:06  0:00:01 25.4M
 96  177M   96  170M    0     0  22.8M      0  0:00:07  0:00:07 --:--:-- 26.2M
100  177M  100  177M    0     0  22.9M      0  0:00:07  0:00:07 --:--:-- 26.3M
Building flutter tool...

Upgrading engine...
Downloading Android Maven dependencies...                          749ms

Oops; flutter has exited unexpectedly: "NoSuchMethodError: The method '>=' was called on null.
Receiver: null
Tried calling: >=(4)".
Unable to generate crash report due to secondary error: NoSuchMethodError: The method '>=' was called on null.
Receiver: null
Tried calling: >=(4)
Please report a bug at https://github.com/flutter/flutter/issues.

Oops; flutter has exited unexpectedly: "NoSuchMethodError: The method '>=' was called on null.
Receiver: null
Tried calling: >=(4)".
Unable to generate crash report due to secondary error: NoSuchMethodError: The method '>=' was called on null.
Receiver: null
Tried calling: >=(4)
Please report a bug at https://github.com/flutter/flutter/issues.
Unhandled exception:
ProcessExit: 1
#0      _handleToolError (package:flutter_tools/runner.dart:170:7)
#1      _asyncErrorWrapperHelper.errorCallback (dart:async-patch/async_patch.dart:91:64)
#2      _rootRunBinary (dart:async/zone.dart:1214:47)
#3      _CustomZone.runBinary (dart:async/zone.dart:1107:19)
#4      _FutureListener.handleError (dart:async/future_impl.dart:157:20)
#5      Future._propagateToListeners.handleError (dart:async/future_impl.dart:708:47)
#6      Future._propagateToListeners (dart:async/future_impl.dart:729:24)
#7      Future._completeError (dart:async/future_impl.dart:537:5)
#8      _AsyncAwaitCompleter.completeError (dart:async-patch/async_patch.dart:47:15)
#9      _doctorText (package:flutter_tools/runner.dart)
#10     _asyncErrorWrapperHelper.errorCallback (dart:async-patch/async_patch.dart:91:64)
#11     _rootRunBinary (dart:async/zone.dart:1214:47)
#12     _CustomZone.runBinary (dart:async/zone.dart:1107:19)
#13     _FutureListener.handleError (dart:async/future_impl.dart:157:20)
#14     Future._propagateToListeners.handleError (dart:async/future_impl.dart:708:47)
#15     Future._propagateToListeners (dart:async/future_impl.dart:729:24)
#16     Future._completeError (dart:async/future_impl.dart:537:5)
#17     Future._asyncCompleteError.<anonymous closure> (dart:async/future_impl.dart:593:7)
#18     _rootRun (dart:async/zone.dart:1190:13)
#19     _CustomZone.run (dart:async/zone.dart:1093:19)
#20     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:1021:23)
#21     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#22     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#23     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:120:13)
#24     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:404:11)
#25     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:428:5)
#26     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)
| ~/tmp/repro21 @ mit-macbookpro3 (mit)
$

After running it a second time I get:

$ flutter upgrade --force
Flutter is already up to date on channel master
Flutter 1.24.0-8.0.pre.96 • channel master • https://github.com/flutter/flutter.git
Framework • revision 4bd89b399e (8 minutes ago) • 2020-11-05 03:29:04 -0500
Engine • revision e66a720137
Tools • Dart 2.12.0 (build 2.12.0-21.0.dev)
| ~/tmp/repro21 @ mit-macbookpro3 (mit)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0Critical issues such as a build break or regressionc: crashStack traces logged to the consolec: regressionIt was better in the past than it is nowtoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions