View disease research crashes in Malady.getDescription (nil value index) #12

Closed
opened 2015-10-14 00:20:23 +00:00 by bryceharrington · 4 comments
bryceharrington commented 2015-10-14 00:20:23 +00:00 (Migrated from gitlab.com)

Going into Research, then clicking on the Diseases tab crashes.

GAMERULES: Time Scale:	0
Data/Scripts/Malady.lua:410: attempt to index a nil value
stack traceback:
	Data/Scripts/Malady.lua in function 'getDescription'
	Data/Scripts/UI/ResearchAssignment.lua:237 in function 'getMaladyItemData'
	Data/Scripts/UI/ResearchAssignment.lua:221 in function 'getAllResearchItems'
	Data/Scripts/UI/ResearchAssignment.lua:111 in function 'onTick'
	Data/Scripts/UI/NewSideBar.lua:177 in function 'onTick'
	Data/Scripts/UI/GuiManager.lua:457 in function 'onTick'
	Data/Scripts/main.lua:267 in function <Data/Scripts/main.lua:219>

Program received signal SIGSEGV, Segmentation fault.
0x083538d1 in lj_debug_funcname ()

#0  0x083538d1 in lj_debug_funcname ()
#1  0x08353f34 in lj_debug_getinfo ()
#2  0x08354147 in lua_getinfo ()
#3  0x083542e0 in luaL_traceback ()
#4  0x083960aa in lj_cf_debug_traceback ()
#5  0x0834bf2f in lj_BC_FUNCC ()
#6  0x08358ebd in lua_pcall ()
#7  0x081c676b in MOAILuaState::DebugCall (this=0xffffca54, nArgs=1, nResults=0)
    at /dfp/burs/dfp-space/Common/Code/Moai/src/moaicore/MOAILuaState.cpp:181
#8  0x083b70f2 in MOAICoroutine::OnUpdate (this=0x8856c80, step=0)
    at /dfp/burs/dfp-space/Common/Code/Moai/src/moaicore/MOAICoroutine.cpp:258
#9  0x0822d350 in MOAIAction::Update (this=0x8856c80, step=0, pass=0, checkPass=true)
    at /dfp/burs/dfp-space/Common/Code/Moai/src/moaicore/MOAIAction.cpp:479
#10 0x0822d23a in MOAIAction::Update (this=0x8856a08, step=0.0166666675, pass=0, checkPass=128)
    at /dfp/burs/dfp-space/Common/Code/Moai/src/moaicore/MOAIAction.cpp:518
#11 0x0822f298 in MOAIActionMgr::Update (this=0x88a05d8, step=0.0166666675)
    at /dfp/burs/dfp-space/Common/Code/Moai/src/moaicore/MOAIActionMgr.cpp:200
#12 0x0823dc4b in MOAISim::StepSim (this=0x88a07f0, step=0.016666666666666666, multiplier=1)
    at /dfp/burs/dfp-space/Common/Code/Moai/src/moaicore/MOAISim.cpp:1186
---Type <return> to continue, or q <return> to quit---
#13 0x0823e2ff in MOAISim::Update (this=0x88a07f0)
    at /dfp/burs/dfp-space/Common/Code/Moai/src/moaicore/MOAISim.cpp:1316
#14 0x082a447e in AKUUpdate () at /dfp/burs/dfp-space/Common/Code/Moai/src/aku/AKU.cpp:618
#15 0x08194ea2 in gameLoop () at /dfp/burs/dfp-space/Space/Code/Host-SDL/Src/SDLHost.cpp:990
#16 0x081954e7 in eventLoop () at /dfp/burs/dfp-space/Space/Code/Host-SDL/Src/SDLHost.cpp:962
#17 0x081967f8 in GameHost (argc=3, argv_=0x88f3ed0)
    at /dfp/burs/dfp-space/Space/Code/Host-SDL/Src/SDLHost.cpp:1826
#18 0x08196e6b in main (argc=1, argv=0xffffcf24)
    at /dfp/burs/dfp-space/Space/Code/Host-SDL/Src/main.cpp:192
Going into Research, then clicking on the Diseases tab crashes. ``` GAMERULES: Time Scale: 0 Data/Scripts/Malady.lua:410: attempt to index a nil value stack traceback: Data/Scripts/Malady.lua in function 'getDescription' Data/Scripts/UI/ResearchAssignment.lua:237 in function 'getMaladyItemData' Data/Scripts/UI/ResearchAssignment.lua:221 in function 'getAllResearchItems' Data/Scripts/UI/ResearchAssignment.lua:111 in function 'onTick' Data/Scripts/UI/NewSideBar.lua:177 in function 'onTick' Data/Scripts/UI/GuiManager.lua:457 in function 'onTick' Data/Scripts/main.lua:267 in function <Data/Scripts/main.lua:219> Program received signal SIGSEGV, Segmentation fault. 0x083538d1 in lj_debug_funcname () #0 0x083538d1 in lj_debug_funcname () #1 0x08353f34 in lj_debug_getinfo () #2 0x08354147 in lua_getinfo () #3 0x083542e0 in luaL_traceback () #4 0x083960aa in lj_cf_debug_traceback () #5 0x0834bf2f in lj_BC_FUNCC () #6 0x08358ebd in lua_pcall () #7 0x081c676b in MOAILuaState::DebugCall (this=0xffffca54, nArgs=1, nResults=0) at /dfp/burs/dfp-space/Common/Code/Moai/src/moaicore/MOAILuaState.cpp:181 #8 0x083b70f2 in MOAICoroutine::OnUpdate (this=0x8856c80, step=0) at /dfp/burs/dfp-space/Common/Code/Moai/src/moaicore/MOAICoroutine.cpp:258 #9 0x0822d350 in MOAIAction::Update (this=0x8856c80, step=0, pass=0, checkPass=true) at /dfp/burs/dfp-space/Common/Code/Moai/src/moaicore/MOAIAction.cpp:479 #10 0x0822d23a in MOAIAction::Update (this=0x8856a08, step=0.0166666675, pass=0, checkPass=128) at /dfp/burs/dfp-space/Common/Code/Moai/src/moaicore/MOAIAction.cpp:518 #11 0x0822f298 in MOAIActionMgr::Update (this=0x88a05d8, step=0.0166666675) at /dfp/burs/dfp-space/Common/Code/Moai/src/moaicore/MOAIActionMgr.cpp:200 #12 0x0823dc4b in MOAISim::StepSim (this=0x88a07f0, step=0.016666666666666666, multiplier=1) at /dfp/burs/dfp-space/Common/Code/Moai/src/moaicore/MOAISim.cpp:1186 ---Type <return> to continue, or q <return> to quit--- #13 0x0823e2ff in MOAISim::Update (this=0x88a07f0) at /dfp/burs/dfp-space/Common/Code/Moai/src/moaicore/MOAISim.cpp:1316 #14 0x082a447e in AKUUpdate () at /dfp/burs/dfp-space/Common/Code/Moai/src/aku/AKU.cpp:618 #15 0x08194ea2 in gameLoop () at /dfp/burs/dfp-space/Space/Code/Host-SDL/Src/SDLHost.cpp:990 #16 0x081954e7 in eventLoop () at /dfp/burs/dfp-space/Space/Code/Host-SDL/Src/SDLHost.cpp:962 #17 0x081967f8 in GameHost (argc=3, argv_=0x88f3ed0) at /dfp/burs/dfp-space/Space/Code/Host-SDL/Src/SDLHost.cpp:1826 #18 0x08196e6b in main (argc=1, argv=0xffffcf24) at /dfp/burs/dfp-space/Space/Code/Host-SDL/Src/main.cpp:192 ```
Untrustedlife commented 2015-10-14 01:00:15 +00:00 (Migrated from gitlab.com)

Reassigned to @Untrustedlife

Reassigned to @Untrustedlife
Untrustedlife commented 2015-10-31 18:38:24 +00:00 (Migrated from gitlab.com)

So, after my rewrite , I haven't seen this issue pop up, but obviously I haven't had much time to test it, all maladies have an sDesc value. Rewrite still isnt done though havent had the time.

So, after my rewrite , I haven't seen this issue pop up, but obviously I haven't had much time to test it, all maladies have an sDesc value. Rewrite still isnt done though havent had the time.
Untrustedlife commented 2016-01-23 00:40:01 +00:00 (Migrated from gitlab.com)

As far as I can tell, its fixed.

As far as I can tell, its fixed.
Untrustedlife commented 2016-01-23 00:40:01 +00:00 (Migrated from gitlab.com)

Status changed to closed

Status changed to closed
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ald_productions/spacebase-v2-updated-code#12
No description provided.