UltraStar-Deluxe/USDX

Crash with last page of specific song in editor mode - error message asks for reporting

rosepetaldevourer opened this issue · 2 comments

Actual behaviour

Game crashes after checking final page of a specific song file in editor mode.

Expected behaviour

No crash

Steps to reproduce

  1. Open the ultrastardx.exe
  2. Select Sing.
  3. Select song Ann Lee - 2 Times
  4. Press E to go into editor mode
  5. Press Up key to get to the last page of the song
  6. Crash happens.

Details

Error message window asking to report issue:
image

Error log after first crash:
Error.log

  • USDX version: 2024.5.1

  • Operating System + version: Edition Windows 10 Home
    Version 22H2
    Installed on ‎23/‎02/‎2021
    OS build 19045.4529
    Experience Windows Feature Experience Pack 1000.19058.1000.0

Something is wrong with one of the two OpenGL matrices or the OpenGL viewport. The calculated mipmap level is so large or so negative that it doesn't fit into 32 bits.

We could avoid the exception by clamping the value before it is converted into an integer, but that would just hide the underlying problem. Maybe log the input values when the result is seriously out of range?

Btw., the line number 1419 is wrong. The exception happens in 1283.

@rosepetaldevourer, please try this build: https://github.com/UltraStar-Deluxe/USDX/actions/runs/10767894246/artifacts/1907553654
It will still crash, but the Error.log file will help us find the cause.