[Closed] [Vulkan] Crash when loading map on startup

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.

[Vulkan] Crash when loading map on startup

Postby Rip and Tear » Sat Apr 30, 2022 9:00 am

Version: GZDoom 4.7.1
Renderer: Vulkan
OS: macOS 12.3.1
Processor: Apple M1 Pro

When launching directly into a map (using the +map arg or loading a PWAD with a TITLEMAP), the game crashes roughly 50% of the time. It doesn't crash when starting from a title screen, or otherwise switching maps. I've been able to reproduce the crash using the native ARM version and the x64 version via Rosetta.

Here's an except from the system crash reporter:
Code: Select allExpand view
Crashed Thread:        6  Dispatch queue: MoltenVKQueue-0-0-1.0-Dispatch

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000001, 0x00000001b8f714a8
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    Namespace SIGNAL, Code 5 Trace/BPT trap: 5
Terminating Process:   exc handler [8728]

Thread 0::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib                  0x1b909c290 __psynch_cvwait + 8
1   libsystem_pthread.dylib                 0x1b90d683c _pthread_cond_wait + 1236
2   libc++.1.dylib                          0x1b9025230 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3   libMoltenVK.dylib                       0x10d5d803c MVKSemaphoreImpl::wait(unsigned long long, bool) + 172
4   libMoltenVK.dylib                       0x10d5daafc mvkWaitForFences(MVKDevice*, unsigned int, VkFence_T* const*, unsigned int, unsigned long long) + 208
5   libMoltenVK.dylib                       0x10d53d090 vkWaitForFences + 268
6   gzdoom                                  0x1006e02c8 VulkanFrameBuffer::WaitForCommands(bool, bool) + 284
7   gzdoom                                  0x1006e7314 VkRenderPassManager::UpdateDynamicSet() + 64
8   gzdoom                                  0x1006e10e4 VulkanFrameBuffer::BeginFrame() + 100
9   gzdoom                                  0x10073f6a0 D_Display() + 744
10  gzdoom                                  0x100740e40 D_DoomLoop() + 452
11  gzdoom                                  0x1007450e4 D_DoomMain_Internal() + 10396
12  gzdoom                                  0x1007426f0 GameMain() + 80
13  gzdoom                                  0x10059e114 -[ApplicationController applicationDidFinishLaunching:] + 568
14  CoreFoundation                          0x1b9196ddc __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 28
15  CoreFoundation                          0x1b923b578 ___CFXRegistrationPost_block_invoke + 52
16  CoreFoundation                          0x1b923b4e4 _CFXRegistrationPost + 456
17  CoreFoundation                          0x1b9165a74 _CFXNotificationPost + 732
18  Foundation                              0x1ba022e48 -[NSNotificationCenter postNotificationName:object:userInfo:] + 96
19  AppKit                                  0x1bbd0889c -[NSApplication _postDidFinishNotification] + 340
20  AppKit                                  0x1bbd085b4 -[NSApplication _sendFinishLaunchingNotification] + 236
21  AppKit                                  0x1bbd05fd8 -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 588
22  AppKit                                  0x1bbd05bb8 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 780
23  Foundation                              0x1ba04f9e8 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 348
24  Foundation                              0x1ba04f820 _NSAppleEventManagerGenericHandler + 96
25  AE                                      0x1bf92d8f4 0x1bf922000 + 47348
26  AE                                      0x1bf92d24c 0x1bf922000 + 45644
27  AE                                      0x1bf9263f8 aeProcessAppleEvent + 488
28  HIToolbox                               0x1c1dd23fc AEProcessAppleEvent + 68
29  AppKit                                  0x1bbcfff04 _DPSNextEvent + 1844
30  AppKit                                  0x1bbcfe424 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1328
31  AppKit                                  0x1bbcf05f0 -[NSApplication run] + 596
32  gzdoom                                  0x10059eb00 main + 1540
33  dyld                                    0x102315088 start + 516

Thread 1:
0   libsystem_kernel.dylib                  0x1b909c290 __psynch_cvwait + 8
1   libsystem_pthread.dylib                 0x1b90d683c _pthread_cond_wait + 1236
2   libc++.1.dylib                          0x1b9025230 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3   gzdoom                                  0x1006a5518 ctpl::thread_pool::set_thread(int)::'lambda'()::operator()() const + 268
4   gzdoom                                  0x1006a538c void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, ctpl::thread_pool::set_thread(int)::'lambda'()> >(void*) + 44
5   libsystem_pthread.dylib                 0x1b90d626c _pthread_start + 148
6   libsystem_pthread.dylib                 0x1b90d108c thread_start + 8

Thread 2:
0   libsystem_pthread.dylib                 0x1b90d1078 start_wqthread + 0

Thread 3:
0   libsystem_pthread.dylib                 0x1b90d1078 start_wqthread + 0

Thread 4:
0   libsystem_pthread.dylib                 0x1b90d1078 start_wqthread + 0

Thread 5:
0   libsystem_pthread.dylib                 0x1b90d1078 start_wqthread + 0

Thread 6 Crashed::  Dispatch queue: MoltenVKQueue-0-0-1.0-Dispatch
0   libobjc.A.dylib                         0x1b8f714a8 objc_opt_isKindOfClass + 48
1   AGXMetalG13X                            0x1ffb49a00 0x1ff87d000 + 2935296
2   AGXMetalG13X                            0x1ffa65d3c 0x1ff87d000 + 2002236
3   AGXMetalG13X                            0x1ffa66310 0x1ff87d000 + 2003728
4   AGXMetalG13X                            0x1ffa5f0d4 0x1ff87d000 + 1974484
5   libMoltenVK.dylib                       0x10d5c72d8 MVKCmdCopyBuffer<1ul>::encode(MVKCommandEncoder*) + 292
6   libMoltenVK.dylib                       0x10d57b7a0 MVKCommandEncoder::encode(id<MTLCommandBuffer>, MVKCommandEncodingContext*) + 144
7   libMoltenVK.dylib                       0x10d57b63c MVKCommandBuffer::submit(MVKQueueCommandBufferSubmission*, MVKCommandEncodingContext*) + 244
8   libMoltenVK.dylib                       0x10d5badd8 MVKQueueFullCommandBufferSubmission<16ul>::submitCommandBuffers() + 60
9   libMoltenVK.dylib                       0x10d5b924c MVKQueueCommandBufferSubmission::execute() + 200
10  libMoltenVK.dylib                       0x10d5b7ef0 invocation function for block in MVKQueue::submit(MVKQueueSubmission*) + 40
11  libdispatch.dylib                       0x1b8f10604 _dispatch_call_block_and_release + 32
12  libdispatch.dylib                       0x1b8f121c8 _dispatch_client_callout + 20
13  libdispatch.dylib                       0x1b8f198a8 _dispatch_lane_serial_drain + 668
14  libdispatch.dylib                       0x1b8f1a404 _dispatch_lane_invoke + 392
15  libdispatch.dylib                       0x1b8f24c98 _dispatch_workloop_worker_thread + 648
16  libsystem_pthread.dylib                 0x1b90d2360 _pthread_wqthread + 288
17  libsystem_pthread.dylib                 0x1b90d1080 start_wqthread + 8

Thread 7:: com.apple.NSEventThread
0   libsystem_kernel.dylib                  0x1b90988d0 mach_msg_trap + 8
1   libsystem_kernel.dylib                  0x1b9098d40 mach_msg + 76
2   CoreFoundation                          0x1b91a2c1c __CFRunLoopServiceMachPort + 372
3   CoreFoundation                          0x1b91a10cc __CFRunLoopRun + 1180
4   CoreFoundation                          0x1b91a0490 CFRunLoopRunSpecific + 600
5   AppKit                                  0x1bbe6c6f4 _NSEventThread + 196
6   libsystem_pthread.dylib                 0x1b90d626c _pthread_start + 148
7   libsystem_pthread.dylib                 0x1b90d108c thread_start + 8

Thread 8:: AMCP Logging Spool
0   libsystem_kernel.dylib                  0x1b909890c semaphore_wait_trap + 8
1   caulk                                   0x1c1b2aa2c caulk::mach::semaphore::wait_or_error() + 28
2   caulk                                   0x1c1b0e77c caulk::concurrent::details::worker_thread::run() + 56
3   caulk                                   0x1c1b0e39c void* caulk::thread_proxy<std::__1::tuple<caulk::thread::attributes, void (caulk::concurrent::details::worker_thread::*)(), std::__1::tuple<caulk::concurrent::details::worker_thread*> > >(void*) + 96
4   libsystem_pthread.dylib                 0x1b90d626c _pthread_start + 148
5   libsystem_pthread.dylib                 0x1b90d108c thread_start + 8

Thread 9:: com.apple.audio.IOThread.client
0   libsystem_kernel.dylib                  0x1b90988d0 mach_msg_trap + 8
1   libsystem_kernel.dylib                  0x1b9098d40 mach_msg + 76
2   CoreAudio                               0x1bade2a40 HALB_MachPort::SendSimpleMessageWithSimpleReply(unsigned int, unsigned int, int, int&, bool, unsigned int) + 104
3   CoreAudio                               0x1bac6fcd0 HALC_ProxyIOContext::IOWorkLoop() + 3396
4   CoreAudio                               0x1bac6e990 invocation function for block in HALC_ProxyIOContext::HALC_ProxyIOContext(unsigned int, unsigned int) + 100
5   CoreAudio                               0x1bae3ae60 HALB_IOThread::Entry(void*) + 88
6   libsystem_pthread.dylib                 0x1b90d626c _pthread_start + 148
7   libsystem_pthread.dylib                 0x1b90d108c thread_start + 8

Thread 10:
0   libsystem_kernel.dylib                  0x1b909890c semaphore_wait_trap + 8
1   libdispatch.dylib                       0x1b8f1274c _dispatch_sema4_wait + 28
2   libdispatch.dylib                       0x1b8f12df4 _dispatch_semaphore_wait_slow + 132
3   gzdoom                                  0x100adbc50 EventThread(ALCcontext*) + 776
4   gzdoom                                  0x100adc134 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, int (*)(ALCcontext*), ALCcontext*> >(void*) + 44
5   libsystem_pthread.dylib                 0x1b90d626c _pthread_start + 148
6   libsystem_pthread.dylib                 0x1b90d108c thread_start + 8

Thread 11:
0   libsystem_kernel.dylib                  0x1b909c290 __psynch_cvwait + 8
1   libsystem_pthread.dylib                 0x1b90d683c _pthread_cond_wait + 1236
2   libc++.1.dylib                          0x1b90252cc std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 100
3   gzdoom                                  0x10093590c OpenALSoundRenderer::BackgroundProc() + 284
4   gzdoom                                  0x10093a584 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, std::__1::__mem_fn<void (OpenALSoundRenderer::*)()>, OpenALSoundRenderer*> >(void*) + 64
5   libsystem_pthread.dylib                 0x1b90d626c _pthread_start + 148
6   libsystem_pthread.dylib                 0x1b90d108c thread_start + 8


Thread 6 crashed with ARM Thread State (64-bit):
    x0: 0x000000020345ac00   x1: 0x0000000211a9f990   x2: 0x0000000211a9f990   x3: 0x0000000000000000
    x4: 0x000000010acf0080   x5: 0x0000000000000020   x6: 0x0000000000000000   x7: 0x0000000000000000
    x8: 0x616d6f7475417369   x9: 0x56900ed438fd003d  x10: 0x0000000203196b2f  x11: 0x0000000000000018
   x12: 0x000000000000000c  x13: 0x0000000211d59c10  x14: 0x00000001b8dac000  x15: 0x0000000273cd0000
   x16: 0x006d6f7475417368  x17: 0x00006f7475417368  x18: 0x0000000000000000  x19: 0x0000000000000001
   x20: 0x000000011c62a158  x21: 0x000000020345ac00  x22: 0x0000000000000000  x23: 0x000000020345ac00
   x24: 0x000000016fea09a8  x25: 0x000000020f9ae7f4  x26: 0x0000000000000001  x27: 0x0000000000000010
   x28: 0x0000000000000000   fp: 0x000000016fea07f0   lr: 0x00000001ffb49a00
    sp: 0x000000016fea0790   pc: 0x00000001b8f714a8 cpsr: 0x20001000
   far: 0x000000010acec000  esr: 0xf200c472 (Breakpoint) pointer authentication trap DA

Binary Images:
       0x1b9097000 -        0x1b90cefff libsystem_kernel.dylib (*) <1d7b3b8e-75a1-34ea-aa52-9f7c23155c55> /usr/lib/system/libsystem_kernel.dylib
       0x1b90cf000 -        0x1b90dbfff libsystem_pthread.dylib (*) <cee8bc77-6923-34d9-89a3-6f8f7279605e> /usr/lib/system/libsystem_pthread.dylib
       0x1b9018000 -        0x1b907efff libc++.1.dylib (*) <06bc1ec0-9992-398e-a85b-2973eb1fdba2> /usr/lib/libc++.1.dylib
       0x10d524000 -        0x10d97bfff libMoltenVK.dylib (*) <4ab25cb8-22c9-3410-90e3-1851b0f32f5f> /Applications/GZDoom.app/Contents/MacOS/libMoltenVK.dylib
       0x1002a0000 -        0x101197fff org.drdteam.gzdoom (g4.7.1) <b683ad15-e1d2-3413-a237-e3906cc29e45> /Applications/GZDoom.app/Contents/MacOS/gzdoom
       0x1b911e000 -        0x1b9663fff com.apple.CoreFoundation (6.9) <8e1809ff-f5b1-3d9e-be15-f2e7b1d8ce51> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
       0x1ba019000 -        0x1ba409fff com.apple.Foundation (6.9) <886a3487-88a6-30bb-b179-1a92996c67cf> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
       0x1bbcbe000 -        0x1bcb75fff com.apple.AppKit (6.9) <153590c1-624c-38fb-8ffb-ba751bccbd16> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
       0x1bf922000 -        0x1bf992fff com.apple.AE (924) <0a3ab363-b23b-3956-8e4c-7c5f72680481> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
       0x1c1d8d000 -        0x1c20c0fff com.apple.HIToolbox (2.1.1) <4a1d1f30-c79d-3502-b51f-9792adbd8e06> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
       0x102310000 -        0x10236ffff dyld (*) <fbb89662-e6f2-3434-b542-f75185ac5e74> /usr/lib/dyld
       0x1b8f55000 -        0x1b8f92fff libobjc.A.dylib (*) <4b5ab8fb-60e0-3992-ba0e-a073a3fa86a7> /usr/lib/libobjc.A.dylib
       0x1ff87d000 -        0x1ffdbafff com.apple.AGXMetalG13X (190.17.3) <1576073c-9b3d-3d2d-bfb2-dd718dd56a94> /System/Library/Extensions/AGXMetalG13X.bundle/Contents/MacOS/AGXMetalG13X
       0x1b8f0e000 -        0x1b8f54fff libdispatch.dylib (*) <dc048e3b-e023-3d17-afe5-4ff3dc625608> /usr/lib/system/libdispatch.dylib
       0x1c1b0c000 -        0x1c1b32fff com.apple.audio.caulk (1.0) <23d0d7ce-cb87-35f3-9c15-943bd8f6645a> /System/Library/PrivateFrameworks/caulk.framework/Versions/A/caulk
       0x1baaae000 -        0x1bb1d0fff com.apple.audio.CoreAudio (5.0) <51dd4b50-d2b2-31e7-acae-f662748a2d2b> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
User avatar
Rip and Tear
I <3 ZScript
 
Joined: 02 May 2017
Operating System: Mac OS w/ M1 Processor

Re: [Vulkan] Crash when loading map on startup

Postby Rachael » Sat Apr 30, 2022 9:14 am

Does this still happen when using dev builds? I have not had this problem at all when I was developing a custom game for Mac, so I suspect this may already have been fixed.
User avatar
Rachael
^ walking stack of unfinished projects ^
Admin
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle

Re: [Vulkan] Crash when loading map on startup

Postby Rip and Tear » Sun May 01, 2022 8:18 am

Rachael wrote:Does this still happen when using dev builds? I have not had this problem at all when I was developing a custom game for Mac, so I suspect this may already have been fixed.

Looks to have been fixed, I couldn't reproduce
User avatar
Rip and Tear
I <3 ZScript
 
Joined: 02 May 2017
Operating System: Mac OS w/ M1 Processor


Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 2 guests