Open OmegaLambda1998 opened 2 weeks ago
Another piece of info, running :hint links run fake-key -g :download {hint-url}<Return><Return>
(i.e. without the quotes), does not segfault. Instead the hints appear, and after one is selected, the message-error
: fake-key: Unrecognized arguments: https://www.overleaf.com/latex/templates/overleaf-keyboard-shortcuts/pphdnzrwmttk.pdf<return><return>
gets logged.
Thanks for all the details! Reproduced. Not sure off-hand what's happening there, maybe a race condition when the download prompt is closed immediately after being opened or something along those lines.
Version info:
https://bpa.st/DP3A
Does the bug happen if you start with
--temp-basedir
?: YesDescription
Last few lines of debug log, from `command called: download` to segfault
``` 22:33:28 DEBUG commands command:run:513 command called: download ['https://www.overleaf.com/latex/templates/overleaf-keyboard-shortcuts/pphdnzrwmttk.pdf'] 22:33:28 DEBUG commands command:run:527 Calling qutebrowser.browser.commands.CommandDispatcher.download(gdb.txt
``` #0 0x00005555567f3ca0 in ??? () #1 0x00007ffff239eadd in QFileInfoGatherer::getInfo (this=0x55555674b690, fileInfo=...) at /usr/src/debug/qt6-base/qtbase/src/gui/itemmodels/qfileinfogatherer.cpp:349 #2 0x00007ffff23ab8ab in QFileSystemModelPrivate::_q_fileSystemChanged (this=0x555556773300, path=Side note, the stacktrace docs might need an update? I got the warning:
How to reproduce
env DEBUGINFOD_URLS="https://debuginfod.archlinux.org/" gdb -ex r --args $(readlink -f $(which python3)) -m qutebrowser --debug --temp-basedir
:open https://www.overleaf.com/latex/templates/overleaf-keyboard-shortcuts/pphdnzrwmttk
:hint links run fake-key -g ":download {hint-url}<Return><Return>"
I see the exact same behaviour on other websites (Tested
duckduckgo.com
selecting the ddg logo, andhttps://arxiv.org/
selecting a link to a pdf and a link to a html view), and with the slightly different command -:hint links run fake-key -g ":download {hint-url}<Return><Ctrl-x>"
. All tests were with--temp-basedir
(though only the first example above has a gdb stack trace).