Cavewhere / cavewhere

3D Cave Mapping Software
https://cavewhere.com
GNU General Public License v3.0
34 stars 8 forks source link

`reload` button causes SEGV #202

Open echarlie opened 3 years ago

echarlie commented 3 years ago
==3590341==ERROR: AddressSanitizer: SEGV on unknown address 0x61e05f0004b4 (pc 0x7f9286e34cfd bp 0x7f926262a790 sp 0x7f926262a648 T39)
==3590341==The signal is caused by a READ memory access.
    #0 0x7f9286e34cfd in QOpenGLShaderProgram::setUniformValue(int, QMatrix4x4 const&) (/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5+0x4d4cfd)
    #1 0x7f9289b95c2c in cwGLGridPlane::draw() /home/eric/programs/cavewhere/src/cwGLGridPlane.cpp:49
    #2 0x7f9289de4d6b in cwScene::paint() /home/eric/programs/cavewhere/src/cwScene.cpp:55
    #3 0x7f9289babb2e in cwGLViewer::paint(QPainter*) /home/eric/programs/cavewhere/src/cwGLViewer.cpp:72
    #4 0x7f9288906b8c in QSGDefaultPainterNode::paint() (/usr/lib/x86_64-linux-gnu/libQt5Quick.so.5+0x1f4b8c)
    #5 0x7f928890799b in QSGDefaultPainterNode::update() (/usr/lib/x86_64-linux-gnu/libQt5Quick.so.5+0x1f599b)
    #6 0x7f928897cc55 in QQuickPaintedItem::updatePaintNode(QSGNode*, QQuickItem::UpdatePaintNodeData*) (/usr/lib/x86_64-linux-gnu/libQt5Quick.so.5+0x26ac55)
    #7 0x7f928896ae67 in QQuickWindowPrivate::updateDirtyNode(QQuickItem*) (/usr/lib/x86_64-linux-gnu/libQt5Quick.so.5+0x258e67)
    #8 0x7f928896b6fa in QQuickWindowPrivate::updateDirtyNodes() (/usr/lib/x86_64-linux-gnu/libQt5Quick.so.5+0x2596fa)
    #9 0x7f928896cfdb in QQuickWindowPrivate::syncSceneGraph() (/usr/lib/x86_64-linux-gnu/libQt5Quick.so.5+0x25afdb)
    #10 0x7f928890e4b6  (/usr/lib/x86_64-linux-gnu/libQt5Quick.so.5+0x1fc4b6)
    #11 0x7f9288910366  (/usr/lib/x86_64-linux-gnu/libQt5Quick.so.5+0x1fe366)
    #12 0x7f9288911036  (/usr/lib/x86_64-linux-gnu/libQt5Quick.so.5+0x1ff036)
    #13 0x7f92877adb80  (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0xccb80)
    #14 0x7f9287315ea6 in start_thread (/usr/lib/x86_64-linux-gnu/libpthread.so.0+0x8ea6)
    #15 0x7f9287432dee in __clone (/usr/lib/x86_64-linux-gnu/libc.so.6+0xfddee)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5+0x4d4cfd) in QOpenGLShaderProgram::setUniformValue(int, QMatrix4x4 const&)
Thread T39 (QSGRenderThread) created by T0 here:
    #0 0x7f928b1352a2 in __interceptor_pthread_create ../../../../src/libsanitizer/asan/asan_interceptors.cpp:214
    #1 0x7f92877ad64a in QThread::start(QThread::Priority) (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0xcc64a)

==3590341==ABORTING

This happens in 33ea090ea2723ea242e058cafe73b6a2fd7b1b28 and 3b8814c39fc75a7d728d265ec111a5867bd39595 on debian 11 (bullseye, testing), built as described in #201

vpicaver commented 3 years ago

Is this the Reload under the Debug menu? I should probably remove or hide this button since for development purposes to reload all the QML files. I haven't used it in a while and clearly it's broken.

echarlie commented 3 years ago

yes. that's what it is. completely unclear what it is supposed to accomplish as a user, anyway

vpicaver commented 3 years ago

The debug drop down is the menu of hidden dragons and shouldn't be touched. Probably needs to be hidden by default.

On Tue, Apr 20, 2021 at 5:00 PM echarlie @.***> wrote:

yes. that's what it is. completely unclear what it is supposed to accomplish as a user, anyway

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Cavewhere/cavewhere/issues/202#issuecomment-823597088, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABKKDAZIXP6LHZQO7PCBLIDTJXTNNANCNFSM43ITY5VQ .