qutebrowser / qutebrowser

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

WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed #3566

Closed furrycatherder closed 6 years ago

furrycatherder commented 6 years ago
08:51:27 WARNING: WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed.
qutebrowser v1.1.1
Git commit: e874db9ce (2018-02-07 12:05:29 +0100)
Backend: QtWebEngine (Chromium 61.0.3163.140)

CPython: 3.6.4
Qt: 5.10.0
PyQt: 5.10

sip: 4.19.7
colorama: no
pypeg2: 2.15
jinja2: 2.10
pygments: 2.2.0
yaml: 3.12
cssutils: no
attr: 17.4.0
PyQt5.QtWebEngineWidgets: yes
PyQt5.QtWebKitWidgets: yes
pdf.js: no
sqlite: 3.22.0
QtNetwork SSL: OpenSSL 1.1.0g  2 Nov 2017

Style: QFusionStyle
Platform: Linux-4.14.17-1-ck-bulldozer-x86_64-with-arch, 64bit
Linux distribution: Arch Linux (arch)
Frozen: False
Imported from /usr/lib/python3.6/site-packages/qutebrowser
Qt library executable path: /usr/lib/qt/libexec, data path: /usr/share/qt

Paths:
cache: /home/sean/.cache/qutebrowser
config: /home/sean/.config/qutebrowser
data: /home/sean/.local/share/qutebrowser
runtime: /run/user/1000/qutebrowser
system data: /usr/share/qutebrowser

Uptime: 0:00:00
08:53:55 WARNING: WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed.
08:53:56 CRITICAL: Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::SwapBehavior(DefaultSwapBehavior), swapInterval 1, colorSpace QSurfaceFormat::ColorSpace(DefaultColorSpace), profile  QSurfaceFormat::OpenGLContextProfile(NoProfile)) 
Received signal 6
#0 0x7f7fc5ae3316 <unknown>
#1 0x7f7fc475fd0c <unknown>
#2 0x7f7fc5ae368c <unknown>
#3 0x7f7fe5ac1dd0 <unknown>
#4 0x7f7fe572c860 __GI_raise
#5 0x7f7fe572dec9 __GI_abort
#6 0x7f7fdd1b98c8 QMessageLogger::fatal()
#7 0x7f7fc3c01a14 <unknown>
#8 0x7f7fc3c01dac <unknown>
#9 0x7f7fc3c0408e QQuickWidget::resizeEvent()
#10 0x7f7fcaa2853e <unknown>
#11 0x7f7fd5d4aba2 QWidget::event()
#12 0x7f7fc3c04b1c QQuickWidget::event()
#13 0x7f7fcaa287c1 <unknown>
#14 0x7f7fd5d09ecc QApplicationPrivate::notify_helper()
#15 0x7f7fd5d118a6 QApplication::notify()
#16 0x7f7fd3f212ef <unknown>
#17 0x7f7fdd3bc850 QCoreApplication::notifyInternal2()
#18 0x7f7fd5d4280d QWidgetPrivate::sendPendingMoveAndResizeEvents()
#19 0x7f7fd5d46864 QWidgetPrivate::show_helper()
#20 0x7f7fd5d46770 QWidgetPrivate::showChildren()
#21 0x7f7fd5d46882 QWidgetPrivate::show_helper()
#22 0x7f7fd5d49b59 QWidget::setVisible()
#23 0x7f7fcac621e4 <unknown>
#24 0x7f7fd5d467c1 QWidgetPrivate::showChildren()
#25 0x7f7fd5d46882 QWidgetPrivate::show_helper()
#26 0x7f7fd5d49b59 QWidget::setVisible()
#27 0x7f7fd4164504 <unknown>
#28 0x7f7fd5d2cdfa QStackedLayout::setCurrentIndex()
#29 0x7f7fd5d2d4db QStackedLayout::insertWidget()
#30 0x7f7fd5ee1327 QTabWidget::insertTab()
#31 0x7f7fd5ee13f9 QTabWidget::insertTab()
#32 0x7f7fd40f67c9 <unknown>
#33 0x7f7fe52f6ad0 _PyCFunction_FastCallDict
#34 0x7f7fe531cd1b <unknown>
#35 0x7f7fe52b0b5a _PyEval_EvalFrameDefault
#36 0x7f7fe531b896 <unknown>
#37 0x7f7fe531ca8f <unknown>
#38 0x7f7fe531cdde <unknown>
#39 0x7f7fe52b0b5a _PyEval_EvalFrameDefault
#40 0x7f7fe531bbb1 <unknown>
#41 0x7f7fe531ca8f <unknown>
#42 0x7f7fe531cdde <unknown>
#43 0x7f7fe52b1904 _PyEval_EvalFrameDefault
#44 0x7f7fe531b6b4 <unknown>
#45 0x7f7fe531ca8f <unknown>
#46 0x7f7fe531cdde <unknown>
#47 0x7f7fe52b0b5a _PyEval_EvalFrameDefault
#48 0x7f7fe531c85b <unknown>
#49 0x7f7fe531cdde <unknown>
#50 0x7f7fe52b0b5a _PyEval_EvalFrameDefault
#51 0x7f7fe531c85b <unknown>
#52 0x7f7fe531cdde <unknown>
#53 0x7f7fe52b0b5a _PyEval_EvalFrameDefault
#54 0x7f7fe531c85b <unknown>
#55 0x7f7fe531cdde <unknown>
#56 0x7f7fe52b0b5a _PyEval_EvalFrameDefault
#57 0x7f7fe531c85b <unknown>
#58 0x7f7fe531cdde <unknown>
#59 0x7f7fe52b0b5a _PyEval_EvalFrameDefault
#60 0x7f7fe531c85b <unknown>
#61 0x7f7fe531cdde <unknown>
  r8: 0000000000000000  r9: 00007ffc17cc04e0 r10: 0000000000000008 r11: 0000000000000246
 r12: 00007ffc17cc0828 r13: 000055f55f09a370 r14: 0000000000000001 r15: 000055f55e9e8190
  di: 0000000000000002  si: 00007ffc17cc04e0  bp: 000055f55f09a370  bx: 0000000000000006
  dx: 0000000000000000  ax: 0000000000000000  cx: 00007f7fe572c860  sp: 00007ffc17cc04e0
  ip: 00007f7fe572c860 efl: 0000000000000246 cgf: 002b000000000033 erf: 0000000000000000
 trp: 0000000000000000 msk: 0000000000000000 cr2: 0000000000000000
[end of stack trace]
Calling _exit(1). Core file will not be generated.
[5503:5503:0100/000000.522089:ERROR:broker_posix.cc(43)] Invalid node channel message
furrycatherder commented 6 years ago
$ qutebrowser --backend webkit    
08:56:17 INFO: Request to collector.githubapp.com blocked by host blocker.
free(): invalid pointer
[1]    15190 abort (core dumped)  qutebrowser --backend webkit
jgkamat commented 6 years ago

https://github.com/qutebrowser/qutebrowser/issues/3276 seems like a related issue, could you try using software rendering as suggested there? Also what graphics driver/card are you using?

furrycatherder commented 6 years ago

I'm using an NVIDIA GeForce GTX 970 with the nvidia-ck-bulldozer package from repo-ck. I see the same error with software rendering enabled, and adding myself to the video group didn't solve it either.

The-Compiler commented 6 years ago

Did you upgrade your graphics driver and not reboot yet?

furrycatherder commented 6 years ago

Well, I thought I had, but recompiling and rebooting fixed it for me. Closing.