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:  Status: 
Assigned to: None Open/Closed: Open
Release:  Operating System: 
Summary: 
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
           (Or define a new Canned Response)

 

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 Files:
   
   
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 (18KiB - image/jpeg - Error dialog)

 

Search an item (to fill a dependency against):
   
Of     of  

Depends on the following items: None found

Items that depend on this one: None found

 

(Note: for Savannah users, you can use their login name rather than their email addresses.)


      

   

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.


        / 100 remaining votes

     

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-09-17 teythoon Attached File- => Added tutorial-part4.map.bspatch, #21478
    2009-11-08 LesF Carbon-Copy- => Added lesf
    2009-11-08 None Attached File- => Added globulation-error.jpg, #19015

    Back to the top


    Powered by Savane 3.5