spam Insert Item in map-server log #9883
-
|
what causing this message "[map][debug] ItemContainer: Container is full (InsertItem:145)" to repeatedly be logged on map server?! Note: vanilla LSB , just using commands around. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
Not sure, you'd have to add a breakpoint here server/src/map/item_container.cpp Line 145 in 8d09685 then give us the call stack after triggering the error. I had a hunch that it might be Recycle Bin but I tried enabling/disabling it and I didn't see the error. |
Beta Was this translation helpful? Give feedback.
-
|
thank you found it. in line 2904 of charutils.cpp, they try to insert then check for error. |
Beta Was this translation helpful? Give feedback.
-
|
This was fixed in #9870 which was approved (2x) but not merged so I merged it. |
Beta Was this translation helpful? Give feedback.
thank you found it. in line 2904 of charutils.cpp, they try to insert then check for error.
I fixed it by deleting that line and change the if condition to check if there are free slot in that container and put the insert inside the if block.
Also needed to fix the 2 insertitem functions in item_container.cpp.