[✓][BUG][PL] Crash after quit: Press ESC twice during level preview

Started by Simon, March 04, 2025, 01:58:53 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Simon

NL CE 1.0 in Wine 10.2 on Arch Linux.

  • Start CE.
  • Click in the main menu to go to a level preview.
  • Wait for the fade-in to finish or not, it makes no difference.
  • Press Esc to start the level preview's fade-out.
  • Press Esc a second time, either before the level preview has finished fading out, or before the main menu has finished fading in.
  • Watch the main menu fading out.
  • See NL crash. Screenshot of the error box is in the attachment.

20-second video of the crash

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

WillLem

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.

WillLem

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.

Simon

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

Simon

Do you think that this fix warrants a new release for CE? It has sat unreleased now for 7 weeks.

There will be Level of the Year 2024 and Design Contest 32 soon. CE has made it more interesting for me to livestream solving NL levels, and you'll get better feedback for newer versions.

-- Simon

WillLem

Quote from: Simon on April 23, 2025, 05:17:42 PMDo you think that this fix warrants a new release for CE?

I was going to add a few more features before doing another release but sure, I can release the current working version as a hotfix.

I've been concentrating on other things for the past few weeks as I have a lot of irl stuff going on. Should probably have done a "comings and goings" post.

I'll get a hotfix out later today or tomorrow and update the release schedule ETAs.

Simon