Aardurel / aard-plugins

MUSHclient plugins for Aardwolf
MIT License
21 stars 15 forks source link

Error raised in timer function #2

Open Mandrakx opened 5 years ago

Mandrakx commented 5 years ago

I'm getting the following error:

DINV inv.config.load: inventory configuration table format is nil DINV inv.config.init.atActive: failed to load config data from storage: internal error DINV inv.init.atActiveCR: Failed to initialize "at active" inv.config module: internal error Error raised in timer function (in wait module). stack traceback: [C]: in function 'assert' [string "Plugin: aard_inventory"]:19849: in function 'loadTable' [string "Plugin: aard_inventory"]:11040: in function 'load' [string "Plugin: aard_inventory"]:10897: in function 'atActive'

Run-time error Plugin: aard_inventory (called from world: Aardwolf) Function/Sub: wait.timer_resume called by timer Reason: processing timer "wait_timer_1574" G:\Program Files (x86)\MUSHclient\lua\wait.lua:51: [string "Plugin: aard_inventory"]:19849: assertion failed! stack traceback: [C]: in function 'error' G:\Program Files (x86)\MUSHclient\lua\wait.lua:51: in function <G:\Program Files (x86)\MUSHclient\lua\wait.lua:43>

Any clue what it could be?

Aardurel commented 5 years ago

From what I can tell, the file I/O library is returning an error intermittently when dinv tries to read a table from disk. I haven't been able to reproduce this issue, but I know of one other player that has seen it. I just published release 2.0050 with some additional logging that hopefully will shed more light on this if it happens again. Knowing precisely which error code is reported when this happens should help pinpoint the root cause instead of simply throwing an assert and exiting as we did in previous dinv builds.