bugBos Wars - Bugs: bug #30244, Crash with some map size in minimap

 
 

bug #30244: Crash with some map size in minimap

Submitted by:  Michiel van der Wulp <mvw>
Submitted on:  Thu 24 Jun 2010 11:56:06 AM UTC  
 
Severity: 3 - NormalItem Group: Bug
Status: FixedPrivacy: Public
Assigned to: François Beerten <feb>Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 24 Jun 2010 10:16:18 PM UTC, comment #5:

Fixed in SVN. Thank you for the bug report.

François Beerten <feb>
Project AdministratorIn charge of this item.
Thu 24 Jun 2010 10:02:04 PM UTC, comment #4:

Thanks, that helps a lot.

For reference, the engine breaks here:

Breakpoint 1, CMinimap::Create (this=0x82ac3b8) at engine/map/minimap.cpp:139
139 Minimap2MapX[n] = ((n - XOffset) * MINIMAP_FAC) / MinimapScaleX;
(gdb) p n
$1 = -1
(gdb) p XOffset
$2 = -1

The code in void CMinimap::Create that computes the scaling factors does not handle map sizes which are not multiples on the minimap sizes correctly. MinimapScaleX and MinimapScaleY are rounded up which causes some parts of the code to access invalid memory addresses.

François Beerten <feb>
Project AdministratorIn charge of this item.
Thu 24 Jun 2010 06:42:01 PM UTC, comment #3:

Forgot to attach the level...

(file #20812)

Michiel van der Wulp <mvw>
Project Member
Thu 24 Jun 2010 05:41:11 PM UTC, comment #2:

The level you mention is not in the attachments. Can you add it ? Thanks.

François Beerten <feb>
Project AdministratorIn charge of this item.
Thu 24 Jun 2010 02:08:06 PM UTC, comment #1:

I tried some circumstances: The problem occurred after rebooting my Linux PC, entering boswars, going to the level editor, loading a partly finished level, and then scrolling down (to where most patches are missing).

In attachment the level I am working on - maybe that is what causes it.

Michiel van der Wulp <mvw>
Project Member
Thu 24 Jun 2010 11:56:06 AM UTC, original submission:

With the current SVN version, I am editing a 200x200 level with the gosh patches. After a while, I get a crash like in attachment.

This happened the first times when going from full screen to window mode by pressing Ctrl-F, but later also while working on another virtual desktop and returning to Boswars.

After a few times, I run scons debug, and tried with the debug version. This gave the same crash, but I had to kill the process from the commandline in another terminal to regain control over my PC.

The output from this last process is attached.

If I understand correctly, this is the root of the problem:

      • glibc detected *** ./boswars-debug: free(): invalid next size (normal): 0x00000000147d2d10 ***
Michiel van der Wulp <mvw>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #20812:  chilka-02.map.zip added by mvw (2KiB - application/x-compressed)
file #20803:  bug-crash-01.txt added by mvw (11KiB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by feb (Posted a comment)
  • -unavailable- added by mvw (Submitted the item)
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 24 Jun 2010 10:16:18 PM UTCfebStatusNone=>Fixed
      Assigned toNone=>feb
      Open/ClosedOpen=>Closed
      SummaryCrash in editor=>Crash with some map size in minimap
    Thu 24 Jun 2010 06:42:01 PM UTCmvwAttached File-=>Added chilka-02.map.zip, #20812
    Thu 24 Jun 2010 11:56:06 AM UTCmvwAttached File-=>Added bug-crash-01.txt, #20803

    Back to the top


    Powered by Savane 3.1-cleanup1