View Issue Details

IDProjectCategoryView StatusLast Update
0002801FSSCPgameplaypublic2013-05-21 23:48
ReporterJudikator Assigned Toniffiwan  
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Platformx64OSWindowsOS VersionWindows 7 SP2
Product Version3.6.16 
Summary0002801: Crash in Singelplayer Mode on Mission 5
DescriptionTrying to load Mission 5 results in client crash. Worked in Version 3.6.14
Steps To ReproduceStart New Campaign, go to Mission 5
Additional InformationDebug monitor tells me that "ravens.pcx extension passed while loading"
TagsNo tags attached.

Activities

Goober5000

2013-02-28 04:17

administrator   ~0014742

If this were really a severe crash, I think more people would have noticed it.

What are the symptoms of the crash? Is that debug message about ravens.pcx the only message you see, or is there more? Also, what happens if you run the mission on a release build?

Judikator

2013-02-28 17:28

reporter  

fs2_open.log (16,609 bytes)

Judikator

2013-02-28 17:39

reporter   ~0014743

Hi, thx for your response. I just added the fs2_open.log to the report for some help. Well there are no special symptoms it just crashed at the moment when i continue the campaign. I got the Version 3.6.16.9518 but with 3.6.14.9276 it worked. Any ideas for solutions?

Goober5000

2013-03-01 02:45

administrator   ~0014744

Thanks for the log, but you didn't answer two of my questions:

Is that debug message about ravens.pcx the only message you see, or is there more?

Also, what happens if you run the mission on a release build?

Judikator

2013-03-01 17:35

reporter   ~0014745

Last edited: 2013-03-02 10:14

Hi

The last message in the debug log is exactly the same in debug console. There are no other messages from the debug monitor because the whole application crash. Killing the process is the only way to return to the launcher.

What indicates a release build? I get this one from here http://www.hard-light.net/forums/index.php?topic=83577.0

Where i can download other builds to test them?
Edit: I just found the nightly build section but unfortunately there is a huge gap between 2011 and 2012. My intention was to test some of the nightly builds to see if the error occurs. It occurs in all .15 Versions since October 27. 2012

Sry, i have some problems with the usability of this site. Its hard to overview because there are so many technical topics

Goober5000

2013-03-02 19:48

administrator   ~0014746

I just tested the mission using your command line and didn't encounter a crash. So I think you are just mistaking the debug window for a program crash, which is not the case. Just click through and it will keep going.

I said to use a release build because it is only debug builds that check for these problems. Release builds will not have "_d" or "_debug" in their name.

You can try the latest release, 3.6.18, in this thread:
http://www.hard-light.net/forums/index.php?topic=83889.0

Judikator

2013-03-03 12:40

reporter   ~0014747

Damn, thats frustrating :(

I tested out many cases with disabling features, unbound Media_VP's mod, etc, every time it crashes even the normal freespace 2 crashes too. I reinstalled FS2 but the problem is still there. I captured the Windows Crash Log one with debug build one with the release build. Hope this helps. I try to install Windows updates and reinstall drivers

Hera are my PC Specs:
Core2Quad Q9450 2666Mhz
4 GB DDR2 RAM
Gigabyte GA-X48-DQ6 Rev. 2.0
Nvidia GTX 580 3GB VRAM
Nvidia GT 520 (Dedicated PhysX)
Windows 7 Ultimate x64 SP2


Windows Crash Log (RELEASE_BUILD)

Problemereignisname: APPCRASH
  Anwendungsname: fs2_open_3_6_18.exe
  Anwendungsversion: 3.6.18.9546
  Anwendungszeitstempel: 5130183a
  Fehlermodulname: StackHash_2f02
  Fehlermodulversion: 0.0.0.0
  Fehlermodulzeitstempel: 00000000
  Ausnahmecode: c0000005
  Ausnahmeoffset: 73704520
  Betriebsystemversion: 6.1.7600.2.0.0.256.1
  Gebietsschema-ID: 1031
  Zusatzinformation 1: 2f02
  Zusatzinformation 2: 2f022d41ad33c0f865c627aa743600ee
  Zusatzinformation 3: be22
  Zusatzinformation 4: be22d36be1d05e4a1275853b8f5f5d2a


Windows Crash Log (DEBUG_Build)

Problemsignatur:
  Problemereignisname: BEX
  Anwendungsname: fs2_open_3_6_18_DEBUG.exe
  Anwendungsversion: 3.6.18.9546
  Anwendungszeitstempel: 51301905
  Fehlermodulname: StackHash_e98d
  Fehlermodulversion: 0.0.0.0
  Fehlermodulzeitstempel: 00000000
  Ausnahmeoffset: 6e656d6f
  Ausnahmecode: c0000005
  Ausnahmedaten: 00000008
  Betriebsystemversion: 6.1.7600.2.0.0.256.1
  Gebietsschema-ID: 1031
  Zusatzinformation 1: e98d
  Zusatzinformation 2: e98dfca8bcf81bc1740adb135579ad53
  Zusatzinformation 3: 6eab
  Zusatzinformation 4: 6eabdd9e0dc94904be3b39a1c0583635

Goober5000

2013-03-03 19:22

administrator   ~0014748

Try running FreeSpace with no mods and no command-line options. Then launch your mission and post the mission log.

Also, post the file name or title of the mission. "Mission 5" could have multiple interpretations.

Judikator

2013-03-04 18:21

reporter   ~0014750

Okey here is what i get

......the same error :(

but i figured out it happens on a few missions. I discovered "SM1-05.fs2" and "loop1-1.fs2" for now, i hadn't time to test the other missions yet but i think there are more which cause the error above. I played these Missions with Version 3.6.14 without any errors. What i understand from the crash log above the application is trying to point a module that doesnt exist (anymore) and the result is a StachHash error. I dont know much about programming but i guess there was a big change in the basic functionality of the application from 3.6.14 to 3.6.15.

Echelon9

2013-03-15 13:42

developer   ~0014766

StackHash isn't a module that is missing, it's a symptom of a general class of memory crashes where location isn't logical or known.

http://social.msdn.microsoft.com/Forums/en-US/isv/thread/cc5ff3a6-c6d6-4965-a776-8e72875f162f/

kugelfaenger

2013-04-03 21:32

reporter   ~0014880

Hi!

I have the same crash as mentionend above on mission "SM1-05.fs2" with 3.6.18. The same problem appears in version 3.6.16. 3.6.14 causes NO problems and the mission is loading without failures. (Perhaps the use of .14 could be a instentaneos solution for people which want to play the campaign immediately.)

Could it be that there is a problem with a ship-model? If i start FRED in .18 and .16 in DEBUG-mode, I get this error-message: "For ship 'GTF Ulysses', detail level mismatch. Table has 4, POF has 3. ..."

I would paste the whole message here but I couldnt find the "clipboard". Perhaps this bug-message is a new case.

Yarn

2013-04-04 01:04

developer   ~0014881

Kugelfaenger, are you running the German version by any chance? I suspect that the file name for the 107th Ravens squad logo might be something other than "ravens.pcx" in that version, and recent versions of FSO could be crashing when trying to load a nonexistent logo (although I haven't yet tested whether this really can cause a crash).

If you are running the German version (or any non-English version), could you open your root.vp file (preferably with VPView) and check whether a file named "ravens.pcx" exists in the "squads" folder? If not, is it named differently?

For your reference, here is what the 107th Ravens logo looks like:
http://www.hard-light.net/wiki/index.php/File:Squad107.PNG

Mr_Maniac

2013-04-04 15:30

reporter  

mr_maniac.fs2_open.log (18,092 bytes)   
==========================================================================
DEBUG SPEW: No debug_filter.cfg found, so only general, error, and warning
categories can be shown and no debug_filter.cfg info will be saved.
==========================================================================
FreeSpace 2 Open version: 3.6.19
Passed cmdline options:
  -spec_exp 15
  -ogl_spec 20
  -spec_static 1.5
  -spec_point 1.2
  -spec_tube 1.5
  -ambient_factor 35
  -missile_lighting
  -no_emissive_light
  -3dshockwave
  -soft_particles
  -post_process
  -fxaa
  -fb_explosions
  -ballistic_gauge
  -dualscanlines
  -orbradar
  -rearm_timer
  -3dwarp
  -ship_choice_3d
  -weapon_choice_3d
  -warp_flash
  -mod mediavps_3612
  -fps
Building file index...
Found root pack 'D:\Freespace2\mediavps_3612\MV_Advanced.vp' with a checksum of 0x4b8b0f5a
Found root pack 'D:\Freespace2\mediavps_3612\MV_AnimGlows.vp' with a checksum of 0x6a554026
Found root pack 'D:\Freespace2\mediavps_3612\MV_Assets.vp' with a checksum of 0x529cc70f
Found root pack 'D:\Freespace2\mediavps_3612\MV_Effects.vp' with a checksum of 0xb9a9a485
Found root pack 'D:\Freespace2\mediavps_3612\MV_Music.vp' with a checksum of 0xb3e21469
Found root pack 'D:\Freespace2\mediavps_3612\MV_RadarIcons.vp' with a checksum of 0x31dd7781
Found root pack 'D:\Freespace2\mediavps_3612\MV_Root.vp' with a checksum of 0x6ffd5c78
Found root pack 'D:\Freespace2\root_fs2.vp' with a checksum of 0x3f08ae08
Found root pack 'D:\Freespace2\smarty_fs2.vp' with a checksum of 0x0098ee1f
Found root pack 'D:\Freespace2\sparky_fs2.vp' with a checksum of 0x749032a2
Found root pack 'D:\Freespace2\sparky_hi_fs2.vp' with a checksum of 0x566add58
Found root pack 'D:\Freespace2\stu_fs2.vp' with a checksum of 0xf2983309
Found root pack 'D:\Freespace2\tango1_fs2.vp' with a checksum of 0xd4e3ad49
Found root pack 'D:\Freespace2\tango2_fs2.vp' with a checksum of 0x799e46a1
Found root pack 'D:\Freespace2\tango3_fs2.vp' with a checksum of 0x825f5ee0
Found root pack 'D:\Freespace2\warble_fs2.vp' with a checksum of 0xa7037300
Searching root 'D:\Freespace2\mediavps_3612\' ... 128 files
Searching root pack 'D:\Freespace2\mediavps_3612\MV_Advanced.vp' ... 1283 files
Searching root pack 'D:\Freespace2\mediavps_3612\MV_AnimGlows.vp' ... 1641 files
Searching root pack 'D:\Freespace2\mediavps_3612\MV_Assets.vp' ... 1527 files
Searching root pack 'D:\Freespace2\mediavps_3612\MV_Effects.vp' ... 1876 files
Searching root pack 'D:\Freespace2\mediavps_3612\MV_Music.vp' ... 32 files
Searching root pack 'D:\Freespace2\mediavps_3612\MV_RadarIcons.vp' ... 24 files
Searching root pack 'D:\Freespace2\mediavps_3612\MV_Root.vp' ... 94 files
Searching root 'D:\Freespace2\' ... 47 files
Searching root pack 'D:\Freespace2\root_fs2.vp' ... 157 files
Searching root pack 'D:\Freespace2\smarty_fs2.vp' ... 10 files
Searching root pack 'D:\Freespace2\sparky_fs2.vp' ... 3027 files
Searching root pack 'D:\Freespace2\sparky_hi_fs2.vp' ... 1337 files
Searching root pack 'D:\Freespace2\stu_fs2.vp' ... 1777 files
Searching root pack 'D:\Freespace2\tango1_fs2.vp' ... 32 files
Searching root pack 'D:\Freespace2\tango2_fs2.vp' ... 15 files
Searching root pack 'D:\Freespace2\tango3_fs2.vp' ... 10 files
Searching root pack 'D:\Freespace2\warble_fs2.vp' ... 52 files
Found 18 roots and 13069 files.
AutoLang: Language auto-detection successful...
Setting language to German
TBM  =>  Starting parse of 'mv_core-lcl.tbm' ...
Initializing OpenAL...
  OpenAL Vendor     : Creative Labs Inc.
  OpenAL Renderer   : SB X-Fi Audio [EC00]
  OpenAL Version    : OpenAL version 1.1

  Found extension "ALC_EXT_EFX".

  Sample rate: 48000 (48000)
  EFX enabled: NO
  Playback device: SB X-Fi Audio [EC00]
  Capture device: Mikrofon (Realtek High Definiti
... OpenAL successfully initialized!
Failed to init speech
Initializing OpenGL graphics device at 1920x1080 with 32-bit color...
  Initializing WGL...
  Requested WGL Video values = R: 8, G: 8, B: 8, depth: 24, stencil: 8, double-buffer: 1
  Actual WGL Video values    = R: 8, G: 8, B: 8, depth: 24, stencil: 8, double-buffer: 1
  OpenGL Vendor    : NVIDIA Corporation
  OpenGL Renderer  : GeForce GTX 660 Ti/PCIe/SSE2
  OpenGL Version   : 4.3.0

  Using extension "GL_EXT_fog_coord".
  Using extension "GL_ARB_multitexture".
  Using extension "GL_ARB_texture_env_add".
  Using extension "GL_ARB_texture_compression".
  Using extension "GL_EXT_texture_compression_s3tc".
  Using extension "GL_EXT_texture_filter_anisotropic".
  Using extension "GL_ARB_texture_env_combine".
  Using extension "GL_EXT_compiled_vertex_array".
  Using extension "GL_EXT_draw_range_elements".
  Using extension "GL_ARB_texture_mirrored_repeat".
  Using extension "GL_ARB_texture_non_power_of_two".
  Using extension "GL_ARB_vertex_buffer_object".
  Using extension "GL_ARB_pixel_buffer_object".
  Using extension "GL_SGIS_generate_mipmap".
  Using extension "GL_EXT_framebuffer_object".
  Using extension "GL_ARB_texture_rectangle".
  Using extension "GL_EXT_bgra".
  Using extension "GL_ARB_texture_cube_map".
  Using extension "GL_EXT_texture_lod_bias".
  Using extension "GL_ARB_point_sprite".
  Using extension "GL_ARB_shading_language_100".
  Using extension "GL_ARB_shader_objects".
  Using extension "GL_ARB_vertex_shader".
  Using extension "GL_ARB_fragment_shader".
  Using extension "GL_ARB_shader_texture_lod".
  Using extension "GL_ARB_texture_float".
  Using extension "GL_ARB_draw_elements_base_vertex".
  Found special extension function "wglSwapIntervalEXT".

Compiling new shader:
   Loading built-in default shader for: soft-v.sdr
   Loading built-in default shader for: soft-f.sdr
Shader features:
   Depth-blended Particles
Compiling new shader:
   Loading built-in default shader for: soft-v.sdr
   Loading built-in default shader for: soft-f.sdr
Shader features:
   Distorted Particles

  Compiling post-processing shader 1 ... 
   Loading built-in default shader for: post-v.sdr
   Loading built-in default shader for: post-f.sdr
  Compiling post-processing shader 2 ... 
   Loading built-in default shader for: post-v.sdr
   Loading built-in default shader for: blur-f.sdr
  Compiling post-processing shader 3 ... 
   Loading built-in default shader for: post-v.sdr
   Loading built-in default shader for: blur-f.sdr
  Compiling post-processing shader 4 ... 
   Loading built-in default shader for: post-v.sdr
   Loading built-in default shader for: brightpass-f.sdr
  Compiling post-processing shader 5 ... 
   Loading built-in default shader for: fxaa-v.sdr
   Loading built-in default shader for: fxaa-f.sdr
  Compiling post-processing shader 6 ... 
   Loading built-in default shader for: post-v.sdr
   Loading built-in default shader for: fxaapre-f.sdr
  Compiling post-processing shader 7 ... 
   Loading built-in default shader for: post-v.sdr
   Loading built-in default shader for: ls-f.sdr

  Max texture units: 4 (32)
  Max elements vertices: 1048576
  Max elements indices: 1048576
  Max texture size: 16384x16384
  Max render buffer size: 16384x16384
  Can use compressed textures: YES
  Texture compression available: YES
  Post-processing enabled: YES
  Using trilinear texture filter.
  OpenGL Shader Version: 4.30 NVIDIA via Cg compiler
... OpenGL init is complete!
Size of bitmap info = 742 KB
Size of bitmap extra info = 48 bytes
ANI cursorweb with size 24x24 (25.0% wasted)
GRAPHICS: Initializing default colors...
Game Settings Table: Using Standard Loops For SEXP Arguments
Game Settings Table: Using standard event chaining behavior
Game Settings Table: External shaders are DISABLED
SCRIPTING: Beginning initialization sequence...
SCRIPTING: Beginning Lua initialization...
LUA: Opening LUA state...
LUA: Initializing base Lua libraries...
LUA: Beginning ADE initialization
ADE: Initializing enumeration constants...
ADE: Assigning Lua session...
SCRIPTING: Beginning main hook parse sequence....
Wokka!  Error opening file (scripting.tbl)!
TABLES: Unable to parse 'scripting.tbl'!  Error code = 5.
TBM  =>  Starting parse of 'mv_flak-sct.tbm' ...
TBM  =>  Starting parse of 'mv_exp-sct.tbm' ...
TBM  =>  Starting parse of 'mv_dbrs-sct.tbm' ...
SCRIPTING: Inititialization complete.
SCRIPTING: Splash screen overrides checked
SCRIPTING: Splash hook has been run
SCRIPTING: Splash screen conditional hook has been run
Using high memory settings...
Wokka!  Error opening file (interface.tbl)!
WMCGUI: Unable to parse 'interface.tbl'!  Error code = 5.
TBM  =>  Starting parse of 'mv_effects-sdf.tbm' ...
Dutifully ignoring the extra sound values for retail sound 36, 'l_hit.wav'...
Dutifully ignoring the extra sound values for retail sound 37, 'm_hit.wav'...
Windows reported 16 joysticks, we found 1
Current soundtrack set to -1 in event_music_reset_choices
TBM  =>  Starting parse of 'mv_music-mus.tbm' ...
TABLES => Unable to find 'colors.tbl'. Initialising colors with default values.
TBM  =>  Starting parse of 'mv_effects-mfl.tbm' ...
Wokka!  Error opening file (armor.tbl)!
TABLES: Unable to parse 'armor.tbl'!  Error code = 5.
TBM  =>  Starting parse of 'mv_effects-amr.tbm' ...
TBM  =>  Starting parse of 'mv_effects-wxp.tbm' ...
BMPMAN: Found EFF (exp20.eff) with 75 frames at 20 fps.
BMPMAN: Found EFF (ExpMissileHit1.eff) with 92 frames at 20 fps.
BMPMAN: Found EFF (exp04.eff) with 49 frames at 22 fps.
BMPMAN: Found EFF (exp05.eff) with 93 frames at 20 fps.
BMPMAN: Found EFF (exp06.eff) with 92 frames at 22 fps.
BMPMAN: Found EFF (capflash.eff) with 40 frames at 10 fps.
BMPMAN: Found EFF (Maxim_Impact.eff) with 23 frames at 30 fps.
ANI Lamprey_Impact with size 80x80 (37.5% wasted)
TBM  =>  Starting parse of 'mv_core-wep.tbm' ...
TBM  =>  Starting parse of 'mv_effects-wep.tbm' ...
TBM  =>  Starting parse of 'mv_assets-wep.tbm' ...
TBM  =>  Starting parse of 'mv_effects-obt.tbm' ...
TBM  =>  Starting parse of 'mv_core-shp.tbm' ...
TBM  =>  Starting parse of 'radar-shp.tbm' ...
TBM  =>  Starting parse of 'mv_effects-shp.tbm' ...
TBM  =>  Starting parse of 'mv_assets-shp.tbm' ...
TBM  =>  Starting parse of 'mv_core-hdg.tbm' ...
ANI support1 with size 108x24 (25.0% wasted)
ANI damage1 with size 148x25 (21.9% wasted)
ANI wingman1 with size 71x53 (17.2% wasted)
ANI wingman2 with size 35x53 (17.2% wasted)
ANI wingman3 with size 14x53 (17.2% wasted)
ANI toggle1 with size 57x20 (37.5% wasted)
ANI head1 with size 164x132 (48.4% wasted)
ANI weapons1 with size 126x20 (37.5% wasted)
ANI weapons1_b with size 150x20 (37.5% wasted)
ANI objective1 with size 149x21 (34.4% wasted)
ANI netlag1 with size 29x30 (6.3% wasted)
ANI targhit1 with size 31x21 (34.4% wasted)
ANI time1 with size 47x23 (28.1% wasted)
ANI targetview1 with size 137x156 (39.1% wasted)
ANI targetview2 with size 4x96 (25.0% wasted)
ANI targetview3 with size 7x20 (37.5% wasted)
ANI 2_energy2 with size 86x96 (25.0% wasted)
ANI 2_reticle1 with size 40x24 (25.0% wasted)
ANI 2_leftarc with size 103x252 (1.6% wasted)
ANI 2_rightarc1 with size 103x252 (1.6% wasted)
ANI 2_toparc2 with size 35x24 (25.0% wasted)
ANI 2_toparc3 with size 41x29 (9.4% wasted)
ANI 2_lead1 with size 26x26 (18.8% wasted)
ANI 2_lock1 with size 56x53 (17.2% wasted)
ANI 2_lockspin with size 100x100 (21.9% wasted)
ANI energy1 with size 12x41 (35.9% wasted)
ANI 2_radar1 with size 209x170 (33.6% wasted)
TBM  =>  Starting parse of 'mv_effects-str.tbm' ...
loading animated cursor "cursor"
ANI cursor with size 24x24 (25.0% wasted)
MediaVPs: Explosions script loaded!
MediaVPs: Flaming debris script loaded!
Ships.tbl is : VALID
Weapons.tbl is : VALID
cfile_init() took 257
Compiling video-processing shader ... 
   Loading built-in default shader for: video-v.sdr
   Loading built-in default shader for: video-f.sdr
Got event GS_EVENT_GAME_INIT (49) in state NOT A VALID STATE (0)
PLR => Loading 'MrManiac.plr' with version 1...
PLR => Parsing:  Flags...
PLR => Parsing:  Info...
PLR => Parsing:  Scoring...
PLR => Parsing:  ScoringMulti...
PLR => Parsing:  HUD...
PLR => Parsing:  Variables...
PLR => Parsing:  Multiplayer...
PLR => Parsing:  Controls...
PLR => Parsing:  Settings...
Someone passed an extension to bm_load for file 'hammer1.pcx'
PLR => Loading complete!
PLR => Verifying 'MrManiac.plr' with version 1...
PLR => Parsing:  Flags...
PLR => Verifying complete!
ANI cursor.ani with size 24x24 (25.0% wasted)
Got event GS_EVENT_MAIN_MENU (0) in state GS_STATE_INITIAL_PLAYER_SELECT (37)
PLR => Loading 'MrManiac.plr' with version 1...
PLR => Parsing:  Flags...
PLR => Parsing:  Info...
PLR => Parsing:  Scoring...
PLR => Parsing:  ScoringMulti...
PLR => Parsing:  HUD...
PLR => Parsing:  Variables...
PLR => Parsing:  Multiplayer...
PLR => Parsing:  Controls...
PLR => Parsing:  Settings...
Someone passed an extension to bm_load for file 'hammer1.pcx'
PLR => Loading complete!
CSG => Loading 'MrManiac.FreeSpace2.csg' with version 1...
CSG => Parsing:  Flags...
CSG => Parsing:  Info...
CSG => Parsing:  Missions...
CSG => Parsing:  Techroom...
CSG => Parsing:  Loadout...
CSG => Parsing:  Scoring...
CSG => Parsing:  RedAlert...
CSG => Parsing:  HUD...
CSG => Parsing:  Variables...
CSG => Parsing:  Settings...
CSG => Parsing:  Controls...
CSG => Parsing:  Cutscenes...
CSG => Parsing:  Last Missions...
CSG => Loading complete!
CSG => Loading 'MrManiac.FreeSpace2.csg' with version 1...
CSG => Parsing:  Flags...
CSG => Parsing:  Info...
CSG => Parsing:  Missions...
CSG => Parsing:  Techroom...
CSG => Parsing:  Loadout...
CSG => Parsing:  Scoring...
CSG => Parsing:  RedAlert...
CSG => Parsing:  HUD...
CSG => Parsing:  Variables...
CSG => Parsing:  Settings...
CSG => Parsing:  Controls...
CSG => Parsing:  Cutscenes...
CSG => Parsing:  Last Missions...
CSG => Loading complete!
ANI 2_mainwalk.ani with size 209x477 (6.8% wasted)
ANI 2_mainflyby.ani with size 509x189 (26.2% wasted)
ANI 2_maincrane.ani with size 192x116 (9.4% wasted)
ANI 2_mainexit.ani with size 319x174 (32.0% wasted)
ANI 2_mainbarracks.ani with size 273x158 (38.3% wasted)
ANI 2_mainreadyroom.ani with size 231x145 (43.4% wasted)
ANI 2_maintechroom.ani with size 69x119 (7.0% wasted)
ANI 2_mainoptions.ani with size 337x206 (19.5% wasted)
ANI 2_maincampaign.ani with size 308x190 (25.8% wasted)
Got event GS_EVENT_NEW_CAMPAIGN (26) in state GS_STATE_MAIN_MENU (1)
CSG => Loading 'MrManiac.FreeSpace2.csg' with version 1...
CSG => Parsing:  Flags...
CSG => Parsing:  Info...
CSG => Parsing:  Missions...
CSG => Parsing:  Techroom...
CSG => Parsing:  Loadout...
CSG => Parsing:  Scoring...
CSG => Parsing:  RedAlert...
CSG => Parsing:  HUD...
CSG => Parsing:  Variables...
CSG => Parsing:  Settings...
CSG => Parsing:  Controls...
CSG => Parsing:  Cutscenes...
CSG => Parsing:  Last Missions...
CSG => Loading complete!
Got event GS_EVENT_START_GAME (1) in state GS_STATE_MAIN_MENU (1)
=================== STARTING LEVEL LOAD ==================
Reassigning player to squadron 107th Ravens
Someone passed an extension to bm_load for file 'ravens.pcx'
ANI 2_Loading with size 824x43 (32.8% wasted)
ANI 2_Loading.ani with size 824x43 (32.8% wasted)
Starting model page in...
Beginning level bitmap paging...
BMPMAN: Found EFF (particleexp01.eff) with 10 frames at 8 fps.
BMPMAN: Found EFF (particlesmoke01.eff) with 54 frames at 15 fps.
BMPMAN: Found EFF (particlesmoke02.eff) with 39 frames at 24 fps.
TBM  =>  Starting parse of 'mv_effects-fbl.tbm' ...
BMPMAN: Found EFF (WarpMap01.eff) with 30 frames at 30 fps.
BMPMAN: Found EFF (WarpMap02.eff) with 30 frames at 30 fps.
BMPMAN: Found EFF (Rock_Exp.eff) with 55 frames at 30 fps.
Loading warp model
Loading model 'warp.pof'
Compiling new shader:
   Loading built-in default shader for: main-v.sdr
   Loading built-in default shader for: main-f.sdr
Shader features:
   Lighting
Compiling new shader:
   Loading built-in default shader for: main-v.sdr
   Loading built-in default shader for: main-f.sdr
Shader features:
   Lighting
   Fog Effect
Compiling new shader:
   Loading built-in default shader for: main-v.sdr
   Loading built-in default shader for: main-f.sdr
Shader features:
   Lighting
   Animated Effects
Compiling new shader:
   Loading built-in default shader for: main-v.sdr
   Loading built-in default shader for: main-f.sdr
Shader features:
   Lighting
   Fog Effect
   Animated Effects
IBX: Found a good IBX to read for 'warp.pof'.
IBX-DEBUG => POF checksum: 0xbf802ad0, IBX checksum: 0xe7aa5a55 -- "warp.pof"
 300
BMPMAN: Found EFF (shieldhit01a.eff) with 23 frames at 21 fps.
BMPMAN: Found EFF (shieldhit02a.eff) with 45 frames at 30 fps.
BMPMAN: Found EFF (shieldhit03a.eff) with 22 frames at 30 fps.
SHOCKWAVE =>  Loading default shockwave model... 
Loading model 'shockwave.pof'
BMPMAN: Found EFF (shockwave3d-glow.eff) with 159 frames at 24 fps.
Compiling new shader:
   Loading built-in default shader for: main-v.sdr
   Loading built-in default shader for: main-f.sdr
Shader features:
   Lighting
   Diffuse Mapping
   Glow Mapping
Compiling new shader:
   Loading built-in default shader for: main-v.sdr
   Loading built-in default shader for: main-f.sdr
Shader features:
   Lighting
   Fog Effect
   Diffuse Mapping
   Glow Mapping
Compiling new shader:
   Loading built-in default shader for: main-v.sdr
   Loading built-in default shader for: main-f.sdr
Shader features:
   Lighting
   Diffuse Mapping
   Glow Mapping
   Animated Effects
Compiling new shader:
   Loading built-in default shader for: main-v.sdr
   Loading built-in default shader for: main-f.sdr
Shader features:
   Lighting
   Fog Effect
   Diffuse Mapping
   Glow Mapping
   Animated Effects
Model shockwave.pof has a null moment of inertia!  (This is only a problem if the model is a ship.)
IBX: Found a good IBX to read for 'shockwave.pof'.
IBX-DEBUG => POF checksum: 0xa85bec39, IBX checksum: 0x9af155c2 -- "shockwave.pof"
SHOCKWAVE =>  Default model load: SUCCEEDED!!
SHOCKWAVE =>  Loading default shockwave animation... 
BMPMAN: Found EFF (shockwave01.eff) with 94 frames at 30 fps.
SHOCKWAVE =>  Default animation load: SUCCEEDED!!
MISSION LOAD: 'SM1-05.fs2'
Hmmm... Extension passed to mission_load...
Reassigning player to squadron 107th Ravens
Someone passed an extension to bm_load for file 'ravens.pcx'
mr_maniac.fs2_open.log (18,092 bytes)   

Mr_Maniac

2013-04-04 15:37

reporter   ~0014887

I have this problem, too. I thought it could be the pilot-file but was too lazy to play with a new pilot at this time.
I am running the german version of fs2, but it always ran before. Well... I haven't played the campaign for a very long time, so I can't tell since what version this happens for me.
The ravens-logo is still called ravens.pcx and it is the logo displayed in the wiki.
No notable messages in the fs2_open.log if I play with debug-build. Windows just says that fs2_open isn't reacting anymore and that it's searching for a solution to this problem.
It's a hard crash where, suddenly, your Windows mouse-cursor appears on the fs2 loading-screen (Windows-Message in background) and you only get out by pressing space which will "click" the "Close program now" button.

Mr_Maniac

2013-04-04 16:16

reporter   ~0014888

Happens in Windows 7 SP1 (64bit) and Linux (kernel 3.7.10 64bit) - same version

gdb says:
Program received signal SIGSEGV, Segmentation fault.
0x000000000040ae32 in __gnu_cxx::__exchange_and_add (__mem=0x6e6f6c6973704518, __val=-1)
    at /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/include/g++-v4/ext/atomicity.h:48
48 { return __atomic_fetch_add(__mem, __val, __ATOMIC_ACQ_REL); }

Yarn

2013-04-04 23:56

developer   ~0014892

OK, so it is indeed called "ravens.pcx" in the German version. Now, make sure that your retail data files are up to date. You can do this by opening the readme.txt file and looking at the first few lines. There should be a line that reads something like "FreeSpace 2 v 1.20". If the version number is missing or is 1.00 or 1.01, you need to update your installation. The updater can be found here:

http://web.archive.org/web/20070312031237/http://www.pxo.net/files/fs21x-12.exe

And Mr_Maniac, you're missing the update files for the MediaVPs. They can be found at the release thread:

http://www.hard-light.net/forums/index.php?topic=70736.0

Mr_Maniac

2013-04-06 10:52

reporter   ~0014907

I've updated my mediavps and my freespace2-installation (which is very old and only copied from here to there) seems to already be at 1.20 (that's what it says in the main-hall if I run the original FS2.exe).
But the crash still happens.

Yarn

2013-05-18 19:43

developer   ~0015069

To confirm whether this problem really is related to squad logos, I have attached a zipped VP file containing blank versions of the squad logos from the English version.

Unzip the VP file to the mediavps_3612 folder. Then, with the MediaVPs enabled, create a new pilot and play through the first several missions. Let us know whether it crashes this time.

Yarn

2013-05-18 19:43

developer  

BlankSquadLogos.zip (808 bytes)

Yarn

2013-05-19 21:21

developer   ~0015071

I found a way to cause the crash with the English version. Here's how to do it in Windows:

1. Open Registry Editor and browse to and select HKEY_LOCAL_MACHINE -> Software -> Volition -> Freespace2. (If you're using 64-bit Windows, you may need to go to HKEY_CURRENT_USER -> Software -> Classes -> VirtualStore -> MACHINE -> SOFTWARE -> Wow6432Node -> Volition -> Freespace2.)

2. Look for a string value named "Language". If it doesn't exist, create it.

3. Change the value data (not the name!) of "Language" to "German" (don't forget the capital G).

4. Launch FSO with or without the MediaVPs (but with no other mods).

5. Select any existing valid pilot or create a new one.

6. Go to the Tech Room and play "Mystery of the Trinity" (SM1-05).

7. Crash.


The problem has nothing to do with squad logos and instead appears to be that strings from tstrings.tbl are currently limited to a length of 1,024 characters, and string 730 from the German section of tstrings.tbl (one string that's causing the crash) is longer than that (the latter is definitely true). Shortening this string to less than 1,024 characters prevents the crash.

Other missions, including "Rebels & Renegades" (loop1-1), also suffer from this crash.

Here's the actual offending string (including the quotation marks) that's crashing SM1-05:

"Sie standen einer überlegenen shivanischen Flotte auf feindlichem Gebiet gegenüber. Unter diesen Umständen hätten weder Sie noch irgend jemand sonst etwas tun können, um die Trinity und unser Bergungsteam zu retten. Sie hatten Glück, dass Sie diesen Einsatz überhaupt überlebt haben, Pilot.

Wir haben nichts mehr von der Kappa-Staffel gehört, seit sie von unseren Sensoren verschwunden ist. Leider müssen wir das Schlimmste annehmen. Wir werden sie als vermisst gelten lassen, solange wir keine Beweise für ihre Vernichtung haben. Unsere Suchstaffeln haben aber keine Spur mehr von diesen Jägern gefunden.

Die Anwesenheit der Trinity vergrössert das Rätselraten um die Pläne der NTF noch mehr. Was hatte die Trinity hier draussen zu suchen, und was weiss Bosch über das Subraum-Portal?

All unsere Patrouillen haben starke shivanische Kräfte im Nebelgebiet entdeckt. Das Oberkommando wird uns mehr Kriegsschiffe durch das Subraum-Portal schicken, damit wir unsere Erkundungsmission erfolgreich abschliessen können. Die Staffeln Iota und Epsilon haben in der Nähe unserer momentanen Position zwei shivanische Kreuzer entdeckt. Sobald unsere Verstärkung eintrifft, greifen wir sie an."

Mr_Maniac

2013-05-20 16:27

reporter   ~0015076

Last edited: 2013-05-20 16:28

Confirmed. Cutting the text will prevent the crash.

With a little grepping and SVN blaming I saw that Goober5000 implemented the function lcl_ext_localize_sub in revisision 8556 (// ditto for SCP_string) in code/localization/localize.cpp:710, where he set the character-array/string to a length of 1024. But the string that can be "returned" from lcl_ext_lookup() (which fills lookup_str) can be bigger.

The original lcl_ext_localize_sub uses PARSE_BUF_SIZE for this variable, which is 4096.

When I manually changed this value to 4096 and recompiled fs2_open, I could open and play SM1-05.

Maybe Goober got confused, because the other lcl_* functions used 1024-long strings, too.
lcl_ext_lookup and lcl_ext_lookup_sub use 1024-long strings for text / text_copy but these strings are copied together into "out".

Oh hell, I should learn more C / C++. I only write web-applications in PHP at my work and haven't touched many other programming languages in a long time...
This code gets me confused. Especially with so much reference-passing...

niffiwan

2013-05-21 03:05

developer  

mantis2801-git.patch (493 bytes)   
diff --git a/code/localization/localize.cpp b/code/localization/localize.cpp
index e1d42e8..3325320 100644
--- a/code/localization/localize.cpp
+++ b/code/localization/localize.cpp
@@ -711,7 +711,7 @@ void lcl_ext_localize_sub(char *in, char *out, int max_len, int *id)
 void lcl_ext_localize_sub(SCP_string &in, SCP_string &out, int *id)
 {
 	SCP_string text_str = "";
-	char lookup_str[1024]="";
+	char lookup_str[PARSE_BUF_SIZE]="";
 	int str_id;
 
 	// default (non-external string) value
mantis2801-git.patch (493 bytes)   

niffiwan

2013-05-21 03:08

developer   ~0015077

Thanks for the thorough investigation work Yarn & Mr_Maniac!

Mr_Maniac, I've looked over the code and your assessment seems correct to me. Can you please confirm that the change you made & tested was the same as the patch I've attached?

Mr_Maniac

2013-05-21 04:22

reporter   ~0015078

The fix in the patch seems to be right.
In the end, the contents of Ts_text will be put into lookup_str and Ts_text has the length of PARSE_TEXT_STRING_LEN which is PARSE_BUF_SIZE.
Thank you!

niffiwan

2013-05-21 08:31

developer   ~0015079

Fix committed to trunk@9678.

Goober5000

2013-05-21 23:48

administrator   ~0015082

Hmm. I'm not sure how I missed that array, seeing as the specific purpose of using SCP_string is to remove character limits.

Ultimately, there should really be a SCP_string equivalent for lcl_ext_lookup too, so that the limits can be completely bypassed in that function.

Related Changesets

fs2open: trunk r9678

2013-05-21 05:27

niffiwan


Ported: N/A

Details Diff
Fix for mantis 2801 from Mr_Maniac: increase buffer size to correctly handle localisation strings > 1024 chars Affected Issues
0002801
mod - /trunk/fs2_open/code/localization/localize.cpp Diff File

Issue History

Date Modified Username Field Change
2013-02-27 23:15 Judikator New Issue
2013-02-28 04:17 Goober5000 Note Added: 0014742
2013-02-28 04:17 Goober5000 Priority immediate => normal
2013-02-28 17:28 Judikator File Added: fs2_open.log
2013-02-28 17:39 Judikator Note Added: 0014743
2013-03-01 02:45 Goober5000 Note Added: 0014744
2013-03-01 17:35 Judikator Note Added: 0014745
2013-03-01 18:29 Judikator Note Edited: 0014745
2013-03-02 10:14 Judikator Note Edited: 0014745
2013-03-02 19:48 Goober5000 Note Added: 0014746
2013-03-03 12:40 Judikator Note Added: 0014747
2013-03-03 19:22 Goober5000 Note Added: 0014748
2013-03-04 18:21 Judikator Note Added: 0014750
2013-03-15 13:42 Echelon9 Note Added: 0014766
2013-04-03 21:32 kugelfaenger Note Added: 0014880
2013-04-04 01:04 Yarn Note Added: 0014881
2013-04-04 03:20 Echelon9 Status new => confirmed
2013-04-04 15:30 Mr_Maniac File Added: mr_maniac.fs2_open.log
2013-04-04 15:37 Mr_Maniac Note Added: 0014887
2013-04-04 16:16 Mr_Maniac Note Added: 0014888
2013-04-04 23:56 Yarn Note Added: 0014892
2013-04-06 10:52 Mr_Maniac Note Added: 0014907
2013-05-18 19:43 Yarn Note Added: 0015069
2013-05-18 19:43 Yarn File Added: BlankSquadLogos.zip
2013-05-19 21:21 Yarn Note Added: 0015071
2013-05-20 16:27 Mr_Maniac Note Added: 0015076
2013-05-20 16:28 Mr_Maniac Note Edited: 0015076
2013-05-21 03:05 niffiwan File Added: mantis2801-git.patch
2013-05-21 03:08 niffiwan Note Added: 0015077
2013-05-21 04:22 Mr_Maniac Note Added: 0015078
2013-05-21 08:31 niffiwan Assigned To => niffiwan
2013-05-21 08:31 niffiwan Status confirmed => assigned
2013-05-21 08:31 niffiwan Changeset attached => fs2open trunk r9678
2013-05-21 08:31 niffiwan Note Added: 0015079
2013-05-21 08:31 niffiwan Status assigned => resolved
2013-05-21 08:31 niffiwan Resolution open => fixed
2013-05-21 23:48 Goober5000 Note Added: 0015082