{"action":"opened","issue":{"url":"https://api.github.com/repos/Subsurface-divelog/subsurface/issues/1401","repository_url":"https://api.github.com/repos/Subsurface-divelog/subsurface","labels_url":"https://api.github.com/repos/Subsurface-divelog/subsurface/issues/1401/labels{/name}","comments_url":"https://api.github.com/repos/Subsurface-divelog/subsurface/issues/1401/comments","events_url":"https://api.github.com/repos/Subsurface-divelog/subsurface/issues/1401/events","html_url":"https://github.com/Subsurface-divelog/subsurface/issues/1401","id":333093280,"node_id":"MDU6SXNzdWUzMzMwOTMyODA=","number":1401,"title":"Segfault when opening preferences","user":{"login":"p-neves","id":16014958,"node_id":"MDQ6VXNlcjE2MDE0OTU4","avatar_url":"https://avatars0.githubusercontent.com/u/16014958?v=4","gravatar_id":"","url":"https://api.github.com/users/p-neves","html_url":"https://github.com/p-neves","followers_url":"https://api.github.com/users/p-neves/followers","following_url":"https://api.github.com/users/p-neves/following{/other_user}","gists_url":"https://api.github.com/users/p-neves/gists{/gist_id}","starred_url":"https://api.github.com/users/p-neves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/p-neves/subscriptions","organizations_url":"https://api.github.com/users/p-neves/orgs","repos_url":"https://api.github.com/users/p-neves/repos","events_url":"https://api.github.com/users/p-neves/events{/privacy}","received_events_url":"https://api.github.com/users/p-neves/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-17T21:10:49Z","updated_at":"2018-06-17T21:10:49Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"<!-- Lines like this one are comments and will not be shown in the final output. -->\r\n<!-- If you are a collaborator, please add labels and assign other collaborators for a review. -->\r\n\r\n### Describe the issue:\r\n<!-- Replace [ ] with [x] to select options. -->\r\n- [X] Bug\r\n- [ ] Change request\r\n- [ ] New feature request\r\n- [ ] Discussion request\r\n\r\n### Issue long description:\r\nWhen opening preferences in Subsurface, I get a segfault\r\n\r\n### Operating system:\r\n<!-- What OS are you running, including OS version and the language that you are running in -->\r\nArch Linux\r\n\r\n<!-- What device are you using? -->\r\n<!-- Only answer this question if you have tried: Does the same happen on another OS? -->\r\n\r\n### Subsurface version:\r\n<!-- What version of Subsurface are you running? -->\r\nLatest master\r\n\r\n<!-- Does the same happen on another Subsurface version? -->\r\nYes. Even with the appimage I get the same\r\n\r\n<!-- Are you using official release, test build, or compiled yourself? -->\r\n<!-- Provide Git hash if your are building Subsurface yourself. -->\r\n\r\n4.7.8-356-gc64f421006a4\r\n\r\n### Steps to reproduce:\r\n<!-- Provide reproduction steps separated with new lines - 1), 2), 3)... -->\r\n1) Start Subsurface\r\n2) Select File/Preferences\r\n\r\n### Current behavior:\r\n<!-- What is the current behavior? -->\r\n\r\nSubsurface crashes immediately\r\n\r\n### Expected behavior:\r\n<!-- What is the expected behavior? -->\r\n\r\nPrefences menu opens\r\n\r\n### Additional information:\r\n<!-- If a simple dive log file can reproduce the issue, please attach that to the report. -->\r\n<!-- With dive computer download issues consider adding Subsurface log file and Subsurface dumpfile to the report. -->\r\n\r\ngdb backtrace:\r\n\r\n[Thread debugging using libthread_db enabled]\r\nUsing host libthread_db library \"/usr/lib/libthread_db.so.1\".\r\n[New Thread 0x7fffe2aa7700 (LWP 13881)]\r\n[New Thread 0x7fffe1fff700 (LWP 13882)]\r\n[New Thread 0x7fffe15c5700 (LWP 13883)]\r\n[New Thread 0x7fffd94d9700 (LWP 13884)]\r\n[New Thread 0x7fffc5c04700 (LWP 13885)]\r\n[New Thread 0x7fffbbf8b700 (LWP 13886)]\r\n\r\nThread 1 \"subsurface\" received signal SIGSEGV, Segmentation fault.\r\n0x00007fffeefaf687 in __strlen_avx2 () from /usr/lib/libc.so.6\r\n(gdb) bt\r\n#0  0x00007fffeefaf687 in __strlen_avx2 () at /usr/lib/libc.so.6\r\n#1  0x000055555590d877 in QString::QString(char const*) (ch=0xffffffff <error: Cannot access memory at address 0xffffffff>, this=0x7fffffffd340) at /usr/include/qt/QtCore/qstring.h:693\r\n#2  0x000055555590d877 in PreferencesDefaults::refreshSettings() (this=0x555556534020) at /home/paneves/Diveapps/subsurface/desktop-widgets/preferences/preferences_defaults.cpp:56\r\n#3  0x000055555590281d in PreferencesDialog::refreshPages() (this=0x5555562013a0) at /home/paneves/Diveapps/subsurface/desktop-widgets/preferences/preferencesdialog.cpp:117\r\n#4  0x00005555556928c1 in MainWindow::on_actionPreferences_triggered() (this=<optimized out>) at /home/paneves/Diveapps/subsurface/desktop-widgets/mainwindow.cpp:847\r\n#5  0x000055555573df4a in MainWindow::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=0x55555600d3a0, _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0x7fffffffd5b0)\r\n    at /home/paneves/Diveapps/subsurface/build/desktop-widgets/subsurface_interface_autogen/EWIEGA46WW/moc_mainwindow.cpp:357\r\n#6  0x0000555555742a43 in MainWindow::qt_metacall(QMetaObject::Call, int, void**) (this=0x55555600d3a0, _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0x7fffffffd5b0)\r\n    at /home/paneves/Diveapps/subsurface/build/desktop-widgets/subsurface_interface_autogen/EWIEGA46WW/moc_mainwindow.cpp:464\r\n#7  0x00007fffefde2add in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/libQt5Core.so.5\r\n#8  0x00007ffff1e43183 in QAction::triggered(bool) () at /usr/lib/libQt5Widgets.so.5\r\n#9  0x00007ffff1e4587a in QAction::activate(QAction::ActionEvent) () at /usr/lib/libQt5Widgets.so.5\r\n#10 0x00007ffff1fca43d in  () at /usr/lib/libQt5Widgets.so.5\r\n#11 0x00007ffff1fd1c32 in  () at /usr/lib/libQt5Widgets.so.5\r\n#12 0x00007ffff1fd2c9c in QMenu::mouseReleaseEvent(QMouseEvent*) () at /usr/lib/libQt5Widgets.so.5\r\n#13 0x00007ffff1e89058 in QWidget::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5\r\n#14 0x00007ffff1fd53ac in QMenu::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5\r\n#15 0x00007ffff1e49984 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5\r\n#16 0x00007ffff1e5146a in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5\r\n#17 0x00007fffefdb8bc9 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5\r\n#18 0x00007ffff1e50781 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () at /usr/lib/libQt5Widgets.so.5\r\n#19 0x00007ffff1ea4757 in  () at /usr/lib/libQt5Widgets.so.5\r\n#20 0x00007ffff1ea6fd5 in  () at /usr/lib/libQt5Widgets.so.5\r\n#21 0x00007ffff1e49984 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5\r\n#22 0x00007ffff1e5125b in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5\r\n#23 0x00007fffefdb8bc9 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5\r\n#24 0x00007ffff0ffb596 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /usr/lib/libQt5Gui.so.5\r\n#25 0x00007ffff0ffd516 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /usr/lib/libQt5Gui.so.5\r\n#26 0x00007ffff0fd4a5c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Gui.so.5\r\n#27 0x00007fffe0333b3d in  () at /usr/lib/libQt5XcbQpa.so.5\r\n#28 0x00007fffefdb785c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5\r\n#29 0x00007fffefdbfb56 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5\r\n#30 0x000055555568f0e2 in main (argc=<optimized out>, argv=<optimized out>) at /home/paneves/Diveapps/subsurface/subsurface-desktop-main.cpp:115\r\n#31 0x00007fffeee7806b in __libc_start_main () at /usr/lib/libc.so.6\r\n#32 0x000055555569070a in _start ()\r\n\r\n\r\n### Mentions:\r\n<!-- Mention users that you want to review your issue with @<user-name>. Leave empty if not sure. -->\r\n"}}
{"actor":{"display_login":"p-neves"}}