I recently bought a new computer and thought that it might be good also to upgrade the cocos version from 3.8.1 to 3.15.1 to be up to date.
Currently on my old computer the game in development works without crashes both on iOs and Android using 3.8.1. On my new computer I downloaded 3.15.1, installed the required libraries, created a new project, opened it in XCode, moved all the required files from my old projects and installed fMOD and did the same in the android studio project.
Both projects compiled without an error and I was pleased that everything went so smoothly.
However when playing the game on devices after a random amount of time the game crashed with an EXC_BAD_ACCESS on Android and iOS.
The problem now is that this error occurs in random classes. Have a look at this screenshots:
The problem persists on iOS and Android, indicating that it has nothing to do with Andriod SDKs, NDK and other stuff.
Is there anybody that has an idea what I am doing wrong? It seems that somewhere memory is released that should not be released, but I have no clue how I could isolate this, as the error occurs each time in another class. Its also confusing because in 3.8.1 everything was running smoothly – no leaks, no EXC_BAD_ACCESS even after an hour of playing the game.
Any help will be appreciated