dhewm3 icon indicating copy to clipboard operation
dhewm3 copied to clipboard

Stall followed by crash in Alpha Labs 4

Open dominalien opened this issue 5 years ago • 23 comments

I'm playing the game and have a 100% repeatable (on my system...) stall. The game just freezes, sound continues playing. Now, if I switch to another workspace and back it starts running again, but then shortly afterwards stalls again and usually crashes. Up until now the game was 100% solid.

The area is called EFR Junction 6 and it's a place with corridors with no floor and floating platforms. I can provide a save just before the area, the stall happens within 5 seconds to a couple of minutes, I haven't been able to get through the area yet.

The system is Ubuntu 20.04 (upgraded yesterday, it was happening also before on 19.10), hardware is Nvidia 330M, driver is 340.108. I verified the checksums of the pak files I have and they all check out.

Here's the output from the terminal after a stall, another stall and crash. I took two screenshots in the mean time, one of them when the game was stalled, so this at least works. There are a couple of warnings, I don't know if they have anything to do with the problem.

dhewm3 console output
dhewm3 1.5.0.1304 linux-x86_64 Dec 15 2018 03:06:01 using SDL v2.0.10
WARNING: terminal type 'xterm-256color' is unknown. terminal support may not work correctly
terminal support enabled ( use +set in_tty 0 to disable )
pid: 105278
7888 MB System Memory
found interface lo - loopback
found interface wlp3s0b1 - 192.168.1.10/255.255.255.0
doom using MMX & SSE & SSE2 for SIMD processing
enabling Flush-To-Zero mode
enabling Denormals-Are-Zero mode
WARNING: base path '/usr/local/share/dhewm3' does not exist
WARNING: using path of executable: /home/domin/Gry/Doom3
----- Initializing File System -----
Loaded pk4 /home/domin/Gry/Doom3/base/pak000.pk4 with checksum 0x28d208f1
Loaded pk4 /home/domin/Gry/Doom3/base/pak001.pk4 with checksum 0x40244be0
Loaded pk4 /home/domin/Gry/Doom3/base/pak002.pk4 with checksum 0xc51ecdcd
Loaded pk4 /home/domin/Gry/Doom3/base/pak003.pk4 with checksum 0xcd79d028
Loaded pk4 /home/domin/Gry/Doom3/base/pak004.pk4 with checksum 0x765e4f8b
Loaded pk4 /home/domin/Gry/Doom3/base/pak005.pk4 with checksum 0x8ffc3621
Loaded pk4 /home/domin/Gry/Doom3/base/pak006.pk4 with checksum 0x95b65ab
Loaded pk4 /home/domin/Gry/Doom3/base/pak007.pk4 with checksum 0x666bdb3c
Loaded pk4 /home/domin/Gry/Doom3/base/pak008.pk4 with checksum 0x23ae5993
Current search path:
/home/domin/.config/dhewm3/base
/home/domin/.local/share/dhewm3/base
/home/domin/Gry/Doom3/base
/home/domin/Gry/Doom3/base/pak008.pk4 (3 files)
/home/domin/Gry/Doom3/base/pak007.pk4 (38 files)
/home/domin/Gry/Doom3/base/pak006.pk4 (48 files)
/home/domin/Gry/Doom3/base/pak005.pk4 (63 files)
/home/domin/Gry/Doom3/base/pak004.pk4 (5137 files)
/home/domin/Gry/Doom3/base/pak003.pk4 (4676 files)
/home/domin/Gry/Doom3/base/pak002.pk4 (6120 files)
/home/domin/Gry/Doom3/base/pak001.pk4 (8972 files)
/home/domin/Gry/Doom3/base/pak000.pk4 (2698 files)
Addon pk4s:
----- Initializing Decls -----
5206 strings read from strings/english.lang
Couldn't open journal files
execing editor.cfg
execing default.cfg
execing dhewm.cfg
couldn't exec autoexec.cfg
5206 strings read from strings/english.lang
----- Initializing OpenAL -----
Setup OpenAL device and context
OpenAL: found device 'Wbudowany dźwięk Analogowe stereo'
OpenAL vendor: OpenAL Community
OpenAL renderer: OpenAL Soft
OpenAL version: 1.1 ALSOFT 1.19.1
OpenAL: found EFX extension
OpenAL: found 256 hardware voices
----- Initializing OpenGL -----
Initializing OpenGL subsystem
Using 8 color bits, 24 depth, 8 stencil display
OpenGL vendor: NVIDIA Corporation
OpenGL renderer: GeForce GT 330M/PCIe/SSE2
OpenGL version: 3.3.0 NVIDIA 340.108
...using GL_ARB_multitexture
...using GL_ARB_texture_env_combine
...using GL_ARB_texture_cube_map
...using GL_ARB_texture_env_dot3
...using GL_ARB_texture_env_add
...using GL_ARB_texture_non_power_of_two
...using GL_ARB_texture_compression
...using GL_EXT_texture_compression_s3tc
...using GL_EXT_texture_filter_anisotropic
   maxTextureAnisotropy: 16.000000
...using GL_1.4_texture_lod_bias
X..GL_EXT_shared_texture_palette not found
...using GL_EXT_texture3D
...using GL_EXT_stencil_wrap
...using GL_EXT_stencil_two_side
...using GL_ARB_vertex_buffer_object
...using GL_ARB_vertex_program
...using GL_ARB_fragment_program
...using EXT_depth_bounds_test
ARB2 renderer: Available.
----- R_ReloadARBPrograms -----
glprogs/test.vfp
glprogs/test.vfp
glprogs/interaction.vfp
glprogs/interaction.vfp
glprogs/bumpyEnvironment.vfp
glprogs/bumpyEnvironment.vfp
glprogs/ambientLight.vfp
glprogs/ambientLight.vfp
glprogs/shadow.vp
glprogs/environment.vfp
glprogs/environment.vfp
glprogs/arbVP_glasswarp.txt: File not found
glprogs/arbFP_glasswarp.txt: File not found
using ARB_vertex_buffer_object memory
using ARB2 renderSystem
loaded game library '/home/domin/Gry/Doom3/base.so'.
game using MMX & SSE & SSE2 for SIMD processing
Flush-To-Zero mode is already enabled
Denormals-Are-Zero mode is already enabled
----- Initializing Game -----
gamename: baseDOOM-1
gamedate: Dec 15 2018
Initializing event system
...473 event definitions
Initializing class hierarchy
...142 classes, 764368 bytes for event callbacks
Initializing scripts
Compiled 'weapon_fists::GetFireAnim': 867 ms
----- Compile stats -----
Memory usage:
     Strings: 79, 13232 bytes
  Statements: 67875, 2715000 bytes
   Functions: 2109, 318020 bytes
   Variables: 170888 bytes
    Mem used: 4483712 bytes
 Static data: 4214344 bytes
   Allocated: 5768260 bytes
 Thread size: 14056 bytes
...6 aas types
----- Initializing Session -----
----- Warnings -----
during dhewm 3 initialization...
WARNING: base path '/usr/local/share/dhewm3' does not exist
WARNING: using path of executable: /home/domin/Gry/Doom3
2 warnings
----- Game Map Shutdown -----
reloading guis/mainmenu.gui.
reloading guis/restart.gui.
reloading guis/gameover.gui.
reloading guis/msg.gui.
reloading guis/takeNotes.gui.
reloading guis/intro.gui.
----- Map Initialization -----
Map: game/alphalabs4
glprogs/heatHaze.vfp
glprogs/heatHaze.vfp
----- Game Map Init SaveGame -----
collision data:
   656 models
 55652 vertices (1304 KB)
100701 edges (3540 KB)
 41780 polygons (3096 KB)
  6940 brushes (975 KB)
 26120 nodes (1224 KB)
 84111 polygon refs (1314 KB)
 27483 brush refs (429 KB)
 32103 internal edges
  2903 sharp edges
     0 contained polygons removed
     0 polygons merged
 11884 KB total memory used
233 msec to load collision data.
map bounds are (7840.0, 5384.0, 1712.0)
max clip sector is (245.0, 336.5, 214.0)
    7 KB passage memory used to build PVS
    3 msec to calculate PVS
   71 areas
  172 portals
   14 areas visible on average
  852 bytes PVS data
[Load AAS]
loading maps/game/alphalabs4.aas48
done.
[Load AAS]
loading maps/game/alphalabs4.aas96
done.
[Load AAS]
loading maps/game/alphalabs4.aas_guardian
[Load AAS]
loading maps/game/alphalabs4.aas_mancubus
[Load AAS]
loading maps/game/alphalabs4.aas_sabaoth
[Load AAS]
loading maps/game/alphalabs4.aas_cyberdemon
glprogs/heatHazeWithMaskAndVertex.vfp
glprogs/heatHazeWithMaskAndVertex.vfp
glprogs/heatHazeWithMask.vfp
glprogs/heatHazeWithMask.vfp
WARNING: Couldn't load sound 'guisounds.wav' using default
loaded collision model models/mapobjects/delta2/demonpork/puddle.lwo
loaded collision model models/mapobjects/shipping_crates/shipping_crates2.lwo
loaded collision model models/mapobjects/rideodeath/turnstile.lwo
loaded collision model models/mapobjects/guiobjects/alphalabcon/alphalabcon.lwo
loaded collision model models/mapobjects/cpu/cpudesk1.lwo
loaded collision model models/mapobjects/doors/enprodoor2/enprodoor2_rt.lwo
loaded collision model models/mapobjects/doors/enprodoor2/enprodoor2_lf.lwo
loaded collision model models/mapobjects/com/elevguistand/elevguistand.lwo
loaded collision model models/mapobjects/doors/techdoor1/techdr1lft.lwo
loaded collision model models/mapobjects/doors/techdoor1/techdr1rt.lwo
loaded collision model models/mapobjects/doors/techdoor2/techdr2frame.lwo
loaded collision model models/mapobjects/skmachines/skceilingdisc.lwo
loaded collision model models/mapobjects/cpu/comrack2.lwo
loaded collision model models/mapobjects/cpu/comrack.lwo
loaded collision model models/mapobjects/doors/techdoor1/techdr1frame.lwo
loaded collision model models/mapobjects/cpu/heater.lwo
loaded collision model models/mapobjects/cpu/heater2.lwo
loaded collision model models/mapobjects/guiobjects/techdrpanel1/techdrpanel1.lwo
loaded collision model models/mapobjects/rideodeath/rod_mystbox.lwo
loaded collision model models/mapobjects/cpu/boxmonitor1.lwo
loaded collision model models/mapobjects/cpu/cpudesk1a_f.lwo
loaded collision model models/mapobjects/cpu/cpudesk1_f.lwo
loaded collision model models/mapobjects/lights/florescent_bulbflare.ASE
loaded collision model models/mapobjects/lights/florescent_bulb_broken.ase
loaded collision model models/mapobjects/storagecab/gunrack/gunrackcomp.lwo
loaded collision model models/mapobjects/washroom/clamp.ase
loaded collision model models/mapobjects/webs/corner_floor.lwo
loaded collision model models/mapobjects/cpu/pullhandle.lwo
loaded collision model models/mapobjects/utility/tecknob2/tecknob2.lwo
loaded collision model models/mapobjects/doors/airlockdoor/separates/airdoor.lwo
loaded collision model models/mapobjects/doors/airlockdoor/separates/airdoorfrm.lwo
loaded collision model models/mapobjects/doors/airlockdoor/airdoormaster.lwo
loaded collision model models/mapobjects/alphalabs3/vagary/vagary_webs.lwo
loaded collision model models/mapobjects/com/modconsole6.lwo
loaded collision model models/mapobjects/healthgui/healthgui.lwo
loaded collision model models/mapobjects/com/modconsole1.lwo
loaded collision model models/mapobjects/com/modconsole3.lwo
loaded collision model models/mapobjects/rideodeath/welder/welderbox.lwo
loaded collision model models/mapobjects/rideodeath/welder/weldercagecomp.lwo
loaded collision model models/mapobjects/rideodeath/welder/weldermain.lwo
loaded collision model models/mapobjects/rideodeath/welder/welderclaw2.lwo
loaded collision model models/mapobjects/rideodeath/welder/welderclaw1.lwo
loaded collision model models/mapobjects/rideodeath/welder/welderpivot.lwo
loaded collision model models/mapobjects/rideodeath/welder/welderarm.lwo
loaded collision model models/mapobjects/com/modconsole2.lwo
----- idRenderModelManagerLocal::EndLevelLoad -----
    1 models purged from previous level,  1195 models kept.
----- idImageManager::EndLevelLoad -----
WARNING: Couldn't load image: _emptyname
    0 purged from previous
  158 kept from previous
 1761 new loaded
all images loaded in   5.0 seconds
----- idSoundCache::EndLevelLoad -----
17228k referenced
  935k purged
sound: found efxs/alphalabs4.efx
  8327 msec to load game/alphalabs4
idRenderWorld::GenerateAllInteractions, msec = 24, staticAllocCount = 0.
interactionTable size: 7124992 bytes
31610 interaction take 4804720 bytes
----- Warnings -----
during game/alphalabs4...
WARNING: Couldn't load image: _emptyname
WARNING: Couldn't load sound 'guisounds.wav' using default
2 warnings
WARNING: pak000.pk4/script/map_alphalabs4.script(722): Thread 'map_alphalabs4::RideOfDeathPath': teleported 'ride_of_death5_parent' which has the pushing mover 'ride_of_death5' bound to it

loaded collision model models/weapons/shell1/mshell_lo.lwo
loaded collision model models/gibs/head_pork.lwo
loaded collision model models/gibs/torso_pork.lwo
loaded collision model models/gibs/rup_arm_pork.lwo
loaded collision model models/gibs/left_waist_pork.lwo
loaded collision model models/gibs/lup_leg_pork.lwo
loaded collision model models/gibs/rup_leg_pork.lwo
loaded collision model models/gibs/rup2_leg_pork.lwo
loaded collision model models/gibs/pelvis_pork.lwo
loaded collision model models/gibs/skull_pork.lwo
WARNING: pak000.pk4/script/map_alphalabs4.script(722): Thread 'map_alphalabs4::RideOfDeathPath': teleported 'ride_of_death6_parent' which has the pushing mover 'ride_of_death6' bound to it

Wrote screenshots/shot00001.tga
WARNING: pak000.pk4/script/map_alphalabs4.script(722): Thread 'map_alphalabs4::RideOfDeathPath': teleported 'ride_of_death1_parent' which has the pushing mover 'ride_of_death1' bound to it

Wrote screenshots/shot00002.tga
----- Game Map Shutdown -----
WARNING: idClipModel::FreeTraceModel: tried to free uncached trace model
Shutting down sound hardware
idRenderSystem::Shutdown()
Shutting down OpenGL subsystem
----- Game Shutdown -----
----- Game Map Shutdown -----
Shutdown event system
shutdown terminal support

dominalien avatar Mar 28 '20 16:03 dominalien

Just wanted to add that I managed to get through the area just now, saving every 5 seconds and hoping it doesn't crash and right after I get out of the place and get to the corridor where there's the big window to the area where the spider woman comes out the game seems to not crash any more. I was able to kill the boss and exit the level no problem.

dominalien avatar Mar 28 '20 17:03 dominalien

Could you provide the savegame right before the affected area (and maybe a screenshot of the affected area so I run in the right direction)? The savegames should be in /home/domin/.local/share/dhewm3/base/savegames/ and if you put the relevant files in a .zip or .tar.gz archive you should be able to attach them to a comment here in the github issue.

Thanks in advance!

DanielGibson avatar Mar 29 '20 01:03 DanielGibson

Here you go. Just go through the door and onto the floating platform towards here: shot00003.zip

before_stall.zip

dominalien avatar Mar 29 '20 07:03 dominalien

I couldn't really reproduce this, neither on XUbuntu 18.04 with Geforce 970 and drivers 440.64, nor with XUbuntu 20.04 with a Radeon RX580 and the open source drivers.

Your terminal output also looks normal (mine looks very similar), so I have no idea what causes your issues :-/ I don't currently have time to set up a "normal" Ubuntu (instead of XUbuntu), maybe that's the difference between our systems that causes the problems..

Can you try building dhewm3 yourself from source, with the latest source from git? It's done like this:

  1. sudo apt install build-essentials git cmake libsdl2-dev libopenal-dev libjpeg8-dev libvorbis-dev
  2. git clone https://github.com/dhewm/dhewm3.git
  3. cd dhewm3 && mkdir build && cd build
  4. cmake ../neo/
  5. make -j4

Then the dhewm3 executable is in dhewm3/build/ and you can start it with ./dhewm3 in the terminal.
If it can't find the game data, you can tell it where to find it with:
./dhewm3 +set fs_basepath /path/to/doom3data/
(of course you need to change /path/to/doom3data/ accordingly)

DanielGibson avatar Mar 29 '20 22:03 DanielGibson

I compiled the git version, it does the same thing. I also tried on another, even older laptop with Nvidia 8600M, driver 340.107 and Ubuntu 19.10 and it behaves the same. I'll test some more on different hardware.

dominalien avatar Mar 31 '20 13:03 dominalien

Thanks for checking that out!

If it's not too much work, can you test this with different desktop environments (esp. XFCE)?

DanielGibson avatar Mar 31 '20 22:03 DanielGibson

The only thing I can do here, is try to reproduce on win10 with geforce2080ti.. When i have tried a repro ill report back here.

HarrievG avatar Jan 18 '21 11:01 HarrievG

@dominalien: does this still happen with current master code (and possibly updates installed on your system)?

DanielGibson avatar Jun 25 '21 17:06 DanielGibson