Webpage reloaded because an error occurred

I don’t know if this is the right place to put this, please tell we where I should put this if I’m wrong

I want to preface this by saying that this never used to happen until the big update where they introduced cursor support etc.

I code on a iPad and it worked completely fine until that update, but now the webpage is constantly reloading because “an error repeatedly occured” and it takes so much longer to load as well.

I have no idea why this is happening and what to do about it but it’s really annoying because now things take 50x longer because it constantly reloads and the reloads take a lot longer. Another annoying issue associated with this is that 50% of the time it detects a conflicting change and creates a copy of my project whenever it reloads

1 Like

I experience this same issue when trying to code with blocks! Personally it happens more often in large projects. I think the makecode team codes mostly with computers, so I doubt they have this issue very often.

I think the issue might be partially because blocks that are off-screen are still rendered, so when you have a lot of blocks they are all rendered. Need to add some occlusion culling

1 Like

I literally cannot edit my latest creation because it reloads every single time I edit anything and doesn’t save the changes

1 Like

First, try turning off “low power mode” if it’s on. That is usually the issue with my iPhone.

If you ever get it to load for a second, try right clicking on the background and selecting “collapse blocks”. This will hopefully collapse enough blocks that it doesn’t break instantly. Then you can right click again and select “format code” and remove all the grey floating blocks if there are any, to decrease the amount being rendered.

Side note, does your iPad get warm when running Makecode for a while? If not, there may be some sort of artificial limit on the amount of resources Makecode can use, which would prevent it from working once it exceeded said limit. I don’t know how you would fix that, but just putting the thought out there.

1 Like

I never have low power mode on anyway since mine is fairly new and the battery is still good, And it doesn’t get warm when running makecode, so it might be that messing something up or of another error that crashes it before it gets warm. I’ll try collapsing everything, which makes a lot of sense now that I think of it.

1 Like