Duke4.net Forums: EDuke32 crash bug on loading saved games - Duke4.net Forums

Jump to content

Hide message Show message
Welcome to the Duke4.net Forums!

Register an account now to get access to all board features. After you've registered and logged in, you'll be able to create topics, post replies, send and receive private messages, disable the viewing of ads and more!

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

EDuke32 crash bug on loading saved games

User is offline   Trooper Dan 

  • Duke Plus Developer
  • 3,090

#1

For a while now we've been getting scattered reports of out of memory errors when people try to load saved games. With the latest snapshot (r6978), this now happens in the Alien Armageddon mod from apparently any saved game, so it's easily reproduced. This crash was not happening to me with previous snapshots. Below I have included some log files generated when trying to load a saved game. This can be reproduced with versions 1.02 of AA and later (maybe earlier, too)

Download link to the mod:
Download link

I got these crashes using my current build. I suspected that the presence of the "loadmapstate" command in EVENT_ENTERLEVEL may have been relevant. However, I can remove that command and comment out the entire event and the crash still happens.


Spoiler


In that case I was using Polymer, but it crashes in Polymost too:

Spoiler


EDIT2: I tried removing the loadmapstate feature to see if that was related. Interestingly, it still crashes, but now it shows an "out of memory" error instead of just quitting silently:

Spoiler

2

User is offline   Trooper Dan 

  • Duke Plus Developer
  • 3,090

#2

An update of sorts. I tried using the debug version of r6978 and it produces more info when crashing. Again, this happens when saving a game, quitting out and then starting and immediately loading the just created saved game.


Quote

Incompatible file version. Expected 1.7.331.0.19392445, found 1.7.331.0.75f7c8a8
Load tile 2492: p0-m513-e0 tilefromtexture/3drealms.png... 14 ms
Load tile 2492: p0-m516-e0 tilefromtexture/3drealms.png... 14 ms
gltexinvalidateall()
gltexinvalidateall()
Incompatible file version. Expected 1.7.331.0.19392445, found 1.7.331.0.75f7c8a8
Incompatible file version. Expected 1.7.331.0.19392445, found 1.7.331.0.75f7c8a8
Load tile 2456: p0-m513-e0 tilefromtexture/menu3.bmp... 10 ms
Load tile 2456: p0-m516-e0 tilefromtexture/menu3.bmp... 11 ms
sv_loadsnapshot: snapshot size: 11957686 bytes.
ud: 0 ms
sws: 3 ms

Wrote eduke32.cfg
Wrote settings.cfg
polymost_glreset()
Incompatible file version. Expected 1.7.331.0.19392445, found 1.7.331.0.75f7c8a8

0

User is offline   TerminX 

  • el fundador
  • 5,308

  #3

I'll be working on this one soon as it's something I've fucked up. :D

EDuke32 wiki svn builds bugs
Join us in #eduke32 on irc.freenode.net!
0

User is offline   Trooper Dan 

  • Duke Plus Developer
  • 3,090

#4

View PostTerminX, on 15 September 2018 - 10:57 AM, said:

I'll be working on this one soon as it's something I've fucked up. :D


Cool. I don't know if this helps, but I got this crash log from another user. Once again, from loading a saved game using the debug build of r6978:

Quote

Caught exception 0xC0000374 at 0x00007FFB3EF44D3B: A heap has been corrupted.


0x00007FFB3EF44D3B : C:\WINDOWS\SYSTEM32\ntdll.dll : RtlIsNonEmptyDirectoryReparsePointAllowed
0x00007FFB3EF4C806 : C:\WINDOWS\SYSTEM32\ntdll.dll : RtlpNtSetValueKey
0x00007FFB3EF4CAD1 : C:\WINDOWS\SYSTEM32\ntdll.dll : RtlpNtSetValueKey
0x00007FFB3EEE9A55 : C:\WINDOWS\SYSTEM32\ntdll.dll : RtlRaiseStatus
0x00007FFB3EEF693D : C:\WINDOWS\SYSTEM32\ntdll.dll : memset
0x00007FFB3EE5D14A : C:\WINDOWS\SYSTEM32\ntdll.dll : RtlReAllocateHeap
0x00007FFB3E809A27 : C:\WINDOWS\System32\msvcrt.dll : realloc
0x000000000043C811 : E:\Games\Alien Armageddon\eduke32.debug.exe : /var/synthesis/eduke32/source/build/include/compat.h (1198) : in function (xrealloc)
0x00000000004AAB0B : E:\Games\Alien Armageddon\eduke32.debug.exe : /var/synthesis/eduke32/source/duke3d/src/savegame.cpp (1920) : in function (sv_postprojectileload)
0x00000000004AB0E9 : E:\Games\Alien Armageddon\eduke32.debug.exe : /var/synthesis/eduke32/source/duke3d/src/savegame.cpp (774) : in function (readspecdata)
0x00000000004AB470 : E:\Games\Alien Armageddon\eduke32.debug.exe : /var/synthesis/eduke32/source/duke3d/src/savegame.cpp (2148) : in function (doloadplayer2)
0x00000000004ADC79 : E:\Games\Alien Armageddon\eduke32.debug.exe : /var/synthesis/eduke32/source/duke3d/src/savegame.cpp (1645) : in function (sv_loadsnapshot)
0x00000000004AE2D3 : E:\Games\Alien Armageddon\eduke32.debug.exe : /var/synthesis/eduke32/source/duke3d/src/savegame.cpp (411) : in function (G_LoadPlayer)
0x00000000004AE529 : E:\Games\Alien Armageddon\eduke32.debug.exe : /var/synthesis/eduke32/source/duke3d/src/savegame.cpp (634) : in function (G_LoadPlayerMaybeMulti)
0x00000000004A31F4 : E:\Games\Alien Armageddon\eduke32.debug.exe : /var/synthesis/eduke32/source/duke3d/src/menus.cpp (3552) : in function (Menu_Verify)
0x00000000004A39F7 : E:\Games\Alien Armageddon\eduke32.debug.exe : /var/synthesis/eduke32/source/duke3d/src/menus.cpp (6485) : in function (Menu_RunInput)
0x00000000004A4167 : E:\Games\Alien Armageddon\eduke32.debug.exe : /var/synthesis/eduke32/source/duke3d/src/menus.cpp (6844) : in function (M_DisplayMenus)
0x00000000004C642A : E:\Games\Alien Armageddon\eduke32.debug.exe : /var/synthesis/eduke32/source/duke3d/src/screens.cpp (1357) : in function (G_DisplayRest)
0x000000000040D6C3 : E:\Games\Alien Armageddon\eduke32.debug.exe : /var/synthesis/eduke32/source/duke3d/src/game.cpp (6807) : in function (app_main)
0x000000000056E862 : E:\Games\Alien Armageddon\eduke32.debug.exe : /var/synthesis/eduke32/source/build/src/sdlayer.cpp (493) : in function (WinMain)
0x000000000056E249 : E:\Games\Alien Armageddon\eduke32.debug.exe : /var/synthesis/eduke32/source/build/src/mingw_main.cpp (96) : in function (main)
0x00000000004013F7 : E:\Games\Alien Armageddon\eduke32.debug.exe : /build/mingw-w64-crt/src/mingw-w64-v5.0.3/mingw-w64-crt/crt/crtexe.c (336) : in function (__tmainCRTStartup)
0x00000000004014FB : E:\Games\Alien Armageddon\eduke32.debug.exe : /build/mingw-w64-crt/src/mingw-w64-v5.0.3/mingw-w64-crt/crt/crtexe.c (186) : in function (WinMainCRTStartup)
0x00007FFB3C9C3034 : C:\WINDOWS\System32\KERNEL32.DLL : BaseThreadInitThunk
0x00007FFB3EEC1461 : C:\WINDOWS\SYSTEM32\ntdll.dll : RtlUserThreadStart
Sat Sep 15 20:42:33 2018
---------------

1

User is offline   TerminX 

  • el fundador
  • 5,308

  #5

That helps in that it confirms the problem is exactly what I thought it would be, yes. Thanks.

EDuke32 wiki svn builds bugs
Join us in #eduke32 on irc.freenode.net!
0

User is online   ViDi 

  • 0

#6

I tried to run debug build of r6975 but it doesn't even work. I tried to run Atomic Edition.
Attached Image: 1.jpg
Attached Image: 2.jpg

This post has been edited by ViDi: 15 September 2018 - 12:14 PM

0

User is online   ViDi 

  • 0

#7

I've restored it from the recycle bin and tried again but now it works.

Attached File(s)


0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks are property of their respective owners. Instead of reading this text, you could be playing Ion Maiden! ;) © 2018 Voidpoint, LLC

Enter your sign in name and password


Sign in options