qutebrowser / qutebrowser

A keyboard-driven, vim-like browser based on Python and Qt.
https://www.qutebrowser.org/
GNU General Public License v3.0
9.45k stars 1.01k forks source link

Doesn't start with QT 6.7 next to update - ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf #8188

Closed T0MuX closed 2 weeks ago

T0MuX commented 1 month ago

Version info:

qutebrowser v3.1.0
Git commit: 
Backend: QtWebEngine 5.15.16, based on Chromium 87.0.4280.144
Qt: 5.15.13

CPython: 3.12.3
PyQt: 5.15.10

Qt wrapper: PyQt5 (via --qt-wrapper)

!!! It doesn't start anymore with PyQt6, but with PyQt5. However PyQt 6.7.0-2 is installed.

Does the bug happen if you start with --temp-basedir?: Yes (only with Qt6)

Description I just updated my entire system, rebooted, and since this. When I start QB, a Window appears but with nothing in it (just the previous background, frozen). In the same time, I see the following in console. I start it twice : one with pyqt5 qt wrapper + temp-basedir, and one just with temp-basedir (on default pyqt6).

[t0mux@atelier-pc ~]$ qutebrowser --qt-wrapper PyQt5 --temp-basedir
/home/t0mux/.gtkrc-2.0:9: error: unexpected identifier 'Hourglass', expected character '='
22:52:57 WARNING: libpng warning: iCCP: profile 'icc': 0h: PCS illuminant is not D50
^C22:59:35 INFO: SIGINT/SIGTERM received, shutting down!
22:59:35 INFO: Do the same again to forcefully quit.
[t0mux@atelier-pc ~]$ qutebrowser --temp-basedir
/home/t0mux/.gtkrc-2.0:9: error: unexpected identifier 'Hourglass', expected character '='
22:59:44 WARNING: Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/bin/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/lib/qt6/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/lib/qt6/qtwebengine_dictionaries'
22:59:44 INFO: libpng warning: iCCP: profile 'icc': 0h: PCS illuminant is not D50
22:59:45 WARNING: QOpenGLContext::makeCurrent() called with non-opengl surface 0x5fc762297640
22:59:45 WARNING: QRhiGles2: Failed to make context current. Expect bad things to happen.
22:59:45 WARNING: Failed to create QRhi for QBackingStoreRhiSupport
[3713:3744:0505/225945.133657:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.133791:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.133889:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.133990:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.134088:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.134181:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.134270:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.134365:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.134461:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.134550:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.134648:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.134747:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.134851:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.134994:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.135101:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.135199:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.135301:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.135437:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.135545:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.135650:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.135742:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.135832:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.135921:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.136035:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.136172:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.136284:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.136377:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.136475:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.136574:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.136663:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.136748:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.136836:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.136925:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.137015:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.137110:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.137243:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.137337:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.137424:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.137519:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)
[3713:3744:0505/225945.137610:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce nom (2)

My OS is Artix Linux with Runit. Fully updated at this time. I also tried to set another theme in qt6ct (I actually use qt6gtk2), but I have exactly the same issue with all others themes.

How to reproduce Honestly I don't know if this is easily reproducible :( maybe with someone else using theme same distribution ?

toofar commented 1 month ago

Is this with wayland or X11? Do you have QSG_RHI_BACKEND set to anything in your environment? Can you try with qutebrowser --temp-basedir -s qt.force_software_rendering software-opengl?

Not sure what's going on here. This message seems quite confused:

QOpenGLContext::makeCurrent() called with non-opengl surface 0x5fc762297640

but I'm not seeing anything recent show on for that error on a web search.

The-Compiler commented 1 month ago

@T0MuX any update? FWIW this doesn't seem like anything qutebrowser could fix.

T0MuX commented 1 month ago

Hi guys, sorry for the little delay. I have no QSG_RHI_BACKEND set. I tried with qutebrowser --temp-basedir -s qt.force_software_rendering software-opengl, the only difference is I don't see anymore the 3 WARNING and the exporting buffer loop. Now it's :

[t0mux@atelier-pc ~]$ qutebrowser --temp-basedir -s qt.force_software_rendering software-opengl
/home/t0mux/.gtkrc-2.0:9: error: unexpected identifier 'Hourglass', expected character '='
07:24:20 WARNING: Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/bin/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/lib/qt6/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/lib/qt6/qtwebengine_dictionaries'
07:24:21 INFO: libpng warning: iCCP: profile 'icc': 0h: PCS illuminant is not D50
07:24:21 WARNING: QOpenGLContext::makeCurrent() called with non-opengl surface 0x62394b14bee0
07:24:21 WARNING: QRhiGles2: Failed to make context current. Expect bad things to happen.
07:24:21 WARNING: Failed to create QRhi for QBackingStoreRhiSupport
[3483:8:0512/072421.802824:ERROR:command_buffer_proxy_impl.cc(127)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.

But same result in Xorg : image

EDIT : just to remind, it's OK with PyQT5 wrapper :

qutebrowser --qt-wrapper PyQt5 --temp-basedir
/home/t0mux/.gtkrc-2.0:9: error: unexpected identifier 'Hourglass', expected character '='
07:28:33 WARNING: libpng warning: iCCP: profile 'icc': 0h: PCS illuminant is not D50

image

T0MuX commented 2 weeks ago

Hi, I could move forward a bit on this.

The problem comes from $QT_QPA_PLATFORMTHEME to be set to "qt6ct". When I unset the variable, qutebrowser is working again. So I think this is configuration related, or LXQT / QT itself / theme related.

I close the issue. Thank you anyway for your help.