OBS crashing before startup on MacBook Pro

Mellowax

New Member
Hi guys,

I have a weird error.
I bought a new MacBook Pro to do my DJing to have my old MacBook Pro (Late 2013) just work as a streaming Machine with OBS.


Bildschirmfoto 2020-10-22 um 13.31.48.png



So I reset the whole MacBook to have a clean system but as I start OBS it instantly crashes. I have already tried several older versions - no chance.
The weird thing is, that before I reset the system it worked without these problems.
Here you see the MacOS error message, as there is no OBS log generated at all:


Process: obs [1530]
Path: /Volumes/*/OBS.app/Contents/MacOS/obs
Identifier: com.obsproject.obs-studio
Version: 26.0.2 (26.0.2)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: obs [1530]
User ID: 501

Date/Time: 2020-10-22 13:27:55.887 +0200
OS Version: Mac OS X 10.15.7 (19H2)
Report Version: 12
Anonymous UUID: E9EE6425-DF9D-4E40-B7B7-0AFEB42C510E

Sleep/Wake UUID: 0CDF3403-0401-41CD-A992-D3099D2AC641

Time Awake Since Boot: 2200 seconds
Time Since Wake: 590 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [1530]

VM Regions Near 0:
-->
Kernel Alloc Once 000000000625a000-000000000625c000 [ 8K] rw-/rwx SM=PRV

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 advanced-scene-switcher.so 0x0000000027338d82 SwitcherData::saveGeneralSettings(obs_data*) + 818
1 advanced-scene-switcher.so 0x0000000027300791 SaveSceneSwitcher(obs_data*, bool, void*) + 257
2 com.obsproject.obs-studio 0x00000001062846ed OBSStudioAPI::on_save(obs_data*) + 61
3 com.obsproject.obs-studio 0x0000000106293be6 OBSBasic::Save(char const*) + 1318
4 com.obsproject.obs-studio 0x00000001062a034b OBSBasic::SaveProjectDeferred() + 203
5 com.obsproject.obs-studio 0x0000000106353b09 OBSBasic::RefreshSceneCollections() + 569
6 com.obsproject.obs-studio 0x000000010629a1fd OBSBasic::OBSInit() + 2221
7 com.obsproject.obs-studio 0x00000001062767c3 OBSApp::OBSInit() + 499
8 com.obsproject.obs-studio 0x000000010627a5c7 main + 5287
9 libdyld.dylib 0x00007fff6adaecc9 start + 1

Thread 1:
0 libsystem_pthread.dylib 0x00007fff6afaeb68 start_wqthread + 0

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

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

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

Thread 5:
0 libsystem_kernel.dylib 0x00007fff6aef2882 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff6afb3425 _pthread_cond_wait + 698
2 libobs.0.dylib 0x0000000109042c60 os_event_timedwait + 176
3 libobs.0.dylib 0x000000010907aece obs_hotkey_thread + 174
4 libsystem_pthread.dylib 0x00007fff6afb3109 _pthread_start + 148
5 libsystem_pthread.dylib 0x00007fff6afaeb8b thread_start + 15

Thread 6:: audio-io: audio thread
0 libsystem_kernel.dylib 0x00007fff6aef2756 __semwait_signal + 10
1 libsystem_c.dylib 0x00007fff6ae75eea nanosleep + 196
2 libsystem_c.dylib 0x00007fff6ae75de4 usleep + 53
3 libobs.0.dylib 0x000000010902ee02 audio_thread + 418
4 libsystem_pthread.dylib 0x00007fff6afb3109 _pthread_start + 148
5 libsystem_pthread.dylib 0x00007fff6afaeb8b thread_start + 15

Thread 7:: video-io: video thread
0 libsystem_kernel.dylib 0x00007fff6aeefe36 semaphore_wait_trap + 10
1 libobs.0.dylib 0x0000000109042e00 os_sem_wait + 16
2 libobs.0.dylib 0x000000010902d54b video_thread + 75
3 libsystem_pthread.dylib 0x00007fff6afb3109 _pthread_start + 148
4 libsystem_pthread.dylib 0x00007fff6afaeb8b thread_start + 15

Thread 8:: libobs: graphics thread
0 libsystem_kernel.dylib 0x00007fff6aef2756 __semwait_signal + 10
1 libsystem_c.dylib 0x00007fff6ae75eea nanosleep + 196
2 libobs.0.dylib 0x00000001090430dd os_sleepto_ns + 93
3 libobs.0.dylib 0x0000000109094777 obs_graphics_thread_loop + 4295
4 libobs.0.dylib 0x0000000109041efa obs_graphics_thread_loop_autorelease + 26
5 libobs.0.dylib 0x0000000109094e48 obs_graphics_thread + 248
6 libobs.0.dylib 0x0000000109041eca obs_graphics_thread_autorelease + 26
7 libsystem_pthread.dylib 0x00007fff6afb3109 _pthread_start + 148
8 libsystem_pthread.dylib 0x00007fff6afaeb8b thread_start + 15

Thread 9:
0 libsystem_kernel.dylib 0x00007fff6aeefe36 semaphore_wait_trap + 10
1 libobs.0.dylib 0x0000000109042e00 os_sem_wait + 16
2 libobs-scripting.dylib 0x000000001d631c09 defer_thread + 25
3 libsystem_pthread.dylib 0x00007fff6afb3109 _pthread_start + 148
4 libsystem_pthread.dylib 0x00007fff6afaeb8b thread_start + 15

Thread 10:
0 libsystem_kernel.dylib 0x00007fff6aef80fe __select + 10
1 libcurl.4.dylib 0x000000010893da4f Curl_select + 97
2 libcurl.4.dylib 0x000000010893e0d1 Curl_poll + 517
3 libcurl.4.dylib 0x0000000108935b28 Curl_multi_wait + 715
4 libcurl.4.dylib 0x0000000108935ca9 curl_multi_poll + 26
5 libcurl.4.dylib 0x0000000108916e23 curl_easy_perform + 270
6 rtmp-services.so 0x0000000027184ac4 do_http_request + 324
7 rtmp-services.so 0x00000000271841d9 update_thread + 1305
8 libsystem_pthread.dylib 0x00007fff6afb3109 _pthread_start + 148
9 libsystem_pthread.dylib 0x00007fff6afaeb8b thread_start + 15

Thread 11:: AMCP Logging Spool
0 libsystem_kernel.dylib 0x00007fff6aeefe36 semaphore_wait_trap + 10
1 com.apple.audio.caulk 0x00007fff64982b16 caulk::mach::semaphore::wait() + 16
2 com.apple.audio.caulk 0x00007fff649829b2 caulk::semaphore::timed_wait(double) + 106
3 com.apple.audio.caulk 0x00007fff649827c4 caulk::concurrent::details::worker_thread::run() + 30
4 com.apple.audio.caulk 0x00007fff649821e4 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*) + 45
5 libsystem_pthread.dylib 0x00007fff6afb3109 _pthread_start + 148
6 libsystem_pthread.dylib 0x00007fff6afaeb8b thread_start + 15

Thread 12:
0 libsystem_kernel.dylib 0x00007fff6aeefe36 semaphore_wait_trap + 10
1 com.apple.audio.caulk 0x00007fff64982b16 caulk::mach::semaphore::wait() + 16
2 com.apple.audio.caulk 0x00007fff649829b2 caulk::semaphore::timed_wait(double) + 106
3 com.apple.audio.caulk 0x00007fff649827c4 caulk::concurrent::details::worker_thread::run() + 30
4 com.apple.audio.caulk 0x00007fff649821e4 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*) + 45
5 libsystem_pthread.dylib 0x00007fff6afb3109 _pthread_start + 148
6 libsystem_pthread.dylib 0x00007fff6afaeb8b thread_start + 15

Thread 13:
0 libsystem_kernel.dylib 0x00007fff6aeefe4e semaphore_timedwait_trap + 10
1 libdispatch.dylib 0x00007fff6ad55b6b _dispatch_sema4_timedwait + 76
2 libdispatch.dylib 0x00007fff6ad55f97 _dispatch_semaphore_wait_slow + 58
3 libdispatch.dylib 0x00007fff6ad63795 _dispatch_worker_thread + 284
4 libsystem_pthread.dylib 0x00007fff6afb3109 _pthread_start + 148
5 libsystem_pthread.dylib 0x00007fff6afaeb8b thread_start + 15

Thread 14:: com.apple.audio.IOThread.client
0 libsystem_kernel.dylib 0x00007fff6aeefdfa mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff6aef0170 mach_msg + 60
2 com.apple.audio.CoreAudio 0x00007fff304b56c5 invocation function for block in HALC_ProxyIOContext::HALC_ProxyIOContext(unsigned int, unsigned int) + 546
3 com.apple.audio.CoreAudio 0x00007fff305e9c22 HALB_IOThread::Entry(void*) + 72
4 libsystem_pthread.dylib 0x00007fff6afb3109 _pthread_start + 148
5 libsystem_pthread.dylib 0x00007fff6afaeb8b thread_start + 15

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000000000000 rcx: 0x0000000000000000 rdx: 0x0000000000000008
rdi: 0x00007ffee99b4378 rsi: 0x000000002735bcc6 rbp: 0x00007ffee99b44a0 rsp: 0x00007ffee99b4430
r8: 0x0000000000000068 r9: 0x0000000000000002 r10: 0x0000000000000000 r11: 0xffffe001170b49b0
r12: 0x0000000000000003 r13: 0x000060000280cb60 r14: 0x0000600002875d20 r15: 0x00000000273649c8
rip: 0x0000000027338d82 rfl: 0x0000000000010202 cr2: 0x0000000000000000

Logical CPU: 6
Error Code: 0x00000004 (no mapping for user data read)
Trap Number: 14


VM Region Summary:
ReadOnly portion of Libraries: Total=944.2M resident=0K(0%) swapped_out_or_unallocated=944.2M(100%)
Writable regions: Total=640.3M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=640.3M(100%)

VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Accelerate framework 256K 2
Activity Tracing 256K 1
CG image 260K 1
CoreServices 32K 1
Foundation 4K 1
Kernel Alloc Once 8K 1
MALLOC 224.2M 80
MALLOC guard page 32K 7
MALLOC_LARGE (reserved) 320K 2 reserved VM address space (unallocated)
MALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated)
OpenGL GLSL 256K 3
PROTECTED_MEMORY 4K 1
STACK GUARD 56.1M 15
Stack 15.1M 15
VM_ALLOCATE 3136K 30
__DATA 74.6M 506
__DATA_CONST 485K 15
__FONT_DATA 4K 1
__GLSLBUILTINS 5176K 1
__LINKEDIT 406.9M 95
__OBJC_RO 32.3M 1
__OBJC_RW 1908K 2
__TEXT 537.5M 474
__UNICODE 564K 1
mapped file 357.3M 23
shared memory 636K 14
=========== ======= =======
TOTAL 2.1G 1294
TOTAL, minus reserved VM space 1.7G 1294


(I have shortened this message as it was too long.)
Is this error known or is there a workaround maybe?


Kind regards
 

Mellowax

New Member
Update:

I also face this crash on my new MacBook Pro.

Is this a known bug? Can you give me any hint what might be the problem from the Crashlog?
 

Warmuptill

Active Member
This crash is caused the advanced scene switcher plugin it seems. This is not the fault of OBS.
Please either remove the plugin or update to a newer version of the plugin to see if that fixes it.

If there are certain steps to reliably reproduce the problem please let me know.
 

Outra

New Member
Sorry, you probably have your issue already solved by now. But I used to have a similar bug and I think it may be of help for other people to share the way I managed to solve it. It was quite simple, though.

There was a corrupted file among the ones OBS was trying to read at startup, and then it would crash even before generating a log. Instead of trying a solution via OBS troubleshooting, I tried via Mac troubleshooting, and it worked. How? Hold the Shift key while clicking OBS icon. That's all. I think (just *think*, I may be wrong) this method either resets or restores the corrupted and/or missing files to the original configuration without ereasing the user's customisation (I haven't lost any scene I had settled, even though I deleted the folder in ~/Library/Application Support/obs-studio/scene).

After doing this I checked the OBS folders in Library and in Content and everything is magically there again. I coudn't figure out what this method does, actually. But it worked in my case. I can't guarantee that you won't lose your settings doing this. That would be better to have a backup done before trying this.
 
Top