Skip to content

Flutter run --profile crash on open Chrome's Flutter devtools #2984

Closed
@ObranS

Description

@ObranS

When I run app in --profile mode and open flutter devtool app crash with Exception right after Chrome load the screen. Debug mode works without issues. Reproduces on Flutter 2.0.3 and 2.0.5 same.

[+1085545 ms] ../../third_party/dart/runtime/vm/service.cc: 932: error: unimplemented code
[ ] version=2.12.2 (stable) (Wed Mar 17 10:30:20 2021 +0100) on "ios_arm64"
[ ] pid=502, thread=17155, isolate_group=main(0x1058c1200), isolate=main(0x1058d4200)
[ ] isolate_instructions=108d35000, vm_instructions=108d30000
[ ] pc 0x000000010417d084 fp 0x000000016f27bfb0 Dart_DumpNativeStackTrace+0x18
[ ] pc 0x0000000103fcca78 fp 0x000000016f27bfd0 dart::Assert::Fail(char const*, ...)+0x30
[ ] pc 0x00000001040ea288 fp 0x000000016f27c240 dart::Service::InvokeMethod(dart::Isolate*, dart::Array const&, bool)+0xe80
[ ] pc 0x000000010402df10 fp 0x000000016f27c460 dart::IsolateMessageHandler::HandleMessage(std::__1::unique_ptr<dart::Message, std::__1::default_deletedart::Message >)+0xb80
[ ] pc 0x00000001040427c8 fp 0x000000016f27c910 dart::MessageHandler::HandleMessages(dart::MonitorLocker*, bool, bool)+0x1e0
[ ] pc 0x0000000104166f30 fp 0x000000016f27cdf0 Dart_HandleMessage+0x180
[ ] pc 0x0000000103e54230 fp 0x000000016f27ce60 std::__1::__function::__func<tonic::DartMessageHandler::OnMessage(tonic::DartState*)::$_0, std::__1::allocatortonic::DartMessageHandler::OnMessage(tonic::DartState*)::$_0, void ()>::operator()()+0x170
[ ] pc 0x0000000103ddc644 fp 0x000000016f27cf90 fml::MessageLoopImpl::FlushTasks(fml::FlushType)+0x5b0
[ ] pc 0x0000000103ddecfc fp 0x000000016f27cfb0 fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*)+0x20
[ ] pc 0x00000001adcc8f80 fp 0x000000016f27cfc0 +0x1c
[ ] pc 0x00000001adcc8b80 fp 0x000000016f27e090 +0x3f8
[ ] pc 0x00000001adcc8054 fp 0x000000016f27e0f0 +0x144
[ ] pc 0x00000001adcc238c fp 0x000000016f27ee50 +0x79c
[ ] pc 0x00000001adcc16a8 fp 0x000000016f27ef00 CFRunLoopRunSpecific+0x23c
[ ] pc 0x0000000103ddebd8 fp 0x000000016f27ef40 fml::MessageLoopDarwin::Run()+0x58
[ ] pc 0x0000000103dddd90 fp 0x000000016f27efc0 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, fml::Thread::Thread(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)::$_0> >(void*)+0xc4
[ ] pc 0x00000001f555bc78 fp 0x000000016f27efe0 _pthread_start+0x120
[ ] -- End of DumpStackTrace
[ +146 ms] Process 502 stopped
[ ] * thread #8, name = 'io.flutter.1.ui', stop reason = signal SIGABRT
[ ] frame #0: 0x00000001d93617b0 libsystem_kernel.dylib__pthread_kill + 8 [ ] libsystem_kernel.dylib__pthread_kill:
[ ] -> 0x1d93617b0 <+8>: b.lo 0x1d93617cc ; <+36>
[ ] 0x1d93617b4 <+12>: stp x29, x30, [sp, #-0x10]!
[ ] 0x1d93617b8 <+16>: mov x29, sp
[ ] 0x1d93617bc <+20>: bl 0x1d933e1fc ; cerror_nocancel
[ ] Target 0: (Runner) stopped.
[ ] ios-deploy exited with code 0
[ +430 ms] Service protocol connection closed.
[ ] Lost connection to device.
[ +4 ms] "flutter run" took 1,267,667ms.
[ +4 ms] ensureAnalyticsSent: 0ms
[ ] Running shutdown hooks
[ ] Shutdown hook priority 4
[ +1 ms] Shutdown hooks complete
[ +2 ms] exiting with code 0

❯ flutter doctor -v
[✓] Flutter (Channel stable, 2.0.6, on macOS 11.2.3 20D91 darwin-x64, locale en-GB)
• Flutter version 2.0.6 at ***
• Framework revision 1d9032c7e1 (7 days ago), 2021-04-29 17:37:58 -0700
• Engine revision 05e680e202
• Dart version 2.12.3

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at ***
• Platform android-30, build-tools 30.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.5, Build version 12E262
• CocoaPods version 1.10.1

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

[✓] Android Studio (version 4.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
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] Connected device (3 available)
• iPad (mobile) • ios • iOS 14.5.1
• Chrome (web) • chrome • web-javascript • Google Chrome 90.0.4430.93

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions