bugGlobulation 2 - Bugs: bug #23195, Game crashes on removal of a market

 
 

bug #23195: Game crashes on removal of a market

Submitted by:  None
Submitted on:  Wed 07 May 2008 05:46:56 AM UTC  
 
Severity: 5 - BlockerStatus: Fixed
Assigned to: Leo Wandersleb <giszmo>Open/Closed: Closed
Release: 0.9.4 (Beta 4)Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 13 Nov 2009 09:36:02 PM UTC, comment #4:

several savegames that crashed due to market bug work now in beta4. beta5+ is not compatible when loading maps but the fix should be ported right. please test.

Leo Wandersleb <giszmo>
Project MemberIn charge of this item.
Sat 10 Jan 2009 04:25:04 AM UTC, comment #3:

the fix is rather expensive but should do.
problem was that units fetching fruits at a market were not back referenced as "working for" as those are the other guys ;)
now what happened when a market was deleted was that the units still tried to contact that market as they have not been informed of its closure.

now upon removal of a market all units of all teams allowed to fetch fruits from that market get checked and informed.

http://hg.globulation2.org/glob2-new/rev/c19ae0d6488b

still to do:
-market gets destroyed
-market vision gets canceled

Leo Wandersleb <giszmo>
Project MemberIn charge of this item.
Fri 09 Jan 2009 11:05:59 PM UTC, comment #2:

ok. bug has to do with the market not getting removed from the fruit gradient. trying to fix ...

Leo Wandersleb <giszmo>
Project MemberIn charge of this item.
Tue 06 Jan 2009 08:43:36 PM UTC, comment #1:

(blocker: no recovery using the auto save possible.)

hi

thanx for your bug report. this bug is still in (can be reproduced using your savegame)

the market is not really of much use yet but in order to get it there, we will definitely care about this bug.

glob2: src/Unit.cpp:1056: void Unit::handleDisplacement(): Assertion `targetBuilding->type->canExchange' failed.

(gdb) bt full 7
#0 0x00007fd397fcbed5 in raise () from /lib/libc.so.6
No symbol table info available.
#1 0x00007fd397fcd3f3 in abort () from /lib/libc.so.6
No symbol table info available.
#2 0x00007fd397fc4dc9 in __assert_fail () from /lib/libc.so.6
No symbol table info available.
#3 0x000000000066d5df in Unit::handleDisplacement (this=0x7fd38cde65e0) at src/Unit.cpp:1056
loopMove = false
exchangeReady = false
_PRETTY_FUNCTION_ = "void Unit::handleDisplacement()"
#4 0x000000000066fef6 in Unit::endOfAction (this=0x7fd38cde65e0) at src/Unit.cpp:2295
No locals.
#5 0x000000000067052d in Unit::syncStep (this=0x7fd38cde65e0) at src/Unit.cpp:526
_PRETTY_FUNCTION_ = "void Unit::syncStep()"
#6 0x0000000000657b3a in Team::syncStep (this=0x7fd38cdadf80) at src/Team.cpp:949
u = (Unit *) 0x7fd38cde65e0
i = 57
nbUsefullUnits = 23
nbUsefullUnitsAlone = 14
isDirtyGlobalGradient = false
isEnoughFoodInSwarm = true
isDying = false
_PRETTY_FUNCTION_ = "void Team::syncStep()"

Leo Wandersleb <giszmo>
Project MemberIn charge of this item.
Wed 07 May 2008 05:46:56 AM UTC, original submission:

Game save is split into two files due to ul size limit, a non-split version is available here: http://luke.dashjr.org/tmp/Garden_3.game.CRASH

The crash appears to be related to a Market that was destroyed manually...

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #15626:  xab added by None (233KiB - application/octet-stream)
file #15625:  xaa added by None (512KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -unavailable- added by giszmo (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 12 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 03 Nov 2011 02:40:53 AM UTCgiszmoStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Fri 13 Nov 2009 09:36:02 PM UTCgiszmoRelease0.9.3 (Beta 3)=>0.9.4 (Beta 4)
      StatusIn Progress=>Ready For Test
    Sun 08 Nov 2009 11:07:28 PM UTCgiszmoDependencies-=>bugs #27964 is dependent
    Sat 10 Jan 2009 04:25:04 AM UTCgiszmoStatusConfirmed=>In Progress
      Assigned toNone=>giszmo
      SummaryMultiplayer Game crashes on load=>Game crashes on removal of a market
    Tue 06 Jan 2009 08:43:36 PM UTCgiszmoSeverity3 - Normal=>5 - Blocker
      StatusNone=>Confirmed
    Wed 07 May 2008 06:04:59 AM UTCNoneAttached File-=>Added xab, #15626
    Wed 07 May 2008 05:46:57 AM UTCNoneAttached File-=>Added xaa, #15625

    Back to the top


    Powered by Savane 3.1-cleanup1