Editor crash when setting new 0,0 coordinates

Bug #1815613 reported by Toni Förster on 2019-02-12
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

bzr8980 crashes/freezes the editor when setting a new 0,0 coordinate on the map "Ice Wars".

It seems to be a problem with the map itself. Possibly bug #1815283 is remotely related.

Related branches

Toni Förster (stonerl) wrote :

Bug #1815283 isn't related.

kaputtnik (franku) wrote :

This is related to the maps size. Each map size starting from 192x192 let widelands freeze when trying to set 0/0 position.

Memory usage increases here from ~9% to 25% when the freeze happens.

kaputtnik (franku) wrote :

Sorry, not memory usage, its processor usage.

kaputtnik (franku) on 2019-02-12
Changed in widelands:
milestone: none → build20-rc1
tags: added: crash editor
GunChleoc (gunchleoc) wrote :

I tried this out in gdb and I am getting a segfault:

Thread 1 "widelands" received signal SIGSEGV, Segmentation fault.
0x00005555565f60af in Widelands::Map::set_origin (this=0x7fffffffa730, new_origin=...) at ../src/logic/map.cc:358
358 fields_[ind] = new_field_order[ind];
(gdb) backtrace
#0 0x00005555565f60af in Widelands::Map::set_origin (this=0x7fffffffa730, new_origin=...) at ../src/logic/map.cc:358
#1 0x0000555556398a8e in EditorSetOriginTool::handle_click_impl (this=0x6170000500e0, center=..., eia=..., map=0x7fffffffa730) at ../src/editor/tools/set_origin_tool.cc:30

Changed in widelands:
assignee: nobody → GunChleoc (gunchleoc)
GunChleoc (gunchleoc) wrote :

Found the bug, a datatype for a loop index is too small

Changed in widelands:
status: New → In Progress
Changed in widelands:
status: In Progress → Fix Committed
assignee: GunChleoc (gunchleoc) → nobody
GunChleoc (gunchleoc) wrote :

Fixed in build20-rc1

Changed in widelands:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers