Skip to content

[Google3 Bug]: Back button causes crash #168445

Closed
@letramygoogle

Description

@letramygoogle

EDIT by @matanlurey: This has nothing to do with the Flutter tool, it was a red herring. See #168445 (comment).


Help us understand the severity of this issue

  • causing severe production issues e.g. malfunctions or data loss
  • blocking next binary release
  • blocking a client feature launch within a quarter
  • nice-to-have but does not block a launch within the next quarter

Steps to reproduce

Crash report: b/416159318

It seems that the culprit is this Flutter roll cl/753573741

Expected results

App doesn't crash

Actual results

App crashed

Code sample

Not adding a minimal repro as not sure what caused the crash

Screenshots or Video

Attached in b/416159318

Logs

Attached in b/416159318

Flutter Doctor output

[   +2 ms] ProcessManager.runSync('which java')
[   +6 ms] executing: /usr/bin/adb devices -l
[        ] ProcessManager.run('/usr/bin/adb devices -l')
[        ] Gallium device polling: connecting to galliumd.
[        ] [✓] Flutter (Channel google3, on Debian GNU/Linux rodete 6.12.17-1rodete2-amd64, locale en_US.UTF-8) [0ms]
[        ]     • Framework revision 4a6965c4e6 (19 days ago), 2025-04-18T00:00:00.000
[        ]     • Engine revision 4a6965c4e6
[        ]     • Dart version 0cfefe2a03
[        ] [☠] Android toolchain - develop for Android devices (the doctor check crashed)
[        ]     ✗ Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about
this issue
                 at https://github.com/flutter/flutter/issues.
[        ]     ✗ type 'Null' is not a subtype of type 'String' of 'executable'
[        ]     • #0      LocalProcessManager.canRun (package:process/src/interface/local_process_manager.dart:124)
[        ]       #1      getEmulatorVersion (package:flutter_tools/src/android/android_workflow.dart:64)
[        ]       #2      AndroidValidator.validateImpl (package:flutter_tools/src/android/android_workflow.dart:200)
[        ]       #3      DoctorValidator.validate (package:flutter_tools/src/doctor_validator.dart:58)
[        ]       #4      Doctor.startValidatorTasks.<anonymous closure> (package:flutter_tools/src/doctor.dart:244)
[        ]       #5      asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:109)
[        ]       #6      _rootRun (dart:async/zone.dart:1525)
[        ]       #7      _CustomZone.run (dart:async/zone.dart:1422)
[        ]       #8      _runZoned (dart:async/zone.dart:2033)
[        ]       #9      runZonedGuarded (dart:async/zone.dart:2019)
[        ]       #10     runZoned (dart:async/zone.dart:1952)
[        ]       #11     asyncGuard (package:flutter_tools/src/base/async_guard.dart:106)
[        ]       #12     Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:234)
[        ]       #13     Doctor.diagnose (package:flutter_tools/src/doctor.dart:372)
[        ]       #14     DoctorCommand.runCommand (package:flutter_tools/src/commands/doctor.dart:59)
[        ]       #15     FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1897)
[        ]       <asynchronous suspension>
[        ]       #16     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1551)
[        ]       <asynchronous suspension>
[        ]       #17     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:154)
[        ]       <asynchronous suspension>
[        ]       #18     CommandRunner.runCommand (package:args/command_runner.dart:212)
[        ]       <asynchronous suspension>
[        ]       #19     FlutterCommandRunner.runCommand.<anonymous closure>
(package:flutter_tools/src/runner/flutter_command_runner.dart:501)
[        ]       <asynchronous suspension>
[        ]       #20     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:154)
[        ]       <asynchronous suspension>
[        ]       #21     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:438)
[        ]       <asynchronous suspension>
[        ]       #22     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:98)
[        ]       <asynchronous suspension>
[        ]       #23     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:154)
[        ]       <asynchronous suspension>
[        ]       #24     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:154)
[        ]       <asynchronous suspension>
[        ]       #25     run (package:mobile.flutter.cli/flutter_tools.dart:106)
[        ]       <asynchronous suspension>
[        ]       #26     main (google3:///mobile/flutter/cli/bin/cli_usage_aot.dart:4)
[        ]       <asynchronous suspension>
[        ] [✓] VS Code (version unknown) [0ms]
[        ]     • VS Code at /usr/share/code
[        ]     • Flutter extension can be installed from:
[        ]       🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[        ]     ✗ Unable to determine VS Code version.
[   +8 ms] List of devices attached
           localhost:38655        device product:lynx model:Pixel_7a device:lynx transport_id:13
[   +9 ms] Gallium device polling failed to connect to galliumd: gRPC Error (code: 14, codeName: UNAVAILABLE, message: Error connecting:
SocketException: Connection refused (OS Error: Connection refused, errno = 111), address = localhost, port = 40890, details: null,
rawResponse: null, trailers: {})
[        ] /usr/bin/adb -s localhost:38655 shell getprop
[        ] ProcessManager.run('/usr/bin/adb -s localhost:38655 shell getprop')
[ +316 ms] ro.hardware = lynx
[        ] ro.build.characteristics = nosdcard
[        ] executing: uname -m
[        ] ProcessManager.runSync('uname -m')
[   +3 ms] Exit code 0 from: uname -m
[        ] x86_64
[        ] executing: /usr/bin/adb devices -l
[        ] ProcessManager.run('/usr/bin/adb devices -l')
[   +4 ms] List of devices attached
           localhost:38655        device product:lynx model:Pixel_7a device:lynx transport_id:13
[        ] [✓] Connected device (2 available) [347ms]
[        ]     • Pixel 7a (mobile) • localhost:38655 • android-arm64 • Android 13 (API 33)
[        ]     • Linux (desktop)   • linux           • linux-x64     • Debian GNU/Linux rodete 6.12.17-1rodete2-amd64
[        ] [✓] Google3 (on linux) [11ms]
[        ]     • KVM enabled
[        ] ! Doctor found issues in 1 category.
[        ] "flutter doctor" took 355ms.
[        ] Running 2 shutdown hooks
[        ] Shutdown hooks complete
[   +1 ms] exiting with code 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: crashStack traces logged to the consolecustomer: googleVarious Google teamsframeworkflutter/packages/flutter repository. See also f: labels.needs repro infoAutomated crash report whose cause isn't yet knownr: fixedIssue is closed as already fixed in a newer versionteam-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions