Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault when a spotify album is dragged from firefox into qutebrowser #8132

Open
l1bfm opened this issue Mar 18, 2024 · 3 comments
Open

Segfault when a spotify album is dragged from firefox into qutebrowser #8132

l1bfm opened this issue Mar 18, 2024 · 3 comments
Labels
bug: segfault/crash/hang There's a low-level crash in C++, or a hang/freeze. component: QtWebEngine Issues related to the QtWebEngine backend, based on Chromium.

Comments

@l1bfm
Copy link

l1bfm commented Mar 18, 2024

Steps to reproduce

  1. open firefox and qutebrowser next to each other
  2. open open.spotify.com in firefox
  3. drag anything on the spotify website that is draggable into the qutebrowser viewing area (not the tab bar)
  4. watch as qutebrowser segfaults

Steps to not reproduce the issue

  • drag an ordinary button / link from firefox into qutebrowser
  • drag anything into the tab bar or the status bar
  • open spotify inside qutebrowser and drag from there

I will update this list when i make any new findings.

Log (taken from the crash report window)

==== Fault log ====
Fatal Python error: Segmentation fault

Current thread 0x00007f8456d1c740 (most recent call first):
  File "/usr/lib/python3.12/site-packages/qutebrowser/app.py", line 125 in qt_mainloop
  File "/usr/lib/python3.12/site-packages/qutebrowser/app.py", line 115 in run
  File "/usr/lib/python3.12/site-packages/qutebrowser/qutebrowser.py", line 231 in main
  File "/usr/bin/qutebrowser", line 33 in <module>

Extension modules: PyQt6.QtCore, PyQt6.QtGui, PyQt6.QtWidgets, markupsafe._speedups, yaml._yaml, PyQt6.QtNetwork, PyQt6.QtQml, PyQt6.QtOpenGL, PyQt6.QtDBus, PyQt6.QtPrintSupport, PyQt6.QtWebChannel, PyQt6.QtWebEngineCore, PyQt6.QtWebEngineWidgets, PyQt6.QtSql (total: 14)


==== Timestamps ====
Launch: Mon Mar 18 03:16:48 2024
Crash: Mon Mar 18 03:21:26 2024

==== Version info ====
         ______     ,,
    ,.-"`      | ,-` |
  .^           ||    |
 /    ,-*^|    ||    |
;    /    |    ||    ;-*```^*.
;   ;     |    |;,-*`         \
|   |     |  ,-*`    ,-"""\    \
|    \   ,-"`    ,-^`|     \    |
 \    `^^    ,-;|    |     ;    |
  *;     ,-*`  ||    |     /   ;;
    `^^`` |    ||    |   ,^    /
          |    ||    `^^`    ,^
          |  _,"|        _,-"
          -*`   ****"""``

qutebrowser v3.1.0
Git commit: 
Backend: QtWebEngine 6.6, based on Chromium 112.0.5615.213 (from api)
Qt: 6.6.0

CPython: 3.12.2
PyQt: 6.6.1

Qt wrapper info:
  PyQt6: success
  PyQt5: not imported
  -> selected: PyQt6 (via autoselect)

colorama: no
jinja2: 3.1.3
pygments: no
yaml: 6.0.1
adblock: no
objc: no
PyQt6.QtWebEngineCore: 6.6.0
PyQt6.sip: 6.7.12
pdf.js: no
sqlite: 3.44.2
QtNetwork SSL: OpenSSL 3.1.5 30 Jan 2024

Style: QFusionStyle
Platform plugin: xcb
OpenGL: NVIDIA Corporation, 4.6.0 NVIDIA 535.154.05
Platform: Linux-6.6.18_1-x86_64-with-glibc2.38, 64bit
Linux distribution: Void Linux (void)
Frozen: False
Imported from /usr/lib/python3.12/site-packages/qutebrowser
Using Python from /usr/bin/python3
Qt library executable path: /usr/lib64/qt6/libexec, data path: /usr/share/qt6

Paths:
cache: /home/flo/.cache/qutebrowser
config: /home/flo/.config/qutebrowser
data: /home/flo/.local/share/qutebrowser
runtime: /tmp/1000-runtime-dir/qutebrowser
system data: /usr/share/qutebrowser

Autoconfig loaded: yes
Config.py: /home/flo/.config/qutebrowser/config.py has been loaded
Uptime: 0:04:38

==== Config ====
// I have removed this section because it was long and i considered it as not relevant.
// If there are are problems reproducing the error, I will happily provide the configuration.

==== Environment ====
LANG = de_DE.UTF-8
LC_COLLATE = C
PATH = /usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/jvm/default-jdk/bin:/usr/lib/jvm/default-jre/bin
QTWEBENGINE_DICTIONARIES_PATH = /home/flo/.local/share/qutebrowser/qtwebengine_dictionaries
XDG_RUNTIME_DIR = /tmp/1000-runtime-dir

I may try to dig deeper in the following days, but I can guarantee nothing.

@The-Compiler
Copy link
Member

Reproduced with Qt's simplebrowser example and thus reported upstream: [QTBUG-123765] Segfault when dropping elements from Spotify in Firefox - Qt Bug Tracker

@The-Compiler
Copy link
Member

Should be fixed in Qt 6.7.0 (or perhaps .1): Handle empty uri-list in dropped MIME data (I9e2189e3) · Gerrit Code Review

@The-Compiler
Copy link
Member

Looks like the fix only made it into Qt 6.7.2 and 6.8... I got another report for this, would be nice if we can have a workaround that prevents the drop or fixes up the mime data somehow. Will need to investigate.

@The-Compiler The-Compiler reopened this May 8, 2024
@The-Compiler The-Compiler added component: QtWebEngine Issues related to the QtWebEngine backend, based on Chromium. bug: segfault/crash/hang There's a low-level crash in C++, or a hang/freeze. labels May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: segfault/crash/hang There's a low-level crash in C++, or a hang/freeze. component: QtWebEngine Issues related to the QtWebEngine backend, based on Chromium.
Projects
None yet
Development

No branches or pull requests

2 participants