Hello guys?
I discovered a bug that I discovered whereas constructing the beta model of the sport this time, so please share. That is an error that solely happens in Signed APK, not in debug mode.
The replica methodology is easy, however by loading two or extra of any AudioClip, it performs indefinitely via the scheduler. Then quickly the app crashes.
like this
this.schedule(this.playEffect);
playEffect() {
const audioList = this.assetManager.audioList(-> that is preloaded audio clip array);
for (let i in audioList) {
this.audioManager.playEffect(audioList[i]);
}
}
That is an error that doesn’t happen in debug mode, so it took me a very long time to search out it. I solved it with protection logic, however I believe this can be a very large drawback.
I’m utilizing cocos creator model 3.5.2 now.
NewProject_10.zip (172.6 KB)
My take a look at result’s regular, no crash.
To begin with, I confirmed that there isn’t any drawback with the mission you uploaded, however after we add some sound results which are being utilized in our sport to the mission, an error happens once more.
Contemplating this phenomenon, plainly an error happens when a particular sound impact is added, however I don’t know what precisely is the issue.
The construct settings have been modified to the present construct settings of our mission, and the compilation SDK model is 30.
NewProject_10 2.zip (2.9 MB)