https://bugs.kde.org/show_bug.cgi?id=520190

--- Comment #16 from [email protected] ---
I actually think there's a race condition where resources don't get released in
kpipewire. The cleanup job was being scheduled but never executed because the
tooltip window was already hidden. Adding window()->update() forces the window
to process the cleanup job.

void PipeWireSourceItem::releaseResources()
{
    if (window() && (d->m_image || d->m_texture)) {
        window()->scheduleRenderJob(
            new DiscardEglPixmapRunnable(d->m_image, d->m_texture.release()),
            QQuickWindow::AfterSynchronizingStage);
        d->m_image = EGL_NO_IMAGE_KHR;
        window()->update();
    }
}

My other hack accidentally fixed this, question is, is this maybe the root
cause?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to