Bug #19313, was updated on 2014-Mar-01 14:16 Here is a current snapshot of the bug.
Project: LinCityNG Category: None Status: Open Resolution: None Bug Group: None Priority: 5 Submitted by: o01eg Assigned to : none Summary: Evacuate can cause segfault. Details: When I presson "Evacuate" button I sometimes get segfault: Rev: 1861. Program received signal SIGSEGV, Segmentation fault. 0x0000000000413302 in mps_refresh () at src/lincity-ng/MpsInterface.cpp:115 115 world(mps_x, mps_y)->reportingConstruction->report(); (gdb) bt full #0 0x0000000000413302 in mps_refresh () at src/lincity-ng/MpsInterface.cpp:115 No locals. #1 0x0000000000413717 in mps_set (x=<optimized out>, y=<optimized out>, style=<optimized out>) at src/lincity-ng/MpsInterface.cpp:102 __PRETTY_FUNCTION__ = "int mps_set(int, int, int)" #2 0x0000000000461265 in Component::eventChild (this=this@entry=0x11b0050, child=..., event=..., visible=visible@entry=true) at src/gui/Component.cpp:101 __PRETTY_FUNCTION__ = "bool Component::eventChild(Child&, const Event&, bool)" ev = {type = Event::MOUSEMOTION, mousepos = {x = 301, y = 182}, mousemove = {x = 13, y = 27}, mousebutton = 1, keysym = { scancode = 208 '\320', sym = SDLK_UNKNOWN, mod = (KMOD_RCTRL | KMOD_RMETA | KMOD_MODE | KMOD_RESERVED | unknown: 29163568), unicode = 0}, inside = true, elapsedTime = 0.0419999994} #3 0x000000000046130c in Component::event (this=0x11b0050, event=...) at src/gui/Component.cpp:114 i = <optimized out> visible = true #4 0x00000000004638e0 in Desktop::event (this=0x11b0050, event=...) at src/gui/Desktop.cpp:78 No locals. #5 0x0000000000425f0d in Game::run (this=0x119cc10) at src/lincity-ng/Game.cpp:261 gui_event = {type = Event::MOUSEMOTION, mousepos = {x = 301, y = 182}, mousemove = {x = 13, y = 27}, mousebutton = 1, keysym = {scancode = 208 '\320', sym = SDLK_UNKNOWN, mod = (KMOD_RCTRL | KMOD_RMETA | KMOD_MODE | KMOD_RESERVED | unknown: 29163568), unicode = 0}, inside = true, elapsedTime = 0.0419999994} ticks = <optimized out> elapsedTime = <optimized out> frame = <optimized out> event = {type = 4 '\004', active = {type = 4 '\004', gain = 0 '\000', state = 0 '\000'}, key = {type = 4 '\004', which = 0 '\000', state = 0 '\000', keysym = {scancode = 45 '-', sym = 1769485, mod = KMOD_NONE, unicode = 0}}, motion = {type = 4 '\004', which = 0 '\000', state = 0 '\000', x = 301, y = 182, xrel = 13, yrel = 27}, button = { type = 4 '\004', which = 0 '\000', button = 0 '\000', state = 0 '\000', x = 301, y = 182}, jaxis = {type = 4 '\004', which = 0 '\000', axis = 0 '\000', value = 301}, jball = {type = 4 '\004', which = 0 '\000', ball = 0 '\000', xrel = 301, yrel = 182}, jhat = {type = 4 '\004', which = 0 '\000', hat = 0 '\000', value = 0 '\000'}, jbutton = { type = 4 '\004', which = 0 '\000', button = 0 '\000', state = 0 '\000'}, resize = {type = 4 '\004', w = 11927853, h = 1769485}, expose = {type = 4 '\004'}, quit = {type = 4 '\004'}, user = {type = 4 '\004', code = 11927853, data1 = 0x1b000d, data2 = 0x0}, syswm = {type = 4 '\004', msg = 0x1b000d}} fpsTicks = 12196543 lastticks = 12227730 desktop = 0x11b0050 #6 0x0000000000456060 in mainLoop () at src/lincity-ng/main.cpp:424 game = {_M_ptr = 0x119cc10} state = <optimized out> __PRETTY_FUNCTION__ = "void mainLoop()" menu = {_M_ptr = 0xc726d0} nextstate = <optimized out> #7 0x0000000000409cbd in main (argc=<optimized out>, argv=0x7fffffffd8c8) at src/lincity-ng/main.cpp:579 sound = {_M_ptr = 0xc04e50} result = 0 (gdb) p mps_x $4 = -6 (gdb) p mps_y $5 = -1 (gdb) p world.operator() (mps_x, mps_y) $6 = (MapTile *) 0x7fffef92bcd0 (gdb) p world.operator() (mps_x, mps_y)->reportingConstruction ALSA lib /mnt/another/tmp/portage/media-libs/alsa-lib-1.0.27.2/work/alsa-lib-1.0.27.2/src/pcm/pcm.c:7843:(snd_pcm_recover) underrun occurred $7 = (Construction *) 0x7ffff7de487b <_dl_lookup_symbol_x+315> $8 = {_vptr.Construction = 0x858b48a07e00f883, constructionGroup = 0xfc08548ffffff70, soundGroup = 0xb8b48000006c184, x = 1959363912, y = 1102450443, ID = 65045253, Python Exception <type 'exceptions.ValueError'> __len__() should return >= 0: Python Exception <type 'exceptions.ValueError'> __len__() should return >= 0: flags = 1567884092, commodityCount = , memberRuleCount = , neighbors = std::vector of length 1146482764046307025, capacity 1146447579675856936 = {<error reading variable> For detailed info, follow this link: http://developer.berlios.de/bugs/?func=detailbug&bug_id=19313&group_id=2929 _______________________________________________ Lincity-ng-devel mailing list Lincity-ng-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/lincity-ng-devel