bugGlobulation 2 - Bugs: bug #26638, Clicking on a building in editor...

 
 

bug #26638: Clicking on a building in editor crashes game (save game)

Submitted by:  Tapani Honkanen <kokolihapihvi>
Submitted on:  Fri 22 May 2009 11:11:29 AM UTC  
 
Severity: 4 - ImportantStatus: 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.

 

Thu 17 Mar 2011 10:40:14 PM UTC, comment #3:

Tested on source build and verified to work. Closing.

Jon Neal <reportingsjr>
Project Member
Sun 24 May 2009 02:11:10 AM UTC, comment #2:

0/0 stone in the turret construction site caused a division by zero.

http://hg.globulation2.org/glob2-new/rev/d84b75196f67 should fix it. Thanx for reporting.

Maybe the slider bars for max value 0 should be forbidden in the first place.

Leo Wandersleb <giszmo>
Project MemberIn charge of this item.
Sun 24 May 2009 01:26:58 AM UTC, comment #1:

Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread 0x7ffb6366b750 (LWP 18749)]
0x0000000000503cd0 in ValueScrollBox::draw (this=0xeb5a10) at src/MapEdit.cpp:589
589 globalContainer->gfx->setClipRect(area.x+10, area.y, size, 16);
(gdb) bt
#0 0x0000000000503cd0 in ValueScrollBox::draw (this=0xeb5a10) at src/MapEdit.cpp:589
#1 0x000000000050177c in MapEdit::drawWidgets (this=0x7fff6b858190) at src/MapEdit.cpp:3173
#2 0x000000000050cdb1 in MapEdit::run (this=0x7fff6b858190) at src/MapEdit.cpp:1240
#3 0x000000000047be24 in EditorMainMenu::onAction (this=0x7fff6b868a30, source=<value optimized out>, action=<value optimized out>, par1=<value optimized out>, par2=<value optimized out>)
at src/EditorMainMenu.cpp:100
#4 0x000000000065ca74 in GAGGUI::Screen::dispatchEvents (this=<value optimized out>, event=0x7fff6b85e230) at libgag/src/GUIBase.cpp:596
#5 0x000000000065cb92 in GAGGUI::Screen::execute (this=0x7fff6b868a30, gfx=0xe16a00, stepLength=40) at libgag/src/GUIBase.cpp:506
#6 0x00000000004d26fe in Glob2::run (this=0x7fff6b868b97, argc=1, argv=0x7fff6b868c68) at src/Glob2.cpp:356
#7 0x00000000004d3245 in main (argc=0, argv=<value optimized out>) at src/Glob2.cpp:409
(gdb) bt full
#0 0x0000000000503cd0 in ValueScrollBox::draw (this=0xeb5a10) at src/MapEdit.cpp:589
No locals.
#1 0x000000000050177c in MapEdit::drawWidgets (this=0x7fff6b858190) at src/MapEdit.cpp:3173
No locals.
#2 0x000000000050cdb1 in MapEdit::run (this=0x7fff6b858190) at src/MapEdit.cpp:1240
event = {type = 5 '\005', active = {type = 5 '\005', gain = 0 '\0', state = 1 '\001'}, key = {type = 5 '\005', which = 0 '\0', state = 1 '\001', keysym = {scancode = 168 '�',
sym = SDLK_UNKNOWN, mod = KMOD_NONE, unicode = 0}}, motion = {type = 5 '\005', which = 0 '\0', state = 1 '\001', x = 680, y = 819, xrel = 0, yrel = 0}, button = {type = 5 '\005',
which = 0 '\0', button = 1 '\001', state = 1 '\001', x = 680, y = 819}, jaxis = {type = 5 '\005', which = 0 '\0', axis = 1 '\001', value = 680}, jball = {type = 5 '\005', which = 0 '\0',
ball = 1 '\001', xrel = 680, yrel = 819}, jhat = {type = 5 '\005', which = 0 '\0', hat = 1 '\001', value = 1 '\001'}, jbutton = {type = 5 '\005', which = 0 '\0', button = 1 '\001',
state = 1 '\001'}, resize = {type = 5 '\005', w = 53674664, h = 0}, expose = {type = 5 '\005'}, quit = {type = 5 '\005'}, user = {type = 5 '\005', code = 53674664, data1 = 0x0, data2 = 0x0},
syswm = {type = 5 '\005', msg = 0x0}}
isRunning = true
returnCode = 0
startTick = 10468
deltaTick = <value optimized out>

Leo Wandersleb <giszmo>
Project MemberIn charge of this item.
Fri 22 May 2009 11:11:29 AM UTC, original submission:

I opened an old save game (attached below) to learn what I did wrong in that game (no cheating :D). Then I clicked on a specific building what caused a crash. The building is located below the cursor in the attached image.

Tapani Honkanen <kokolihapihvi>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #18182:  crash_building.jpg added by kokolihapihvi (108KiB - image/jpeg)
file #18181:  balanced.game.tar.gz added by kokolihapihvi (78KiB - application/x-gzip)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by reportingsjr (Posted a comment)
  • -unavailable- added by giszmo (Posted a comment)
  • -unavailable- added by kokolihapihvi (Submitted the item)
  • -unavailable- added by kokolihapihvi
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 17 Mar 2011 10:40:14 PM UTCreportingsjrOpen/ClosedOpen=>Closed
    Thu 17 Mar 2011 10:40:13 PM UTCreportingsjrStatusReady For Test=>Fixed
    Sun 24 May 2009 02:11:10 AM UTCgiszmoStatusConfirmed=>Ready For Test
      Assigned toNone=>giszmo
    Sun 24 May 2009 01:26:58 AM UTCgiszmoSeverity3 - Normal=>4 - Important
      StatusNone=>Confirmed
    Fri 22 May 2009 11:13:36 AM UTCkokolihapihviAttached File-=>Added crash_building.jpg, #18182
    Fri 22 May 2009 11:11:29 AM UTCkokolihapihviAttached File-=>Added balanced.game.tar.gz, #18181
      Carbon-Copy-=>Added kokolihapihvi

    Back to the top


    Powered by Savane 3.1-cleanup1