Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS crash in debug mode - 0x103bbf324 dart::Assert::Fail #119841

Closed
filiph opened this issue Feb 2, 2023 · 7 comments
Closed

macOS crash in debug mode - 0x103bbf324 dart::Assert::Fail #119841

filiph opened this issue Feb 2, 2023 · 7 comments
Labels
a: desktop Running on desktop c: crash Stack traces logged to the console dependency: dart Dart team may need to help us engine flutter/engine repository. See also e: labels. P2 Important issues not at the top of the work list platform-mac Building on or for macOS specifically r: invalid Issue is closed as not valid team-desktop Owned by Desktop platforms team triaged-desktop Triaged by Desktop platforms team

Comments

@filiph
Copy link
Contributor

filiph commented Feb 2, 2023

After letting my app run in the background for a few hours (in debug mode) and switching back to it on macOS, I experienced a crash. The app just suddenly closed, with the Flutter tool saying Lost connection to device. and, later, macOS generating a Problem Report ([application] quit unexpectedly).

Steps to Reproduce

This will be hard to impossible to reproduce but I do have the Problem Details and the System Configuration, so I thought I'd report it anyway.

Some things that seem salient from the Details that I'm copying here for SEO:

  • Code Type: ARM-64 (Native)
  • Crashed Thread: 1 io.flutter.ui
  • Application Specific Information: abort() called
  • Thread 0:: Dispatch queue: com.apple.main-thread
    • mach_msg2_trap
  • Thread 1 Crashed:: io.flutter.ui
    • 0x1a8aeb224 __pthread_kill + 8
    • 0x1a8b21cec pthread_kill + 288
    • 0x1a8a5b2c8 abort + 180
    • 0x103bbf324 dart::Assert::Fail(char const*, ...) const + 48
    • 0x103da6f70 dart::ThreadPool::RunImpl(std::__1::unique_ptr<dart::ThreadPool::Task, std::__1::default_deletedart::ThreadPool::Task >) + 304
    • 0x103dba0e0 dart::BackgroundCompiler::EnqueueCompilation(dart::Function const&) + 320
    • 0x103d6de4c dart::DRT_OptimizeInvokedFunction(dart::NativeArguments) + 328

FULL DETAILS (5MB): crash-report-flutter.txt

Logs
% flutter analyze
Analyzing giant_robot...                                                

   info • The declaration '_logFloat32x4' isn't referenced • lib/experimental/neural/backpropagation_with_advantage.dart:505:11 •
          unused_element
   info • The parameter 'learningRate' should have the name 'value' to match the name used in the overridden method •
          lib/experimental/neural/parameter_strategy.dart:167:24 • avoid_renaming_method_parameters
   info • The parameter 'momentum' should have the name 'value' to match the name used in the overridden method •
          lib/experimental/neural/parameter_strategy.dart:257:24 • avoid_renaming_method_parameters
   info • The getter doesn't override an inherited getter • lib/game/combat/projectile.dart:23:22 •
          override_on_non_overriding_member
   info • The value of the field '_brightPaint' isn't used • lib/game/ui/glance_info_component.dart:20:22 • unused_field
   info • Private field could be final • lib/game/ui/glance_info_component.dart:41:30 • prefer_final_fields
   info • The value of the local variable 'chosen' isn't used • tool/backprop_driver_brain.dart:448:13 • unused_local_variable

[✓] Flutter (Channel stable, 3.3.10, on macOS 13.0.1 22A400 darwin-arm, locale en-US)
    • Flutter version 3.3.10 on channel stable at /Users/filiph/fvm/versions/stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 135454af32 (7 weeks ago), 2022-12-15 07:36:55 -0800
    • Engine revision 3316dd8728
    • Dart version 2.18.6
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc1)
    • Android SDK at /Users/filiph/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0-rc1
    • Java binary at: /Library/Java/JavaVirtualMachines/temurin-8.jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (Temurin)(build 1.8.0_302-b08)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio (version 2022.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[✓] VS Code (version 1.74.3)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.58.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 13.0.1 22A400 darwin-arm
    • Chrome (web)    • chrome • web-javascript • Google Chrome 109.0.5414.119

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

Screenshot 2023-02-02 at 19 18 06

@darshankawar darshankawar added the in triage Presently being triaged by the triage team label Feb 3, 2023
@darshankawar
Copy link
Member

Thanks for the report @filiph
This seems similar to an already open issue #103268, so please check if underlying comments in it resonates with your use case that triggered the crash. If so, we can club this issue with the linked one for better tracking.

@darshankawar darshankawar added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Feb 3, 2023
@mraleph
Copy link
Member

mraleph commented Feb 3, 2023

I don't think it is the same issue as #103268, the assertions are different.

@filiph
Copy link
Contributor Author

filiph commented Feb 3, 2023

This could be a red herring but my app also (like #103268) listens to key events (it's a Flame game with mouse+keyboard input).

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Feb 3, 2023
@darshankawar
Copy link
Member

I'll label this issue based on the report and for team's attention.

@darshankawar darshankawar added c: crash Stack traces logged to the console platform-mac Building on or for macOS specifically a: desktop Running on desktop engine flutter/engine repository. See also e: labels. dependency: dart Dart team may need to help us and removed in triage Presently being triaged by the triage team labels Feb 3, 2023
@loic-sharma
Copy link
Member

/cc @cbracken

@gspencergoog gspencergoog added the P2 Important issues not at the top of the work list label Feb 9, 2023
@flutter-triage-bot flutter-triage-bot bot added multiteam-retriage-candidate team-desktop Owned by Desktop platforms team triaged-desktop Triaged by Desktop platforms team labels Jul 7, 2023
@a-siva
Copy link
Contributor

a-siva commented Feb 1, 2024

There is insufficient information in the issue to debug and figure out the cause. Closing issue as obsolete. If there is a clear reproduction on the latest version of Flutter please reopen issue with reproduction information.

@a-siva a-siva closed this as completed Feb 1, 2024
@darshankawar darshankawar added the r: invalid Issue is closed as not valid label Feb 2, 2024
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a: desktop Running on desktop c: crash Stack traces logged to the console dependency: dart Dart team may need to help us engine flutter/engine repository. See also e: labels. P2 Important issues not at the top of the work list platform-mac Building on or for macOS specifically r: invalid Issue is closed as not valid team-desktop Owned by Desktop platforms team triaged-desktop Triaged by Desktop platforms team
Projects
None yet
Development

No branches or pull requests

6 participants