RuntimeError: memory access out of bounds (Solved)

I advanced a little more in the level and I start to get the same error, I go to preview, it starts to load, and it stops loading.
I do not know what else to do





Finally I think I have found the cause. The error was that I had copied elements from one scene and pasted into another, but this new scene did not have the object in the panel, therefore it was not visible in the scene, but it was there, when copying the object from the panel of the scene previous, to the panel of the new scene, the object automatically appears in the scene, but a conflict is created there, and it does not allow previewing.
can be fixed on the fly by simply pasting the missing objects into the panel, selecting all instances in the scene, and deleting them
but you shouldn’t preview during this because it will break the level.
It is important not to paste an object into the scene if it is not in the object panel. If you add the object to the panel after placing it in the scene, what happened to me will happen to you.

Great. :clap:
Unfortunately, I’m unable to reproduce the issue on my side following your instructions.

How weird. I will try to explain it better, if you want try this. A scene with some object, copies the scene object. Paste it into the new scene.
the pasted object will be invisible but you can select it, the object is renamed automatically (different object) and cannot be edited etc… Well, until then the game will work. The next step would be if you copy the object from the object panel from the old scene and paste it into the new one, the object will automatically be seen in the scene, where it was previously invisible and called itself “different object”. it will go to preview and some error should appear.

The previous explanation was clearer somehow. :grin:
I have a scene with four instances of an object. I select and copy those instances.
I create another scene and paste the instances into the scene.
Then I go back to the first scene, I copy the object in the object list, and paste it in the object list of the second scene. I hit preview and see no errors.
Did you reproduce that issue in a separate test project as well?

xDDDDDD
No, I didn’t test it apart from my project. So the problem is another but it is somehow intertwined with this one. Well I’ve been testing a lot with the backed up project which is bug free, I’ve been adding things and developing the level further, and with each change I’ve made I’ve tested the preview and it works fine. I pasted the objects in the objects panel that were missing but were already in the scene and couldn’t preview anymore.
If you want to do one last test, which I forgot to mention. After doing all the procedure, save it, close the program, then reopen the game, launch the preview and if it works fine then it must be something else causing the error, but this has to be related.

It’s true. I tried it separately in another project and it works fine, so there is something else in my project that conflicts with this procedure

the error has returned to my project… pfff

An emotional rollercoaster. :smile: :man_in_lotus_position:

Terrible… including the error in the backup copies that I had and they worked fine

should not have tried to recreate the problem. If you did it in a scene, it would break the game.
But now that I did it in a separate game, it damaged all my game backup folders.
Do I reinstall Gdevelop?

Feel free to. :person_shrugging:
I still think it’s just a syntax issue somewhere.

Finally it was due to the excessive size of the image files. I am reducing the size of the most conflicting image files and the error has stopped appearing, even the game saves faster. I was having severe optimization and performance issues.

1 Like