UltraStar-Deluxe / Play

Free and open source singing game with song editor for desktop, mobile, and smart TV
https://ultrastar-play.com
MIT License
398 stars 74 forks source link

MelodyMania crashes requiring forced reboot of windows #466

Open pagdot opened 3 months ago

pagdot commented 3 months ago

Issue type: Bug report

Actual behaviour

When browsing to the song (not yet opening, just switching around in the song selection) the game freezes and can't be closed, force closed using windows close task popup, task manager or even taskkill /F/IM "melody mania.exe" (something like can't kill process with id 123. A task with this pid was not found). Had to force reboot windows.

This issue happened two times. First after leaving the game alone for ~2h after initial start and preparation. As soon as (I guess cached items) were exhausted and it had to load things from the disk. Second time happened when browsing to a new song.

My guess is an issue with the controller on the external drive containing the songs. USDX had never these issues. Switched to USDX after the second crash and ran stable for a few more hours.

Tried to browse to the songs it crashed on while writing the issue and worked flawless. So probably not related to the song-files themselves.

Expected behaviour

No crash. Or at least a clean one

Steps to reproduce

Happened due browsing of songs. Can't reproduce it directly.

Details

Provide some additional information:

Further notes/my thoughts

Pretty sure the issue is related to the usb m.2 sata controller. Although USDX had neither before nor after issues with this drive. Can try the next time when I do karaoke to attach a debugger to get a stack trace or something.

I am aware that this is probably isn't something which can be resolved with the current information

achimmihca commented 3 months ago

Hi, thanks for the bug report.

It would be interesting to have a log file if this happens again. For such a crash, the file Player.log includes some more details. See here to find the log file.

This issue happened two times. First after leaving the game alone for ~2h after initial start and preparation. As soon as (I guess cached items) were exhausted and it had to load things from the disk.

Would be nice to know if the issue is reproducible like this. If the uptime is important then I could also imagine a memory leak.

achimmihca commented 3 months ago

Recently, I also had a similar behaviour: game took unusually long to scroll to the next song. At first, it seemed like a freeze but after some time (say a minute or two), it continued just fine.

I could imagine that there is some file operation that causes this delay. Maybe because the OS needs to fetch some files.

So next time this happens it would be nice to do two things

pagdot commented 2 months ago

Here is my Player.log

Will try to reproduce it in the future and check if it will resolve on its own.

achimmihca commented 2 months ago

Thanks for the log, but this one did not contain a crash. When the crash happens, please copy attach the file again.

Note that the file is overwritten on each start of the game. So if the crash happens, please make a copy of the log file immediately.