Jump to content

[B41.65] "Stash debuggers" error


Tchernobill

Recommended Posts

Hi,

 

When I click on "Stash debuggers" of the debug menu, I got an error and no stash debug interface (see following extract of lua code and console.txt).

My minimal context:

  • B41.65
  • -debug
  • run local HOST server
  • no mod

 

StashDebug.lua

function StashDebug:populateList()
    self.datas:clear();
    for i=0,StashSystem.getPossibleStashes():size()-1 do --here is the size identified in the console log
        local stash = StashSystem.getStash(StashSystem.getPossibleStashes():get(i):getName());
        self.datas:addItem(stash:getName(), stash);
    end
end

console.txt

LOG  : General     , 1640350739716> 585?477?464> -------------------------------------------------------------
attempted index: size of non-table: null

LOG  : General     , 1640350739716> 585?477?464> -----------------------------------------
STACK TRACE
-----------------------------------------
function: populateList -- file: StashDebug.lua line # 72
function: initialise -- file: StashDebug.lua line # 66
function: OnOpenPanel -- file: StashDebug.lua line # 146
function: onClick -- file: ISDebugMenu.lua line # 99
function: onMouseUp -- file: ISButton.lua line # 56

ERROR: General     , 1640350739717> 585?477?464> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: size of non-table: null at KahluaThread.tableget line:1689.
ERROR: General     , 1640350739717> 585?477?465> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: attempted index: size of non-table: null
	at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1689)
	at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:641)
	at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163)
	at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1980)
	at se.krka.kahlua.vm.KahluaThread.pcallBoolean(KahluaThread.java:1924)
	at se.krka.kahlua.integration.LuaCaller.protectedCallBoolean(LuaCaller.java:104)
	at zombie.ui.UIElement.onMouseUp(UIElement.java:1228)
	at zombie.ui.UIElement.onMouseUp(UIElement.java:1183)
	at zombie.ui.UIManager.update(UIManager.java:808)
	at zombie.GameWindow.logic(GameWindow.java:253)
	at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
	at zombie.GameWindow.frameStep(GameWindow.java:745)
	at zombie.GameWindow.run_ez(GameWindow.java:661)
	at zombie.GameWindow.mainThread(GameWindow.java:475)
	at java.base/java.lang.Thread.run(Unknown Source)
LOG  : General     , 1640350739717> 585?477?465> -----------------------------------------
STACK TRACE
-----------------------------------------
function: populateList -- file: StashDebug.lua line # 72
function: initialise -- file: StashDebug.lua line # 66
function: OnOpenPanel -- file: StashDebug.lua line # 146
function: onClick -- file: ISDebugMenu.lua line # 99
function: onMouseUp -- file: ISButton.lua line # 56

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...