Cuberite Forum
Memory corruption in cInventory in Creative - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Development (https://forum.cuberite.org/forum-13.html)
+--- Thread: Memory corruption in cInventory in Creative (/thread-486.html)



Memory corruption in cInventory in Creative - xoft - 06-13-2012

Lately when I test inventory-related stuff, I'm getting a memory corruption assert in CRT in cInventory::~cInventory() at the "delete[] m_Slots" line. This only happens when I use inventory in Creative mode, and only sometimes. And the problem seems recoverable - after I click Ignore, MCServer runs without a hitch.

I don't know what's going on here, is the inventory somehow corrupted? How?

Is there anyone getting the same problem somehow?

EDIT: I've first seen this happen about two months ago, maybe even earlier, so it's not related to any new changes. It just didn't occur too often (I wasn't fiddling with the Inventory by then)


RE: Memory corruption in cInventory in Creative - FakeTruth - 06-13-2012

I have this as well!

I found this such a mysterious crash, that I thought I might be the only one.
I'm running a MCServer 24/7 and it (used to) crash a lot, and many times it was the inventory crash.

I have no clue what's causing it...