View Single Post
Old 02-11-2015   #78
Monster Iestyn
Friendly Neighbour-Hood
Moderator
 
Monster Iestyn's Avatar
Default

Divide-by-zero crash with eip=004c460c, occured in a test map of mine involving portals in particular, easily reproducable when approaching one of the portals in particular way:

Spoiler: srb2win.RPT
-------------------

Error occured on Wednesday, February 11, 2015 at 14:59:55.

C:\Program Files\Sonic Team Jr\SRB2 2.1\srb2win.exe caused an Integer Divide By Zero at location 004c460c in module C:\Program Files\Sonic Team Jr\SRB2 2.1\srb2win.exe.

Registers:
eax=ffffffff ebx=00000000 ecx=00000000 edx=00000000 esi=000001d0 edi=00000000
eip=004c460c esp=0022fcb0 ebp=0022fd28 iopl=0 nv up ei ng nz na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010286

Call stack:
004C460C C:\Program Files\Sonic Team Jr\SRB2 2.1\srb2win.exe:004C460C
004CABE4 C:\Program Files\Sonic Team Jr\SRB2 2.1\srb2win.exe:004CABE4
004C246A C:\Program Files\Sonic Team Jr\SRB2 2.1\srb2win.exe:004C246A
0040284F C:\Program Files\Sonic Team Jr\SRB2 2.1\srb2win.exe:0040284F
004029FD C:\Program Files\Sonic Team Jr\SRB2 2.1\srb2win.exe:004029FD
00401421 C:\Program Files\Sonic Team Jr\SRB2 2.1\srb2win.exe:00401421
004011D9 C:\Program Files\Sonic Team Jr\SRB2 2.1\srb2win.exe:004011D9
00401223 C:\Program Files\Sonic Team Jr\SRB2 2.1\srb2win.exe:00401223
7706EE1C C:\Windows\system32\kernel32.dll:7706EE1C BaseThreadInitThunk
771637EB C:\Windows\SYSTEM32\ntdll.dll:771637EB RtlInitializeExceptionChain
771637BE C:\Windows\SYSTEM32\ntdll.dll:771637BE RtlInitializeExceptionChain


Already had a look myself and it appears the area at fault is at line 587, r_segs.c:
Code:
dc_iscale = 0xffffffffu / (unsigned)spryscale;
Test map the crash occurs in: https://dl.dropboxusercontent.com/u/...altest2-mi.wad

To reproduce: go to the portal to the right as you start, orient yourself so you can see the nearest midtexture jungle grass bunch partially visible through the portal (partially hidden because it goes outside of the viewing range of the portal). Move around thereabouts and you should get the crash.

EDIT: oh yeah, and maxportals needs to be at least 2 or more, apparently the issue is also to do with viewing portals through portals.

EDIT2: I fixed this issue myself a while back.
__________________
My page stuffed full of MIDI goodness!
The Hitchhiker's Guide to the Robo-Hoodiverse
Timeline of Sonic Robo Blast History!

That's an uppercase i, not a lowercase L, for the record. Also, it's pronounced "Yes-tin".

Last edited by Monster Iestyn; 04-30-2016 at 02:48 PM.
Monster Iestyn is offline   Reply With Quote