bugGlobulation 2 - Bugs: bug #26602, Shortcuts in editor crashes the...

 
 

bug #26602: Shortcuts in editor crashes the game

Submitted by:  Tapani Honkanen <kokolihapihvi>
Submitted on:  Mon 18 May 2009 12:51:13 PM UTC  
 
Severity: 3 - NormalStatus: Ready For Test
Assigned to: NoneOpen/Closed: Open
Release: 0.9.4 (Beta 4)Operating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Mon 18 May 2009 07:28:55 PM UTC, comment #3:

"<space>-d" was "tower". now it is "defencetower". fixed.
"i" was import transitional map format to convert from pre alpha23 map format to the recent one. fixed by removal. hope the rest of those shortcuts works ;)

the fix is in beta4-rc branch but no binaries so far. feel free to compile it. it will not cause incompatibilities with the official beta4 release. it is tagged beta4.2.

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

Leo Wandersleb <giszmo>
Project Member
Mon 18 May 2009 01:39:19 PM UTC, comment #2:

this seems to be a relict of the alpha23 change of the map-format. i'm on it

Leo Wandersleb <giszmo>
Project Member
Mon 18 May 2009 01:22:40 PM UTC, comment #1:

Backtrace in beta4.1

glob2: libgag/include/StreamBackend.h:68: virtual void GAGCore::FileStreamBackend::read(void*, size_t): Assertion `fp' failed.

Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb679a910 (LWP 30526)]
0xb7f61430 in __kernel_vsyscall ()
(gdb) bt full
#0 0xb7f61430 in __kernel_vsyscall ()
No symbol table info available.
#1 0xb7abb6d0 in raise () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#2 0xb7abd098 in abort () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#3 0xb7ab45ce in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#4 0x083160a6 in GAGCore::FileStreamBackend::read (this=0x8fdff48, data=0xb3eac0b0, size=16384) at libgag/include/StreamBackend.h:68
_PRETTY_FUNCTION_ = "virtual void GAGCore::FileStreamBackend::read(void*, size_t)"
#5 0x083124d2 in GAGCore::BinaryInputStream::read (this=0x8fdff58, data=0xb3eac0b0, size=16384, name=0x836765e "undermap") at libgag/include/BinaryStream.h:79
No locals.
#6 0x0817b25d in Map::loadTransitional (this=0xbfd7563c) at src/Map.cpp:1227
fileName = {static npos = 4294967295, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x8f9f8dc "maps/output"}}
stream = (class GAGCore::InputStream *) 0x8fdff58
#7 0x0818f23b in MapEdit::handleKeyPressed (this=0xbfd74940, key={scancode = 31 '\037', sym = SDLK_i, mod = KMOD_NUM, unicode = 105}, pressed=true) at src/MapEdit.cpp:1745
action_t = 0
#8 0x08196a8f in MapEdit::processEvent (this=0xbfd74940, event=@0xbfd747c4) at src/MapEdit.cpp:1730
modState = KMOD_NUM
#9 0x08196bef in MapEdit::run (this=0xbfd74940) at src/MapEdit.cpp:1209
event = {type = 2 '\002', active = {type = 2 '\002', gain = 0 '\0', state = 1 '\001'}, key = {type = 2 '\002', which = 0 '\0', state = 1 '\001', keysym = {scancode = 31 '\037', sym = SDLK_i, mod = KMOD_NUM, unicode = 105}},
motion = {type = 2 '\002', which = 0 '\0', state = 1 '\001', x = 12831, y = 2317, xrel = 105, yrel = 0}, button = {type = 2 '\002', which = 0 '\0', button = 1 '\001', state = 0 '\0', x = 12831, y = 2317}, jaxis = {type = 2 '\002',
which = 0 '\0', axis = 1 '\001', value = 12831}, jball = {type = 2 '\002', which = 0 '\0', ball = 1 '\001', xrel = 12831, yrel = 2317}, jhat = {type = 2 '\002', which = 0 '\0', hat = 1 '\001', value = 0 '\0'}, jbutton = {
type = 2 '\002', which = 0 '\0', button = 1 '\001', state = 0 '\0'}, resize = {type = 2 '\002', w = 151859743, h = 105}, expose = {type = 2 '\002'}, quit = {type = 2 '\002'}, user = {type = 2 '\002', code = 151859743, data1 = 0x69,
data2 = 0x1000}, syswm = {type = 2 '\002', msg = 0x90d321f}}
isRunning = true
returnCode = 0
startTick = 8233
endTick = 8213
deltaTick = 13

Leo Wandersleb <giszmo>
Project Member
Mon 18 May 2009 12:51:13 PM UTC, original submission:

When I open editor and press 'SPACEBAR + I' to select an inn, my game crashes (it did that many times when I tried). 'SPACEBAR + D' did the same sometimes. I also accidentally pressed 'B + I' which actually works only when playing (selecting and inn). Then I tried pressing 'I' only to test if that was a problem and my game crashed.

Tapani Honkanen <kokolihapihvi>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 18 May 2009 07:28:55 PM UTCgiszmoStatusConfirmed=>Ready For Test
    Mon 18 May 2009 01:22:40 PM UTCgiszmoStatusNone=>Confirmed
    Mon 18 May 2009 12:51:13 PM UTCkokolihapihviCarbon-Copy-=>Added kokolihapihvi

    Back to the top


    Powered by Savane 3.1-cleanup