View Issue Details

IDProjectCategoryView StatusLast Update
0005764The Dark ModCodingpublic06.10.2021 16:35
ReporterMirceaKitsune Assigned To 
PriorityhighSeveritycrashReproducibilityrandom
Status newResolutionopen 
PlatformLinuxOSManjaroOS VersionStable
Product VersionSVN 
Summary0005764: Random crashes when a lot of lights are present in complex scenes
DescriptionTDM will randomly freeze or crash in some complex scenes. Particularly ones with a lot of lights, given I'm noticing this while testing my irradiance lighting mod which adds a bunch of ambiental lights. The crashes appear random and not consistent with any certain trigger (eg: looking at one thing from one angle would always produce it), will occur in roughly 1 to 5 minutes of playing. When running TDM from a console this is the relevant output it exits with... I also attached Darkmod.log albeit it doesn't seem as relevant:

signal caught: Segmentation fault
si_code 1
Trying to exit gracefully..
double fault Segmentation fault, bailing out
shutdown terminal support
About to exit with code 11
Steps To ReproduceI'm currently only able to reproduce this on a larger and yet unreleased FM I'm working on. I advice bringing up a complex FM with enough polygons, placing a lot of long-radius lights all across it including ambient cubes, then noclipping throughout the map for several minutes: The lower your FPS due to strain the likelier this crash should be. If you can't make a test case, let me know what extra info you need from me producing it.
TagsCrash, Freeze

Activities

MirceaKitsune

MirceaKitsune

26.09.2021 20:06

reporter  

Darkmod.log (2,318 bytes)   
[/game/DarkModGlobals.cpp ( 366):INI (INIT) FR:    0] LogFile created at 2021.09.26 22:45:52
[/game/DarkModGlobals.cpp ( 369):INI (INIT) FR:    0] Executable last cleaned and rebuilt on Aug 28 2021 12:27:00
[/game/DarkModGlobals.cpp ( 372):INI (INIT) FR:    0] The Dark Mod 2.10/64, code revision 9588 (1435:9588)
[/game/DarkModGlobals.cpp ( 418):FRC (FORCE) FR:    0] LogBegin: 0
[/game/DarkModGlobals.cpp ( 418):FRC (FORCE) FR:    0] LogEnd: 0
[/game/DarkModGlobals.cpp ( 418):FRC (FORCE) FR:    0] LogInfo: 0
[/game/DarkModGlobals.cpp ( 418):FRC (FORCE) FR:    0] LogDebug: 0
[/game/DarkModGlobals.cpp ( 418):FRC (FORCE) FR:    0] LogWarning: 0
[/game/DarkModGlobals.cpp ( 418):FRC (FORCE) FR:    0] LogError: 0
[/game/DarkModGlobals.cpp ( 428):FRC (FORCE) FR:    0] LogClass_FRAME: 0
[/game/DarkModGlobals.cpp ( 428):FRC (FORCE) FR:    0] LogClass_SYSTEM: 0
[/game/DarkModGlobals.cpp ( 428):FRC (FORCE) FR:    0] LogClass_MISC: 0
[/game/DarkModGlobals.cpp ( 428):FRC (FORCE) FR:    0] LogClass_FROBBING: 0
[/game/DarkModGlobals.cpp ( 428):FRC (FORCE) FR:    0] LogClass_AI: 0
[/game/DarkModGlobals.cpp ( 428):FRC (FORCE) FR:    0] LogClass_SOUND: 0
[/game/DarkModGlobals.cpp ( 428):FRC (FORCE) FR:    0] LogClass_FUNCTION: 0
[/game/DarkModGlobals.cpp ( 428):FRC (FORCE) FR:    0] LogClass_ENTITY: 0
[/game/DarkModGlobals.cpp ( 428):FRC (FORCE) FR:    0] LogClass_INVENTORY: 0
[/game/DarkModGlobals.cpp ( 428):FRC (FORCE) FR:    0] LogClass_LIGHT: 0
[/game/DarkModGlobals.cpp ( 428):FRC (FORCE) FR:    0] LogClass_WEAPON: 0
[/game/DarkModGlobals.cpp ( 428):FRC (FORCE) FR:    0] LogClass_MATH: 0
[/game/DarkModGlobals.cpp ( 428):FRC (FORCE) FR:    0] LogClass_MOVEMENT: 0
[/game/DarkModGlobals.cpp ( 428):FRC (FORCE) FR:    0] LogClass_STIM_RESPONSE: 0
[/game/DarkModGlobals.cpp ( 428):FRC (FORCE) FR:    0] LogClass_OBJECTIVES: 0
[/game/DarkModGlobals.cpp ( 428):FRC (FORCE) FR:    0] LogClass_DIFFICULTY: 0
[/game/DarkModGlobals.cpp ( 428):FRC (FORCE) FR:    0] LogClass_CONVERSATION: 0
[/game/DarkModGlobals.cpp ( 428):FRC (FORCE) FR:    0] LogClass_MAINMENU: 0
[/game/DarkModGlobals.cpp ( 428):FRC (FORCE) FR:    0] LogClass_LOCKPICK: 0
[/game/DarkModGlobals.cpp ( 428):FRC (FORCE) FR:    0] LogClass_AAS: 0
[/game/DarkModGlobals.cpp ( 428):FRC (FORCE) FR:    0] LogClass_STATE: 0
Darkmod.log (2,318 bytes)   
MirceaKitsune

MirceaKitsune

26.09.2021 20:09

reporter   ~0014371

Not sure if in any way related, but a while before the crash I also saw the following message printed:

Resizing dynamic VertexCache: index 65536 kb -> 131072 kb, vertex 65536 kb -> 32768 kb
Dragofer

Dragofer

27.09.2021 09:32

developer   ~0014372

Does this also happen without your custom lighting patch? Multiple ambient lights are not the norm in TDM.
nbohr1more

nbohr1more

27.09.2021 14:30

developer   ~0014373

Try increasing:

r_frameVertexMemory
and
r_frameIndexMemory

to 16384

so that the resize will not be so dramatic
stgatilov

stgatilov

27.09.2021 16:27

administrator   ~0014374

Darkmod.log is useless.
Better attach condump obtained using logFile 2.

If you cannot provide your map, then you can at least record a crash dump and given it for inspection.
MirceaKitsune

MirceaKitsune

06.10.2021 16:35

reporter   ~0014414

Sorry for being slow to get back to this. Just checked and noticed both r_frameIndexMemory and r_frameIndexMemory are already set to 16384 for me.

I should note I've seen similar crashes even without my irradiance mode installed, albeit far more rarely so they're even harder to reproduce then. This includes a smaller FM I'll hopefully be ready to publish this month.

Issue History

Date Modified Username Field Change
26.09.2021 20:06 MirceaKitsune New Issue
26.09.2021 20:06 MirceaKitsune Tag Attached: Crash
26.09.2021 20:06 MirceaKitsune Tag Attached: Freeze
26.09.2021 20:06 MirceaKitsune File Added: Darkmod.log
26.09.2021 20:09 MirceaKitsune Note Added: 0014371
27.09.2021 09:32 Dragofer Note Added: 0014372
27.09.2021 14:30 nbohr1more Note Added: 0014373
27.09.2021 16:27 stgatilov Note Added: 0014374
06.10.2021 16:35 MirceaKitsune Note Added: 0014414