OfficialIncubo / BeatDrop-Music-Visualizer

The Milkdrop2 Music Visualization Standalone, only for Windows
https://twitter.com/BeatDropVis
Other
40 stars 2 forks source link

Self-Restart BeatDrop when it appears the "To free up some memory..." message #11

Closed OfficialIncubo closed 12 months ago

OfficialIncubo commented 1 year ago

When I resize, maximize, going to full-screen or stretch this visualizer to all monitors, it sometimes appears the "To free up some memory..." message. When I click "OK", it closes the program and it self-restarts BeatDrop!

I need the C++ algorithm which makes the program (or .exe file) self-restarted.

milkdrop2077 commented 1 year ago

I actually spent a few nights tracking that bug. It come from your textures folder. too many pictures have the same name with different extension, ex: test1.jpg and test1.png = once you load one of them with a preset, it will makes beatdrop crash.

OfficialIncubo commented 1 year ago

Ikr! How did you fix the bug with the loading textures? By implementing the algorithm that if the texture name is the same, then re-rolling a new texture again?

Is there a C++ code that actually restarts the same program?

milkdrop2077 commented 1 year ago

don't restart the program, just remove textures with the same name or change how beatdrop load the textures

OfficialIncubo commented 1 year ago

Some textures in this folder doesn't have the same name! There are some textures with same name, but also a prefix (e.g. Kaboom2.jpg, Kaboom4.jpg etc).

OfficialIncubo commented 12 months ago

I have migrated my BeatDrop improvement from DX9 to DX9EX, trying to load some presets with textures again and again and....

No more "To free up some memory..." message!