{"action":"created","issue":{"url":"https://api.github.com/repos/c42f/displaz/issues/122","repository_url":"https://api.github.com/repos/c42f/displaz","labels_url":"https://api.github.com/repos/c42f/displaz/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/c42f/displaz/issues/122/comments","events_url":"https://api.github.com/repos/c42f/displaz/issues/122/events","html_url":"https://github.com/c42f/displaz/issues/122","id":173581873,"number":122,"title":"Segfault on linux inside libnvidia-glcore.so","user":{"login":"c42f","id":601473,"avatar_url":"https://avatars.githubusercontent.com/u/601473?v=3","gravatar_id":"","url":"https://api.github.com/users/c42f","html_url":"https://github.com/c42f","followers_url":"https://api.github.com/users/c42f/followers","following_url":"https://api.github.com/users/c42f/following{/other_user}","gists_url":"https://api.github.com/users/c42f/gists{/gist_id}","starred_url":"https://api.github.com/users/c42f/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c42f/subscriptions","organizations_url":"https://api.github.com/users/c42f/orgs","repos_url":"https://api.github.com/users/c42f/repos","events_url":"https://api.github.com/users/c42f/events{/privacy}","received_events_url":"https://api.github.com/users/c42f/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/c42f/displaz/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-08-27T06:50:17Z","updated_at":"2016-09-10T04:03:13Z","closed_at":null,"body":"As reported by Hans De Visser, loading a pair of files (too large to attach here), then pressing the refresh button causes an intermittent segfault.\r\n\r\nRelease build backtrace:\r\n```\r\n(gdb) bt\r\n#0  0x0000000041429eff in ?? ()\r\n#1  0x00007fac9e8fb912 in ?? ()\r\n   from /usr/lib/nvidia-346/libnvidia-glcore.so.346.82\r\n#2  0x00007fac9e514958 in ?? ()\r\n   from /usr/lib/nvidia-346/libnvidia-glcore.so.346.82\r\n#3  0x00000000004d1abf in PointArray::drawPoints(QGLShaderProgram&, TransformState const&, double, bool) const ()\r\n#4  0x00000000004da63f in View3D::drawPoints(TransformState const&, std::vector<Geometry const*, std::allocator<Geometry const*> > const&, double, bool) ()\r\n#5  0x00000000004dade2 in View3D::paintGL() ()\r\n#6  0x00007faca370c6e4 in QGLWidget::glDraw() ()\r\n   from /usr/lib/x86_64-linux-gnu/libQt5OpenGL.so.5\r\n#7  0x00007faca37096f9 in QGLWidget::paintEvent(QPaintEvent*) ()\r\n   from /usr/lib/x86_64-linux-gnu/libQt5OpenGL.so.5\r\n#8  0x00007faca2cf5302 in QWidget::event(QEvent*) ()\r\n   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5\r\n#9  0x00007faca2cb9c8c in QApplicationPrivate::notify_helper(QObject*, QEvent*)\r\n    () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5\r\n#10 0x00007faca2cbee56 in QApplication::notify(QObject*, QEvent*) ()\r\n   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5\r\n#11 0x00007faca4204c2d in QCoreApplication::notifyInternal(QObject*, QEvent*)\r\n    () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5\r\n#12 0x00007faca2cefbea in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion cons---Type <return> to continue, or q <return> to quit---\r\nt&, QPoint const&, int, QPainter*, QWidgetBackingStore*) ()\r\n   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5\r\n#13 0x00007faca2cc64c1 in QWidgetPrivate::repaint_sys(QRegion const&) ()\r\n   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5\r\n#14 0x00007faca2ce5e4f in QWidgetPrivate::syncBackingStore() ()\r\n   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5\r\n#15 0x00007faca2cf5112 in QWidget::event(QEvent*) ()\r\n   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5\r\n#16 0x00007faca2cb9c8c in QApplicationPrivate::notify_helper(QObject*, QEvent*)\r\n    () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5\r\n#17 0x00007faca2cbee56 in QApplication::notify(QObject*, QEvent*) ()\r\n   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5\r\n#18 0x00007faca4204c2d in QCoreApplication::notifyInternal(QObject*, QEvent*)\r\n    () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5\r\n#19 0x00007faca4206e07 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5\r\n#20 0x00007faca4251cd3 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5\r\n#21 0x00007faca0bc7e04 in g_main_context_dispatch ()\r\n   from /lib/x86_64-linux-gnu/libglib-2.0.so.0\r\n#22 0x00007faca0bc8048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0\r\n#23 0x00007faca0bc80ec in g_main_context_iteration ()\r\n   from /lib/x86_64-linux-gnu/libglib-2.0.so.0\r\n#24 0x00007faca425198c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop:---Type <return> to continue, or q <return> to quit---\r\n:ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5\r\n#25 0x00007faca420396b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5\r\n#26 0x00007faca420a0e1 in QCoreApplication::exec() ()\r\n   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5\r\n#27 0x0000000000489032 in main ()\r\n```\r\n\r\nDebug and DebWithRelInfo build backtraces:\r\n```\r\n \r\n \r\nMore \r\n8 of 191\r\n \r\ndisplaz\r\nInbox\r\n\tx\r\nHans De Visser\r\n\t\r\nAttachments16:49 (23 hours ago)\r\n\t\t\r\nto me\r\n(gdb) c\r\nContinuing.\r\n\r\nProgram received signal SIGSEGV, Segmentation fault.\r\n0x000000004112feff in ?? ()\r\n(gdb) bt\r\n#0  0x000000004112feff in ?? ()\r\n#1  0x00007f427b795912 in ?? ()\r\n#2  0x0000000000000000 in ?? ()\r\n(gdb) quit\r\nA debugging session is active.\r\n\r\n\tInferior 1 [process 6462] will be detached.\r\n\r\nQuit anyway? (y or n) EOF [assumed Y]\r\nDetaching from program: /usr/local/bin/displaz-gui, process 6462\r\nhans@hans-pc:~$ ls\r\nanaconda  Dev               Installs                   model.png  point_cloud.png  s2t70.png                           temp       tmp_line1.txt   _tmp_locations.txt             towers_test_NG4TQ_1_0.tree.gz\r\nCode      Documents         matlab_crash_dump.1078-1   Music      Programs         Scripts                             Templates  tmp_line2.ewkt  toplog.txt                     Videos\r\nData      Downloads         model_fitted_close-up.png  out        Public           takilberan_tower0.png               test7.txt  tmp_line2.txt   towers_test_NG4TQ_1_0.json.gz\r\nDesktop   examples.desktop  model_fitted.png           Pictures   ROAMES_git       takilberan_transposition_tower.png  test.txt   tmp_line3.txt   towers_test_NG4TQ_1_0.rdf\r\nhans@hans-pc:~$ sudo gdb displaz-gui $(ps -A | grep displaz-gui | awk '{print $1}')\r\nGNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1\r\nCopyright (C) 2014 Free Software Foundation, Inc.\r\nLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\r\nThis is free software: you are free to change and redistribute it.\r\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\r\nand \"show warranty\" for details.\r\nThis GDB was configured as \"x86_64-linux-gnu\".\r\nType \"show configuration\" for configuration details.\r\nFor bug reporting instructions, please see:\r\n<http://www.gnu.org/software/gdb/bugs/>.\r\nFind the GDB manual and other documentation resources online at:\r\n<http://www.gnu.org/software/gdb/documentation/>.\r\nFor help, type \"help\".\r\nType \"apropos word\" to search for commands related to \"word\"...\r\nReading symbols from displaz-gui...(no debugging symbols found)...done.\r\nAttaching to program: /usr/local/bin/displaz-gui, process 7378\r\nReading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/ld-2.19.so...done.\r\ndone.\r\nLoaded symbols for /lib64/ld-linux-x86-64.so.2\r\n0x00007f41b8ef512d in ?? ()\r\n(gdb) c\r\nContinuing.\r\n\r\nProgram received signal SIGSEGV, Segmentation fault.\r\n0x0000000041693eff in ?? ()\r\n(gdb) bt\r\n#0  0x0000000041693eff in ?? ()\r\n#1  0x00007f41b5ac1912 in ?? ()\r\n#2  0x0000000000000000 in ?? ()\r\n(gdb) \r\n```\r\n\r\nA bit odd - looks like the stack has been smashed in the last two, but not in Release mode.\r\n\r\nCould be due to more leaking OpenGL state, as partly fixed in #113."},"comment":{"url":"https://api.github.com/repos/c42f/displaz/issues/comments/246087139","html_url":"https://github.com/c42f/displaz/issues/122#issuecomment-246087139","issue_url":"https://api.github.com/repos/c42f/displaz/issues/122","id":246087139,"user":{"login":"c42f","id":601473,"avatar_url":"https://avatars.githubusercontent.com/u/601473?v=3","gravatar_id":"","url":"https://api.github.com/users/c42f","html_url":"https://github.com/c42f","followers_url":"https://api.github.com/users/c42f/followers","following_url":"https://api.github.com/users/c42f/following{/other_user}","gists_url":"https://api.github.com/users/c42f/gists{/gist_id}","starred_url":"https://api.github.com/users/c42f/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c42f/subscriptions","organizations_url":"https://api.github.com/users/c42f/orgs","repos_url":"https://api.github.com/users/c42f/repos","events_url":"https://api.github.com/users/c42f/events{/privacy}","received_events_url":"https://api.github.com/users/c42f/received_events","type":"User","site_admin":false},"created_at":"2016-09-10T04:03:13Z","updated_at":"2016-09-10T04:03:13Z","body":"Should be fixed in #132"}}
{"actor":{"display_login":"c42f"}}