2.2 Crash Reports (SIGSEGVs, etc)

Without a sigsegv, TSOURDT3rd stops responding on Greenflower Acts 1 and 2 (Arid Canyon 1 for a 2.0 zone port pack I found here)
Post automatically merged:

Here's proof
Post automatically merged:

maybe there's an addon making it crash or something idk
 

Attachments

  • srb2win64-tsourdt3rd.RPT
    221 bytes · Views: 92
Last edited:
I keep having this issue, and I don't know why. With SMS (Usually, but sometimes with other characters), after hitting a spring and pressing jump, the game just freezes. The audio remains, but the actual gameplay is frozen.
 

Attachments

  • srb2win.RPT
    9.2 KB · Views: 71
Okay, so the pre-release period for 2.2.14 might not be the best time to report a crash in 2.2.13, but I found a weird crash that doesn't seem to generate any sort of crash report? It doesn't show an error message when it crashes, the latest-log just kind of cuts off at the end as if the game were still running, and looking at the .RPT, the latest report is from May. This does have to do with a lua file doing potentially weird and unintended code things, but the code is so simple and the nature of the crash is so weird that I can't help but feel like I ought to say something here.

I wrote a silly Lua script just to see what would happen if I made every ShouldDamage check automatically return true, regardless of circumstance. It's a 3-line script. That said, if the player touches a harmful surface (e.g. lava) while flashing, the game just... closes. I'm pretty sure it counts as a crash, and is happening because of an error? But I can't be completely certain, since, as I said, this generates no report of any kind. I'll attach the .lua file I was using, but just for the record, this is the full extent of the script I used to do this:

Lua:
addHook("ShouldDamage",function(t,i,s,d,dt)
    return true
end)

Steps to recreate:
  1. Load fragile.lua
  2. Enter Red Volcano Zone as any (vanilla) character
  3. Take damage from any source
  4. While still flashing (including during knockback animation), touch lava
Here's a GIF I recorded of it. The end of the GIF is when the game closes. When I watch the original on my device, the bottom half of the screen flashes white at the end; I assume that's just a result of the last frame being unexpectedly cut off in the middle of drawing. It also doesn't show up when I upload it here, or when I try and open it in a video editor to go through it frame by frame, nor am I sure it'll maintain that property if you download it from here.
srb20011.gif

Edit: Yes, the flash at the end of the GIF does seem to be maintained if you download it from here.
 

Attachments

  • fragile.lua
    63 bytes · Views: 49
I've been able to play SRB2 just fine until today.
Upon booting up the game, I see just a black screen when the Sonic Team Jr. logo should be present and am greeted with this alert:
1728647141466.png


I can't make heads nor tails of what RPT document is trying to tell me either.
 

Attachments

  • srb2win.RPT
    3.3 KB · Views: 46
Ok, so, I worked out that this happens when I have my controller plugged in before the opening credits.
Might have screwed up when I cleaned my controller with pressurised electrical contact cleaner.
 
So when i enter srb2 as knuckles its fine but when i add a wad to the game and then play as knuckles it crashes and when i re enter the client it gives me the exact crash causing my name to be changed back to sonic which is actually bad i hope it either gets fixed in the 2.2.14 update or if theres a way to fix the character. please inform me.:blink:
Post automatically merged:

Ok, so, I worked out that this happens when I have my controller plugged in before the opening credits.
Might have screwed up when I cleaned my controller with pressurised electrical contact cleaner.
i had the exact crash image you sent when i chose knuckles. i dont know how it happened. and it hasnt been resolved.
 
Last edited:
(Updated)
SRB2 version: 2.2.13

Okay, so, I was developing a new version of my "Super Form Auras" addon. However, while I was testing it, I got some SIGSEGVs.
After some more testing, I realized that this might have something to do with the spritexscale and spriteyscale variables from the mobj_t userdata structure, but I'm not really sure. This seems to only occur in the Software rendering mode.

Here's how you can replicate this crash in the current version of SFA:
1. Load the addon, go to a level and set sfaura_sprite to btss and sfaura_xscale to 0.8.
2. Switch to the Software rendering mode.
3. Go to BCZ2 and make the player die in any way possible. The game will crash after the title card shows.

Note: The GIF below was made with an older version of SFA.
srb20008.gif

The moment where the GIF ends is where it crashes.
Note that the yellow aura and the electric sparks in the GIF are two separate MT_OVERLAY objects, both having their spritexscale and spriteyscale variables set at 0.8 fracunits.

I attach the srb2win.RPT file below. If you need more info on how the addon works, feel free to check its code.
 

Attachments

  • srb2win.RPT
    3.2 KB · Views: 36
Last edited:
I tried to load "ChrispyChars" from the addons menu, but that made the game crash and gave me this error:
1737408168131.png

I managed to load other custom characters just fine, it's just this one that gives me an error.
I'm using v2.2.14
 
version: vanilla v2.2.15

broken floorsprites
i was trying to make a spinning ceiling fan using the FF_FLOORSPRITE state, but when testing it, making sure it was displaying properly, the game suddently just, slapped me in the face and just sigsegv'd.

the sprite also followed the way the camera was moving, i dunno if this is a intentional feature or not but its strange nonetheless

it was done via SOC and the code looks like this:
1738847458760.png

ive tried removing flags such as, MF_SCENERY, MF_SPAWNCEILING and even the action that makes it spin around (hence why it wasnt in this screenshot), but it still crashes.

i tried it on an older version (2.2.13), it still follows the cameras movement but it doesnt sigsegv.

after a few more tests on different renderers and resolutions:

[BLANK SPACE]​
V2.2.15​
V2.2.13​
SOFTWARE RENDERER​
crashes only with 1920x1200 resolution
no crash
OPENGL RENDERER​
no crash
no crash
1920X1200 RESOLUTION​
crashes only with software renderer
no crash
1920X1080 RESOLUTION​
no crash
no crash

(every test has used the same addons and versions of them)

the map is made in UDMF if that information is helpful in anyway
video of the crash:

(2.2.15, 1920x1200, software renderer)
srb20000.gif

(2.2.13, 1920x1200, software renderer. the sprite glitches out in specific camera angles in ways i dont know how to explain, (software only))
srb20001.png


crash can be replicated very easily

Error occurred on Thursday, February 6, 2025 at 14:04:48.

srb2win.exe caused an Access Violation at location 00D76F57 in module srb2win.exe Reading from location 000003B4.

Registers:
eax=00000198 ebx=0000054d ecx=009fd9cc edx=00000084 esi=00000198 edi=0000032c
eip=00d76f57 esp=009fd930 ebp=009ff7e8 iopl=0 nv up ei pl nz ac po nc
cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00210216

AddrPC Params
00D76F57 00000000 000003C0 0002FC02 srb2win.exe!R_RasterizeFloorSplat
00D78E50 174D484C 0000001C 00000000 srb2win.exe!R_DrawFloorSplat
00D83716 03A41E40 00000001 00000896 srb2win.exe!R_DrawMasked
00D68821 009FF9DC 00000001 00000000 srb2win.exe!R_RenderPlayerView
77991263 011EE400 00000001 00232800 SDL2.dll!SDL_DYNAPI_entry
00BEB776 09440000 00000104 00000000 srb2win.exe!D_SRB2Loop
658B151F 00000104 00000000 041C594C D3D9.DLL!Direct3DCreate9Ex
6589E162 09440000 009FFB78 0DAB2240 D3D9.DLL!0x4e162
658B3DF7 00000000 00000000 00000000 D3D9.DLL!Direct3DCreate9Ex
6592FD0B 00000000 00000000 00000000 D3D9.DLL!Ordinal23
6592FBAB 018A0160 00000000 00C2B29E D3D9.DLL!Ordinal23
00BBEB3F 00000001 00000002 00FB28A0 srb2win.exe!I_unlock_mutex
00C2B29E 00000000 00000000 00000000 srb2win.exe!CON_LogMessage

srb2win.exe 2.2.14.0
ntdll.dll 6.2.26100.2605
KERNEL32.DLL 6.2.26100.2454
KERNELBASE.dll 6.2.26100.2894
ADVAPI32.dll 6.2.26100.2033
msvcrt.dll 7.0.26100.1882
SDL2.dll 2.0.20.0
sechost.dll 6.2.26100.2454
SDL2_mixer_ext.dll 2.1.0.0
GDI32.dll 6.2.26100.2033
libcurl.dll 7.69.0.0
RPCRT4.dll 6.2.26100.2894
CRYPT32.dll 6.2.26100.2454
win32u.dll 6.2.26100.2161
libgme.dll
ucrtbase.dll 6.2.26100.1882
SHELL32.dll 6.2.26100.2894
gdi32full.dll 6.2.26100.2605
USER32.dll 6.2.26100.2894
msvcp_win.dll 6.2.26100.1882
wldap32.dll 6.2.26100.2605
WS2_32.dll 6.2.26100.1882
libopenmpt.dll 1.0.0.0
IMM32.DLL 6.2.26100.1
ole32.dll 6.2.26100.2894
libgcc_s_sjlj-1.dll
WINMM.DLL 6.2.26100.2454
combase.dll 6.2.26100.2894
libstdc++-6.dll
OLEAUT32.dll 6.2.26100.1882
IPHLPAPI.DLL 6.2.26100.2454
SETUPAPI.dll 6.2.26100.2454
VERSION.dll 6.2.26100.1
CRYPTBASE.DLL 6.2.26100.2894
cfgmgr32.DLL 6.2.26100.2454
libfluidsynth-2.dll
DSOUND.dll 6.2.26100.2454
ResampleDmo.DLL 6.2.26100.1
powrprof.dll 6.2.26100.1
msdmo.dll 6.2.26100.1
winmmbase.dll 6.2.26100.1
UMPDC.dll 6.2.26100.1301
uxtheme.dll 6.2.26100.2454
MSCTF.dll 6.2.26100.2894
shcore.dll 6.2.26100.2454
exchndl.dll 0.9.0.0
PSAPI.DLL 6.2.26100.1
mgwhelp.dll 0.9.0.0
dbghelp.dll 6.2.26100.2033
dbgcore.DLL 6.2.26100.2454
bcryptPrimitives.dll 6.2.26100.2033
Windows.Storage.dll 6.2.26100.2894
mscms.dll 6.2.26100.2454
icm32.dll 6.2.26100.2314
kernel.appcore.dll 6.2.26100.1591
clbcatq.dll 2001.12.10941.16384
textinputframework.dll 6.2.26100.2454
CoreMessaging.dll 6.2.26100.1
CoreUIComponents.dll 6.2.26100.2454
wintypes.dll 6.2.26100.2894
D3D9.DLL 6.2.26100.2454
dwmapi.dll 6.2.26100.2454
dxcore.dll 6.2.26100.2454
nvldumd.dll 32.0.15.6636
msasn1.dll 6.2.26100.2894
cryptnet.dll 6.2.26100.2454
wldp.dll 6.2.26100.2894
drvstore.dll 6.2.26100.2454
devobj.dll 6.2.26100.1
wintrust.dll 6.2.26100.2894
imagehlp.dll 6.2.26100.1
CRYPTSP.dll 6.2.26100.2454
rsaenh.dll 6.2.26100.2894
bcrypt.dll 6.2.26100.2894
nvgpucomp32.dll 32.0.15.6636
nvd3dum.dll 32.0.15.6636
directxdatabasehelper.dll 6.2.26100.2454
shlwapi.dll 6.2.26100.2454
nvspcap.dll 11.0.1.189
profapi.dll 6.2.26100.2454
ntmarta.dll 6.2.26100.1
gpapi.dll 6.2.26100.1882
nvppe.dll 32.0.15.6636
hid.dll 6.2.26100.1
dinput8.dll 6.2.26100.1591
inputhost.dll 6.2.26100.2454
Windows.Gaming.Input.dll 6.2.26100.1882
twinapi.appcore.dll 6.2.26100.2454
OneCoreUAPCommonProxyStub.dll 6.2.26100.2454
MMDevAPI.DLL 6.2.26100.1882
wdmaud.drv 6.2.26100.1882
AUDIOSES.DLL 6.2.26100.2454
msacm32.drv 6.2.26100.1882
MSACM32.dll 6.2.26100.1882
midimap.dll 6.2.26100.1882
resourcepolicyclient.dll 6.2.26100.1
Windows.UI.dll 6.2.26100.2454
avrt.dll 6.2.26100.1

Windows 6.2.9200
DrMingw 0.9.0
 

Attachments

  • srb2win.RPT
    4 KB · Views: 28
Zmoss, your renderer and resolution testing actually helped me fix playing around with the SRB2i addon. It was crashing SIGSEGV before I could even learn the controls, and now I'm able to play it. Just wanted to tell you thanks for the information that you posted.
 

Who is viewing this thread (Total: 0, Members: 0, Guests: 0)

Back
Top