Area to push for fixing the sound related crash problem

If you have a game that has a lot of sound/music, and it crashes after a while, it is a bug that needs fixed. My game “Little Fishing!” Has this problem, since almost every interaction makes a new sound or song. After a lot of sound/music has been played, it can’t keep up and makecode crashes. This is an area to use to get the moderators and makecode bug fixers attention to speed up the process of them fixing this. This is to help makecode be a better(and less buggy) program for all!

3 Likes

@richard and @jwunderl have talked about this on stream and it seems to be more an issue with the browser than MakeCode. This is unfortunate, and I don’t personally understand the issue, but that’s where we’re currently at with this bug.

2 Likes

do you mean the program literally crashes, or the sound starts to get a little weird?

1 Like

After enough sound events, the simulator frame displays the same thing it displays when your program has an out of memory error, but it’s not the program that’s out of memory, it’s the frame the sim is in that plays the sound events.

Something I forgot to mention before is that if you play it in Firefox it will last much longer before crashing.

1 Like

Thank you for telling me!

1 Like

Program will straight up crash with out warning

1 Like

I work on it at school, and we can only use chrome, edge, and safari

So it runs out of memory to play the sound?

For some reason the sound events are wasting memory even though Richard made it so that sound threads are reused and not created new every time.

1 Like