OpenKore / OpenKore/openkore

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

Open
#408 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Perl
Stars
1.5k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the cleanup stack in InventoryList.pm and ObjectList.pm, especially InventoryList::doClear and ObjectList::clear, then inspect the assertion in Carp/Assert.pm. Run unittests.pl repeatedly to reproduce the intermittent failure. Done means the test run completes without the invIndex assertion during cleanup.

Written by the indexing model from the issue text.

Assessment

Tech stack
perl
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.