Skip to content

VM exception "unreachable code" #50516

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

Closed
kenzieschmoll opened this issue Nov 18, 2022 · 0 comments
Closed

VM exception "unreachable code" #50516

kenzieschmoll opened this issue Nov 18, 2022 · 0 comments
Assignees
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. P2 A bug or feature request we're likely to work on

Comments

@kenzieschmoll
Copy link
Contributor

kenzieschmoll commented Nov 18, 2022

I ran the flutter gallery in profile mode on macos: flutter run -d macos --profile.

Upon trying to connect to the VM service via DevTools, this crash occurred:

 ~/develop/gallery/ [master+*] flutter run -d macos --profile
Launching lib/main.dart on macOS in profile mode...
Updating minimum macOS deployment target to 10.14.
Upgrading project.pbxproj
Upgrading Podfile
Updating project for Xcode compatibility.
Upgrading project.pbxproj
Upgrading Runner.xcscheme
Removing script build phase dependency analysis.
Running pod install...                                           2,380ms
Building macOS application...

Flutter run key commands.
h List all available interactive commands.
c Clear the screen
q Quit (terminate the application on the device).
An Observatory debugger and profiler on macOS is available at:
http://127.0.0.1:57350/1dDyw4Vu7Uc=/
The Flutter DevTools debugger and profiler on macOS is available at:
http://127.0.0.1:9103?uri=http://127.0.0.1:57350/1dDyw4Vu7Uc=/

../../third_party/dart/runtime/vm/object.h: 3883: error: unreachable code
version=2.19.0-403.0.dev (dev) (Tue Nov 15 08:11:21 2022 -0800) on "macos_x64"
pid=96588, thread=37379, isolate_group=main(0x7f955e01e000), isolate=main(0x7f955e02c400)
os=macos, arch=x64, comp=no, sim=no
isolate_instructions=10f66fe00, vm_instructions=10f66ac00
  pc 0x000000010dd8e4a5 fp 0x0000700002d6e010 dart::Profiler::DumpStackTrace(void*)+0x85
  pc 0x000000010dc960a4 fp 0x0000700002d6e0f0 dart::Assert::Fail(char const*, ...) const+0x84
  pc 0x000000010dd7ebb1 fp 0x0000700002d6e150 dart::Function::PrintJSONImpl(dart::JSONStream*, bool) const+0x481
  pc 0x000000010dddb658 fp 0x0000700002d6e190 dart::GetObject(dart::Thread*, dart::JSONStream*)+0x1d8
  pc 0x000000010ddd419c fp 0x0000700002d6e790 dart::Service::InvokeMethod(dart::Isolate*, dart::Array const&, bool)+0x34c
  pc 0x000000010ddd47e3 fp 0x0000700002d6e7c0 dart::Service::HandleIsolateMessage(dart::Isolate*, dart::Array const&)+0x23
  pc 0x000000010dce761c fp 0x0000700002d6ed60 dart::IsolateMessageHandler::HandleMessage(std::_LIBCPP_ABI_NAMESPACE::unique_ptr<dart::Message, std::_LIBCPP_ABI_NAMESPACE::default_delete<dart::Message>>)+0x27c
  pc 0x000000010dcf5d00 fp 0x0000700002d6edf0 dart::MessageHandler::HandleMessages(dart::MonitorLocker*, bool, bool)+0x140
  pc 0x000000010dcf5ece fp 0x0000700002d6ee30 dart::MessageHandler::HandleNextMessage()+0x4e
  pc 0x000000010dee4785 fp 0x0000700002d6eec0 Dart_HandleMessage+0x125
  pc 0x000000010da266ba fp 0x0000700002d6ef10 tonic::DartMessageHandler::OnHandleMessage(tonic::DartState*)+0xca
  pc 0x000000010da26b44 fp 0x0000700002d6ef40 std::_LIBCPP_ABI_NAMESPACE::__function::__func<tonic::DartMessageHandler::OnMessage(tonic::DartState*)::$_0, std::_LIBCPP_ABI_NAMESPACE::allocator<tonic::DartMessageHandler::OnMessage(tonic::DartState*)::$_0>, void ()>::operator()()+0x44
  pc 0x000000010dc3f669 fp 0x0000700002d6ef60 std::_LIBCPP_ABI_NAMESPACE::__function::__func<flutter::DartIsolate::SetMessageHandlingTaskRunner(fml::RefPtr<fml::TaskRunner> const&)::$_3::operator()(std::_LIBCPP_ABI_NAMESPACE::function<void ()>) const::'lambda'(), std::_LIBCPP_ABI_NAMESPACE::allocator<flutter::DartIsolate::SetMessageHandlingTaskRunner(fml::RefPtr<fml::TaskRunner> const&)::$_3::operator()(std::_LIBCPP_ABI_NAMESPACE::function<void ()>) const::'lambda'()>, void ()>::operator()()+0x39
  pc 0x000000010d3619ae fp 0x0000700002d6f010 fml::MessageLoopImpl::FlushTasks(fml::FlushType)+0x10e
  pc 0x000000010d369f5c fp 0x0000700002d6f040 fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*)+0x2c
  pc 0x00007ff811028f69 fp 0x0000700002d6f050 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__+0x14
  pc 0x00007ff811028a58 fp 0x0000700002d70100 __CFRunLoopDoTimer+0x39b
  pc 0x00007ff8110285c8 fp 0x0000700002d70150 __CFRunLoopDoTimers+0x133
  pc 0x00007ff81100ecd6 fp 0x0000700002d70e80 __CFRunLoopRun+0x7da
  pc 0x00007ff81100de3c fp 0x0000700002d70f20 CFRunLoopRunSpecific+0x232
  pc 0x000000010d36a1cd fp 0x0000700002d70f60 fml::MessageLoopDarwin::Run()+0x8d
  pc 0x000000010d3617c5 fp 0x0000700002d70f80 fml::MessageLoopImpl::DoRun()+0x25
  pc 0x000000010d3685d0 fp 0x0000700002d70fb0 void* std::_LIBCPP_ABI_NAMESPACE::__thread_proxy[abi:v15000]<std::_LIBCPP_ABI_NAMESPACE::tuple<std::_LIBCPP_ABI_NAMESPACE::unique_ptr<std::_LIBCPP_ABI_NAMESPACE::__thread_struct, std::_LIBCPP_ABI_NAMESPACE::default_delete<std::_LIBCPP_ABI_NAMESPACE::__thread_struct>>, fml::Thread::Thread(std::_LIBCPP_ABI_NAMESPACE::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0>>(void*)+0xb0
  pc 0x00007ff810f494e1 fp 0x0000700002d70fd0 _pthread_start+0x7d
  pc 0x00007ff810f44f6b fp 0x0000700002d70ff0 thread_start+0xf
-- End of DumpStackTrace
Lost connection to device.

@bkonyi

@devoncarew devoncarew added the area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. label Nov 18, 2022
@bkonyi bkonyi self-assigned this Nov 21, 2022
@a-siva a-siva added the P2 A bug or feature request we're likely to work on label Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. P2 A bug or feature request we're likely to work on
Projects
None yet
Development

No branches or pull requests

4 participants