Fix is up at https://github.com/emscripten-core/emscripten/pull/21389
On Wed, Feb 21, 2024 at 12:31 PM Sam Clegg <[email protected]> wrote: > This looks like an issue with `hookGLFunction` in `library_webgl.js`. > Would you mind opening a bug? > > cheers, > sam > > On Wed, Feb 21, 2024 at 11:27 AM 'Dieter Weidenbrück (dweidenbrueck)' via > emscripten-discuss <[email protected]> wrote: > >> Hi, >> >> it looks like there may be an issue with glBufferSubData tracing. >> Take any example using glBufferSubData and compile with >> -sMIN_WEBGL_VERSION=2 >> -sMAX_WEBGL_VERSION=2 >> So far, so good. >> Now add >> -sTRACE_WEBGL_CALLS=1 >> >> it looks like the call is using a wrong hook during tracing. It misses >> the last parameter. >> This leads to a buffer overflow error. >> Switching off tracing returns everything to normal. >> >> The problem did not exist when I was using WebGL version 1. >> >> Thanks for any idea how to get around this. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "emscripten-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/emscripten-discuss/7f5ab91e-627a-49be-98ba-33e5d648031cn%40googlegroups.com >> <https://groups.google.com/d/msgid/emscripten-discuss/7f5ab91e-627a-49be-98ba-33e5d648031cn%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAL_va29g1-N1ORxH0daWAdKgG9REcMvQ9KvWL%3DU3sUFLZn-cug%40mail.gmail.com.
