Skip to content

Conversation

sukibaby
Copy link
Collaborator

@sukibaby sukibaby commented Jul 10, 2025

Switching to unique_ptr / make_unique manages the lifetime of the object automatically and also handles cleanup automatically. Addresses a common crash when loading MP3 via drag and drop.

uvcat7 and others added 5 commits July 9, 2025 12:41
Update for branch rename
- Receptor Position
- Zoom Level
- Scale Level
Switching to unique_ptr / make_unique manages the lifetime of the object automatically and also handles cleanup automatically. Addresses a common crash when loading MP3 via drag and drop.
@sukibaby sukibaby force-pushed the sukibaby-patch-mp3load branch from 10f4dae to 8ec05f9 Compare July 10, 2025 09:49
@sukibaby sukibaby added the Bug label Jul 10, 2025
@uvcat7
Copy link
Owner

uvcat7 commented Jul 10, 2025

This still crashes if you drag multiple MP3 files into the editor at once.

@uvcat7
Copy link
Owner

uvcat7 commented Jul 10, 2025

I fixed the crash that was happening on my version. It happens more often with higher FPS (so turn your vsync off to test), and won't happen at all with multithreading disabled.
I tried like 20-30 copies and no crashes now.

@uvcat7 uvcat7 changed the base branch from beta to release-1.0.1 July 10, 2025 21:46
@sukibaby
Copy link
Collaborator Author

It seems to work just as well here, so I'll approve it.

Fwiw regarding the FPS thing, I typically use AV on a 60hz monitor, but I have a 165 and a 180hz monitor as well. In the future I'll be sure to test changes on both the higher refresh rate monitors.

@uvcat7
Copy link
Owner

uvcat7 commented Jul 10, 2025

FWIW this seems to have been most common on mp3 because the editor converts to .ogg internally which takes a second

@uvcat7 uvcat7 merged commit 2f5574c into release-1.0.1 Jul 10, 2025
2 checks passed
@uvcat7 uvcat7 deleted the sukibaby-patch-mp3load branch July 10, 2025 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants