Writing Scripting Data ... PANIC: unprotected error in call to Lua API
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Critical
|
Unassigned |
Bug Description
Hi,
when testing the game I crashed (in fact it is second time now) .
last lines on the console
...
Writing Exploration Data ... took 22ms
Writing Players Unseen Data ... took 96ms
Writing Scripting Data ... PANIC: unprotected error in call to Lua API (attempt to persist a light C function (0x8b93c45))
and backtrace:
#0 0xb7fe1424 in __kernel_vsyscall ()
#1 0xb794aa31 in *__GI_raise (sig=6) at ../nptl/
#2 0xb794de62 in *__GI_abort () at abort.c:92
#3 0x08b842fe in luaD_throw (L=0x98e1588, errcode=2) at /var/widelands/
#4 0x08b84125 in luaG_errormsg (L=0x98e1588) at /var/widelands/
#5 0x08b7dc2a in lua_error (L=0x98e1588) at /var/widelands/
#6 0x08b76054 in eris_error (info=0xbfffc26c, fmt=0x900b238 "attempt to persist a light C function (%p)")
at /var/widelands/
#7 0x08b78605 in p_closure (info=0xbfffc26c) at /var/widelands/
#8 0x08b7a099 in persist_typed (info=0xbfffc26c, type=6) at /var/widelands/
#9 0x08b7a2c4 in persist_keyed (info=0xbfffc26c, type=6) at /var/widelands/
#10 0x08b7a368 in persist (info=0xbfffc26c) at /var/widelands/
#11 0x08b76e7a in p_literaltable (info=0xbfffc26c) at /var/widelands/
#12 0x08b7744e in p_special (info=0xbfffc26c, literal=0x8b76d52 <p_literaltable>) at /var/widelands/
#13 0x08b77663 in p_table (info=0xbfffc26c) at /var/widelands/
#14 0x08b7a08c in persist_typed (info=0xbfffc26c, type=5) at /var/widelands/
#15 0x08b7a2c4 in persist_keyed (info=0xbfffc26c, type=5) at /var/widelands/
#16 0x08b7a368 in persist (info=0xbfffc26c) at /var/widelands/
#17 0x08b76e7a in p_literaltable (info=0xbfffc26c) at /var/widelands/
#18 0x08b7744e in p_special (info=0xbfffc26c, literal=0x8b76d52 <p_literaltable>) at /var/widelands/
#19 0x08b77663 in p_table (info=0xbfffc26c) at /var/widelands/
#20 0x08b7a08c in persist_typed (info=0xbfffc26c, type=5) at /var/widelands/
#21 0x08b7a2c4 in persist_keyed (info=0xbfffc26c, type=5) at /var/widelands/
#22 0x08b7a368 in persist (info=0xbfffc26c) at /var/widelands/
#23 0x08b784f5 in p_upval (info=0xbfffc26c) at /var/widelands/
#24 0x08b7a0cd in persist_typed (info=0xbfffc26c, type=10) at /var/widelands/
#25 0x08b7a2c4 in persist_keyed (info=0xbfffc26c, type=10) at /var/widelands/
#26 0x08b7887a in p_closure (info=0xbfffc26c) at /var/widelands/
#27 0x08b7a099 in persist_typed (info=0xbfffc26c, type=6) at /var/widelands/
#28 0x08b7a2c4 in persist_keyed (info=0xbfffc26c, type=6) at /var/widelands/
#29 0x08b7a368 in persist (info=0xbfffc26c) at /var/widelands/
#30 0x08b76e7a in p_literaltable (info=0xbfffc26c) at /var/widelands/
#31 0x08b7744e in p_special (info=0xbfffc26c, literal=0x8b76d52 <p_literaltable>) at /var/widelands/
#32 0x08b77663 in p_table (info=0xbfffc26c) at /var/widelands/
#33 0x08b7a08c in persist_typed (info=0xbfffc26c, type=5) at /var/widelands/
#34 0x08b7a2c4 in persist_keyed (info=0xbfffc26c, type=5) at /var/widelands/
#35 0x08b7a368 in persist (info=0xbfffc26c) at /var/widelands/
#36 0x08b7ac49 in unchecked_persist (L=0x98e1588, writer=0x8aea4c0 <(anonymous namespace)
ud=0xbfffc374) at /var/widelands/
#37 0x08b7b697 in eris_dump (L=0x98e1588, writer=0x8aea4c0 <(anonymous namespace)
at /var/widelands/
#38 0x08aeaca4 in persist_object (L=0x98e1588, fw=..., mos=...) at /var/widelands/
#39 0x08ad687c in LuaGameInterfac
regards
Related branches
- GunChleoc (community): Disapprove
- Murtaza: Pending requested
-
Diff: 17571 lines (+10874/-1966)153 files modifieddata/i18n/locales.lua (+383/-383)
data/i18n/translation_stats.conf (+7/-7)
data/scripting/coroutine.lua (+1/-1)
data/scripting/messages.lua (+1/-9)
data/scripting/ui.lua (+4/-2)
data/scripting/win_conditions/collectors.lua (+30/-51)
data/scripting/win_conditions/win_condition_functions.lua (+59/-1)
data/scripting/win_conditions/wood_gnome.lua (+58/-60)
data/tribes/workers/atlanteans/carrier/init.lua (+1/-9)
data/tribes/workers/frisians/baker/init.lua (+1/-0)
data/tribes/workers/frisians/baker_master/init.lua (+1/-0)
data/tribes/workers/frisians/beekeeper/init.lua (+1/-0)
data/tribes/workers/frisians/blacksmith/init.lua (+1/-0)
data/tribes/workers/frisians/blacksmith_master/init.lua (+1/-0)
data/tribes/workers/frisians/brewer/init.lua (+1/-0)
data/tribes/workers/frisians/brewer_master/init.lua (+1/-0)
data/tribes/workers/frisians/brickmaker/init.lua (+1/-0)
data/tribes/workers/frisians/builder/init.lua (+1/-0)
data/tribes/workers/frisians/charcoal_burner/init.lua (+1/-0)
data/tribes/workers/frisians/claydigger/init.lua (+1/-0)
data/tribes/workers/frisians/farmer/init.lua (+1/-0)
data/tribes/workers/frisians/fisher/init.lua (+1/-0)
data/tribes/workers/frisians/fruit_collector/init.lua (+1/-0)
data/tribes/workers/frisians/hunter/init.lua (+1/-0)
data/tribes/workers/frisians/landlady/init.lua (+1/-0)
data/tribes/workers/frisians/miner/init.lua (+1/-0)
data/tribes/workers/frisians/miner_master/init.lua (+1/-0)
data/tribes/workers/frisians/reed_farmer/init.lua (+1/-0)
data/tribes/workers/frisians/reindeer_breeder/init.lua (+1/-0)
data/tribes/workers/frisians/scout/init.lua (+1/-0)
data/tribes/workers/frisians/seamstress/init.lua (+1/-0)
data/tribes/workers/frisians/seamstress_master/init.lua (+1/-0)
data/tribes/workers/frisians/shipwright/init.lua (+1/-0)
data/tribes/workers/frisians/smelter/init.lua (+1/-0)
data/tribes/workers/frisians/smoker/init.lua (+1/-0)
data/tribes/workers/frisians/stonemason/init.lua (+1/-0)
data/tribes/workers/frisians/trainer/init.lua (+1/-0)
data/tribes/workers/frisians/woodcutter/init.lua (+1/-0)
data/txts/developers.json (+5/-3)
data/txts/developers.lua (+1/-1)
data/txts/translators_data.lua (+1/-1)
doc/sphinx/source/lua_tribes_workers.rst.org (+7/-0)
po/map_the_green_plateau.wmf/map_the_green_plateau.wmf.pot (+1/-1)
po/maps/maps.pot (+1/-1)
po/mp_scenario_island_hopping.wmf/mp_scenario_island_hopping.wmf.pot (+1/-1)
po/mp_scenario_smugglers.wmf/mp_scenario_smugglers.wmf.pot (+1/-1)
po/scenario_atl01.wmf/scenario_atl01.wmf.pot (+1/-1)
po/scenario_bar01.wmf/scenario_bar01.wmf.pot (+1/-1)
po/scenario_bar02.wmf/scenario_bar02.wmf.pot (+1/-1)
po/scenario_dummy.wmf/scenario_dummy.wmf.pot (+1/-1)
po/scenario_emp01.wmf/scenario_emp01.wmf.pot (+1/-1)
po/scenario_emp02.wmf/es.po (+122/-116)
po/scenario_emp02.wmf/scenario_emp02.wmf.pot (+1/-1)
po/scenario_emp03.wmf/es.po (+26/-8)
po/scenario_emp03.wmf/scenario_emp03.wmf.pot (+1/-1)
po/scenario_emp04.wmf/scenario_emp04.wmf.pot (+1/-1)
po/scenario_fri01.wmf/scenario_fri01.wmf.pot (+1/-1)
po/scenario_fri02.wmf/scenario_fri02.wmf.pot (+1/-1)
po/scenario_tutorial01_basic_control.wmf/scenario_tutorial01_basic_control.wmf.pot (+1/-1)
po/scenario_tutorial02_warfare.wmf/scenario_tutorial02_warfare.wmf.pot (+1/-1)
po/scenario_tutorial03_seafaring.wmf/scenario_tutorial03_seafaring.wmf.pot (+1/-1)
po/scenario_tutorial04_economy.wmf/scenario_tutorial04_economy.wmf.pot (+1/-1)
po/texts/es.po (+21/-20)
po/texts/texts.pot (+1/-1)
po/tribes/tribes.pot (+2/-2)
po/tribes_encyclopedia/ar.po (+152/-14)
po/tribes_encyclopedia/ast.po (+152/-14)
po/tribes_encyclopedia/bg.po (+152/-14)
po/tribes_encyclopedia/br.po (+152/-14)
po/tribes_encyclopedia/ca.po (+153/-15)
po/tribes_encyclopedia/cs.po (+152/-14)
po/tribes_encyclopedia/da.po (+152/-14)
po/tribes_encyclopedia/de.po (+154/-16)
po/tribes_encyclopedia/el.po (+152/-14)
po/tribes_encyclopedia/en_CA.po (+152/-14)
po/tribes_encyclopedia/en_GB.po (+152/-14)
po/tribes_encyclopedia/en_US.po (+152/-14)
po/tribes_encyclopedia/eo.po (+152/-14)
po/tribes_encyclopedia/es.po (+160/-21)
po/tribes_encyclopedia/et.po (+152/-14)
po/tribes_encyclopedia/eu.po (+152/-14)
po/tribes_encyclopedia/fa.po (+152/-14)
po/tribes_encyclopedia/fi.po (+154/-16)
po/tribes_encyclopedia/fr.po (+153/-15)
po/tribes_encyclopedia/fy.po (+152/-14)
po/tribes_encyclopedia/ga.po (+152/-14)
po/tribes_encyclopedia/gd.po (+152/-14)
po/tribes_encyclopedia/gl.po (+152/-14)
po/tribes_encyclopedia/he.po (+152/-14)
po/tribes_encyclopedia/hi.po (+152/-14)
po/tribes_encyclopedia/hr.po (+152/-14)
po/tribes_encyclopedia/hu.po (+152/-14)
po/tribes_encyclopedia/ia.po (+152/-14)
po/tribes_encyclopedia/id.po (+152/-14)
po/tribes_encyclopedia/ig.po (+152/-14)
po/tribes_encyclopedia/it.po (+152/-14)
po/tribes_encyclopedia/ja.po (+152/-14)
po/tribes_encyclopedia/jv.po (+152/-14)
po/tribes_encyclopedia/ka.po (+152/-14)
po/tribes_encyclopedia/ko.po (+153/-15)
po/tribes_encyclopedia/krl.po (+152/-14)
po/tribes_encyclopedia/la.po (+152/-14)
po/tribes_encyclopedia/lt.po (+152/-14)
po/tribes_encyclopedia/mr.po (+152/-14)
po/tribes_encyclopedia/ms.po (+152/-14)
po/tribes_encyclopedia/my.po (+152/-14)
po/tribes_encyclopedia/nb.po (+152/-14)
po/tribes_encyclopedia/nds.po (+153/-15)
po/tribes_encyclopedia/nl.po (+152/-14)
po/tribes_encyclopedia/nn.po (+152/-14)
po/tribes_encyclopedia/oc.po (+152/-14)
po/tribes_encyclopedia/pl.po (+152/-14)
po/tribes_encyclopedia/pt.po (+153/-15)
po/tribes_encyclopedia/pt_BR.po (+152/-14)
po/tribes_encyclopedia/ro.po (+152/-14)
po/tribes_encyclopedia/ru.po (+153/-15)
po/tribes_encyclopedia/rw.po (+152/-14)
po/tribes_encyclopedia/si.po (+152/-14)
po/tribes_encyclopedia/sk.po (+152/-14)
po/tribes_encyclopedia/sl.po (+152/-14)
po/tribes_encyclopedia/sr.po (+152/-14)
po/tribes_encyclopedia/sv.po (+153/-15)
po/tribes_encyclopedia/tr.po (+152/-14)
po/tribes_encyclopedia/tribes_encyclopedia.pot (+1/-1)
po/tribes_encyclopedia/uk.po (+152/-14)
po/tribes_encyclopedia/vi.po (+152/-14)
po/tribes_encyclopedia/zh_CN.po (+152/-14)
po/tribes_encyclopedia/zh_TW.po (+152/-14)
po/widelands/widelands.pot (+1/-1)
po/widelands_console/es.po (+19/-18)
po/widelands_console/widelands_console.pot (+1/-1)
po/widelands_editor/widelands_editor.pot (+1/-1)
po/win_conditions/win_conditions.pot (+37/-42)
po/world/world.pot (+1/-1)
src/economy/economy.cc (+5/-0)
src/economy/economy.h (+3/-0)
src/logic/game.cc (+1/-0)
src/scripting/lua_root.cc (+31/-2)
src/scripting/lua_root.h (+1/-0)
src/ui_basic/button.cc (+2/-4)
src/ui_basic/checkbox.cc (+0/-3)
src/ui_basic/panel.cc (+1/-1)
src/ui_basic/slider.cc (+1/-4)
src/ui_fsmenu/internet_lobby.cc (+6/-4)
src/website/CMakeLists.txt (+4/-0)
src/website/json/CMakeLists.txt (+10/-0)
src/website/json/json.cc (+138/-0)
src/website/json/json.h (+97/-0)
src/website/json/value.cc (+58/-0)
src/website/json/value.h (+71/-0)
src/website/map_info.cc (+12/-39)
src/website/map_object_info.cc (+81/-249)
utils/update_authors.py (+71/-16)
Changed in widelands: | |
assignee: | nobody → GunChleoc (gunchleoc) |
Changed in widelands: | |
status: | Fix Committed → Fix Released |
I also saw this error several times in trunk (last one was in r7194 on Win7). I have no backtrace, but the stdout ended with the same lines. Not that in bug 1342554, several people reported about similar issues (especially comment #3).