Building macOS application...
../../third_party/dart/runtime/vm/virtual_memory_posix.cc: 70: error: mmap failed: 22 (Invalid argument)
version=3.2.3 (stable) (Tue Dec 5 17:58:33 2023 +0000) on "macos_x64"
pid=78608, thread=259, isolate_group=vm-isolate(0x7fb2a884a600), isolate=vm-isolate(0x7fb2a8852800)
os=macos, arch=x64, comp=no, sim=no
isolate_instructions=10f72c9c0, vm_instructions=10f72c9c0
fp=7ff7ba8d5c20, sp=7ff7ba8d5bd0, pc=10f88eae5
pc 0x000000010f88eae5 fp 0x00007ff7ba8d5c20 dart::Profiler::DumpStackTrace(void*)+0x85
pc 0x000000010f72cc34 fp 0x00007ff7ba8d5d00 dart::Assert::Fail(char const*, ...) const+0x84
pc 0x000000010f92393f fp 0x00007ff7ba8d6150 dart::GenericMapAligned(void*, int, long, long, long, int)+0x14f
pc 0x000000010f92379c fp 0x00007ff7ba8d6180 dart::VirtualMemory::AllocateAligned(long, long, bool, bool, char const*)+0x6c
pc 0x000000010f943e8b fp 0x00007ff7ba8d61d0 dart::Page::Allocate(long, unsigned long)+0x5b
pc 0x000000010f944b27 fp 0x00007ff7ba8d6220 dart::PageSpace::AllocatePage(bool, bool)+0xa7
pc 0x000000010f9451ec fp 0x00007ff7ba8d6290 dart::PageSpace::TryAllocateInFreshPage(long, dart::FreeList*, bool, dart::PageSpace::GrowthPolicy, bool)+0xfc
pc 0x000000010f93a87e fp 0x00007ff7ba8d6320 dart::Heap::AllocateOld(dart::Thread*, long, bool)+0x1ae
pc 0x000000010f7fdce8 fp 0x00007ff7ba8d6380 dart::Object::Allocate(long, long, dart::Heap::Space, bool, unsigned long, unsigned long)+0x58
pc 0x000000010f83327f fp 0x00007ff7ba8d63f0 dart::Code::FinalizeCode(dart::FlowGraphCompiler*, dart::compiler::Assembler*, dart::Code::PoolAttachment, bool, dart::CodeStatistics*)+0xcf
pc 0x000000010f8336ba fp 0x00007ff7ba8d6420 dart::Code::FinalizeCodeAndNotify(char const*, dart::FlowGraphCompiler*, dart::compiler::Assembler*, dart::Code::PoolAttachment, bool, dart::CodeStatistics*)+0x2a
pc 0x000000010f90224f fp 0x00007ff7ba8d6630 dart::StubCode::Generate(char const*, dart::compiler::ObjectPoolBuilder*, void (dart::compiler::StubCodeCompiler::*)())+0x21f
pc 0x000000010f901f95 fp 0x00007ff7ba8d66e0 dart::StubCode::Init()+0xc5
pc 0x000000010f783b1c fp 0x00007ff7ba8d6d20 dart::Dart::DartInit(Dart_InitializeParams const*)+0x51c
pc 0x000000010f783da9 fp 0x00007ff7ba8d6d40 dart::Dart::Init(Dart_InitializeParams const*)+0x29
pc 0x000000010f6ef92c fp 0x00007ff7ba8d6ea0 DartVMInitializer::Initialize(Dart_InitializeParams*, bool, bool)+0x2c
pc 0x000000010f6ee761 fp 0x00007ff7ba8d70c0 flutter::DartVM::DartVM(std::_LIBCPP_ABI_NAMESPACE::shared_ptr<flutter::DartVMData const> const&, std::_LIBCPP_ABI_NAMESPACE::shared_ptr<flutter::IsolateNameServer>)+0xe71
pc 0x000000010f6ed7e7 fp 0x00007ff7ba8d7240 flutter::DartVM::Create(flutter::Settings const&, fml::RefPtr<flutter::DartSnapshot const>, fml::RefPtr<flutter::DartSnapshot const>, std::_LIBCPP_ABI_NAMESPACE::shared_ptr<flutter::IsolateNameServer>)+0xe7
pc 0x000000010f6f03fa fp 0x00007ff7ba8d73e0 flutter::DartVMRef::Create(flutter::Settings const&, fml::RefPtr<flutter::DartSnapshot const>, fml::RefPtr<flutter::DartSnapshot const>)+0x1ea
pc 0x000000010f62c7f8 fp 0x00007ff7ba8d7450 flutter::Shell::InferVmInitDataFromSettings(flutter::Settings&)+0x68
pc 0x000000010f62ca50 fp 0x00007ff7ba8d7b90 flutter::Shell::Create(flutter::PlatformData const&, flutter::TaskRunners const&, flutter::Settings, std::_LIBCPP_ABI_NAMESPACE::function<std::_LIBCPP_ABI_NAMESPACE::unique_ptr<flutter::PlatformView, std::_LIBCPP_ABI_NAMESPACE::default_delete<flutter::PlatformView>> (flutter::Shell&)> const&, std::_LIBCPP_ABI_NAMESPACE::function<std::_LIBCPP_ABI_NAMESPACE::unique_ptr<flutter::Rasterizer, std::_LIBCPP_ABI_NAMESPACE::default_delete<flutter::Rasterizer>> (flutter::Shell&)> const&, bool)+0xe0
pc 0x000000010f717c2b fp 0x00007ff7ba8d8320 flutter::EmbedderEngine::LaunchShell()+0x8b
pc 0x000000010f70a4b5 fp 0x00007ff7ba8d8340 FlutterEngineRunInitialized+0x65
pc 0x000000010ee06494 fp 0x00007ff7ba8d86a0 -[FlutterEngine runWithEntrypoint:]+0x984
pc 0x000000010ee28b60 fp 0x00007ff7ba8d86c0 -[FlutterViewController launchEngine]+0x30
pc 0x000000010ee27ef5 fp 0x00007ff7ba8d86f0 -[FlutterViewController viewWillAppear]+0x65
pc 0x00007ff8222c307f fp 0x00007ff7ba8d8710 -[NSViewController _sendViewWillAppear]+0x28
pc 0x00007ff8222c2f40 fp 0x00007ff7ba8d8740 -[NSViewController _windowWillOrderOnScreen]+0x62
pc 0x00007ff822a019bc fp 0x00007ff7ba8d8840 -[NSView _windowWillOrderOnScreen]+0x43
pc 0x00007ff822a01a52 fp 0x00007ff7ba8d8940 -[NSView _windowWillOrderOnScreen]+0xd9
pc 0x00007ff8222c2dd1 fp 0x00007ff7ba8d8970 -[NSWindow _doWindowWillBeVisibleAsSheet:]+0x3b
pc 0x00007ff8222c1455 fp 0x00007ff7ba8d8a90 -[NSWindow _reallyDoOrderWindowAboveOrBelow:relativeTo:findKey:forCounter:force:isModal:]+0x4d8
pc 0x00007ff8222c0c24 fp 0x00007ff7ba8d8af0 -[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:]+0x87
pc 0x00007ff8222bfc3c fp 0x00007ff7ba8d8bf0 -[NSWindow _doOrderWindow:relativeTo:findKey:forCounter:force:isModal:]+0x121
pc 0x00007ff8222bfab9 fp 0x00007ff7ba8d8c40 -[NSWindow orderWindow:relativeTo:]+0x98
pc 0x000000010b57342e fp 0x00007ff7ba8d8e00 $s21bitsdojo_window_macos14BitsdojoWindowC5order_10relativeToySo20NSWindowOrderingModeV_SitF+0x59e
pc 0x000000010b57362f fp 0x00007ff7ba8d8e30 $s21bitsdojo_window_macos14BitsdojoWindowC5order_10relativeToySo20NSWindowOrderingModeV_SitFTo+0x2f
pc 0x00007ff822167eb9 fp 0x00007ff7ba8d9180 -[NSIBObjectData nibInstantiateWithOwner:options:topLevelObjects:]+0x7e9
pc 0x00007ff82215c4dd fp 0x00007ff7ba8d91d0 loadNib+0x1a4
pc 0x00007ff82215b9f0 fp 0x00007ff7ba8d9350 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:options:withZone:ownerBundle:]+0x314
pc 0x00007ff82215b5e7 fp 0x00007ff7ba8d9470 -[NSBundle(NSNibLoading) loadNibNamed:owner:topLevelObjects:]+0xc9
pc 0x00007ff82215b3c5 fp 0x00007ff7ba8d9590 +[NSBundle(NSNibLoading) loadNibNamed:owner:]+0x18a
pc 0x00007ff82214db5c fp 0x00007ff7ba8d95e0 NSApplicationMain+0x236
pc 0x0000000105629019 fp 0x00007ff7ba8d95f0 main+0x9
pc 0x0000000116cd252e fp 0x00007ff7ba8d9700 Unknown symbol
-- End of DumpStackTrace
=== Crash occurred when compiling unknown function in unoptimized JIT mode in unknown pass
=== Flow Graph not available
Is there an existing issue for this?
Steps to reproduce
flutter run -d macos --debug
Expected results
The application compiles fine in release and debug mode on all platforms except macOS in debug mode.
Actual results
The compilation crashes with "Crash occurred when compiling unknown function in unoptimized JIT mode in unknown pass" in ../../third_party/dart/runtime/vm/virtual_memory_posix.cc: 70: error: mmap failed: 22 (Invalid argument). Hopefully this rings a bell to someone.
Code sample
Code sample
[Paste your code here]Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
Flutter Doctor output
Doctor output