diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2021-04-22 08:42:33 +0200 |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2021-06-04 16:09:55 +0200 |
commit | a3ee3b1ac6752cb1e1bf86f8ef972f7d410e1d50 (patch) | |
tree | c90936686ee97724759a8a3abd8982c908a5aa73 /README | |
parent | 0971d58c6182641987c9a21119499ba59613fb38 (diff) | |
download | qtwayland-a3ee3b1ac6752cb1e1bf86f8ef972f7d410e1d50.tar.gz |
client: Gracefully handle shutdown and window hiding
When a window is hidden or destroyed, the render thread may already
be rendering. We need to properly read-lock the surface pointer
when it is in use and exit when it becomes null.
Note that there is also a potential crash in the Mesa GL driver
where it keeps a proxy to the wl_surface, so if we delete this
while we are still rendering, it can crash inside the driver.
This is not addressed by this patch, and has not been reproduced
on any other drivers so far.
[ChangeLog][Client] Fixed a crash that could happen when hiding
or closing windows while Qt Quick was actively rendering on
a different thread.
Fixes: QTBUG-91264
Fixes: QTBUG-90037
Task-number: QTBUG-92249
Change-Id: I029b123b83c58740321e8b90a463ced748d8bcf4
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Reviewed-by: David Edmundson <davidedmundson@kde.org>
(cherry picked from commit b19b0fbaf775e8b8eda1e03c265a5393d618c6c0)
Reviewed-by: Liang Qi <liang.qi@qt.io>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions