Skip to content

Assertion failed: target_thread, at: library_pthread.c,347,emscripten_async_queue_call_on_thread #7684

@legend-chen

Description

@legend-chen

I actually spend a long time to figure out what happened, since i just updating sdk from 1.38.11 to 1.38.21.

The projects compiled by 1.38.21 with USE_PTHREADS and emscripten_webgl_create_context run correctly, but it failed with USE_PTHREADS and SDL.

please test sdl_gl_mapbuffers.c (in emscripten's tests)

sdl_gl_mapbuffers:
	emcc $@.c -g3 -o $@.html -s USE_PTHREADS=1 -s FULL_ES3=1 -lSDL -lGL 

maybe not InitWebGLTls in 1.38.21\system\lib\gl\webgl1.c

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions