openkore icon indicating copy to clipboard operation
openkore copied to clipboard

Assertion (invIndex must be defined) failed, after running tests

Open farrainbow opened this issue 9 years ago • 3 comments

Half of the time tests will pass, the other half of the time I get this error:

1..1043
	(in cleanup) Assertion (invIndex must be defined) failed!
 at /home/rachel/Projects/OpenKore/openkore/src/test/../deps/Carp/Assert.pm line 271.
	Carp::Assert::assert('', 'invIndex must be defined') called at /home/rachel/Projects/OpenKore/openkore/src/test/../InventoryList.pm line 288
	InventoryList::doClear('InventoryList::Inventory=HASH(0x2a6c190)') called at /home/rachel/Projects/OpenKore/openkore/src/test/../Utils/ObjectList.pm line 232
	ObjectList::clear('InventoryList::Inventory=HASH(0x2a6c190)') called at /home/rachel/Projects/OpenKore/openkore/src/test/../InventoryList.pm line 80
	InventoryList::DESTROY('InventoryList::Inventory=HASH(0x2a6c190)') called at ./unittests.pl line 0
	eval {...} called at ./unittests.pl line 0

farrainbow avatar Jan 19 '17 18:01 farrainbow

How about invIndex?

ghost avatar Jul 20 '17 18:07 ghost

Try loading only nonstackable items in inventory and later only stackable.

ghost avatar Sep 04 '17 07:09 ghost

M (i guess)@farrainbow

I had received this error using the wrong packet ID when sending use item.

ghost avatar Jun 30 '20 03:06 ghost