{"action":"created","issue":{"url":"https://api.github.com/repos/phillipberndt/pqiv/issues/135","repository_url":"https://api.github.com/repos/phillipberndt/pqiv","labels_url":"https://api.github.com/repos/phillipberndt/pqiv/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/phillipberndt/pqiv/issues/135/comments","events_url":"https://api.github.com/repos/phillipberndt/pqiv/issues/135/events","html_url":"https://github.com/phillipberndt/pqiv/issues/135","id":383183177,"node_id":"MDU6SXNzdWUzODMxODMxNzc=","number":135,"title":"segfault with thumbnail-preload","user":{"login":"magnetophon","id":7645711,"node_id":"MDQ6VXNlcjc2NDU3MTE=","avatar_url":"https://avatars0.githubusercontent.com/u/7645711?v=4","gravatar_id":"","url":"https://api.github.com/users/magnetophon","html_url":"https://github.com/magnetophon","followers_url":"https://api.github.com/users/magnetophon/followers","following_url":"https://api.github.com/users/magnetophon/following{/other_user}","gists_url":"https://api.github.com/users/magnetophon/gists{/gist_id}","starred_url":"https://api.github.com/users/magnetophon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magnetophon/subscriptions","organizations_url":"https://api.github.com/users/magnetophon/orgs","repos_url":"https://api.github.com/users/magnetophon/repos","events_url":"https://api.github.com/users/magnetophon/events{/privacy}","received_events_url":"https://api.github.com/users/magnetophon/received_events","type":"User","site_admin":false},"labels":[{"id":415527389,"node_id":"MDU6TGFiZWw0MTU1MjczODk=","url":"https://api.github.com/repos/phillipberndt/pqiv/labels/needs%20info","name":"needs info","color":"dddddd","default":false}],"state":"open","locked":false,"assignee":{"login":"phillipberndt","id":387407,"node_id":"MDQ6VXNlcjM4NzQwNw==","avatar_url":"https://avatars2.githubusercontent.com/u/387407?v=4","gravatar_id":"","url":"https://api.github.com/users/phillipberndt","html_url":"https://github.com/phillipberndt","followers_url":"https://api.github.com/users/phillipberndt/followers","following_url":"https://api.github.com/users/phillipberndt/following{/other_user}","gists_url":"https://api.github.com/users/phillipberndt/gists{/gist_id}","starred_url":"https://api.github.com/users/phillipberndt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phillipberndt/subscriptions","organizations_url":"https://api.github.com/users/phillipberndt/orgs","repos_url":"https://api.github.com/users/phillipberndt/repos","events_url":"https://api.github.com/users/phillipberndt/events{/privacy}","received_events_url":"https://api.github.com/users/phillipberndt/received_events","type":"User","site_admin":false},"assignees":[{"login":"phillipberndt","id":387407,"node_id":"MDQ6VXNlcjM4NzQwNw==","avatar_url":"https://avatars2.githubusercontent.com/u/387407?v=4","gravatar_id":"","url":"https://api.github.com/users/phillipberndt","html_url":"https://github.com/phillipberndt","followers_url":"https://api.github.com/users/phillipberndt/followers","following_url":"https://api.github.com/users/phillipberndt/following{/other_user}","gists_url":"https://api.github.com/users/phillipberndt/gists{/gist_id}","starred_url":"https://api.github.com/users/phillipberndt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phillipberndt/subscriptions","organizations_url":"https://api.github.com/users/phillipberndt/orgs","repos_url":"https://api.github.com/users/phillipberndt/repos","events_url":"https://api.github.com/users/phillipberndt/events{/privacy}","received_events_url":"https://api.github.com/users/phillipberndt/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2018-11-21T15:54:49Z","updated_at":"2018-11-24T02:50:35Z","closed_at":null,"author_association":"NONE","body":"When I have the option ``thumbnail-preload=300`` in my config, pqiv segfaults quickly after starting (say 0.2 seconds).\r\n\r\nThis happens also in older versions of pqiv, but it hasn't happened before upgrading my system, so it seems to be related to dependencies.\r\n\r\nIt also happens in montage mode, as soon as pqiv starts thumbnailing certain images:\r\nIt tumbnails and shows pdf files just fine, but crashes when tumbnailing certain other files.\r\n\r\nI haven't discovered yet which files cause the crash."},"comment":{"url":"https://api.github.com/repos/phillipberndt/pqiv/issues/comments/441339079","html_url":"https://github.com/phillipberndt/pqiv/issues/135#issuecomment-441339079","issue_url":"https://api.github.com/repos/phillipberndt/pqiv/issues/135","id":441339079,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTMzOTA3OQ==","user":{"login":"magnetophon","id":7645711,"node_id":"MDQ6VXNlcjc2NDU3MTE=","avatar_url":"https://avatars0.githubusercontent.com/u/7645711?v=4","gravatar_id":"","url":"https://api.github.com/users/magnetophon","html_url":"https://github.com/magnetophon","followers_url":"https://api.github.com/users/magnetophon/followers","following_url":"https://api.github.com/users/magnetophon/following{/other_user}","gists_url":"https://api.github.com/users/magnetophon/gists{/gist_id}","starred_url":"https://api.github.com/users/magnetophon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magnetophon/subscriptions","organizations_url":"https://api.github.com/users/magnetophon/orgs","repos_url":"https://api.github.com/users/magnetophon/repos","events_url":"https://api.github.com/users/magnetophon/events{/privacy}","received_events_url":"https://api.github.com/users/magnetophon/received_events","type":"User","site_admin":false},"created_at":"2018-11-24T02:50:35Z","updated_at":"2018-11-24T02:50:35Z","author_association":"NONE","body":"With just pdf's I get a different crash:\r\n```\r\ngdb --args pqiv *\r\nGNU gdb (GDB) 8.1.1\r\nCopyright (C) 2018 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-unknown-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 pqiv...(no debugging symbols found)...done.\r\n(gdb) r\r\nStarting program: /nix/store/w5b9rl7in77ynr1fi0qmswarbbskdvrg-user-environment/bin/pqiv \r\nsame pdf's as before\r\n[Thread debugging using libthread_db enabled]\r\nUsing host libthread_db library \"/nix/store/g2yk54hifqlsjiha3szr4q3ccmdzyrdv-glibc-2.27/lib/libthread_db.so.1\".\r\nwarning: File \"/nix/store/3v5r7fkrbkw2qajadvjbf6p6qriz9p1i-gcc-7.3.0-lib/lib/libstdc++.so.6.0.24-gdb.py\" auto-loading has been declined by your `auto-load safe-path' set to \"$debugdir:$datadir/auto-load\".\r\nTo enable execution of this file add\r\n\tadd-auto-load-safe-path /nix/store/3v5r7fkrbkw2qajadvjbf6p6qriz9p1i-gcc-7.3.0-lib/lib/libstdc++.so.6.0.24-gdb.py\r\nline to your configuration file \"/home/bart/.gdbinit\".\r\nTo completely disable this security protection add\r\n\tset auto-load safe-path /\r\nline to your configuration file \"/home/bart/.gdbinit\".\r\nFor more information about this security protection see the\r\n\"Auto-loading safe path\" section in the GDB manual.  E.g., run from the shell:\r\n\tinfo \"(gdb)Auto-loading safe path\"\r\n[New Thread 0x7fffd549d700 (LWP 21836)]\r\n[New Thread 0x7fffd4c9c700 (LWP 21837)]\r\n[New Thread 0x7fffcffff700 (LWP 21838)]\r\n[New Thread 0x7fffcf7fe700 (LWP 21839)]\r\n[New Thread 0x7fffcd54f700 (LWP 21840)]\r\ndouble free or corruption (out)\r\n\r\nThread 6 \"image-loader\" received signal SIGABRT, Aborted.\r\n[Switching to Thread 0x7fffcd54f700 (LWP 21840)]\r\n0x00007ffff1d37be0 in raise () from /nix/store/g2yk54hifqlsjiha3szr4q3ccmdzyrdv-glibc-2.27/lib/libc.so.6\r\n(gdb) bt\r\n#0  0x00007ffff1d37be0 in raise () from /nix/store/g2yk54hifqlsjiha3szr4q3ccmdzyrdv-glibc-2.27/lib/libc.so.6\r\n#1  0x00007ffff1d38dc1 in abort () from /nix/store/g2yk54hifqlsjiha3szr4q3ccmdzyrdv-glibc-2.27/lib/libc.so.6\r\n#2  0x00007ffff1d792ac in __libc_message ()\r\n   from /nix/store/g2yk54hifqlsjiha3szr4q3ccmdzyrdv-glibc-2.27/lib/libc.so.6\r\n#3  0x00007ffff1d7f49a in malloc_printerr ()\r\n   from /nix/store/g2yk54hifqlsjiha3szr4q3ccmdzyrdv-glibc-2.27/lib/libc.so.6\r\n#4  0x00007ffff1d803e0 in _int_free () from /nix/store/g2yk54hifqlsjiha3szr4q3ccmdzyrdv-glibc-2.27/lib/libc.so.6\r\n#5  0x00007fffe9f75f53 in cmsCloseProfile ()\r\n   from /nix/store/klfw8kyvxrn87cjc4b57p8r5lafz7yjc-ghostscript-9.25/lib/libgs.so.9\r\n#6  0x00007fffe5ef5a63 in Gfx::initDisplayProfile() ()\r\n   from /nix/store/abginyh77kvyrdy4bnszaci6pjaj3lcz-poppler-glib-0.67.0/lib/libpoppler.so.78\r\n#7  0x00007fffe5f4f2a6 in Page::createGfx(OutputDev*, double, double, int, bool, bool, int, int, int, int, bool, bool (*)(void*), void*, XRef*) ()\r\n   from /nix/store/abginyh77kvyrdy4bnszaci6pjaj3lcz-poppler-glib-0.67.0/lib/libpoppler.so.78\r\n#8  0x00007fffe5f4f53d in Page::displaySlice(OutputDev*, double, double, int, bool, bool, int, int, int, int, bool, bool (*)(void*), void*, bool (*)(Annot*, void*), void*, bool) ()\r\n   from /nix/store/abginyh77kvyrdy4bnszaci6pjaj3lcz-poppler-glib-0.67.0/lib/libpoppler.so.78\r\n#9  0x00007ffff51c41ee in _poppler_page_render(_PopplerPage*, _cairo*, bool, PopplerPrintFlags) ()\r\n   from /nix/store/abginyh77kvyrdy4bnszaci6pjaj3lcz-poppler-glib-0.67.0/lib/libpoppler-glib.so.8\r\n#10 0x0000000000413c1d in image_generate_prerendered_view ()\r\n#11 0x0000000000413e57 in image_loader_thread ()\r\n#12 0x00007ffff448aac5 in g_thread_proxy ()\r\n   from /nix/store/njs4pvn9gs1zhikh0cdn7zw4aplpmbqm-glib-2.56.0/lib/libglib-2.0.so.0\r\n#13 0x00007fffeb8395a7 in start_thread ()\r\n   from /nix/store/g2yk54hifqlsjiha3szr4q3ccmdzyrdv-glibc-2.27/lib/libpthread.so.0\r\n#14 0x00007ffff1df522f in clone () from /nix/store/g2yk54hifqlsjiha3szr4q3ccmdzyrdv-glibc-2.27/lib/libc.so.6\r\n```\r\nWithout thumbnail preloading it's the same.\r\n\r\nWith shared backends I get:\r\n```\r\n[Thread debugging using libthread_db enabled]\r\nUsing host libthread_db library \"/nix/store/g2yk54hifqlsjiha3szr4q3ccmdzyrdv-glibc-2.27/lib/libthread_db.so.1\".\r\nwarning: File \"/nix/store/3v5r7fkrbkw2qajadvjbf6p6qriz9p1i-gcc-7.3.0-lib/lib/libstdc++.so.6.0.24-gdb.py\" auto-loading has been declined by your `auto-load safe-path' set to \"$debugdir:$datadir/auto-load\".\r\nTo enable execution of this file add\r\n\tadd-auto-load-safe-path /nix/store/3v5r7fkrbkw2qajadvjbf6p6qriz9p1i-gcc-7.3.0-lib/lib/libstdc++.so.6.0.24-gdb.py\r\nline to your configuration file \"/home/bart/.gdbinit\".\r\nTo completely disable this security protection add\r\n\tset auto-load safe-path /\r\nline to your configuration file \"/home/bart/.gdbinit\".\r\nFor more information about this security protection see the\r\n\"Auto-loading safe path\" section in the GDB manual.  E.g., run from the shell:\r\n\tinfo \"(gdb)Auto-loading safe path\"\r\n[New Thread 0x7fffd549d700 (LWP 6070)]\r\n[New Thread 0x7fffd4c9c700 (LWP 6071)]\r\n[New Thread 0x7fffcffff700 (LWP 6072)]\r\n[New Thread 0x7fffcf7fe700 (LWP 6073)]\r\n[New Thread 0x7fffcdd9a700 (LWP 6074)]\r\n\r\nThread 6 \"image-loader\" received signal SIGSEGV, Segmentation fault.\r\n[Switching to Thread 0x7fffcdd9a700 (LWP 6074)]\r\n0x00007fffe9f75520 in cmsGetColorSpace ()\r\n   from /nix/store/klfw8kyvxrn87cjc4b57p8r5lafz7yjc-ghostscript-9.25/lib/libgs.so.9\r\n(gdb) bt\r\n#0  0x00007fffe9f75520 in cmsGetColorSpace ()\r\n   from /nix/store/klfw8kyvxrn87cjc4b57p8r5lafz7yjc-ghostscript-9.25/lib/libgs.so.9\r\n#1  0x00007fffe5f23710 in GfxICCBasedColorSpace::parse(Array*, OutputDev*, GfxState*, int) ()\r\n   from /nix/store/smanandkbidik0cbpcm8xnp3fgsbri8r-poppler-glib-0.67.0/lib/libpoppler.so.78\r\n#2  0x00007fffe5f2315b in GfxColorSpace::parse(GfxResources*, Object*, OutputDev*, GfxState*, int) ()\r\n   from /nix/store/smanandkbidik0cbpcm8xnp3fgsbri8r-poppler-glib-0.67.0/lib/libpoppler.so.78\r\n#3  0x00007fffe5ef5f2f in Gfx::opSetFillColorSpace(Object*, int) ()\r\n   from /nix/store/smanandkbidik0cbpcm8xnp3fgsbri8r-poppler-glib-0.67.0/lib/libpoppler.so.78\r\n#4  0x00007fffe5f0014f in Gfx::go(bool) ()\r\n   from /nix/store/smanandkbidik0cbpcm8xnp3fgsbri8r-poppler-glib-0.67.0/lib/libpoppler.so.78\r\n#5  0x00007fffe5f0060b in Gfx::display(Object*, bool) ()\r\n   from /nix/store/smanandkbidik0cbpcm8xnp3fgsbri8r-poppler-glib-0.67.0/lib/libpoppler.so.78\r\n#6  0x00007fffe5f00a22 in Gfx::drawForm(Object*, Dict*, double*, double*, bool, bool, GfxColorSpace*, bool, bool, bool, Function*, GfxColor*) ()\r\n   from /nix/store/smanandkbidik0cbpcm8xnp3fgsbri8r-poppler-glib-0.67.0/lib/libpoppler.so.78\r\n#7  0x00007fffe5f02f75 in Gfx::doForm(Object*) ()\r\n   from /nix/store/smanandkbidik0cbpcm8xnp3fgsbri8r-poppler-glib-0.67.0/lib/libpoppler.so.78\r\n#8  0x00007fffe5f08310 in Gfx::opXObject(Object*, int) ()\r\n   from /nix/store/smanandkbidik0cbpcm8xnp3fgsbri8r-poppler-glib-0.67.0/lib/libpoppler.so.78\r\n#9  0x00007fffe5f0014f in Gfx::go(bool) ()\r\n   from /nix/store/smanandkbidik0cbpcm8xnp3fgsbri8r-poppler-glib-0.67.0/lib/libpoppler.so.78\r\n#10 0x00007fffe5f0060b in Gfx::display(Object*, bool) ()\r\n   from /nix/store/smanandkbidik0cbpcm8xnp3fgsbri8r-poppler-glib-0.67.0/lib/libpoppler.so.78\r\n#11 0x00007fffe5f4f59b in Page::displaySlice(OutputDev*, double, double, int, bool, bool, int, int, int, int, bool, bool (*)(void*), void*, bool (*)(Annot*, void*), void*, bool) ()\r\n   from /nix/store/smanandkbidik0cbpcm8xnp3fgsbri8r-poppler-glib-0.67.0/lib/libpoppler.so.78\r\n#12 0x00007ffff51c41ee in _poppler_page_render(_PopplerPage*, _cairo*, bool, PopplerPrintFlags) ()\r\n   from /nix/store/smanandkbidik0cbpcm8xnp3fgsbri8r-poppler-glib-0.67.0/lib/libpoppler-glib.so.8\r\n#13 0x000000000040e539 in image_loader_create_thumbnail ()\r\n#14 0x0000000000413fee in image_loader_thread ()\r\n#15 0x00007ffff448aac5 in g_thread_proxy ()\r\n   from /nix/store/njs4pvn9gs1zhikh0cdn7zw4aplpmbqm-glib-2.56.0/lib/libglib-2.0.so.0\r\n#16 0x00007fffeb8395a7 in start_thread ()\r\n   from /nix/store/g2yk54hifqlsjiha3szr4q3ccmdzyrdv-glibc-2.27/lib/libpthread.so.0\r\n#17 0x00007ffff1df522f in clone () from /nix/store/g2yk54hifqlsjiha3szr4q3ccmdzyrdv-glibc-2.27/lib/libc.so.6\r\n```"}}
{"actor":{"display_login":"magnetophon"}}