{"action":"closed","issue":{"url":"https://api.github.com/repos/AD-Vega/qarv/issues/5","repository_url":"https://api.github.com/repos/AD-Vega/qarv","labels_url":"https://api.github.com/repos/AD-Vega/qarv/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/AD-Vega/qarv/issues/5/comments","events_url":"https://api.github.com/repos/AD-Vega/qarv/issues/5/events","html_url":"https://github.com/AD-Vega/qarv/issues/5","id":334266550,"node_id":"MDU6SXNzdWUzMzQyNjY1NTA=","number":5,"title":"SegmentFault in QArvCameraId::QArvCameraId()","user":{"login":"mpthompson","id":1750772,"node_id":"MDQ6VXNlcjE3NTA3NzI=","avatar_url":"https://avatars3.githubusercontent.com/u/1750772?v=4","gravatar_id":"","url":"https://api.github.com/users/mpthompson","html_url":"https://github.com/mpthompson","followers_url":"https://api.github.com/users/mpthompson/followers","following_url":"https://api.github.com/users/mpthompson/following{/other_user}","gists_url":"https://api.github.com/users/mpthompson/gists{/gist_id}","starred_url":"https://api.github.com/users/mpthompson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpthompson/subscriptions","organizations_url":"https://api.github.com/users/mpthompson/orgs","repos_url":"https://api.github.com/users/mpthompson/repos","events_url":"https://api.github.com/users/mpthompson/events{/privacy}","received_events_url":"https://api.github.com/users/mpthompson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-20T22:04:44Z","updated_at":"2018-06-22T11:33:08Z","closed_at":"2018-06-22T11:33:08Z","author_association":"NONE","body":"When using a build of 'qarv' from the master branch and the libraries from the latest Aravis 0.5.12 release, within seconds after starting 'qarv' the application receives a segmentation fault with the following stack trace from gdb:\r\n\r\n```\r\n(qarv:22647): Aravis-CRITICAL **: 14:51:15.793: arv_get_fake_camera_genicam_xml: assertion 'genicam_file != NULL' failed\r\n\r\n(qarv:22647): Aravis-CRITICAL **: 14:51:15.793: arv_get_fake_camera_genicam_xml: assertion 'genicam_file != NULL' failed\r\n\r\n(qarv:22647): Aravis-CRITICAL **: 14:51:15.793: arv_dom_document_new_from_memory: assertion 'buffer != NULL' failed\r\n\r\n(qarv:22647): Aravis-CRITICAL **: 14:51:15.793: arv_device_get_feature: assertion 'ARV_IS_GC (genicam)' failed\r\n\r\n(qarv:22647): Aravis-CRITICAL **: 14:51:15.793: arv_device_get_feature: assertion 'ARV_IS_GC (genicam)' failed\r\n\r\n(qarv:22647): Aravis-CRITICAL **: 14:51:15.793: arv_device_get_feature: assertion 'ARV_IS_GC (genicam)' failed\r\n\r\n(qarv:22647): Aravis-CRITICAL **: 14:51:15.793: arv_device_get_feature: assertion 'ARV_IS_GC (genicam)' failed\r\n\r\n(qarv:22647): Aravis-CRITICAL **: 14:51:15.793: arv_device_get_feature: assertion 'ARV_IS_GC (genicam)' failed\r\n\r\n(qarv:22647): Aravis-CRITICAL **: 14:51:15.793: arv_device_get_feature: assertion 'ARV_IS_GC (genicam)' failed\r\n\r\n(qarv:22647): Aravis-CRITICAL **: 14:51:15.794: arv_device_get_feature: assertion 'ARV_IS_GC (genicam)' failed\r\n\r\n(qarv:22647): Aravis-CRITICAL **: 14:51:15.794: arv_device_get_feature: assertion 'ARV_IS_GC (genicam)' failed\r\n\r\nThread 1 \"qarv\" received signal SIGSEGV, Segmentation fault.\r\n__strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:62\r\n62\t../sysdeps/x86_64/multiarch/strlen-avx2.S: No such file or directory.\r\n(gdb) where\r\n#0  0x00007ffff5cd05a1 in __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:62\r\n#1  0x00007ffff5bdf9ae in __GI___strdup (s=0x0) at strdup.c:41\r\n#2  0x00007ffff698c8e0 in QArvCameraId::QArvCameraId(char const*, char const*, char const*) () at /home/mike/Development/aravis/qarv/qarv/build/libqarv-2.so.2\r\n#3  0x00007ffff69914ca in QArvCamera::listCameras() () at /home/mike/Development/aravis/qarv/qarv/build/libqarv-2.so.2\r\n#4  0x00007ffff6965b7c in QArv::QArvMainWindow::on_refreshCamerasButton_clicked(bool) () at /home/mike/Development/aravis/qarv/qarv/build/libqarv-2.so.2\r\n#5  0x00007ffff6999a5e in QArv::QArvMainWindow::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) ()\r\n    at /home/mike/Development/aravis/qarv/qarv/build/libqarv-2.so.2\r\n#6  0x00007ffff6d8cf70 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () at /usr/lib/x86_64-linux-gnu/libQtCore.so.4\r\n#7  0x00007ffff6d977da in  () at /usr/lib/x86_64-linux-gnu/libQtCore.so.4\r\n#8  0x00007ffff6d92be3 in QObject::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQtCore.so.4\r\n#9  0x00007ffff72a503c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQtGui.so.4\r\n#10 0x00007ffff72abf76 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQtGui.so.4\r\n#11 0x00007ffff6d788ad in QCoreApplication::notifyInternal(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQtCore.so.4\r\n#12 0x00007ffff6dab6e0 in  () at /usr/lib/x86_64-linux-gnu/libQtCore.so.4\r\n#13 0x00007ffff6da8851 in  () at /usr/lib/x86_64-linux-gnu/libQtCore.so.4\r\n#14 0x00007ffff51fb287 in g_main_context_dispatch () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0\r\n#15 0x00007ffff51fb4c0 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0\r\n#16 0x00007ffff51fb54c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0\r\n#17 0x00007ffff6da920e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQtCore.so.4\r\n#18 0x00007ffff7352666 in  () at /usr/lib/x86_64-linux-gnu/libQtGui.so.4\r\n#19 0x00007ffff6d7712f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQtCore.so.4\r\n#20 0x00007ffff6d77495 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQtCore.so.4\r\n#21 0x00007ffff6d7d459 in QCoreApplication::exec() () at /usr/lib/x86_64-linux-gnu/libQtCore.so.4\r\n#22 0x00005555555569d8 in main ()\r\n\r\n```\r\nI haven't yet had time to figure out how to use cmake to create a debug build to investigate further, but I assume there is a problem with a string being passed into the QArvCameraId::QArvCameraId() object constructor.\r\nIf I figure out the issue, I'll post back a fix."}}
{"actor":{"display_login":"exzombie"}}