emscripten-core / emscripten-core/emscripten
WebGL: INVALID_OPERATION: useProgram: attempt to use a deleted object
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
Please include the following in your bug report:
**Version of emscripten/emsdk:**
Please include the output `emcc -v` here
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.73 (cbdb74973483dba58d9a78bf7ef6c0543d1a055f)
clang version 20.0.0git (https:/github.com/llvm/llvm-project 1d810ece2b2c8fab77720493864257f0ea3336a9)
Target: wasm32-unknown-emscripten
Thread model: posix
**Failing command line in full:**
If this is compile or link-time failure please include the full failing command
along with its entire output.
**Full link command and output with `-v` appended:**
Even for runtime issues it helps a lot if you can include the full link command.
Adding `-v` to the link command will show all of the sub-commands run which
can help us diagnose your issue.
at runtime, in a specific timing scenario, the console shows this error:
```
| blitOffscreenFramebuffer | @ | 206cdb5……e19ccd8ff25.js:9661
-- | -- | -- | --
| _emscripten_webgl_do_commit_frame | @ | 206cdb5……19ccd8ff25.js:12731
| $_do_call | @ | 9cb0897……5399.wasm:0x10853ba
| $em_task_queue_execute | @ | 9cb0897……05399.wasm:0xbbc83e
| $receive_notification | @ | 9cb0897……5399.wasm:0x18ff27d
| $em_task_queue_execute | @ | 9cb0897……05399.wasm:0xbbc83e
| $_emscripten_check_mailbox | @ | 9cb0897……5399.wasm:0x1a4aaf1
| (anonymous) | @ | 206cdb5……0e19ccd8ff25.js:684
| callUserCallback | @ | 206cdb5……e19ccd8ff25.js:9203
| checkMailbox | @ | 206cdb5……e19ccd8ff25.js:9235
```
I have created a PR that avoids showing this harmless error
https://github.com/rickg-hcl/emscripten/compare/master...rickg-hcl-patch-1
Contributor guide
Assessment
This issue has not been assessed yet.