Visual C++ Runtime Library hates SheepShaver. (Windows)

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

robotintestines
Tinkerer
Posts: 61
Joined: Fri Sep 12, 2003 4:16 am

Visual C++ Runtime Library hates SheepShaver. (Windows)

Post by robotintestines »

I have successfully been able to get SheepShaver to boot to the desktop from my OS 9.0.4 CD-ROM.

While attempting to install OS 9 to an HFV drive, I get the following Windows error:

Image

SheepShaver quits when the 'OK' button is clicked.

How can I fix/stop this?

I have Visual C++ .NET 2002 installed
I am using Windows XP SP1
gb
Real Swell Guy!
Posts: 115
Joined: Tue Jun 22, 2004 4:20 am

Post by gb »

I got it yesterday but I don't quite remember how. It was not a segfault as it would have suggested you to send a bug report to MS with a big dump. Ah, it was probably an abort(). e.g. when you suspend the emulator.
robotintestines
Tinkerer
Posts: 61
Joined: Fri Sep 12, 2003 4:16 am

Post by robotintestines »

Thank you very much for making this, by the way :)

Here is my prefs file, and some general hardware information, if it helps:

(I have a 1.3ghz AMD-T-bird processor, 512megs pc 133 ram, Windows XP SP1. The MacOS 9.0.4 CD-ROM was manufactured by Apple. The ROM is the Mac OS ROM Update 1.0)

extfs
rom macrom
cdrom F:\
disk os9.dsk
windowmodes 3
screenmodes 63
seriala FILE
serialb FILE
bootdrive 0
bootdriver 0
ramsize 67108864
frameskip 8
gfxaccel true
nocdrom false
nonet false
nosound false
nogui true
noclipconversion false
ignoresegv true
jit false
jit68k false
keyboardtype 5
keycodes false
mousewheelmode 1
mousewheellines 3
idlewait true
keycodes false
mousewheelmode 1
mousewheellines 3
enableextfs true
debugextfs false
extdrives CDEFGHIJKLMNOPQRSTUVWXYZ
pollmedia true
gb
Real Swell Guy!
Posts: 115
Joined: Tue Jun 22, 2004 4:20 am

Post by gb »

Now that I think about it, don't you have some stdout.txt or stderr.txt file generated with something useful?

PS: I suggest you to set "frameskip" to 0 and enable "jit", that will work better too. "nogui" to false would be good to to get valuable message from ErrorAlert() or WarningAlert().

PPS: Never enable "jit68k" unless you know how to fix it, and that doesn't much matter on non-PowerPC platforms anyway.
robotintestines
Tinkerer
Posts: 61
Joined: Fri Sep 12, 2003 4:16 am

Post by robotintestines »

Before I try the changes to the prefs file that you have suggested, here is the contents of stdout.txt:

SheepShaver V2.2 by Christian Bauer and Mar"c" Hellwig
Reading ROM file...
Using SDL/dsound audio output
Detected CPU features: MMX
PowerPC CPU emulator by Gwenole Beauchesne
WARNING: Unknown DiskStatus(6)
WARNING: Unknown CDROMStatus(97)
WARNING: Unknown CDROMStatus(97)
WARNING: Unknown DiskStatus(6)
WARNING: Unknown DiskStatus(6)
WARNING: Unknown DiskStatus(6)


Here is the contents of stderr.txt:

Illegal instruction at 136ef468, opcode = 1003abc0



I will try your suggested changes to the prefs file now. Thank you :)
robotintestines
Tinkerer
Posts: 61
Joined: Fri Sep 12, 2003 4:16 am

Post by robotintestines »

I made the changes to the prefs file that you suggested, and here are the results:

"jit true" -- This causes the "Startup" portion of the boot process to take a very long time (possibly forever). I walked away for 15 minutes, and when I came back, the status bar was still 1/8 complete. No audible CD or HD activity. I quit SheepShaver via Windows Task Manager.


"nogui false"
"frameskip 0"

I made these changes as well. I then set "jit false", and tried again. The OS 9 CD got to the desktop again, and I tried to install OS 9 to the HFV drive. The same runtime error occured.



stdout.text:

SheepShaver V2.2 by Christian Bauer and Mar"c" Hellwig
Reading ROM file...
Using SDL/dsound audio output
Detected CPU features: MMX
PowerPC CPU emulator by Gwenole Beauchesne
WARNING: Unknown DiskStatus(6)
WARNING: Unknown CDROMStatus(97)
WARNING: Unknown CDROMStatus(97)
WARNING: Unknown DiskStatus(6)
WARNING: Unknown DiskStatus(6)
WARNING: Unknown DiskStatus(6)


stderr.txt:

Illegal instruction at 136ef468, opcode = 1003abc0


EDIT: I am now going to go to sleep (6am here), and I will leave SheepShaver open, with "jit true". This will be a good, many hour test to see if it will start up.
gb
Real Swell Guy!
Posts: 115
Joined: Tue Jun 22, 2004 4:20 am

Post by gb »

Hmm, it's a real illegal instruction it seems. At some point I though about an unimplement VMX instruction. As for the JIT problem, could you set "ignoresegv" to false so that you can crash immediately instead of looping over and over again.
felixding
Inquisitive Elf
Posts: 31
Joined: Mon Jun 07, 2004 1:39 pm

Post by felixding »

I also got this error, the content of "stderr.txt" is:

Illegal instruction at 40cfe0a0, opcode = 00000000

here is my prefs:

extfs
windowmodes 3
screenmodes 63
seriala COM1
serialb COM2
bootdrive 0
bootdriver 0
ramsize 16777216
frameskip 0
gfxaccel true
nocdrom false
nonet false
nosound false
nogui false
noclipconversion false
ignoresegv true
jit true
jit68k false
keyboardtype 5
keycodes false
mousewheelmode 1
mousewheellines 3
ignoresegv true
idlewait true
keycodes false
mousewheelmode 1
mousewheellines 3
enableextfs false
debugextfs false
extdrives CDEFGHIJKLMNOPQRSTUVWXYZ
pollmedia true
rom MacOSROM1
gb
Real Swell Guy!
Posts: 115
Joined: Tue Jun 22, 2004 4:20 am

Post by gb »

No, you don't get this error. You are very likely trying to boot MacOS < 8.5 with a NewWorld ROM.
robotintestines
Tinkerer
Posts: 61
Joined: Fri Sep 12, 2003 4:16 am

Post by robotintestines »

I am now going to go to sleep (6am here), and I will leave SheepShaver open, with "jit true". This will be a good, many hour test to see if it will start up.

I left SheepShaver open all night with "jit true". When I awoke, it was still stuck at 1/8 of the "Starting Up" process:

Image

It may be notable that Windows Task manager reports a constant 100% CPU usage while this is going on.

gb wrote:Hmm, it's a real illegal instruction it seems. At some point I though about an unimplement VMX instruction. As for the JIT problem, could you set "ignoresegv" to false so that you can crash immediately instead of looping over and over again.

TEST #2:

I have now set "ignoresegv false", and left "jit true", and tried again. It is still stuck at 1/8 of the "Starting Up" process.

Upon quiting via Windows Task Manager, stdout.txt and stderr.txt are both completely empty.


Prefs file:

extfs d:\
rom macrom
cdrom F:\
disk os9.dsk
windowmodes 3
screenmodes 63
seriala FILE
serialb FILE
bootdrive 0
bootdriver 0
ramsize 67108864
frameskip 0
gfxaccel true
nocdrom false
nonet false
nosound false
nogui false
noclipconversion false
ignoresegv false
jit true
jit68k false
keyboardtype 5
keycodes false
mousewheelmode 1
mousewheellines 3
idlewait true
keycodes false
mousewheelmode 1
mousewheellines 3
enableextfs true
debugextfs false
extdrives CDEFGHIJKLMNOPQRSTUVWXYZ
pollmedia true


TEST #3:

It seems that if I turn off extensions (by pressing SHIFT), and use "jit true", I am able to get to the desktop. All previous tests have had extensions on.
felixding
Inquisitive Elf
Posts: 31
Joined: Mon Jun 07, 2004 1:39 pm

Post by felixding »

gb wrote:No, you don't get this error. You are very likely trying to boot MacOS < 8.5 with a NewWorld ROM.
but i'm afraid not. :cry:
I'm using "Mac OS ROM" extracted from "Mac_OS_ROM_Update_1.0.smi.bin"(by using tomeview in BasiliskII).
Neospy
Mac Mechanic
Posts: 186
Joined: Mon Jul 05, 2004 10:49 pm
Location: Woodway, Texas, USA
Contact:

Post by Neospy »

How much ram have you given Sheep?

For os9 I think you need more than the default (which is 16mb).
Since you can get it to boot w/ extentions off that is cause no ext = no mem for ext used.

>Neospy 8)
robotintestines
Tinkerer
Posts: 61
Joined: Fri Sep 12, 2003 4:16 am

Post by robotintestines »

Neospy wrote:How much ram have you given Sheep?
ramsize 67108864
User avatar
Trombone Bob
Tinkerer
Posts: 83
Joined: Mon Apr 26, 2004 3:32 pm
Location: Utah, USA

Post by Trombone Bob »

but i'm afraid not.
I'm using "Mac OS ROM" extracted from "Mac_OS_ROM_Update_1.0.smi.bin"(by using tomeview in BasiliskII).
That rom is a new world rom. So if your trying to boot <8.5 you will run into errors
Marc
Master Emulator
Posts: 357
Joined: Wed Aug 20, 2003 2:14 pm

Post by Marc »

Trombone Bob wrote:
but i'm afraid not.
I'm using "Mac OS ROM" extracted from "Mac_OS_ROM_Update_1.0.smi.bin"(by using tomeview in BasiliskII).
That rom is a new world rom. So if your trying to boot <8.5 you will run into errors
He is trying 9.04
Mac Emu
Forum All-Star
Posts: 1208
Joined: Mon May 20, 2002 11:50 am
Location: Ouraion

Post by Mac Emu »

For the record, I've gotten such an error message myself. I'll post again when it happens again.
Stealth
Student Driver
Posts: 10
Joined: Sun Feb 01, 2004 8:14 pm

Post by Stealth »

does jit work with os 9 becasue when i set it as true it allways gets tuck on start up when that is disabled it works ok
User avatar
PPC_Digger
Forum All-Star
Posts: 1050
Joined: Thu Jul 22, 2004 9:02 am
Location: Israel

Post by PPC_Digger »

robotintestines wrote:TEST #3:

It seems that if I turn off extensions (by pressing SHIFT), and use "jit true", I am able to get to the desktop. All previous tests have had extensions on.
Perhaps you have an extension that generates code that is incompatible with the SheepShaver JITC engine. Try disabling all the extensions and then enabling them one-by-one.
robotintestines
Tinkerer
Posts: 61
Joined: Fri Sep 12, 2003 4:16 am

Post by robotintestines »

UPDATE:

I have been able to install OS 8.5.1, by getting the installer off of my 8.5 CD in Basilisk II, and transferring it to my dsk file.

I can only boot OS 8.5.1 with 'jit false', and even then SheepShaver quits spontaniously without error messages.
Marc
Master Emulator
Posts: 357
Joined: Wed Aug 20, 2003 2:14 pm

Post by Marc »

I think the lowest we can boot in Windows is OS 8.6
Jack Hair
Student Driver
Posts: 16
Joined: Tue Oct 05, 2004 7:55 am
Location: Nuth - Netherlands

Post by Jack Hair »

Marc wrote:I think the lowest we can boot in Windows is OS 8.6
Guess not, i installed of an OS 8.5 ISO and updated to 8.6.
ataxy
Master Emulator
Posts: 374
Joined: Sun Jan 25, 2004 3:49 pm
Location: Canada
Contact:

Post by ataxy »

ok here i got a runtime to
i am running OS8.6 on WINXP sp2

here is my config
extfs c:\
disk install.hfv
disk install2.hfv
disk MacOS_E.HFV
cdrom g:\
cdrom j:\
rom MacOSROM.rom
windowmodes 7
screenmodes 63
seriala FILE
serialb FILE
bootdrive 0
bootdriver 0
ramsize 268435456
frameskip 0
gfxaccel true
nocdrom false
nonet true
nosound false
nogui true
noclipconversion false
ignoresegv true
jit false
jit68k false
keyboardtype 5
keycodes true
mousewheelmode 1
mousewheellines 3
idlewait true
enableextfs true
debugextfs false
extdrives CDEFGHIJKLMNOPQRSTUVWXYZ
pollmedia true

ok now for the error i got the following trying to run "alone in the dark2"

the stderr.txt file gave me this:
Illegal instruction at 1edf4570, opcode = 7c800400
and this the second time i tryed:
Illegal instruction at 1edf4d30, opcode = 7c800400

the stdout.txt gave me this the two time:
SheepShaver V2.2 by Christian Bauer and Mar"c" Hellwig
Reading ROM file...
Using SDL/waveout audio output
Detected CPU features: MMX SSE
PowerPC CPU emulator by Gwenole Beauchesne
VOSF acceleration is not profitable on this platform, disabling it
WARNING: Unknown CDROMStatus(97)
WARNING: Unknown CDROMStatus(97)
WARNING: Unknown CDROMStatus(97)
WARNING: Unknown CDROMStatus(97)

ok en here is what i got trying to run it with "ignoresegv false" and i took off the cd from the config i also did not get any windows runtime error window this time it simply crashed to desktop

here is the config:
extfs c:\
disk install.hfv
disk install2.hfv
disk MacOS_E.HFV
rom MacOSROM.rom
windowmodes 7
screenmodes 63
seriala FILE
serialb FILE
bootdrive 0
bootdriver 0
ramsize 268435456
frameskip 0
gfxaccel true
nocdrom true
nonet true
nosound false
nogui true
noclipconversion false
ignoresegv false
jit false
jit68k false
keyboardtype 5
keycodes true
mousewheelmode 1
mousewheellines 3
idlewait true
enableextfs true
debugextfs false
extdrives CDEFGHIJKLMNOPQRSTUVWXYZ
pollmedia true


stderr.txt:
r0 40924d0c r1 1f1d01f8 r2 1ee24940 r3 03308000
r4 000000f8 r5 000c0008 r6 ffffa89f r7 1f1d0238
r8 1f1d0138 r9 40c6dcf0 r10 52614d32 r11 1019c818
r12 1ee1ac0c r13 000000ff r14 0000ffff r15 408589a0
r16 1ee33be8 r17 1f1d0230 r18 00000000 r19 00000001
r20 1f1d0248 r21 00000000 r22 00000000 r23 1f1d0250
r24 00000008 r25 00000005 r26 00000002 r27 00000001
r28 00000000 r29 00000000 r30 1ee3244c r31 00000000
f0 0.00000 f1 0.00000 f2 0.00000 f3 0.00000
f4 0.00000 f5 -0.33262 f6 -0.01172 f7 0.99998
f8 0.05265 f9 68719476736.00000 f10 0.00000 f11 0.00000
f12 0.00000 f13 0.00000 f14 0.00000 f15 0.00000
f16 0.00000 f17 0.00000 f18 0.00000 f19 0.00000
f20 0.00000 f21 0.00000 f22 0.00000 f23 0.00000
f24 0.00000 f25 0.00000 f26 0.00000 f27 0.00000
f28 0.00000 f29 0.00000 f30 0.00000 f31 0.00000
lr 1ee1ac0c ctr 1019ed20 cr 42000048 xer 00000000
pc 1ee1ac10 fpscr 00000000
yyyc186
Student Driver
Posts: 11
Joined: Sat Nov 27, 2004 5:53 am

I get this 1/8 through error too

Post by yyyc186 »

I have os 8.6 working fine (wow, command and conquer is 100% playable with sound on an AMD XP 3200 running Win2k sp4) and also a brand new os 9.0.4 image working.

I'm using the 1.6 rom (none others work AFAIK until Gb updates the binary from his latest cvs contributions)

However - with both images if I turn JIT ON then I get stalled indefinitely for BOTH os 8.6 and os 9.04.

One final thing the applet viewer from MRJ 2.2 SDK crashes sheepshaver when run on an example java applet

gb - thanks for your work this is sooo cool
gb
Real Swell Guy!
Posts: 115
Joined: Tue Jun 22, 2004 4:20 am

Post by gb »

opcode 7c800400 is actually a valid instruction mcrxr crf1. I will implement it. Thanks.
Post Reply