dbus and f-spot not does not start f-spot

Bug #185752 reported by Niklas M
82
This bug affects 2 people
Affects Status Importance Assigned to Milestone
f-spot (Ubuntu)
Fix Released
Medium
Ubuntu Desktop Bugs

Bug Description

Binary package hint: f-spot

Seems like f-spot does not want to handle dbus really well in hardy at the moment. I tried talking with people on IRC however can't figure out why this happens.

When I start f-spot I get the following error:

An unhandled exception was thrown: F-Spot cannot find the Dbus session bus. Make sure dbus is configured properly or start a new session for f-spot using "dbus-launch f-spot"

  at FSpot.Driver.Main (System.String[] args) [0x00000]
.NET Version: 2.0.50727.42

Assembly Version Information:

NDesk.DBus.Proxies (0.0.0.0)
gdk-sharp (2.10.0.0)
gnome-vfs-sharp (2.16.0.0)
Mono.Addins (0.3.0.0)
NDesk.DBus.GLib (1.0.0.0)
NDesk.DBus (1.0.0.0)
System (2.0.0.0)
Mono.Posix (2.0.0.0)
atk-sharp (2.10.0.0)
gtk-sharp (2.10.0.0)
Mono.Addins.Setup (0.3.0.0)
glib-sharp (2.10.0.0)
gnome-sharp (2.16.0.0)
f-spot (0.4.1.0)
Mono.GetOptions (2.0.0.0)
mscorlib (2.0.0.0)

Platform Information: Linux 2.6.24-4-386 i686 unknown GNU/Linux

Distribution Information:

[/etc/debian_version]
lenny/sid

[/etc/lsb-release]
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu hardy (development branch)"

After trying to run f-spot with the command: dbus-launch f-spot

It starts up ok without any problems at all. So after that I tried to install the dbus-x11 package that "should" solve the problem. But still nothing happens. tried this on another user with the same result. Checked the running processes:

105 5021 1 0 21:33 ? 00:00:00 /usr/bin/dbus-daemon --system
user 5939 1 0 21:33 ? 00:00:00 dbus-launch --autolaunch 946d2229977988bbcf5b6900473f1d0a --binary-syntax --close-stderr
user 5941 1 0 21:33 ? 00:00:00 /usr/bin/dbus-daemon --fork --print-pid 18 --print-address 20 --session

Adding the f-spot command stacktrace

Revision history for this message
Niklas M (niklas-mattisson) wrote :
Revision history for this message
Maia Everett (linneris) wrote :

Did it happen with Gutsy?

Most importantly, it bugs me that you had to install dbus-x11 manually (even if it doesn't fix the problem). Starting with version 0.4.1-4ubuntu1, F-Spot depends on dbus-x11, so it should be installed automatically. What is your package version?

Changed in f-spot:
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Niklas M (niklas-mattisson) wrote :

As far as I know it did not happen in gutsy.

Actually I believe I didn't install it afterwards since it already was installed.

The version I am using at the moment is:
ii dbus 1.1.2-1ubuntu2
ii dbus-x11 1.1.2-1ubuntu2

ii f-spot 0.4.1-4ubuntu3

Revision history for this message
Maia Everett (linneris) wrote :

Thanks for the additional information. I'm setting it to New because I couln't reproduce it, but if someone can, they're welcome to set it to Confirmed.

Changed in f-spot:
status: Incomplete → New
Revision history for this message
Niklas M (niklas-mattisson) wrote :

One more important thing. This is under Xubuntu and not under Ubuntu. So if this is invalid to Ubuntu users it still might not work for the Xubuntu users. So to be fair this might not be the main ubuntu release but something under how xubuntu handles dbus.

Revision history for this message
Gene (gbarrier) wrote :

Same here using Kubuntu.

An unhandled exception was thrown: F-Spot cannot find the Dbus session bus. Make sure dbus is configured properly or start a new session for f-spot using "dbus-launch f-spot"

  at FSpot.Driver.Main (System.String[] args) [0x00000]
.NET Version: 2.0.50727.42

Assembly Version Information:

gdk-sharp (2.10.0.0)
gnome-vfs-sharp (2.16.0.0)
Mono.Addins (0.2.0.0)
NDesk.DBus.GLib (1.0.0.0)
NDesk.DBus (1.0.0.0)
System (2.0.0.0)
Mono.Posix (2.0.0.0)
atk-sharp (2.10.0.0)
gtk-sharp (2.10.0.0)
Mono.Addins.Setup (0.2.0.0)
glib-sharp (2.10.0.0)
gnome-sharp (2.16.0.0)
f-spot (0.4.0.0)
Mono.GetOptions (2.0.0.0)
mscorlib (2.0.0.0)

Platform Information: Linux 2.6.22-14-generic i686 unknown GNU/Linux

Distribution Information:

[/etc/debian_version]
lenny/sid

[/etc/lsb-release]
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=7.10
DISTRIB_CODENAME=gutsy
DISTRIB_DESCRIPTION="Ubuntu 7.10"

Revision history for this message
Maia Everett (linneris) wrote :

Hmm. So is occurs on both Gutsy and Hardy...

Gene, please follow these steps:
- Install dbus-x11
- Restart X
- Try to launch F-Spot

Report if the problem persists after that.

Niklas M, could you please run f-spot under a GNOME sessing, if you have GNOME installed? This is, of course, not a sensible fix/workaround, but it would help localize the bug since I can't reproduce it myself.

Changed in f-spot:
status: New → Triaged
Revision history for this message
Gene (gbarrier) wrote :

Gene, please follow these steps:
- Install dbus-x11
- Restart X
- Try to launch F-Spot
-------------

That fixed it.

Revision history for this message
Niklas M (niklas-mattisson) wrote :

at the moment I don't have gnome-session installed. I will test to use the gnome-session also.

Revision history for this message
Bismark (bismark-foofus) wrote :

Same error on Xubuntu Hardy with dbus-x11 already installed. It was installed already and restarting X and trying again did not let f-spot launch correctly. Performing the manual launch with 'dbus-launch f-spot' does work however.

Running dbus-monitor while trying to launch f-spot shows nothing.

Distribution Info:

Current updates as of 02/02/08

[/etc/lsb-release]
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu hardy (development branch)"

[/etc/debian_version]
lenny/sid

[uname -r]
2.6.24-5-generic

Revision history for this message
Toltech (robert-toltech) wrote :

My installation is hardy v_6
fspot 0.4.2-0ubuntu2
dbus 1.1.20-1ubuntu1

f-spot-import works for my camera Canon IXUS 800 IS when started manually
however dbus does noet start the program automatically (used to work in gutsy)
in preferences->Removable media: f-spot is configured in import photos when device is connected.

Do I need to configure udev, and so, how to do this?

Changed in f-spot:
status: Triaged → Confirmed
Revision history for this message
marcmpub (marcmpub) wrote :

tried to reinstall dbus-x11, restarted X (ctrl + alt + <- ), same behaviour : F-Spot complains about d-bus .... and doesn't start the software.
I am using kubuntu hardy beta 64bit version...

Revision history for this message
flowbot (flowbot) wrote :

I have the same problem on Xubuntu Hardy ... fully updated as of today (there was an f-spot update in there that i thought might fix it, but nope).

I also have dbus-X11 installed, but can only run f-spot with 'dbus-launch f-spot'.

Revision history for this message
foxy123 (foxy) wrote :

Same here on Xubuntu Hardy. I have dbus-x11 installed.

Revision history for this message
John Cooper (choffee) wrote :

Does this have anything to do with this bug?

https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/207157

Revision history for this message
marcmpub (marcmpub) wrote :

may be I don't know, fspot refuse to start and as expelianed it doesn't help to launch it with the launch dbus as explained here.
I tried some of the command you suggest : `/usr/bin/dbus-launch --sh-syntax --exit-with-session` it never give back hand to me and I have to restart X....

Revision history for this message
Bismark (bismark-foofus) wrote :

I tried the "fix" listed in https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/207157 by creating /etc/X11/Xsession.d/15dbus file. It seems to have fixed the problem, however "use-session-dbus" is listed in /etc/X11/Xsession.options and I don't know what if any conflict this will cause.

Revision history for this message
marcmpub (marcmpub) wrote :

By doing what bismark did (creating a file in Xsession.d) and by removing the f-spot database (hidden files created in a hidden subdirectory oh home directory) it works.... I can now use f-spot.... I'm also wondering if that won't cause conflicts.....

Revision history for this message
nico (nicolas-pourcelot) wrote :

I can't start f-spot anymore, it complains it can't connect to dbus.
I use Ubuntu Hardy (updated this afternoon - 22/04/08).

$ f-spot
Starting new FSpot server
Updating F-Spot Database
Rolling back database changes because of Exception
XXXXX
System.NullReferenceException: Object reference not set to an instance of an object
  at FSpot.Database.Updater.MoveTableToTemp (System.String table_name) [0x00000]
  at FSpot.Database.Updater+<>c__CompilerGenerated21.<Updater>c__57 () [0x00000]
  at FSpot.Database.Updater+Update.Execute (.Db db, .MetaItem db_version) [0x00000]
  at FSpot.Database.Updater.Run (.Db database) [0x00000]
XXXXX
Can't get a connection to the dbus. Trying again...
Starting new FSpot server
Can't get a connection to the dbus. Trying again...
Starting new FSpot server
Can't get a connection to the dbus. Trying again...
Starting new FSpot server
Can't get a connection to the dbus. Trying again...
Starting new FSpot server
Can't get a connection to the dbus. Trying again...
Starting new FSpot server
Can't get a connection to the dbus. Trying again...
Sorry, couldn't start F-Spot

Revision history for this message
flowbot (flowbot) wrote :

well, the latest update fixed this problem for me ... no more dbus-launch f-spot ;)

Revision history for this message
Pedro Villavicencio (pedro) wrote :

May someone else confirm that this is fixed for you with latest packages on hardy heron ? thanks.

Changed in f-spot:
assignee: nobody → desktop-bugs
status: Confirmed → Incomplete
Revision history for this message
Jari (jaroslav-kosik) wrote :

Nothing suggested helped, still the same song about:

Can't get a connection to the dbus. Trying again...
Starting new FSpot server

And I got the latest packages :)

Revision history for this message
bford16 (bford16) wrote :

I had the same error, and I believe I have a work-around solution. In a post above, marcmpub said he deleted his f-spot database, so I tried doing that first. I removed /home/barry/.gnome2/f-spot/photos.db, then opened f-spot normally (it worked fine). I set the program to look for photos in my shared pictures folder (not ~/Photos), then closed the program. When I attached my digital camera, the import dialog appeared, and when I selected Import Photos, f-spot opened, and imorted the pictures. Success is sweet!

Revision history for this message
Victor (vic-tor) wrote :

On Xubuntu Hardy, with dbus-x11 installed, and newest f-spot update, I still got the problem. However, after creating the dbus15 file as explained in Bismark's post (and restarting X and deleting photos.db as explained by bford16), f-spot launches properly. I suppose that this is not really an f-spot bug but a dbus one.

Revision history for this message
Martin Gollowitzer (gollo) wrote :

Got the same problem after switching from Ubuntu 7.10 to Xubuntu 8.04.
F-Spot will only start via
$ dbus-launch f-spot

Otherwise I always get the error message.

An unhandled exception was thrown: F-Spot cannot find the Dbus session bus. Make sure dbus is configured properly or start a new session for f-spot using "dbus-launch f-spot"

  at FSpot.Driver.Main (System.String[] args) [0x00000]
.NET Version: 2.0.50727.42

Assembly Version Information:

NDesk.DBus.Proxies (0.0.0.0)
gconf-sharp (2.20.0.0)
FSpot.Utils (0.0.0.0)
gdk-sharp (2.12.0.0)
gnome-vfs-sharp (2.20.0.0)
Mono.Addins (0.3.0.0)
NDesk.DBus.GLib (1.0.0.0)
NDesk.DBus (1.0.0.0)
System (2.0.0.0)
Mono.Posix (2.0.0.0)
Cms (0.0.0.0)
FSpot.Core (0.0.0.0)
atk-sharp (2.12.0.0)
gtk-sharp (2.12.0.0)
Mono.Addins.Setup (0.3.0.0)
gnome-sharp (2.20.0.0)
glib-sharp (2.12.0.0)
f-spot (0.4.2.0)
mscorlib (2.0.0.0)

Platform Information: Linux 2.6.24.3 i686 unknown GNU/Linux

Distribution Information:

[/etc/debian_version]
lenny/sid

[/etc/lsb-release]
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu 8.04"

Revision history for this message
Hooya (tjbassoon) wrote :

This bug is still happening. I am running a 64 bit install of Ubuntu Hardy, but log in to a Fluxbox window manager (no Gnome Session running). I have not removed any of the Gnome packages, although many things typically running in the background in Gnome may not be running in my Fluxbox session. It does start if I run dbus-launch f-spot.

I'll try it in a Gnome session in a moment. dbus-X11 is installed. Creating the 15dbus file mentioned above does not solve the problem for me. My system is up to date.

My error is more or less identical to the ones posted above but I'll put it here for completeness.

An unhandled exception was thrown: F-Spot cannot find the Dbus session bus. Make sure dbus is configured properly or start a new session for f-spot using "dbus-launch f-spot"

  at FSpot.Driver.Main (System.String[] args) [0x00000]
.NET Version: 2.0.50727.42

Assembly Version Information:

NDesk.DBus.Proxies (0.0.0.0)
gconf-sharp (2.20.0.0)
FSpot.Utils (0.0.0.0)
gdk-sharp (2.12.0.0)
gnome-vfs-sharp (2.20.0.0)
Mono.Addins (0.3.0.0)
NDesk.DBus.GLib (1.0.0.0)
NDesk.DBus (1.0.0.0)
System (2.0.0.0)
Mono.Posix (2.0.0.0)
Cms (0.0.0.0)
FSpot.Core (0.0.0.0)
atk-sharp (2.12.0.0)
gtk-sharp (2.12.0.0)
Mono.Addins.Setup (0.3.0.0)
gnome-sharp (2.20.0.0)
glib-sharp (2.12.0.0)
f-spot (0.4.3.1)
mscorlib (2.0.0.0)

Platform Information: Linux 2.6.24-19-generic x86_64 unknown GNU/Linux

Distribution Information:

[/etc/debian_version]
lenny/sid

[/etc/lsb-release]
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu 8.04.1"

Revision history for this message
benste (benste) wrote :

hy,
 I'm not shure what you're talking about,
but my bug is marked as a duplicate of this one here.

Did someone of you notice that also other programs than f-spot have a similar error?

like "gnome-rdp"

Revision history for this message
Carroarmato0 (carroarmato0) wrote :

Try this command as a workaround:

* rm -rf ~/.gnome2/f-spot *

That did the trick on my Hardy box

Revision history for this message
benste (benste) wrote :

didn't work for f-spot and even not for gnome-rdp which results in a very short error in this time:

Unhandled Exception: System.DllNotFoundException: intl
  at (wrapper managed-to-native) Mono.Unix.Catalog:bindtextdomain (intptr,intptr)
  at Mono.Unix.Catalog.Init (System.String package, System.String localedir) [0x00000]
  at GnomeRDP.MainApp..ctor (System.String[] args) [0x00000]
  at GnomeRDP.MainApp.Main (System.String[] args) [0x00000]

Unhandled Exception: System.DllNotFoundException: msvcrt
  at (wrapper managed-to-native) Mono.Unix.Native.Stdlib:free (intptr)
  at Mono.Unix.UnixMarshal.FreeHeap (IntPtr ptr) [0x00000]
  at Mono.Unix.Catalog.Init (System.String package, System.String localedir) [0x00000]
  at GnomeRDP.MainApp..ctor (System.String[] args) [0x00000]
  at GnomeRDP.MainApp.Main (System.String[] args) [0x00000]

Revision history for this message
Sebastien Bacher (seb128) wrote :

could you try if that's still an issue in intrepid?

Revision history for this message
benste (benste) wrote :

still in interpid BUT I upgraded, and didn't reinstall.

benste@vaiofe31m:~$ f-spot
[Info 17:43:55.676] Initializing DBus
[Warn 17:43:55.845] Caught an exception - libc (in `NDesk.DBus')
  at (wrapper managed-to-native) NDesk.DBus.Transports.UnixSocket:socket (int,int,int)
  at NDesk.DBus.Transports.UnixSocket..ctor () [0x00000]
  at NDesk.DBus.Transports.UnixNativeTransport.OpenUnix (System.String path) [0x00000]
  at NDesk.DBus.Transports.UnixNativeTransport.Open (System.String path, Boolean abstract) [0x00000]
  at NDesk.DBus.Transports.UnixTransport.Open (NDesk.DBus.AddressEntry entry) [0x00000]
  at NDesk.DBus.Transports.Transport.Create (NDesk.DBus.AddressEntry entry) [0x00000]
  at NDesk.DBus.Connection.OpenPrivate (System.String address) [0x00000]
  at NDesk.DBus.Connection..ctor (System.String address) [0x00000]
  at NDesk.DBus.Bus..ctor (System.String address) [0x00000]
  at NDesk.DBus.Bus.Open (System.String address) [0x00000]
  at NDesk.DBus.Bus.get_System () [0x00000]
Unable to open the system message bus. (in `NDesk.DBus')
  at NDesk.DBus.Bus.get_System () [0x00000]
  at NDesk.DBus.BusG.Init () [0x00000]
  at FSpot.Driver.Main (System.String[] args) [0x00000]
F-Spot cannot find the Dbus session bus. Make sure dbus is configured properly or start a new session for f-spot using "dbus-launch f-spot" (in `f-spot')
  at FSpot.Driver.Main (System.String[] args) [0x00000]

Unhandled Exception: System.DllNotFoundException: intl
  at (wrapper managed-to-native) Mono.Unix.Catalog:gettext (intptr)
  at Mono.Unix.Catalog.GetString (System.String s) [0x00000]
  at FSpot.UI.Dialog.ExceptionDialog.BuildExceptionMessage (System.Exception e) [0x00000]
  at FSpot.UI.Dialog.ExceptionDialog..ctor (System.Exception e) [0x00000]
  at FSpot.Driver.Main (System.String[] args) [0x00000]

Unhandled Exception: System.DllNotFoundException: msvcrt
  at (wrapper managed-to-native) Mono.Unix.Native.Stdlib:free (intptr)
  at Mono.Unix.UnixMarshal.FreeHeap (IntPtr ptr) [0x00000]
  at Mono.Unix.Catalog.GetString (System.String s) [0x00000]
  at FSpot.UI.Dialog.ExceptionDialog.BuildExceptionMessage (System.Exception e) [0x00000]
  at FSpot.UI.Dialog.ExceptionDialog..ctor (System.Exception e) [0x00000]
  at FSpot.Driver.Main (System.String[] args) [0x00000]

Revision history for this message
Broomer68 (jbezemer) wrote : Re: [Bug 185752] Re: dbus and f-spot not does not start f-spot

Sebastien Bacher wrote:
> could you try if that's still an issue in intrepid?
>

There is still something quirky, but not this failure.
When I connect my Nikon D80, there are three windows openened:
F-spot, main window, in import-mode
Nikon Camera asking if F-spot needs te be started
F-spot Camera selection as F-spot is not able to grab the camera,
because (nautilus ?) the Nikon-window grabbed the camera first.

For F-spot te work, the Nikon window needs to Unmount. (already reported
as # 191316)

This with 8.10rc with current updates.

--
Regards, Groeten, etc...

Jeroen Bezemer
Baanhoek 271
Sliedrecht

51N49.441, 4E44.656

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Broomer68 - If you are having other issues with F-Spot, please open another bug report for them.

Thanks

Revision history for this message
Broomer68 (jbezemer) wrote :

I did already, but I had to say that I have had this bug in history, not sure if it was for Gutsy, Hardy or Intrepid-Alpha, but do not get this one in Intrepid 8.10 release-candidate anymore.
but I would like to suggest this could be related, as somehow Nautilus can lock F-spot out of the use of the USB-system, so maybe F-spot can be locked out of dbus or X11 as well.

Revision history for this message
Carroarmato0 (carroarmato0) wrote :

I installed Intrepid on my new laptop.... and seems like FSpot worked directly with to trouble at all....

Can anyone else who's using Intrepid confirm that this has been fixed in the latest version?

Revision history for this message
benste (benste) wrote :

Like already posted, I don't get it Interpid

Revision history for this message
Pedro Villavicencio (pedro) wrote :

as stated by reporters this is fixed on intrepid, marking the report as fixed, thanks in advance.

Changed in f-spot:
status: Incomplete → Fix Released
Revision history for this message
otakuj462 (otakuj462) wrote :

This issue is still apparent on a fully updated Hardy.

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.