Summary: | Hang when using glWaitSync with multithreaded shared GL contexts | ||
---|---|---|---|
Product: | Mesa | Reporter: | Emmanuel Durand <emmanueldurand> |
Component: | Drivers/Gallium/radeonsi | Assignee: | Default DRI bug account <dri-devel> |
Status: | RESOLVED MOVED | QA Contact: | Default DRI bug account <dri-devel> |
Severity: | normal | ||
Priority: | high | ||
Version: | git | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
Output of dmesg
Xorg log Source code exhibiting the issue output from gdb |
Description
Emmanuel Durand
2019-09-23 14:21:18 UTC
Created attachment 145473 [details]
Xorg log
Created attachment 145474 [details]
Source code exhibiting the issue
Created attachment 145487 [details]
output from gdb
Using the env var "GALLIUM_THREAD=0" makes the issue worse (the example hangs at the first iteration).
One app thread is stuck at: glWaitSync(_textureUploadFence, 0, GL_TIMEOUT_IGNORED);
The other thread is stuck waiting for the first thread to release the mutex. Before waiting for the mutex it made a call to: "_textureUploadFence = glFenceSync(GL_SYNC_GPU_COMMANDS_COMPLETE, 0);"
All the mesa internal threads are waiting for work to do.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/1430. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.