Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 1, profile 0) Aborted (core dumped)

Bug #1590737 reported by dinamic
82
This bug affects 30 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-304 (Ubuntu)
Confirmed
Undecided
Unassigned
qtbase-opensource-src (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Ubuntu 16.04 + nvidia proprietary 340.96 drivers
webbbrowser crashes with

Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 1, profile 0)
Aborted (core dumped)

Revision history for this message
dinamic (dinamic6661) wrote :

webbrowser-app

(webbrowser-app:16730): dconf-CRITICAL **: unable to create file '/run/user/1001/dconf/user': Permission denied. dconf will not work properly.

(webbrowser-app:16730): dconf-CRITICAL **: unable to create file '/run/user/1001/dconf/user': Permission denied. dconf will not work properly.

(webbrowser-app:16730): dconf-CRITICAL **: unable to create file '/run/user/1001/dconf/user': Permission denied. dconf will not work properly.
Input device added: "Power Button" "/dev/input/event1" QFlags(0x1)
Input device added: "Power Button" "/dev/input/event0" QFlags(0x1)
Input device added: "USB USB Keykoard" "/dev/input/event2" QFlags(0x1|0x10)
Input device added: "USB USB Keykoard" "/dev/input/event3" QFlags(0x1)
Input device added: "YSPRINGTECH USB OPTICAL MOUSE" "/dev/input/event4" QFlags(0x2)
Input device added: "HDA NVidia Line" "/dev/input/event7" QFlags(0x20)
Input device added: "HDA NVidia Line Out Front" "/dev/input/event8" QFlags(0x20)
Input device added: "HDA NVidia Line Out Surround" "/dev/input/event9" QFlags(0x20)
Input device added: "HDA NVidia Line Out CLFE" "/dev/input/event10" QFlags(0x20)
Input device added: "HDA NVidia Line Out Side" "/dev/input/event11" QFlags(0x20)
Input device added: "HDA NVidia Front Headphone" "/dev/input/event12" QFlags(0x20)
Input device added: "HDA NVidia Front Mic" "/dev/input/event5" QFlags(0x20)
Input device added: "HDA NVidia Rear Mic" "/dev/input/event6" QFlags(0x20)

(webbrowser-app:16730): IBUS-WARNING **: Unable to connect to ibus: Could not connect: Permission denied
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 1, profile 0)
Aborted (core dumped)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in webbrowser-app (Ubuntu):
status: New → Confirmed
Revision history for this message
Andrew Myers (asm198) wrote :

Effects qml:

>cat test.qml

import QtQuick 2.3

Rectangle {
    width: 200
    height: 100
    color: "red"

    Text {
        anchors.centerIn: parent
        text: "Hello, World!"
    }
}

> qml test.qml
QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 1, profile 0)
[1] 13015 abort (core dumped) qml ~/code/qml/test.qml

Revision history for this message
randolf (wolle321) wrote :

Same Problem with nvidia-current (=304)

Linux ART-LT16 4.4.0-45-lowlatency #66-Ubuntu SMP PREEMPT Wed Oct 19 14:57:51 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

trying to start genymotion (Android Emulator via VBox)

Nov. 7 13:30:39 [Genymotion Player] [Debug] Player running. Try to show window...
Nov. 7 13:30:39 [Genymotion Player] [Fatal] Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 1, profile 0)

Ubuntu 16.10, all packages updated.
tried genymotion last version 2.6 and 2.8.

The problem is here since I updated the latest kernel and nvidia packages tody in the morning.

Tried to fall back to noveau: problem is away.
Reinstalled nvidia-current: problem is back.

Revision history for this message
randolf (wolle321) wrote :

I forced to downgrade the nvidia driver
from 304.132-0ubuntu0.16.04.2 (xenial updates)
to 304.131-0ubuntu3 (xenial)

Now my genymotion works again, the bug's away.

And I'm sorry: I'm on Ubuntu Studio 16.04, not 16.10

Maybe its a workaround for somebody.

randolf

Revision history for this message
Olivier Tilloy (osomon) wrote :

So it appears this problem is not specific to webbrowser-app or even oxide, but rather Qt failing to create an OpenGL context with this specific driver. Re-targetting the bug.

affects: webbrowser-app (Ubuntu) → qtbase-opensource-src (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-graphics-drivers-304 (Ubuntu):
status: New → Confirmed
Revision history for this message
Reinhard (rkalx93) wrote :

This bug also occurs with the latest Nvidia Driver 375.26 and Qt 5.8 RC1. However not with the simple Qt OpenGL Demo Apps and this simple qml test app, so using 375.26 might solve the issue for some people including webbrowser-app.

Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize 8, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 1, profile QSurfaceFormat::OpenGLContextProfile(NoProfile))

In my case it does not crash with the Intel driver (however this driver has performance "issues").

Revision history for this message
Gumuiyul (gumuiyul) wrote :

I have the same problem.
I am using Qt 5.8.0 and QtCreator 4.2.1 on Nvidia 375.39-0ubuntu0.16.04.1
Qt Creator failed with following message.
[warning] 3542 4.679 QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
[fatal] 3542 4.679 Failed to create EGL context for format QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 0, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 1, profile 0)

Revision history for this message
Joël-Pol STEFF (jpsteff) wrote :
Download full text (7.9 KiB)

I am having the same problem with webbrowser-app. My machine :
Lenovo ThinkPad X230
Memory : 7,5GiB
Processor : Intel® Core™ i5-3320M CPU @ 2.60GHz × 4
Graphics : Intel® Ivybridge Mobile
OS Type : Ubuntu 16.04LTS 64bit
Disk : 228,0GB SSD

I used to use "webbrowser" to work under WordPress because some functionalities are no more operational with Chrome; For couple of months now I can't use "webbrowser". I tried to uninstall it, reinstall it, no way!

PS : I am not an Ubuntu specialist but a basic user who doesn't want to deal anymore with MicroSoft Windows ...

here is my log in terminal when I input webbrowser-app, if this may help :

joel-pol@JPS-X230:~$ webbrowser-app

(webbrowser-app:22269): dconf-CRITICAL **: unable to create file '/run/user/1000/dconf/user': Permission denied. dconf will not work properly.

(webbrowser-app:22269): dconf-CRITICAL **: unable to create file '/run/user/1000/dconf/user': Permission denied. dconf will not work properly.

(webbrowser-app:22269): dconf-CRITICAL **: unable to create file '/run/user/1000/dconf/user': Permission denied. dconf will not work properly.
libGL error: MESA-LOADER: failed to retrieve device information
libGL error: Version 4 or later of flush extension not found
libGL error: failed to load driver: i915
libGL error: MESA-LOADER: failed to retrieve device information
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
unity::action::ActionManager::ActionManager(QObject*):
 Could not determine application identifier. HUD will not work properly.
 Provide your application identifier in $APP_ID environment variable.
UCUriHandler: Empty "APP_ID" environment variable, ignoring.
file:///usr/share/webbrowser-app/webbrowser/ContentPickerDialog.qml:22:1: module "Ubuntu.Content" is not installed
file:///usr/share/webbrowser-app/webbrowser/ContentDownloadDialog.qml:22:1: module "Ubuntu.Content" is not installed
file:///usr/share/webbrowser-app/ContentHandler.qml:20:1: module "Ubuntu.Content" is not installed
file:///usr/share/webbrowser-app/webbrowser/DownloadHandler.qml:20:1: module "Ubuntu.DownloadManager" is not installed

(webbrowser-app:22269): IBUS-WARNING **: Unable to connect to ibus: Could not connect: Permission denied
QNetworkManagerInterface::QNetworkManagerInterface(QObject*) propsReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.179\" (uid=1000 pid=22269 comm=\"webbrowser-app \") interface=\"org.freedesktop.DBus.Properties\" member=\"GetAll\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=1063 comm=\"/usr/sbin/NetworkManager --no-daemon \")"
QNetworkManagerInterface::QNetworkManagerInterface(QObject*) nmReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.179\" (uid=1000 pid=22269 comm=\"webbrowser-app \") interface=\"org.freedesktop.NetworkManager\" member=\"GetDevices\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=1063 comm=\"/usr/sbin/NetworkManager --no-daemon \")"
"Object path...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.