SheepShaver quits unexpectedly

About SheepShaver, a PPC Mac emulator for Windows, MacOS X, and Linux that can run System 7.5.3 to MacOS 9.0.4.

Moderators: Cat_7, Ronald P. Regensburg, ClockWise

Post Reply
brauer-manin
Space Cadet
Posts: 3
Joined: Tue Jul 20, 2021 4:35 pm

SheepShaver quits unexpectedly

Post by brauer-manin »

Hi,
I am new to sheepshaver and recently downloaded and installed it in order to play a 1997 game (Obsidian) I used to love as a child. Everything appears to run fine and I am able to start playing the game, but invariably after about 3-5 min of playing, sheepshaver quits unexpectedly. The crash report is below; can anybody help me figure out what might be the problem and how to fix it?
Thank you very much!

Code: Select all

Process:               SheepShaver [751]
Path:                  /Users/USER/Downloads/*/SheepShaver.app/Contents/MacOS/SheepShaver
Identifier:            com.emaculation.sheepshaver
Version:               2.5 (2.5)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           SheepShaver [751]
User ID:               501

Date/Time:             2021-07-11 10:27:01.891 -0700
OS Version:            Mac OS X 10.13.6 (17G14033)
Report Version:        12
Anonymous UUID:        AD804911-1792-7BB1-8CA6-BABAF8E1433D


Time Awake Since Boot: 1100 seconds

System Integrity Protection: enabled

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

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
-[MTLRenderPipelineDescriptorInternal validateWithDevice:]:2400: failed assertion `No valid pixelFormats set.'
 

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	0x00007fff5374bb66 __pthread_kill + 10
1   libsystem_pthread.dylib       	0x00007fff53916080 pthread_kill + 333
2   libsystem_c.dylib             	0x00007fff536a71ae abort + 127
3   libsystem_c.dylib             	0x00007fff5366f1ac __assert_rtn + 320
4   com.apple.Metal               	0x00007fff2fe514dd MTLReportFailure + 778
5   com.apple.Metal               	0x00007fff2fe5058d -[MTLRenderPipelineDescriptorInternal validateWithDevice:] + 2027
6   com.apple.Metal               	0x00007fff2fe3e78f -[MTLCompiler newRenderPipelineStateWithDescriptor:options:reflection:error:completionHandler:] + 64
7   com.apple.Metal               	0x00007fff2fe2106d -[_MTLDevice newRenderPipelineStateWithDescriptor:error:] + 65
8   org.libsdl.SDL2               	0x000000000aeb2346 0xaea0000 + 74566
9   org.libsdl.SDL2               	0x000000000aeb1077 0xaea0000 + 69751
10  org.libsdl.SDL2               	0x000000000aeb24c1 0xaea0000 + 74945
11  org.libsdl.SDL2               	0x000000000aeb5809 0xaea0000 + 88073
12  org.libsdl.SDL2               	0x000000000aeb4630 0xaea0000 + 83504
13  org.libsdl.SDL2               	0x000000000af3c9db 0xaea0000 + 641499
14  com.emaculation.sheepshaver   	0x000000000acf9652 VideoVBL() + 466
15  ???                           	0x000000000fcf50ab 0 + 265244843

Thread 1:
0   libsystem_kernel.dylib        	0x00007fff5374c28a __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff53913009 _pthread_wqthread + 1035
2   libsystem_pthread.dylib       	0x00007fff53912be9 start_wqthread + 13

Thread 2:: com.apple.NSEventThread
0   libsystem_kernel.dylib        	0x00007fff537421fa mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fff53741714 mach_msg + 60
2   com.apple.CoreFoundation      	0x00007fff2b6a2405 __CFRunLoopServiceMachPort + 341
3   com.apple.CoreFoundation      	0x00007fff2b6a1757 __CFRunLoopRun + 1783
4   com.apple.CoreFoundation      	0x00007fff2b6a0dd3 CFRunLoopRunSpecific + 483
5   com.apple.AppKit              	0x00007fff28d75fc4 _NSEventThread + 184
6   libsystem_pthread.dylib       	0x00007fff53913661 _pthread_body + 340
7   libsystem_pthread.dylib       	0x00007fff5391350d _pthread_start + 377
8   libsystem_pthread.dylib       	0x00007fff53912bf9 thread_start + 13

Thread 3:
0   libsystem_kernel.dylib        	0x00007fff537421fa mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fff53741714 mach_msg + 60
2   com.emaculation.sheepshaver   	0x000000000ad19d68 handleExceptions(void*) + 72
3   libsystem_pthread.dylib       	0x00007fff53913661 _pthread_body + 340
4   libsystem_pthread.dylib       	0x00007fff5391350d _pthread_start + 377
5   libsystem_pthread.dylib       	0x00007fff53912bf9 thread_start + 13

Thread 4:
0   libsystem_kernel.dylib        	0x00007fff537421fa mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fff53741714 mach_msg + 60
2   com.apple.CoreFoundation      	0x00007fff2b6a2405 __CFRunLoopServiceMachPort + 341
3   com.apple.CoreFoundation      	0x00007fff2b6a1757 __CFRunLoopRun + 1783
4   com.apple.CoreFoundation      	0x00007fff2b6a0dd3 CFRunLoopRunSpecific + 483
5   com.apple.CoreFoundation      	0x00007fff2b6df8a3 CFRunLoopRun + 99
6   com.emaculation.sheepshaver   	0x000000000accc21e media_poll_func(void*) + 414
7   libsystem_pthread.dylib       	0x00007fff53913661 _pthread_body + 340
8   libsystem_pthread.dylib       	0x00007fff5391350d _pthread_start + 377
9   libsystem_pthread.dylib       	0x00007fff53912bf9 thread_start + 13

Thread 5:: AudioQueue thread
0   libsystem_kernel.dylib        	0x00007fff5374ba16 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fff53914589 _pthread_cond_wait + 732
2   org.libsdl.SDL2               	0x000000000af87b8e 0xaea0000 + 949134
3   org.libsdl.SDL2               	0x000000000aee0e16 0xaea0000 + 265750
4   com.emaculation.sheepshaver   	0x000000000aceaa0f stream_func(void*, unsigned char*, int) + 63
5   org.libsdl.SDL2               	0x000000000aee26a0 0xaea0000 + 272032
6   com.apple.audio.toolbox.AudioToolbox	0x00007fff2a040815 ClientAudioQueue::CallOutputCallback(AudioQueueBuffer*) + 267
7   com.apple.audio.toolbox.AudioToolbox	0x00007fff2a03eaad AQClientCallbackMessageReader::DispatchCallbacks(void const*, unsigned long) + 155
8   com.apple.audio.toolbox.AudioToolbox	0x00007fff2a026835 ClientAudioQueue::FetchAndDeliverPendingCallbacks(unsigned int) + 291
9   com.apple.audio.toolbox.AudioToolbox	0x00007fff2a026691 AQCallbackReceiver_CallbackNotificationsAvailable + 121
10  com.apple.audio.toolbox.AudioToolbox	0x00007fff2a026415 _XCallbackNotificationsAvailable + 33
11  com.apple.audio.toolbox.AudioToolbox	0x00007fff2a026222 mshMIGPerform + 230
12  com.apple.CoreFoundation      	0x00007fff2b6aa079 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41
13  com.apple.CoreFoundation      	0x00007fff2b6a9fc5 __CFRunLoopDoSource1 + 533
14  com.apple.CoreFoundation      	0x00007fff2b6a1b80 __CFRunLoopRun + 2848
15  com.apple.CoreFoundation      	0x00007fff2b6a0dd3 CFRunLoopRunSpecific + 483
16  org.libsdl.SDL2               	0x000000000aee2109 0xaea0000 + 270601
17  org.libsdl.SDL2               	0x000000000aebd055 0xaea0000 + 118869
18  org.libsdl.SDL2               	0x000000000aed8659 0xaea0000 + 231001
19  libsystem_pthread.dylib       	0x00007fff53913661 _pthread_body + 340
20  libsystem_pthread.dylib       	0x00007fff5391350d _pthread_start + 377
21  libsystem_pthread.dylib       	0x00007fff53912bf9 thread_start + 13

Thread 6:: AQConverterThread
0   libsystem_kernel.dylib        	0x00007fff5374ba16 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fff53914589 _pthread_cond_wait + 732
2   com.apple.audio.toolbox.AudioToolbox	0x00007fff2a03283b CAGuard::Wait() + 73
3   com.apple.audio.toolbox.AudioToolbox	0x00007fff2a02cd11 AQConverterManager::AQConverterThread::Run() + 425
4   com.apple.audio.toolbox.AudioToolbox	0x00007fff2a02cb5d AQConverterManager::AQConverterThread::ConverterThreadEntry(void*) + 9
5   com.apple.audio.toolbox.AudioToolbox	0x00007fff2a002e89 CAPThread::Entry(CAPThread*) + 77
6   libsystem_pthread.dylib       	0x00007fff53913661 _pthread_body + 340
7   libsystem_pthread.dylib       	0x00007fff5391350d _pthread_start + 377
8   libsystem_pthread.dylib       	0x00007fff53912bf9 thread_start + 13

Thread 7:: com.apple.audio.IOThread.client
0   libsystem_kernel.dylib        	0x00007fff537421fa mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fff53741714 mach_msg + 60
2   com.apple.audio.CoreAudio     	0x00007fff2b0fa87a HALB_MachPort::SendMessageWithReply(unsigned int, unsigned int, unsigned int, unsigned int, mach_msg_header_t*, bool, unsigned int) + 124
3   com.apple.audio.CoreAudio     	0x00007fff2b0fa7ed HALB_MachPort::SendSimpleMessageWithSimpleReply(unsigned int, unsigned int, int, int&, bool, unsigned int) + 45
4   com.apple.audio.CoreAudio     	0x00007fff2b0f7859 HALC_ProxyIOContext::IOWorkLoop() + 977
5   com.apple.audio.CoreAudio     	0x00007fff2b0f72bc HALC_ProxyIOContext::IOThreadEntry(void*) + 128
6   com.apple.audio.CoreAudio     	0x00007fff2b0f6ffe HALB_IOThread::Entry(void*) + 72
7   libsystem_pthread.dylib       	0x00007fff53913661 _pthread_body + 340
8   libsystem_pthread.dylib       	0x00007fff5391350d _pthread_start + 377
9   libsystem_pthread.dylib       	0x00007fff53912bf9 thread_start + 13

Thread 8:
0   libsystem_kernel.dylib        	0x00007fff5374231a clock_sleep_trap + 10
1   com.emaculation.sheepshaver   	0x000000000acf21ba timer_func(void*) + 90
2   libsystem_pthread.dylib       	0x00007fff53913661 _pthread_body + 340
3   libsystem_pthread.dylib       	0x00007fff5391350d _pthread_start + 377
4   libsystem_pthread.dylib       	0x00007fff53912bf9 thread_start + 13

Thread 9:
0   libsystem_kernel.dylib        	0x00007fff5374bd82 __semwait_signal + 10
1   libsystem_c.dylib             	0x00007fff536c6724 nanosleep + 199
2   com.emaculation.sheepshaver   	0x000000000ad02e1e Delay_usec(unsigned long long) + 78
3   com.emaculation.sheepshaver   	0x000000000acf64d5 tick_func(void*) + 85
4   libsystem_pthread.dylib       	0x00007fff53913661 _pthread_body + 340
5   libsystem_pthread.dylib       	0x00007fff5391350d _pthread_start + 377
6   libsystem_pthread.dylib       	0x00007fff53912bf9 thread_start + 13

Thread 10:
0   libsystem_kernel.dylib        	0x00007fff5374bd82 __semwait_signal + 10
1   libsystem_c.dylib             	0x00007fff536c6724 nanosleep + 199
2   com.emaculation.sheepshaver   	0x000000000ad02e1e Delay_usec(unsigned long long) + 78
3   com.emaculation.sheepshaver   	0x000000000acf65d1 nvram_func(void*) + 97
4   libsystem_pthread.dylib       	0x00007fff53913661 _pthread_body + 340
5   libsystem_pthread.dylib       	0x00007fff5391350d _pthread_start + 377
6   libsystem_pthread.dylib       	0x00007fff53912bf9 thread_start + 13

Thread 11:
0   libsystem_pthread.dylib       	0x00007fff53912bdc start_wqthread + 0
1   ???                           	0x000070000858cb40 0 + 123145442347840

Thread 12:: Redraw Thread
0   libsystem_kernel.dylib        	0x00007fff5374bd82 __semwait_signal + 10
1   libsystem_c.dylib             	0x00007fff536c6724 nanosleep + 199
2   com.emaculation.sheepshaver   	0x000000000ad02e1e Delay_usec(unsigned long long) + 78
3   com.emaculation.sheepshaver   	0x000000000acf831c redraw_func(void*) + 92
4   org.libsdl.SDL2               	0x000000000aebd055 0xaea0000 + 118869
5   org.libsdl.SDL2               	0x000000000aed8659 0xaea0000 + 231001
6   libsystem_pthread.dylib       	0x00007fff53913661 _pthread_body + 340
7   libsystem_pthread.dylib       	0x00007fff5391350d _pthread_start + 377
8   libsystem_pthread.dylib       	0x00007fff53912bf9 thread_start + 13

Thread 13:: Dispatch queue: com.Metal.CommandQueueDispatch
0   libsystem_kernel.dylib        	0x00007fff53742236 semaphore_wait_trap + 10
1   libdispatch.dylib             	0x00007fff535d1893 _dispatch_sema4_wait + 16
2   libdispatch.dylib             	0x00007fff535c9979 _dispatch_semaphore_wait_slow + 101
3   com.apple.Metal               	0x00007fff2fe5b6cd -[_MTLCommandQueue _submitAvailableCommandBuffers] + 978
4   libdispatch.dylib             	0x00007fff535c1db8 _dispatch_client_callout + 8
5   libdispatch.dylib             	0x00007fff535d4e81 _dispatch_continuation_pop + 472
6   libdispatch.dylib             	0x00007fff535c4081 _dispatch_source_invoke + 620
7   libdispatch.dylib             	0x00007fff535d607a _dispatch_queue_serial_drain + 222
8   libdispatch.dylib             	0x00007fff535c9166 _dispatch_queue_invoke + 373
9   libdispatch.dylib             	0x00007fff535d6f0d _dispatch_root_queue_drain_deferred_wlh + 332
10  libdispatch.dylib             	0x00007fff535dad21 _dispatch_workloop_worker_thread + 880
11  libsystem_pthread.dylib       	0x00007fff53912fd2 _pthread_wqthread + 980
12  libsystem_pthread.dylib       	0x00007fff53912be9 start_wqthread + 13

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x00007fff8c02e380  rcx: 0x00007ffee4f59818  rdx: 0x0000000000000000
  rdi: 0x0000000000000307  rsi: 0x0000000000000006  rbp: 0x00007ffee4f59850  rsp: 0x00007ffee4f59818
   r8: 0x0000000000000000   r9: 0x000000000b073000  r10: 0x0000000000000000  r11: 0x0000000000200206
  r12: 0x0000000000000307  r13: 0x0000000000000000  r14: 0x0000000000000006  r15: 0x000000000000002d
  rip: 0x00007fff5374bb66  rfl: 0x0000000000200206  cr2: 0x00007fff8c00b168
  
Logical CPU:     0
Error Code:      0x02000148
Trap Number:     133

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 34
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 63230
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=355.9M resident=0K(0%) swapped_out_or_unallocated=355.9M(100%)
Writable regions: Total=426.8M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=426.8M(100%)
 
                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Accelerate framework               128K        2 
Activity Tracing                   256K        2 
CG backing stores                 1504K        4 
CG image                            12K        2 
CoreAnimation                       20K        4 
CoreImage                            8K        3 
CoreUI image data                  348K        4 
CoreUI image file                  180K        3 
Foundation                           4K        2 
IOKit                             7940K        2 
Image IO                             4K        2 
Kernel Alloc Once                    8K        2 
MALLOC                            79.5M       42 
MALLOC guard page                   48K       11 
Memory Tag 242                      12K        2 
STACK GUARD                       56.1M       15 
Stack                             14.6M       16 
VM_ALLOCATE                      334.7M       21 
VM_ALLOCATE (reserved)             512K        2         reserved VM address space (unallocated)
__DATA                            23.5M      245 
__FONT_DATA                          4K        2 
__LINKEDIT                       194.8M       11 
__TEXT                           161.2M      250 
__UNICODE                          560K        2 
mapped file                       45.7M       15 
shared memory                      628K        9 
===========                     =======  ======= 
TOTAL                            921.9M      649 
TOTAL, minus reserved VM space   921.4M      649 


User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: SheepShaver quits unexpectedly

Post by Ronald P. Regensburg »

Please post here the content of your prefs file so we can check your settings:

Launch Terminal (in /Application/Utilities/) and type at the prompt

Code: Select all

open ~/.sheepshaver_prefs
followed by a return.
The file will open in your default text editor. Select all content and copy and paste it here in your reply.
brauer-manin
Space Cadet
Posts: 3
Joined: Tue Jul 20, 2021 4:35 pm

Re: SheepShaver quits unexpectedly

Post by brauer-manin »

Thanks for your response! Here is the content of the prefs file:

disk ./Downloads/OS9.img
disk Hard Disk
cdrom /dev/poll/cdrom
cdrom ./Downloads/Obsidian_Mac_EN/OBSIDIAN1.toast
extfs ./Downloads/Shared
screen win/640/480
windowmodes 0
screenmodes 0
seriala
serialb /dev/null
rom Mac OS ROM
bootdrive 0
bootdriver 0
ramsize 268435456
frameskip 0
gfxaccel true
nocdrom false
nonet false
nosound false
nogui false
noclipconversion false
ignoresegv true
ignoreillegal false
jit true
jit68k false
keyboardtype 5
hardcursor false
hotkey 0
scale_nearest false
scale_integer false
cpuclock 0
yearofs 0
dayofs 0
mag_rate 0
swap_opt_cmd false
sound_buffer 0
name_encoding 0
ether
keycodes false
keycodefile
mousewheelmode 1
mousewheellines 3
dsp /dev/dsp
mixer /dev/mixer
idlewait true
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: SheepShaver quits unexpectedly

Post by Ronald P. Regensburg »

I do not see anything specific that could cause SheepShaver crashing. But you could try a couple of changes in the preferences settings:

- RAM Size: 512 MB
- Ignore Illegal Instructions enabled
- Enable JIT compiler disabled (will make SheepShaver slower)

However, it seems you did not do a proper full MacOS installation. Is the OS9.img the boot disk downloaded from Redundant Robot? That is a limited OS installation on a disk that is too small for additional files. Better get a MacOS install disk image as suggested in the setup manual and do a regular installation of the OS as instructed.
brauer-manin
Space Cadet
Posts: 3
Joined: Tue Jul 20, 2021 4:35 pm

Re: SheepShaver quits unexpectedly

Post by brauer-manin »

Indeed the OS9.img boot disk was downloaded from Redundant Robot; I originally tried to follow the instructions in https://emaculation.com/doku.php/sheeps ... os_x_setup but I could not find an install CD image file that worked. I was stuck on this for a long time and almost gave up. Do you have a recommendation for how to find an install CD image file? Do you think this might be the reason it's crashing?
Another thought I had is that my computer has very little free disk space. Could this be contributing to the problem?
Thank you so much!
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: SheepShaver quits unexpectedly

Post by Ronald P. Regensburg »

I do not know if using the Redundant Robot boot disk causes the crashes, but doing a proper Mac OS installation will be better anyway.

Macintosh Garden moved some pages around, but with the instructions in the setup manual and some creative searching on that site you should have been able to find the download.
New instructions (I will edit the setup manual accordingly):
Go to macintoshgarden.org, on that site search for "Mac OS 9.0.4", then click the "Mac OS 9.x (Main Page)" link. There you will find the "Download (Mac_OS_9.0.4.toast_.zip (393.05 MB))" link.

I do not know if little free disk space is a factor. It also depends on the amount of installed memory and the OSX/macOS version. In recent macOS versions the amount of free space as displayed in the Finder is not always a reliable indication for various reasons. Some of the space occupied on the disk will be released if needed. Personally I would try to keep at least 20GB free storage. More is better.
Post Reply