bugGlobulation 2 - Bugs: bug #27969, Assertion failed crash during...

 
 

bug #27969: Assertion failed crash during tutorial 4

Submitted by:  None
Submitted on:  Sun 08 Nov 2009 09:54:19 AM UTC  
 
Severity: 3 - NormalStatus: None
Assigned to: NoneOpen/Closed: Open
Release: 0.9.4 (Beta 4)Operating System: Microsoft Windows

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Fri 17 Sep 2010 09:47:44 AM UTC, comment #4:

To set the building type to 17 (racetrack level 1 under construction,
size 6x6) you can either do

echo -en '\x00\x00\x00\x11' | \
dd of=tutorial-part4.map bs=1 seek=49210 conv=notrunc

or apply the attached patch using bspatch.

Cheers,
Justus

(file #21478)

Justus Winter <teythoon>
Fri 17 Sep 2010 12:59:27 AM UTC, comment #3:

The assertion is only triggered when the opponents race track is destroyed, one can also trigger it from within the editor by loading the map and deleting the race track.

The problem lies within the tutorial data itself, Map::load loads a map description into map->cases where the race track occupies an area of size 6x6.

The building however is of type 15 (racetrack0c, racetrack level 0 in construction). The size of the racetrack level 0 is 4x4. When the building is destroyed, map->cases has to be updated. But since the building is actually smaller than the 6x6 area that is marked as occupied on the map, a 2 unit wide border is left referencing the building.

When a map to building look up is performed on that shadow, the
assertion is triggered.

I fixed the map by setting the buildings type to 17 (racetrack1c,
racetrack level 1 in construction). You can find the corrected map for 0.9.4 at

http://cache.jade-hamburg.de/~teythoon/stuff/tutorial-part4.map

This bug is also being tracked at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=595448

Cheers,
Justus

Justus Winter <teythoon>
Thu 22 Jul 2010 10:13:22 PM UTC, comment #2:

Same error here, on destroying an ememy building the game crashes and outputs this line to console:

glob2: src/Game.cpp:2201: void Game::drawMapGroundBuildings(int, int, int, int, int, int, int, int, int, Uint32, std::set<Building, std::less<Building>, std::allocator<Building> >): Assertion `building' failed.

Could not finish tutorial part 4 even after ~15 tries.

Glob2 v0.9.4.4

Anonymous
Fri 19 Feb 2010 11:03:13 AM UTC, comment #1:

I've the same bug in GNU/Linux, with this line :

glob2: src/Building.cpp:2848: void Building::integrity(): Assertion `(*it)->targetBuilding==this' failed.

Anonymous
Sun 08 Nov 2009 09:54:19 AM UTC, original submission:

o/s is XP64
Occurs during tutorial 4 (while trashing enemy base)
Program crashes out leaving a dialog box:

Assertion failed!
Program C:\Program Files(x86)\Globulation_2\glob2.exe
File: src\Game.cpp
Line: 2201
Expression: building

I cannot find any log or autosave files.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #21478:  tutorial-part4.map.bspatch added by teythoon (155B - application/octet-stream - bspatch for the map setting the racetracks building type to 17)
file #19015:  globulation-error.jpg added by None (18kB - image/jpeg - Error dialog)

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 17 Sep 2010 09:47:44 AM UTCteythoonAttached File-=>Added tutorial-part4.map.bspatch, #21478
    Sun 08 Nov 2009 10:09:50 AM UTCLesFCarbon-Copy-=>Added lesf
    Sun 08 Nov 2009 09:54:19 AM UTCNoneAttached File-=>Added globulation-error.jpg, #19015

    Back to the top


    Powered by Savane 3.1-cleanup