grovesNL / glow

GL on Whatever: a set of bindings to run GL anywhere and avoid target-specific code
Apache License 2.0
1.17k stars 130 forks source link

Fix panic on invalid string in debug_message_callback #273

Closed Rodrigodd closed 9 months ago

Rodrigodd commented 9 months ago

I stumble in a case where the debug_message_callback where panic'ing on non utf8 strings on android, and because I was using panic abort, it was crashing the library.

I didn't investigate why the debug callback was receiving invalid strings. I stumble on it while porting a WGPU application to android. It is happening together with a FramebufferTexture2d::<attachment> is not valid error, that logged many times per frame, which I still need to investigate, not sure if it is related.