Lemmings Forums

NeoLemmix => Community Edition => Closed => Topic started by: Simon on March 04, 2025, 01:58:53 AM

Title: [✓][BUG][PL] Crash after quit: Press ESC twice during level preview
Post by: Simon on March 04, 2025, 01:58:53 AM
NL CE 1.0 in Wine 10.2 on Arch Linux.


20-second video of the crash (https://www.lixgame.com/etc/ce-crash-mash-esc.mp4)

Expected instead: No crash. I should get the same result regardless of how often I mash Esc during the fade-outs.

The program quits cleanly when I wait until the main menu has finished fading in before I press Esc the second time.

No data is lost. The program has already saved all user options and level results before it ever tries to quit from the main menu.

-- Simon
Title: Re: [BUG] Crash after quit: Press ESC twice during level preview
Post by: WillLem on March 04, 2025, 02:40:49 AM
Went to move this to the Community Edition bugs board, but of course it doesn't exist yet!

What was decided regarding this? Shall I just use the existing NL bugs board? It seems better for CE to have its own, but I'm happy to go with whatever's decided.



I can replicate the bug in Windows 11. I'll find a fix soon.
Title: Re: [BUG] Crash after quit: Press ESC twice during level preview
Post by: WillLem on March 04, 2025, 07:46:22 PM
Should be fixed in:

CE commit 3fad407
SLX commit 2ee282d

Used madExcept to help track down the cause, added a check to ensure valid pointer in the buggy method.
Title: Re: [FIXED][BUG] Crash after quit: Press ESC twice during level preview
Post by: Simon on March 06, 2025, 02:11:46 AM
Thanks for looking at this so quickly! Happy to test it when you release binaries for the next time. I don't have a Delphi build toolchain here.

-- Simon