Home » PLAYER'S HQ 1.13 » JA2 Complete Mods & Sequels » Stracciatella Project (Platform Independent JA2) » [Bug] Crash after auto resolve battle /latest SVN
[Bug] Crash after auto resolve battle /latest SVN[message #259614] Mon, 16 August 2010 18:14 Go to next message
rp- is currently offline rp-

 
Messages:13
Registered:June 2008
Location: Austria
Hi!

I encountered this bug while my militia defended Drassen, after they won I pressed the "Done" button and the game crashed:
Segmentation fault
1002:		wp = wp->next;
(gdb) backtrace
#0  0x0000000000527c90 in CalculateNextMoveIntention (pGroup=0x1c56050)
    at /home/rp/work/coding/ja2-stracciatella/Build/Strategic/Strategic_Movement.cc:1002
#1  0x00000000004c1d99 in EliminateAllEnemies (ubSectorX=13 '\r', 
    ubSectorY=4 '\004')
    at /home/rp/work/coding/ja2-stracciatella/Build/Strategic/Auto_Resolve.cc:393
#2  0x00000000004c6fd4 in RemoveAutoResolveInterface (delete_for_good=true)
    at /home/rp/work/coding/ja2-stracciatella/Build/Strategic/Auto_Resolve.cc:1926
#3  0x00000000004c249d in AutoResolveScreenHandle ()
    at /home/rp/work/coding/ja2-stracciatella/Build/Strategic/Auto_Resolve.cc:581
#4  0x0000000000463fe1 in GameLoop ()
    at /home/rp/work/coding/ja2-stracciatella/Build/GameLoop.cc:302
#5  0x000000000069cf8b in MainLoop ()
    at /home/rp/work/coding/ja2-stracciatella/sgp/SGP.cc:250
#6  0x000000000069d03c in main (argc=1, argv=0x7fffffffe688)
    at /home/rp/work/coding/ja2-stracciatella/sgp/SGP.cc:298


It seems the GROUP argument is invalid, but not NULL. My workaround is to check if the group has a valid ID (!= 0) otherwise I exit the function.

Report message to a moderator

Private
Re: [Bug] Crash after auto resolve battle /latest SVN[message #259731] Tue, 17 August 2010 23:14 Go to previous messageGo to next message
bbun is currently offline bbun

 
Messages:74
Registered:April 2004
Location: Amsterdam
never had this, but thanks for sharing and fixing!

Report message to a moderator

Corporal
Re: [Bug] Crash after auto resolve battle /latest SVN[message #259769] Wed, 18 August 2010 11:07 Go to previous messageGo to next message
rp- is currently offline rp-

 
Messages:13
Registered:June 2008
Location: Austria
Seems my workaround doesn't realy work in the release build. still crashes.

Also it seems it only crashes if Deidranna troops loose.

Here is the save file where drassen will be attacked and Deidrannas troops should loose, can somebody also confirm the crash, maybe my save file got corrupted or my build did something wrong.

Report message to a moderator

Private
Re: [Bug] Crash after auto resolve battle /latest SVN[message #259773] Wed, 18 August 2010 12:35 Go to previous messageGo to next message
bbun is currently offline bbun

 
Messages:74
Registered:April 2004
Location: Amsterdam
doesnt crash for me... not on my own build, nor on plain r7065
tried a few times, both militia and deidranna's troops winning. all worked perfectly.

Report message to a moderator

Corporal
Re: [Bug] Crash after auto resolve battle /latest SVN[message #259780] Wed, 18 August 2010 14:59 Go to previous message
rp- is currently offline rp-

 
Messages:13
Registered:June 2008
Location: Austria
interesting :/

Thanks for checking

Report message to a moderator

Private
Previous Topic: Does reporting bugs make a sense?
Next Topic: Does any kind of calculating CTH file/program exist for strac?
Goto Forum:
  


Current Time: Fri Jan 10 08:26:46 GMT+2 2025

Total time taken to generate the page: 0.01502 seconds