[BUG] WebGL 2 Low-Level Crashes with Memory access out of bounds onaudioprocess
I’ve got a beta version of my game on itch but there is a weird bug that happens occasionally where it repeatedly gets errors in the the Rive Runtime for WebGL 2.
0068404e:0x35409 Uncaught RuntimeError: memory access out of bounds
at 0068404e:0x35409
at 0068404e:0x353d1
at 0068404e:0x3d5d0
at 0068404e:0x3d522
at 0068404e:0x1bb3e
at 0068404e:0x1b7c3
at 0068404e:0x1a831
at 0068404e:0x1bbe0
at g.Z.onaudioprocessThe line it is crashing on is the beginning of this for loop
for (Qa(f, d, e), m = 0; m < p.outputBuffer.numberOfChannels; ++m) {
for (t = p.outputBuffer.getChannelData(m), v = g.wa, x = 0; x < d; x += 1) {
t[x] = v[x * b + m];
}
}Not sure how to reproduce it but from the context it looks like it has to do with audio. In my game it usually happens when you recruit all 3 characters, go into the church, and leave again so I understand if it’s hard to reproduce but maybe the code gives an idea of how to fix it.
https://joelpage.itch.io/querent
Thanks!