Skip to content

Fix infinite loop in BookmarkListBatchRenderer.sizePages() when there's no space …#170

Open
Monniasza wants to merge 1 commit intoCleanroomMC:cleanroomfrom
Monniasza:patch-1
Open

Fix infinite loop in BookmarkListBatchRenderer.sizePages() when there's no space …#170
Monniasza wants to merge 1 commit intoCleanroomMC:cleanroomfrom
Monniasza:patch-1

Conversation

@Monniasza
Copy link

…for any items

Closes Nomi-CEu/Nomi-CEu#1519

This PR essentially adds deadlock detection by storing previous progress from the method. If it is found that iteration of the outermost loop has not added any slots, is is known that further iterations will not fit any more since the item index is the same.

@Rongmario
Copy link
Member

Possible to add that condition in the while(...) instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Nomifactory CEu will crash reliably when opening crafting status with a small window

2 participants