TTimo/doom3.gpl — Issue #2: Crash when loading previously saved doom 3 game
Author: tcoppi
Created: 2011-11-23 00:40:53+00:00
State: open

I managed to compile the code and get it to run with the doom 3 data. The game gets to the main menu fine, but when I try to load a previously saved level with a commercial copy of doom 3, it crashes at the loading screen with the following output. I tested with the commercial copy and it loads it fine, so its not some kind of incompatibility with new versions of X or video drivers. Compiled with 4.5.3 on a 64-bit system but the binaries are all 32-bit.

[19:32 thisnukes4u@heavenside] ~/doom3-gpl $ ./doom.x86
DOOM 1.3.1.1304-debug linux-x86 Nov 22 2011 19:04:29
found interface lo - loopback
found interface eth0 - 192.168.0.7/255.255.255.0
found interface eth0 - 192.168.1.4/255.255.255.0
------ Initializing File System ------
Loaded pk4 /home/thisnukes4u/doom3-gpl/base/game00.pk4 with checksum 0x7dafc4d4
Loaded pk4 /home/thisnukes4u/doom3-gpl/base/game01.pk4 with checksum 0x16cf3b8a
Loaded pk4 /home/thisnukes4u/doom3-gpl/base/pak000.pk4 with checksum 0x28d208f1
Loaded pk4 /home/thisnukes4u/doom3-gpl/base/pak001.pk4 with checksum 0x40244be0
Loaded pk4 /home/thisnukes4u/doom3-gpl/base/pak002.pk4 with checksum 0xc51ecdcd
Loaded pk4 /home/thisnukes4u/doom3-gpl/base/pak003.pk4 with checksum 0xcd79d028
Loaded pk4 /home/thisnukes4u/doom3-gpl/base/pak004.pk4 with checksum 0x765e4f8b
Loaded pk4 /home/thisnukes4u/doom3-gpl/base/pak005.pk4 with checksum 0x8ffc3621
Current search path:
/home/thisnukes4u/.doom3/base
/home/thisnukes4u/doom3-gpl/base
/home/thisnukes4u/doom3-gpl/base/pak005.pk4 (63 files)
/home/thisnukes4u/doom3-gpl/base/pak004.pk4 (5137 files)
/home/thisnukes4u/doom3-gpl/base/pak003.pk4 (4676 files)
/home/thisnukes4u/doom3-gpl/base/pak002.pk4 (6120 files)
/home/thisnukes4u/doom3-gpl/base/pak001.pk4 (8972 files)
/home/thisnukes4u/doom3-gpl/base/pak000.pk4 (2698 files)
/home/thisnukes4u/doom3-gpl/base/game01.pk4 (2 files)
/home/thisnukes4u/doom3-gpl/base/game00.pk4 (2 files)
game DLL: 0x0 in pak: 0x0
Addon pk4s:
file system initialized.
--------------------------------------
----- Initializing Decls -----
------------------------------
------- Initializing renderSystem --------
using ARB renderSystem
renderSystem initialized.
--------------------------------------
5151 strings read from strings/english.lang
Couldn't open journal files
execing editor.cfg
execing default.cfg
execing DoomConfig.cfg
couldn't exec autoexec.cfg
5151 strings read from strings/english.lang
----- Initializing Sound System ------
sound system initialized.
--------------------------------------
----- R_InitOpenGL -----
Setup X display connection
dlopen(libGL.so.1)
Initializing OpenGL display
Using XFree86-VidModeExtension Version 2.2
Free86-VidModeExtension Activated at 1600x1200
Using 8/8/8 Color bits, 8 Alpha bits, 24 depth, 8 stencil display.
GL_RENDERER: AMD Radeon HD 6800 Series
idCommon::VPrintf: truncated to 4094 characters
GL_EXTENSIONS: GL_AMDX_debug_output GL_AMDX_vertex_shader_tessellator GL_AMD_conservative_depth GL_AMD_debug_output GL_AMD_depth_clamp_separate GL_AMD_draw_buffers_blend GL_AMD_multi_draw_indirect GL_AMD_name_gen_delete GL_AMD_performance_monitor GL_AMD_pinned_memory GL_AMD_sample_positions GL_AMD_seamless_cubemap_per_texture GL_AMD_shader_stencil_export GL_AMD_shader_trace GL_AMD_texture_cube_map_array GL_AMD_texture_texture4 GL_AMD_transform_feedback3_lines_triangles GL_AMD_vertex_shader_tessellator GL_ARB_ES2_compatibility GL_ARB_blend_func_extended GL_ARB_color_buffer_float GL_ARB_compressed_texture_pixel_storage GL_ARB_copy_buffer GL_ARB_depth_buffer_float GL_ARB_depth_clamp GL_ARB_depth_texture GL_ARB_draw_buffers GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_draw_indirect GL_ARB_draw_instanced GL_ARB_explicit_attrib_location GL_ARB_fragment_coord_conventions GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_framebuffer_object GL_ARB_framebuffer_sRGB GL_ARB_geometry_shader4 GL_ARB_get_program_binary GL_ARB_gpu_shader5 GL_ARB_gpu_shader_fp64 GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_imaging GL_ARB_instanced_arrays GL_ARB_map_buffer_range GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_occlusion_query2 GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_provoking_vertex GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_separate_shader_objects GL_ARB_shader_bit_encoding GL_ARB_shader_objects GL_ARB_shader_precision GL_ARB_shader_stencil_export GL_ARB_shader_subroutine GL_ARB_shader_texture_lod GL_ARB_shading_language_100 GL_ARB_shadow GL_ARB_shadow_ambient GL_ARB_sync GL_ARB_tessellation_shader GL_ARB_texture_border_clamp GL_ARB_texture_buffer_object GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_compression GL_ARB_texture_compression_bptc GL_ARB_texture_compression_rgtc GL_ARB_texture_cube_map GL_ARB_texture_cube_map_array GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_float GL_ARB_texture_gather GL_ARB_texture_mirrored_repeat GL_ARB_texture_multisample GL_ARB_texture_non_power_of_two GL_ARB_texture_query_lod GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_texture_rgb10_a2ui GL_ARB_texture_snorm GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_transpose_matrix GL_ARB_uniform_buffer_object GL_ARB_vertex_array_bgra GL_ARB_vertex_array_object GL_ARB_vertex_attrib_64bit GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_viewport_array GL_ARB_window_pos GL_ATI_draw_buffers GL_ATI_envmap_bumpmap GL_ATI_fragment_shader GL_ATI_meminfo GL_ATI_separate_stencil GL_ATI_texture_compression_3dc GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_ATI_texture_mirror_once GL_EXT_abgr GL_EXT_bgra GL_EXT_bindable_uniform GL_EXT_blend_color GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_copy_buffer GL_EXT_copy_texture GL_EXT_direct_state_access GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_framebuffer_object GL_EXT_framebuffer_sRGB GL_EXT_geometry_shader4 GL_EXT_gpu_program_parameters GL_EXT_gpu_shader4 GL_EXT_histogram GL_EXT_multi_draw_arrays GL_EXT_packed_depth_stencil GL_EXT_packed_float GL_EXT_packed_pixels GL_EXT_pixel_buffer_object GL_EXT_point_parameters GL_EXT_provoking_vertex GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shader_image_load_store GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_EXT_subtexture GL_EXT_texgen_reflection GL_EXT_texture3D GL_EXT_texture_array GL_EXT_texture_buffer_object GL_EXT_texture_compression_bptc GL_EXT_texture_compression_latc GL_EXT_texture_compression_rgtc GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_add GL_EXT_

------- Input Initialization -------
XKB extension: compile time 0x1:0x0, runtime 0x1:0x0: OK
XKB extension present on server ( 0x1:0x0 )
------------------------------------
------ OSS Sound Initialization ------
opened sound device '/dev/dsp'
ioctl SNDCTL_SYSINFO failed: Invalid argument
this ioctl is only available in OSS/Linux implementation. If you run OSS/Free, don't bother./dev/dsp - bit rate: 16, channels: 6, frequency: 44100
allocated a mix buffer of 49152 bytes
WARNING: ioctl SNDCTL_DSP_SETTRIGGER PCM_ENABLE_OUTPUT failed: Broken pipe
--------------------------------------
...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
X..GL_NV_register_combiners not found
X..GL_EXT_stencil_two_side not found
...using GL_ATI_separate_stencil
...using GL_ATI_fragment_shader
...using GL_ARB_vertex_buffer_object
...using GL_ARB_vertex_program
...using GL_ARB_fragment_program
X..EXT_depth_bounds_test not found
---------- R_NV20_Init ----------
Not available.
----------- R200_Init -----------
GL_NUM_FRAGMENT_REGISTERS_ATI: 6
GL_NUM_FRAGMENT_CONSTANTS_ATI: 8
GL_NUM_PASSES_ATI: 2
GL_NUM_INSTRUCTIONS_PER_PASS_ATI: 8
GL_NUM_INSTRUCTIONS_TOTAL_ATI: 16
GL_COLOR_ALPHA_PAIRING_ATI: 1
GL_NUM_LOOPBACK_COMPONENTS_ATI: 3
GL_NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI: 3
FPROG_FAST_PATH
---------------------
---------- R_ARB2_Init ----------
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/R200_interaction.vp
glprogs/nv20_bumpAndLight.vp
glprogs/nv20_diffuseColor.vp
glprogs/nv20_specularColor.vp
glprogs/nv20_diffuseAndSpecularColor.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
--------- Initializing Game ----------
gamename: baseDOOM-1
gamedate: Nov 22 2011
Initializing event system
...473 event definitions
Initializing class hierarchy
...142 classes, 382184 bytes for event callbacks
Initializing scripts
/proc/cpuinfo CPU frequency: 1300 MHz
Compiled 'removeInitialSplineAngles': 2703.5 ms
---------- Compile stats ----------

Memory usage:
Strings: 79, 12592 bytes
Statements: 67783, 1355660 bytes
Functions: 2108, 250452 bytes
Variables: 147320 bytes
Mem used: 2476244 bytes
Static data: 2277552 bytes
Allocated: 3283340 bytes
Thread size: 7068 bytes

...6 aas types
game initialized.
--------------------------------------
-------- Initializing Session --------
session initialized
--------------------------------------
WARNING: Unknown string id #str_07187
WARNING: Unknown string id #str_07190
WARNING: Unknown string id #str_07187
WARNING: Unknown string id #str_07190
WARNING: Unknown string id #str_07212
--- Common Initialization Complete ---
------------- Warnings ---------------
during DOOM 3 initialization...
WARNING: ioctl SNDCTL_DSP_SETTRIGGER PCM_ENABLE_OUTPUT failed: Broken pipe
WARNING: Unknown string id #str_07187
WARNING: Unknown string id #str_07190
WARNING: Unknown string id #str_07212
4 warnings
terminal support enabled ( use +set in_tty 0 to disabled )
pid: 32703
8000 MB System Memory
256 MB Video Memory
Async thread started
--------- 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/alphalabs1
glprogs/heatHaze.vfp
glprogs/heatHaze.vfp
------- Game Map Init SaveGame -------
collision data:
536 models
62024 vertices (1453 KB)
113012 edges (3973 KB)
47941 polygons (3356 KB)
6737 brushes (917 KB)
18258 nodes (499 KB)
91312 polygon refs (713 KB)
23763 brush refs (185 KB)
38296 internal edges
3493 sharp edges
0 contained polygons removed
0 polygons merged
11098 KB total memory used
1000 msec to load collision data.
map bounds are (4552.0, 5184.0, 1680.0)
max clip sector is (284.5, 162.0, 210.0)
5 KB passage memory used to build PVS
6 msec to calculate PVS
73 areas
166 portals
10 areas visible on average
876 bytes PVS data
[Load AAS]
loading maps/game/alphalabs1.aas48
done.
[Load AAS]
loading maps/game/alphalabs1.aas96
[Load AAS]
loading maps/game/alphalabs1.aas_guardian
[Load AAS]
loading maps/game/alphalabs1.aas_mancubus
[Load AAS]
loading maps/game/alphalabs1.aas_sabaoth
[Load AAS]
loading maps/game/alphalabs1.aas_cyberdemon
glprogs/heatHazeWithMaskAndVertex.vfp
glprogs/heatHazeWithMaskAndVertex.vfp
glprogs/heatHazeWithMask.vfp
glprogs/heatHazeWithMask.vfp
glprogs/colorProcess.vfp
glprogs/colorProcess.vfp
removed 2 degenerate triangles
WARNING: Couldn't load gui: 'func_static_95'
WARNING: Couldn't load gui: 'func_static_1317'
WARNING: Couldn't load gui: 'func_static_95'
WARNING: Couldn't load sound 'guisounds.wav' using default
WARNING: Non-portable: path contains uppercase characters: base/sound/VO/video
WARNING: Non-portable: path contains uppercase characters: base/sound/VO/video
WARNING: Non-portable: path contains uppercase characters: base/sound/VO/video
WARNING: Non-portable: path contains uppercase characters: base/sound/VO/video
loaded collision model models/mapobjects/elevators/elevator_door.lwo
loaded collision model models/mapobjects/doors/delelev/delelevlf.lwo
loaded collision model models/mapobjects/doors/delelev/delelevrt.lwo
loaded collision model models/mapobjects/lab/destab/epdbell.lwo
loaded collision model models/mapobjects/lab/mfscomp/mfscompcell.lwo
loaded collision model models/mapobjects/lights/florescent_bulbflare.ASE
loaded collision model models/mapobjects/utility/tecknob1/tecknob1.lwo
loaded collision model models/mapobjects/cpu/boxmonitor1.lwo
loaded collision model models/mapobjects/guiobjects/recconpanel1/recconpanel1.lwo
loaded collision model models/mapobjects/com/modconsole1.lwo
loaded collision model models/mapobjects/utility/inhaler/inhaler.lwo
loaded collision model models/mapobjects/utility/binplug/binplug_c.lwo
loaded collision model models/mapobjects/doors/techdoor2/techdr2frame.lwo
loaded collision model models/mapobjects/doors/techdoor1/techdr1frame.lwo
loaded collision model models/mapobjects/lab/destab/shaftcap.lwo
loaded collision model models/mapobjects/skmachines/skceilingdisc.lwo
loaded collision model models/mapobjects/utility/trihatch/trihatch.lwo
loaded collision model models/mapobjects/lab/destab/destabase.lwo
loaded collision model models/mapobjects/lab/destab/destabmain.lwo
loaded collision model models/mapobjects/lab/destab/destabarrel.lwo
loaded collision model models/mapobjects/doors/techdoor2/techdr2lft.lwo
loaded collision model models/mapobjects/doors/techdoor2/techdr2rt.lwo
loaded collision model models/mapobjects/doors/techdoor1/techdr1rt.lwo
loaded collision model models/mapobjects/doors/techdoor1/techdr1lft.lwo
loaded collision model models/mapobjects/utility/tecknob2/tecknob2.lwo
loaded collision model models/mapobjects/utility/vent/vent.lwo
loaded collision model models/mapobjects/skmachines/skcube.lwo
loaded collision model models/mapobjects/skmachines/skpipeblock.lwo
loaded collision model models/mapobjects/cpu/comrack.lwo
loaded collision model models/mapobjects/lab/hydrocon/hydrocon.lwo
loaded collision model models/mapobjects/lab/hydrocon/hydroconring.lwo
loaded collision model models/mapobjects/cpu/pullhandle.lwo
loaded collision model models/mapobjects/monitors/hangingmonitor.lwo
loaded collision model models/mapobjects/elevators/elevator.lwo
loaded collision model models/mapobjects/guiobjects/techdrpanel1/techdrpanel1.lwo
loaded collision model models/mapobjects/cpu/heater.lwo
loaded collision model models/mapobjects/doors/jumbodoor/jumbodoortop.lwo
loaded collision model models/mapobjects/doors/jumbodoor/jumbodoorside1.lwo
loaded collision model models/mapobjects/doors/jumbodoor/jumbodoorside2.lwo
loaded collision model models/mapobjects/doors/jumbodoor/jumbodoorbottom.lwo
loaded collision model models/mapobjects/doors/jumbodoor/jumbodoorfrm.lwo
loaded collision model models/mapobjects/chairs/modchair/modtable.lwo
loaded collision model models/mapobjects/chairs/modchair/modseat.lwo
loaded collision model models/mapobjects/chairs/modchair/modarm.lwo
loaded collision model models/mapobjects/com/modconsole5.lwo
loaded collision model models/mapobjects/cpu/heater2.lwo
loaded collision model models/mapobjects/cpu/cpudesk1.lwo
loaded collision model models/mapobjects/com/modconsole3.lwo
loaded collision model models/mapobjects/lab/hydrocon/hydroconplug.lwo
loaded collision model models/mapobjects/cpu/cpudesk1a_f.lwo
loaded collision model models/mapobjects/lights/klaxon/klaxon.lwo
loaded collision model models/mapobjects/healthgui/healthgui.lwo
loaded collision model models/mapobjects/shelf/shelf.lwo
loaded collision model models/mapobjects/storagecab/gunrack/gunrackcomp.lwo
loaded collision model models/mapobjects/lights/cagelight/cagelight.lwo
loaded collision model models/mapobjects/cpu/cpudesk1_f.lwo
loaded collision model models/mapobjects/lights/florescent_bulb_broken.ASE
loaded collision model models/mapobjects/hell/maggotroom/worm.lwo
loaded collision model models/mapobjects/filler/mkeyboard.lwo
loaded collision model models/mapobjects/pipes/alphaburst/alphaburst2.lwo
loaded collision model models/mapobjects/pipes/alphaburst/alphaburst1.lwo
loaded collision model models/mapobjects/filler/toolchest.lwo
loaded collision model models/mapobjects/com/modconsole2.lwo
TODO: Sys_SetClipboardData
--------- Game Map Shutdown ----------
signal caught: Segmentation fault
si_code 1
double fault Segmentation fault, bailing out
shutdown terminal support
Trying to exit gracefully..
shutdown terminal support
TODO: Sys_SetClipboardData
--------- Game Map Shutdown ----------
zsh: segmentation fault ./doom.x86