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
Attached Files
Darkmod.log (2,318 bytes)   

Activities

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