Cannot start banshee: System.DllNotFoundException: libgtk-x11-2.0.so.0

Bug #717850 reported by Toby Smithe
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
banshee (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Binary package hint: banshee

Obviously, I do have gtk 2 installed.

toby@leopard:~$ banshee
[Info 19:25:45.355] Running Banshee 1.9.2: [Ubuntu natty (development branch) (linux-gnu, x86_64) @ 2011-01-24 15:22:39 UTC]
Exception has been thrown by the target of an invocation.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.DllNotFoundException: libgtk-x11-2.0.so.0
  at (wrapper managed-to-native) Gtk.Application:gtk_init (int&,intptr&)
  at Gtk.Application.Init () [0x00000] in <filename unknown>:0
  at Banshee.Gui.GtkBaseClient.InitializeGtk () [0x00000] in <filename unknown>:0
  at Banshee.Gui.GtkBaseClient.Initialize (Boolean registerCommonServices) [0x00000] in <filename unknown>:0
  at Banshee.Gui.GtkBaseClient..ctor (Boolean initializeDefault, System.String defaultIconName) [0x00000] in <filename unknown>:0
  at Banshee.Gui.GtkBaseClient..ctor () [0x00000] in <filename unknown>:0
  at Nereid.Client..ctor () [0x00000] in <filename unknown>:0
  at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (object,object[],System.Exception&)
  at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
  at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
  at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) [0x00000] in <filename unknown>:0
  at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x00000] in <filename unknown>:0
  at System.Activator.CreateInstance (System.Type type) [0x00000] in <filename unknown>:0
  at Banshee.Gui.GtkBaseClient.Startup () [0x00000] in <filename unknown>:0
  at Hyena.Gui.CleanRoomStartup.Startup (Hyena.Gui.StartupInvocationHandler startup) [0x00000] in <filename unknown>:0

Unhandled Exception: System.DllNotFoundException: libgtk-x11-2.0.so.0
  at (wrapper managed-to-native) Gtk.Application:gtk_init (int&,intptr&)
  at Gtk.Application.Init () [0x00000] in <filename unknown>:0
  at Hyena.Gui.CleanRoomStartup.Startup (Hyena.Gui.StartupInvocationHandler startup) [0x00000] in <filename unknown>:0
  at Banshee.Gui.GtkBaseClient.Startup[Client] () [0x00000] in <filename unknown>:0
  at Banshee.Gui.GtkBaseClient.Startup[Client] (System.String[] args) [0x00000] in <filename unknown>:0
  at Nereid.Client.Main (System.String[] args) [0x00000] in <filename unknown>:0
  at (wrapper managed-to-native) System.AppDomain:ExecuteAssembly (System.Reflection.Assembly,string[])
  at System.AppDomain.ExecuteAssemblyInternal (System.Reflection.Assembly a, System.String[] args) [0x00000] in <filename unknown>:0
  at System.AppDomain.ExecuteAssembly (System.String assemblyFile, System.Security.Policy.Evidence assemblySecurity, System.String[] args) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.AppDomain:ExecuteAssembly (string,System.Security.Policy.Evidence,string[])
  at System.AppDomain.ExecuteAssembly (System.String assemblyFile) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.AppDomain:ExecuteAssembly (string)
  at Booter.Booter.BootClient (System.String clientName) [0x00000] in <filename unknown>:0
  at Booter.Booter.Main () [0x00000] in <filename unknown>:0

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: banshee 1.9.2-1ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-1.28-generic 2.6.38-rc2
Uname: Linux 2.6.38-1-generic x86_64
NonfreeKernelModules: wl
Architecture: amd64
CheckboxSubmission: cb8560608953d46833a1bf646e78598a
CheckboxSystem: d00f84de8a555815fa1c4660280da308
Date: Sat Feb 12 19:26:06 2011
EcryptfsInUse: Yes
ProcEnviron:
 LANGUAGE=en_GB:en
 PATH=(custom, user)
 LANG=en_GB.utf8
 LC_MESSAGES=en_GB.utf8
 SHELL=/bin/bash
SourcePackage: banshee

Revision history for this message
Toby Smithe (tsmithe) wrote :
Revision history for this message
Victor Vargas (kamus) wrote :

This is a fresh installation of Natty or have you upgraded from another release? by the way, have you tried to remove your ".config/banshee-1" directory and then try again?

Changed in banshee (Ubuntu):
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Toby Smithe (tsmithe) wrote :

It is an upgraded system, but banshee has worked fine previously. I have moved the banshee-1 directory, but unsurprisingly, that makes no difference. I also removed all the extra extensions, but that made no difference, likewise. I have now reinstalled them.

Revision history for this message
Chow Loong Jin (hyperair) wrote : Re: [Bug 717850] Re: Cannot start banshee: System.DllNotFoundException: libgtk-x11-2.0.so.0

On Tuesday 15,February,2011 05:27 AM, Toby Smithe wrote:
> It is an upgraded system, but banshee has worked fine previously. I have
> moved the banshee-1 directory, but unsurprisingly, that makes no
> difference. I also removed all the extra extensions, but that made no
> difference, likewise. I have now reinstalled them.
>

This is really strange. Have you checked if /usr/lib/libgtk-x11-2.0.so exists?
If it does, please run:

strace -e trace=open banshee 2>&1 | grep libgtk-x11-2.0.so.0\"

And post the output here

  affects ubuntu/banshee
  status incomplete

--
Kind regards,
Loong Jin

Revision history for this message
Toby Smithe (tsmithe) wrote :

/usr/lib/libgtk-x11-2.0.so exists; otherwise not much of my system would be working right now.

Here is the output; I agree, it is very odd:

open("/usr/lib/banshee-1/libgtk-x11-2.0.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/banshee-1/Extensions/libgtk-x11-2.0.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/banshee-1/Backends/libgtk-x11-2.0.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libgtk-x11-2.0.so.0", O_RDONLY) = 5
open("/usr/lib/banshee-1/libgtk-x11-2.0.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/banshee-1/Extensions/libgtk-x11-2.0.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/banshee-1/Backends/libgtk-x11-2.0.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libgtk-x11-2.0.so.0", O_RDONLY) = 5

Revision history for this message
Chow Loong Jin (hyperair) wrote :

On Tuesday 15,February,2011 08:00 AM, Toby Smithe wrote:
> /usr/lib/libgtk-x11-2.0.so exists; otherwise not much of my system would
> be working right now.
>
> Here is the output; I agree, it is very odd:
>
> open("/usr/lib/banshee-1/libgtk-x11-2.0.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/banshee-1/Extensions/libgtk-x11-2.0.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/banshee-1/Backends/libgtk-x11-2.0.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/libgtk-x11-2.0.so.0", O_RDONLY) = 5
> open("/usr/lib/banshee-1/libgtk-x11-2.0.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/banshee-1/Extensions/libgtk-x11-2.0.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/banshee-1/Backends/libgtk-x11-2.0.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/libgtk-x11-2.0.so.0", O_RDONLY) = 5
>

Very weird. Could you try "MONO_LOG_LEVEL=debug banshee" instead?

--
Kind regards,
Loong Jin

Revision history for this message
Gabriel Burt (gabaug) wrote :

So "/usr/lib/libgtk-x11-2.0.so" exists but not "/usr/lib/libgtk-x11-2.0.so.0", with the trailing ".0"?

Sounds like the gtk-sharp package needs patching/updating.

Revision history for this message
Chow Loong Jin (hyperair) wrote :

On Wednesday 16,February,2011 12:49 AM, Gabriel Burt wrote:
> So "/usr/lib/libgtk-x11-2.0.so" exists but not
> "/usr/lib/libgtk-x11-2.0.so.0", with the trailing ".0"?
>
> Sounds like the gtk-sharp package needs patching/updating.
>

To anyone else reading this: please ignore the above comment -- as discussed on
IRC, the strace output showed that /usr/lib/libgtk-x11-2.0.so.0 was found.

--
Kind regards,
Loong Jin

Revision history for this message
Toby Smithe (tsmithe) wrote :

I attach the output of the debug command.

Revision history for this message
Bertrand Lorentz (bertrand-lorentz) wrote :

I think the following line from the log show the problem :

Mono-INFO: DllImport loading: 'libgtk-x11-2.0.so.0'.
Mono-INFO: DllImport error loading library 'libatiuki.so.1: cannot open shared object file: No such file or directory'.

The libgtk-x11-2.0.so.0 is there, but it depends on another library (libatiuki.so.1) which is apparently missing. I'd suggest you try to re-install any packages that provide one of those 2 files

Revision history for this message
Toby Smithe (tsmithe) wrote :

libatiuki is provided by fglrx. fglrx is not a dependency of banshee, and should not be, and in any case, due to the changes in the most recent X server, it is uninstallable.

Regardless, there is a bug somewhere.

Revision history for this message
Chow Loong Jin (hyperair) wrote :

On Wednesday 16,February,2011 05:49 AM, Toby Smithe wrote:
> libatiuki is provided by fglrx. fglrx is not a dependency of banshee,
> and should not be, and in any case, due to the changes in the most
> recent X server, it is uninstallable.
>
> Regardless, there is a bug somewhere.
>

Yes, there is. It's really strange that Mono is trying to load libatiuki. Do
other gtk# applications work? Like, say, Tomboy? Or F-Spot?

--
Kind regards,
Loong Jin

Revision history for this message
Toby Smithe (tsmithe) wrote :

Yes, I suppose I should have mentioned: I've not come across any other gtk#/Mono application that does this. Tomboy and F-Spot both work fine.

Revision history for this message
Toby Smithe (tsmithe) wrote :

This still occurs in the newly uploaded package. I took the libatiuki binaries from the fglrx package and installed them manually, and found that, as expected, banshee functions.

Revision history for this message
Chow Loong Jin (hyperair) wrote :

On Sunday 20,February,2011 07:18 PM, Toby Smithe wrote:
> This still occurs in the newly uploaded package. I took the libatiuki
> binaries from the fglrx package and installed them manually, and found
> that, as expected, banshee functions.
>

That's interesting. Could you post the output of "grep -R . /etc/ld.so.conf*"
please? Also please check if /usr/lib/fglrx exists.

And also, please run "strace -e trace=open banshee" and attach the output here.
It would be interesting to see if there are any libraries being checked in
between libgtk-x11-2.0.so.0 and libatiuki.so. That should help pinpoint what
went wrong, I reckon.

--
Kind regards,
Loong Jin

Revision history for this message
Toby Smithe (tsmithe) wrote :

The strace log doesn't seem particularly forthcoming to me, but I'm inexperienced. Hopefully you'll be able to see more in it...

$ grep -R . /etc/ld.so.conf*
/etc/ld.so.conf:include /etc/ld.so.conf.d/*.conf
/etc/ld.so.conf.d/x86_64-linux-gnu.conf:# Multiarch support
/etc/ld.so.conf.d/x86_64-linux-gnu.conf:/lib/x86_64-linux-gnu
/etc/ld.so.conf.d/x86_64-linux-gnu.conf:/usr/lib/x86_64-linux-gnu
/etc/ld.so.conf.d/lib32asound2.conf:/usr/lib32/alsa-lib
/etc/ld.so.conf.d/libasound2.conf:/usr/lib/alsa-lib
/etc/ld.so.conf.d/GL.conf:/usr/lib/mesa
/etc/ld.so.conf.d/GL.conf:/usr/lib32/mesa
/etc/ld.so.conf.d/libc.conf:# libc default configuration
/etc/ld.so.conf.d/libc.conf:/usr/local/lib

$ ls -R /usr/lib/fglrx
/usr/lib/fglrx:
dri etc

/usr/lib/fglrx/dri:
r600_dri.so

/usr/lib/fglrx/etc:
ati

/usr/lib/fglrx/etc/ati:
amdpcsdb

Revision history for this message
Jeffrey William Edwards (jeffrey-edwards) wrote :

rm /usr/lib/libGL.so.1
rm /usr/lib/libGL.so.1.2

Revision history for this message
Victor Vargas (kamus) wrote :

maybe this issue could be connected to bug 507062

Revision history for this message
Jeffrey William Edwards (jeffrey-edwards) wrote :

It's connected to having a stale libGL.so in /usr/lib leftover from a fglrx install from the AMD/ATI stock catalyst installer. At least it was on my computer and I had this exact same error. Ubuntu libGL.so doesn't live in /usr/lib.

Revision history for this message
Ben Clapp (ibenrunnin) wrote :

I'd just like to say that I was having the same problem, and removing libGL.so.1 and libGL.so.1.2 in /usr/lib solved the problem for me. ^.^

Revision history for this message
mcelrath (bob+launchpad) wrote :

I have this problem too, also on x86_64 also recently upgrade Maverick -> Natty. I disagree with the previous comment. Removing all libGL* and fglrx* did not help.

From the attached log, I think the real error is this one:

Mono-INFO: DllImport attempting to load: 'libgtk-x11-2.0.so.0'.
Mono-INFO: DllImport loading library: '/usr/lib/mono/gac/gtk-sharp/2.12.0.0__35e10195dab3c99f/libgtk-x11-2.0.so.0.so'.
Mono-INFO: DllImport error loading library '/usr/lib/mono/gac/gtk-sharp/2.12.0.0__35e10195dab3c99f/libgtk-x11-2.0.so.0.so: cannot open shared object file: No such file or directory'.
Mono-INFO: DllImport loading location: 'libgtk-x11-2.0.so.0.so'.
Mono-INFO: DllImport error loading library: 'libgtk-x11-2.0.so.0.so: cannot open shared object file: No such file or directory'.
Mono-INFO: DllImport loading: 'libgtk-x11-2.0.so.0'.
Mono-INFO: DllImport error loading library '/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0: undefined symbol: g_cclosure_marshal_VOID__VARIANT'.

FYI according to strace, it does correctly find libgtk-x11-2.0.so.0:

$ strace -e trace=open banshee 2>&1 | grep libgtk-x11-2.0.so.0\"
open("/usr/lib/banshee/libgtk-x11-2.0.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/banshee/Extensions/libgtk-x11-2.0.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/banshee/Backends/libgtk-x11-2.0.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/libgtk-x11-2.0.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libgtk-x11-2.0.so.0", O_RDONLY) = 6
open("/usr/lib/banshee/libgtk-x11-2.0.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/banshee/Extensions/libgtk-x11-2.0.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/banshee/Backends/libgtk-x11-2.0.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/libgtk-x11-2.0.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libgtk-x11-2.0.so.0", O_RDONLY) = 6

Changed in banshee (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Chow Loong Jin (hyperair) wrote :

On 23/05/2011 00:42, mcelrath wrote:
> I have this problem too, also on x86_64 also recently upgrade Maverick
> -> Natty. I disagree with the previous comment. Removing all libGL*
> and fglrx* did not help.

Then it's a different bug (though with the same symptoms). Please file a new bug
report and post this information there to avoid cluttering this bug report with
information from separate issues.

I'm closing this bug report, as it's quite clear that it isn't a Banshee issue,
or even a Gtk issue -- it was a broken fglrx causing it.

  status invalid

--
Kind regards,
Loong Jin

Changed in banshee (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
mcelrath (bob+launchpad) wrote :

It's precisely the same bug with precisely the same error message, check the log I posted. Except the library causing the failure is libgio-2.0.so.0 rather than fglrx, which then causes libgtk-x11 to fail to load.

The problem is deeper than just fglrx, it seems.

Note that the libgio causing the problem is the one from the natty repositories.

Changed in banshee (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
Chow Loong Jin (hyperair) wrote :

On 23/05/2011 01:43, mcelrath wrote:
> It's precisely the same bug with precisely the same error message, check
> the log I posted. Except the library causing the failure is
> libgio-2.0.so.0 rather than fglrx, which then causes libgtk-x11 to fail
> to load.
>
> The problem is deeper than just fglrx, it seems.
>
> Note that the libgio causing the problem is the one from the natty
> repositories.

It is a *different* bug with the *same* symptoms. Please stop making noise in
this bug and file a new one.

  status invalid

--
Kind regards,
Loong Jin

Changed in banshee (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
mcelrath (bob+launchpad) wrote :

Mono is failing to load libgtk-x11 because of a failure to load an auxiliary library. Sometimes this is libatiuki, sometimes it is libgio.

libgtk-x11 links to 43 other libraries. Shall I open a bug for a possible failure to load each one?

Changed in banshee (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
Chow Loong Jin (hyperair) wrote :

On 23/05/2011 15:08, mcelrath wrote:
> Mono is failing to load libgtk-x11 because of a failure to load an
> auxiliary library. Sometimes this is libatiuki, sometimes it is libgio.
>
> libgtk-x11 links to 43 other libraries. Shall I open a bug for a
> possible failure to load each one?

If it failed to load libatiuki, that's libatiuki's fault. If it failed to load
libgio, then it's libgio's fault. Looking at your log, it might as well be a
gio-sharp issue because it's looking for a specific symbol.

Now, if all 43 other libraries weren't loading, and *for separate reasons*, like
this one, then by all means, file 43 different bugs.

Now that I've explained this, please stop being an ass and just file a new bug.
I don't appreciate bug hijacks.

  status invalid

--
Kind regards,
Loong Jin

Changed in banshee (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
mcelrath (bob+launchpad) wrote :

FYI I re-installed all Banshee's dependencies, didn't help.

Good luck fixing your bug. I don't have to use Banshee, and I've already wasted too much time trying to help on this and getting trolled.

Someone else please step in and reopen this bug if you also disagree with Chow Loong Jin.

Revision history for this message
Chow Loong Jin (hyperair) wrote :

On 23/05/2011 17:18, mcelrath wrote:
> FYI I re-installed all Banshee's dependencies, didn't help.
>
> Good luck fixing your bug. I don't have to use Banshee, and I've
> already wasted too much time trying to help on this and getting trolled.
>
> Someone else please step in and reopen this bug if you also disagree
> with Chow Loong Jin.

I like how I can get trolled and accused of being trolled at the same time, but
if that's how you want it, then so be it.

--
Kind regards,
Loong Jin

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.