"webbrowser-app: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory" error when attempting to launch webbrowser-app

Bug #1574322 reported by Wise Melon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Oxide
New
Undecided
Unassigned

Bug Description

I have recently found that on Ubuntu 16.04 (in a 64-bit VirtualBox VM) that the webbrowser-app application does not start when launched from the launcher (it flashes for a little bit but then stops and does nothing else). If I however try to launch it from Terminal I get:

    webbrowser-app: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory

This may be related to bug #1573762 but note that this was in a VM and that I have Intel drivers.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: webbrowser-app 0.23+16.04.20160413-0ubuntu1
ProcVersionSignature: Ubuntu 4.4.0-21.37-generic 4.4.6
Uname: Linux 4.4.0-21-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
Date: Sun Apr 24 17:08:51 2016
InstallationDate: Installed on 2016-04-23 (1 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
SourcePackage: webbrowser-app
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Wise Melon (wise-melon-deactivatedaccount) wrote :
Revision history for this message
Olivier Tilloy (osomon) wrote :

Is the package libgl1-mesa-glx not installed in your VM?
Does installing it fix the issue?

Changed in webbrowser-app (Ubuntu):
status: New → Incomplete
Revision history for this message
Wise Melon (wise-melon-deactivatedaccount) wrote :

Yes, that package is already installed on the VM.

Changed in webbrowser-app (Ubuntu):
status: Incomplete → New
Revision history for this message
Olivier Tilloy (osomon) wrote :

And is that file available in the VM?

    /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1

Can you maybe try re-installing libgl1-mesa-glx in case it got corrupted?

    sudo apt-get install --reinstall libgl1-mesa-glx

Revision history for this message
Wise Melon (wise-melon-deactivatedaccount) wrote :

I have checked and that file is present:

    lrwxrwxrwx 1 root root 14 Apr 23 12:42 /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 -> libGL.so.1.2.0

I have tried reinstalling it with the command you gave and it reinstalled successfully, however the error when webbrowser-app is run remains the same.

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

Do other GL-enabled applications work in your VM? Try e.g. glxgears.

Revision history for this message
Wise Melon (wise-melon-deactivatedaccount) wrote :

Well, glxgears runs fine without error.

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

Does a simple QML scene with a WebView launch in that VM?
You can save the following code snippet as test.qml and run it with `qmlscene test.qml`:

 import QtQuick 2.4
 import com.canonical.Oxide 1.12
 WebView {
  url: "http://example.org"
 }

Revision history for this message
Wise Melon (wise-melon-deactivatedaccount) wrote :

The output of running that is:

    file:///home/tester/test.qml:2 module "com.canonical.Oxide" version 2.12 is not installed

And then it just exits.

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

this should be "import com.canonical.Oxide 1.12", not "2.12". Can you please test again with the correct version?

Revision history for this message
Wise Melon (wise-melon-deactivatedaccount) wrote :
Download full text (36.2 KiB)

Right, sorry, don't know how that mistake got in there, but with the correct version it doesn't really work that much better. I see a small black box (I adjusted the URL to a proper one) which upon being enlarged does a while flashing stairs like pattern and flashes the top and right side when I try to enlarge it. It also shows me the clicking cursor when I go over it but upon clicking it the only thing that seems to change is that when I mouse over different parts of it the cursor changes to different things (e.g.: normal and text cursor mode). I assume that this is because it is providing an interactive experience with the website it's just only showing black instead of the site? I don't know, anyway, throughout the time it was active this was the output (the last line got outputted when I closed the window in the standard way with the little cross):

[0504/191704:ERROR:zygote_host_impl_linux.cc(162)] Failed to adjust OOM score of renderer with pid 2332: Permission denied
OpenGL Warning: glXCreatePbuffer not implemented by Chromium
[0504/191705:ERROR:layer_tree_host_impl.cc(2218)] Forcing zero-copy tile initialization as worker context is missing
[0504/191705:ERROR:buffer_manager.cc(361)] [.CommandBufferContext.Context-For-Testing-0x1391870]GL ERROR :GL_INVALID_ENUM : glBufferData: <- error from previous GL command
[0504/191711:ERROR:texture_manager.cc(2421)] [.CommandBufferContext.RenderCompositor-0x3e5f51043780]GL ERROR :GL_INVALID_ENUM : glTexImage2D: <- error from previous GL command
[0504/191711:ERROR:gles2_cmd_decoder.cc(2134)] [.CommandBufferContext.RenderWorker-0x3e5f51043900]GL ERROR :GL_INVALID_ENUM : GLES2DecoderImpl::DoBindTexImage2DCHROMIUM: <- error from previous GL command
[0504/191711:ERROR:gles2_cmd_decoder.cc(2138)] [.CommandBufferContext.RenderWorker-0x3e5f51043900]GL ERROR :GL_INVALID_OPERATION : ScopedTextureBinder::ctor: was unhandled
[0504/191711:ERROR:gles2_cmd_decoder.cc(2134)] [.CommandBufferContext.RenderWorker-0x3e5f51043900]GL ERROR :GL_INVALID_VALUE : ScopedTextureBinder::dtor: <- error from previous GL command
[0504/191711:ERROR:gles2_cmd_decoder.cc(2134)] [.CommandBufferContext.RenderWorker-0x3e5f51043900]GL ERROR :GL_INVALID_VALUE : ScopedTextureBinder::dtor: <- error from previous GL command
[0504/191711:ERROR:gles2_cmd_decoder.cc(2134)] [.CommandBufferContext.RenderWorker-0x3e5f51043900]GL ERROR :GL_INVALID_VALUE : ScopedTextureBinder::dtor: <- error from previous GL command
[0504/191711:ERROR:gles2_cmd_decoder.cc(2134)] [.CommandBufferContext.RenderWorker-0x3e5f51043900]GL ERROR :GL_INVALID_VALUE : ScopedTextureBinder::dtor: <- error from previous GL command
[0504/191712:ERROR:gles2_cmd_decoder.cc(2134)] [.CommandBufferContext.RenderWorker-0x3e5f51043900]GL ERROR :GL_INVALID_VALUE : ScopedTextureBinder::dtor: <- error from previous GL command
[0504/191713:ERROR:gles2_cmd_decoder.cc(2134)] [.CommandBufferContext.RenderWorker-0x3e5f51043900]GL ERROR :GL_INVALID_VALUE : ScopedTextureBinder::dtor: <- error from previous GL command
[0504/191713:ERROR:gles2_cmd_decoder.cc(2134)] [.CommandBufferContext.RenderWorker-0x3e5f51043900]GL ERROR :GL_INVALID_VALUE : ScopedTextureBinder::dtor: <- error from previous GL c...

Olivier Tilloy (osomon)
affects: webbrowser-app (Ubuntu) → oxide
Revision history for this message
john (johnmont955) wrote :

simple QML scene runs fine here but same error on webbrowser-app

webbrowser-app: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory

glxgears is fine

any quick fix for this?

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

That looks like a confinement issue.
Could you please check if there are apparmor denials when you run webbrowser-app? You can monitor that from another terminal window with:

  tail -F /var/log/syslog | grep DEN

If there are denials, please paste them in this bug report. Thanks!

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

And I forgot to ask… John, which version of ubuntu and webbrowser-app do you have?

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.