Page 1 of 1

Freeze/Crash during bounty mission

Posted: Mon Aug 29, 2011 6:00 am
by DaveAshton
I was in the process of doing a bounty mission. The target had 2 escorts.

I destroyed 1 of the escorts, and as it was exploding the game froze. Ive attached the stdout and stderr files at the bottom, and this is what Windows gave me (as a Runtime error):
Problem signature:
Problem Event Name: APPCRASH
Application Name: vegastrike.exe
Application Version: 0.5.1.13139
Application Timestamp: 4d793f09
Fault Module Name: MSVCR90.dll
Fault Module Version: 9.0.30729.4926
Fault Module Timestamp: 4a1743c1
Exception Code: 40000015
Exception Offset: 0005bb47
OS Version: 6.1.7600.2.0.0.768.3
Locale ID: 2057
Additional Information 1: 10ff
Additional Information 2: 10ffbaaebb6a6f3c272150fc9d47fe6e
Additional Information 3: 8657
Additional Information 4: 8657d751de3f4abdb165f9b0eee62f7c

Re: Freeze/Crash during bounty mission

Posted: Tue Aug 30, 2011 12:34 pm
by DaveAshton
I just got the error again, and I think I've narrowed it down to something I did (so it's not an error with anyone else).

The music was really annoying me a few days ago, so I edited the music folder's name so the game couldn't find it.


I've looked in the stderr I just got, and this bit jumps out as the cause:
Traceback (most recent call last):
File "C:\Program Files (x86)\Vegastrike 5.1\modules\missions\privateer.py", line 34, in Execute
i.Execute()
File "C:\Program Files (x86)\Vegastrike 5.1\modules\random_encounters.py", line 288, in Execute
dynamic_battle.UpdateCombatTurn()
File "C:\Program Files (x86)\Vegastrike 5.1\modules\dynamic_battle.py", line 29, in UpdateCombatTurn
Director.putSaveData(0,"stardate",0,Director.getSaveData(0,"stardate",0)+stardateinc)
File "C:\Program Files (x86)\Vegastrike 5.1/.vegastrike/modules/dj.py", line 2, in <module>
File "C:\Program Files (x86)\Vegastrike 5.1\modules\dj_lib.py", line 75, in <module>
"iso":VS.musicAddList('playlists/threat/iso.m3u'),
MemoryError
Does MemoryError basically mean "I can't find this file, so I'm going to crash now"? Or is it a coincidence that I've had 2 crashes, and both stderr files had a very similar last line?

Re: Freeze/Crash during bounty mission

Posted: Tue Aug 30, 2011 1:35 pm
by philo
If the music annoys you (and I agree: some of the pieces can get on one's nerves easily) then there are two less invasive ways of dealing with it:
  1. Run "setup.exe" again and set Music to "Off".
  2. Edit the playlists themselves instead of their file names, and let them point to your own mp3 music (I think there's a Howto on the wiki for this)
Deleting or renaming files used by a game will always make it potentially instable. You can never tell what's going to happen because this also largely depends on how the resources are loaded. There may be an error trap which catches all exceptions (basically saying: "Play that media file, but if you can't find it: nevermind, continue anyway") or there may not.

Re: Freeze/Crash during bounty mission

Posted: Tue Aug 30, 2011 3:26 pm
by DaveAshton
philo wrote:Run "setup.exe" again and set Music to "Off".
I thought of doing that, but I use custom joystick settings, and I don't fancy having to reset those just to turn off the music (vegastrike.config says "#set MusicAndVolume music_off" anyway though... ).
philo wrote:Edit the playlists themselves instead of their file names, and let them point to your own mp3 music (I think there's a Howto on the wiki for this)
This sounds like a good idea, especially if I can make a load of blank mp3s (I'm sure I can find a long youtube video with no sound that I could grab the audio from using VideoLAN), rename them, and chuck them in the right folder.

Re: Freeze/Crash during bounty mission

Posted: Tue Aug 30, 2011 8:18 pm
by philo
DaveAshton wrote:I thought of doing that, but I use custom joystick settings, and I don't fancy having to reset those just to turn off the music (vegastrike.config says "#set MusicAndVolume music_off" anyway though... ).
I don't think you need to worry. I have a German keyboard, so I need to adjust quite a few keys in the default config file, and all my customized hotkey settings still work after testing my suggestion. This means that the setup programme only overwrites the settings you change, and leaves everything else intact (which would be the expected standard behaviour).
I should still recommend to backup your config file before running the test for yourself though.

Re: Freeze/Crash during bounty mission

Posted: Wed Aug 31, 2011 6:25 am
by pheonixstorm
by the looks of it there is no exception handling in the code.. Its something that needs more work but who knows when it will hit the list :? There probably isn't ENOUGH error checking anywhere in the code so maybe it could be an update release in itself adding all that in.

Re: Freeze/Crash during bounty mission

Posted: Mon Sep 05, 2011 9:51 am
by DaveAshton
Quick update.

I put the music folder back as it should be, then re-ran the setup.exe. Joystick settings stayed as they were, music is now on "shut up" mode, and I've not had a crash (for that, anyway) since.

Thanks for the help :)