==27141== Invalid read of size 8 ==27141== at 0x52489B6: data (qscopedpointer.h:140) ==27141== by 0x52489B6: qGetPtrHelper > (qglobal.h:999) ==27141== by 0x52489B6: d_func (qopengltexture.h:618) ==27141== by 0x52489B6: QOpenGLTexture::target() const (qopengltexture.cpp:2387) ==27141== by 0x10FF74: Window::paintGL() (window.cpp:137) ==27141== by 0x4F88016: QOpenGLWindow::paintEvent(QPaintEvent*) (qopenglwindow.cpp:648) ==27141== by 0x4F7D89D: paint (qpaintdevicewindow_p.h:94) ==27141== by 0x4F7D89D: doFlush (qpaintdevicewindow_p.h:104) ==27141== by 0x4F7D89D: handleUpdateEvent (qpaintdevicewindow_p.h:112) ==27141== by 0x4F7D89D: QPaintDeviceWindow::event(QEvent*) (qpaintdevicewindow.cpp:202) ==27141== by 0x560AE2D: QCoreApplicationPrivate::notify_helper(QObject*, QEvent*) (qcoreapplication.cpp:1158) ==27141== by 0x560AED4: doNotify(QObject*, QEvent*) (qcoreapplication.cpp:1099) ==27141== by 0x560B002: QCoreApplication::notify(QObject*, QEvent*) (qcoreapplication.cpp:1085) ==27141== by 0x4F3E39E: QGuiApplication::notify(QObject*, QEvent*) (qguiapplication.cpp:1688) ==27141== by 0x560AF6C: QCoreApplication::notifyInternal2(QObject*, QEvent*) (qcoreapplication.cpp:1024) ==27141== by 0x4F4E135: sendEvent (qcoreapplication.h:233) ==27141== by 0x4F4E135: QWindowPrivate::deliverUpdateRequest() (qwindow.cpp:2305) ==27141== by 0x4F4E5B3: QWindow::event(QEvent*) (qwindow.cpp:2276) ==27141== by 0x4F7D7C3: QPaintDeviceWindow::event(QEvent*) (qpaintdevicewindow.cpp:206) ==27141== Address 0x1779dd40 is 0 bytes inside a block of size 8 free'd ==27141== at 0x4C3123B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==27141== by 0x415AECD: WaylandEglClientBuffer::~WaylandEglClientBuffer() (waylandeglclientbufferintegration.cpp:505) ==27141== by 0x415AF14: WaylandEglClientBuffer::~WaylandEglClientBuffer() (waylandeglclientbufferintegration.cpp:508) ==27141== by 0x408EF4C: QtWayland::ClientBuffer::setDestroyed() (qwlclientbuffer.cpp:88) ==27141== by 0x408E884: QtWayland::BufferManager::destroy_listener_callback(wl_listener*, void*) (qwlbuffermanager.cpp:110) ==27141== by 0x6C1C973: ??? (in /usr/lib/x86_64-linux-gnu/libwayland-server.so.0.1.0) ==27141== by 0x6C21278: ??? (in /usr/lib/x86_64-linux-gnu/libwayland-server.so.0.1.0) ==27141== by 0x6C1CA9C: wl_client_destroy (in /usr/lib/x86_64-linux-gnu/libwayland-server.so.0.1.0) ==27141== by 0x6C1CB57: ??? (in /usr/lib/x86_64-linux-gnu/libwayland-server.so.0.1.0) ==27141== by 0x6C1E691: wl_event_loop_dispatch (in /usr/lib/x86_64-linux-gnu/libwayland-server.so.0.1.0) ==27141== by 0x4096513: QWaylandCompositor::processWaylandEvents() (qwaylandcompositor.cpp:723) ==27141== by 0x40E46D8: QWaylandCompositor::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (moc_qwaylandcompositor.cpp:189) ==27141== Block was alloc'd at ==27141== at 0x4C3017F: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==27141== by 0x415AF9E: WaylandEglClientBuffer::toOpenGlTexture(int) (waylandeglclientbufferintegration.cpp:558) ==27141== by 0x40AB606: QWaylandBufferRef::toOpenGLTexture(int) const (qwaylandbufferref.cpp:280) ==27141== by 0x111A11: View::getTexture() (compositor.cpp:84) ==27141== by 0x10FF64: Window::paintGL() (window.cpp:134) ==27141== by 0x4F88016: QOpenGLWindow::paintEvent(QPaintEvent*) (qopenglwindow.cpp:648) ==27141== by 0x4F7D89D: paint (qpaintdevicewindow_p.h:94) ==27141== by 0x4F7D89D: doFlush (qpaintdevicewindow_p.h:104) ==27141== by 0x4F7D89D: handleUpdateEvent (qpaintdevicewindow_p.h:112) ==27141== by 0x4F7D89D: QPaintDeviceWindow::event(QEvent*) (qpaintdevicewindow.cpp:202) ==27141== by 0x560AE2D: QCoreApplicationPrivate::notify_helper(QObject*, QEvent*) (qcoreapplication.cpp:1158) ==27141== by 0x560AED4: doNotify(QObject*, QEvent*) (qcoreapplication.cpp:1099) ==27141== by 0x560B002: QCoreApplication::notify(QObject*, QEvent*) (qcoreapplication.cpp:1085) ==27141== by 0x4F3E39E: QGuiApplication::notify(QObject*, QEvent*) (qguiapplication.cpp:1688) ==27141== by 0x560AF6C: QCoreApplication::notifyInternal2(QObject*, QEvent*) (qcoreapplication.cpp:1024)