ValentinFunk / LibK

Library for fast gmod addon development
MIT License
53 stars 21 forks source link

Broken when equpping and unequipping #28

Open ghost opened 4 years ago

ghost commented 4 years ago

I have a no idea.

addons/libk-master/lua/libk/shared/sh_util.lua:252: attempt to index local 'dbginfo' (a nil value)

LUA Error in Controller Pointshop2Controller action unequipItem:

nil cannot start a transaction within a transaction (BEGIN)

    addons/libk-master/lua/libk/shared/sh_util.lua:252: attempt to index local 'dbginfo' (a nil value)

LUA Error in Controller Pointshop2Controller action equipItem:

nil WARNIG: uncaught error in Promise: 0 cannot start a transaction within a transaction (BEGIN)

    addons/libk-master/lua/libk/shared/sh_util.lua:252: attempt to index local 'dbginfo' (a nil value)

LUA Error in Controller Pointshop2Controller action unequipItem:

nil WARNIG: uncaught error in Promise: 0

image When i equipping weapons items..

Marco15453 commented 4 years ago

I have the Same Errror

ValentinFunk commented 4 years ago

Could you try and see if anything is further up the console? This looks like that at some point a function fails but i'm fairly sure the errors here are only happening because of an earlier error (the trace could even be from a different addon)

Marco15453 commented 4 years ago

I have this

L 07/09/2020 - 19:50:56: Lua Error: addons/libk/lua/libk/shared/sh_util.lua:258: attempt to index local 'dbginfo' (a nil value) stack traceback: [C]: in function '__index' addons/libk/lua/libk/shared/sh_util.lua:258: in function 'dpt' addons/pointshop2/lua/ps2/server/sv_pointshopcontroller_shop.lua:478: in function 's' addons/libk/lua/libk/shared/1_sh_promises.lua:57: in function 'f' addons/libk/lua/libk/shared/1_sh_promises.lua:184: in function 'f' addons/libk/lua/libk/shared/1_sh_promises.lua:184: in function 'Resolve' addons/libk/lua/libk/shared/1_sh_promises.lua:69: in function 'f' addons/libk/lua/libk/shared/1_sh_promises.lua:184: in function 'Resolve' addons/libk/lua/libk/server/sv_libk_database.lua:178: in function 'callback' addons/libk/lua/libk/server/sv_libk_database.lua:151: in function <addons/libk/lua/libk/server/sv_libk_database.lua:150> [C]: in function 'fn' addons/ulib/lua/ulib/shared/hook.lua:109: in function <addons/ulib/lua/ulib/shared/hook.lua:92>

Marco15453 commented 3 years ago

You can comment out the local dbginfo inside of sh_util.lua in LibK i did that too and it works now this is not a perma solution but it temporary disables this issue.