Basenji crashes in ubuntu 14.04

Bug #1310700 reported by Amano
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Basenji
Fix Released
Critical
Unassigned

Bug Description

in Ubuntu 14.04 Basenji crashes anytime the prefernce tab is selected or trying to add a volume

output from basenji --debug this is when prefernces is selected.

basenji --debug
[Basenji DBG]: Basenji 1.0.1.0
[Basenji DBG]: Used runtime: /usr/lib/mono/4.5
[VolumeDB DBG]: _SearchVolume() executes query: 'SELECT * FROM Volumes;'

Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
  at Platform.Unix.IO.DkDriveInfoProvider.GetAll (Boolean readyDrivesOnly) [0x00000] in <filename unknown>:0
  at Platform.Gnome.IO.GioDriveInfoProvider.GetAll (Boolean readyDrivesOnly) [0x00000] in <filename unknown>:0
  at Platform.Common.IO.DriveInfo.GetDrives (Boolean readyDrivesOnly) [0x00000] in <filename unknown>:0
  at Basenji.Gui.Preferences.<Preferences>m__1C () [0x00000] in <filename unknown>:0
  at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
  at Platform.Unix.IO.DkDriveInfoProvider.GetAll (Boolean readyDrivesOnly) [0x00000] in <filename unknown>:0
  at Platform.Gnome.IO.GioDriveInfoProvider.GetAll (Boolean readyDrivesOnly) [0x00000] in <filename unknown>:0
  at Platform.Common.IO.DriveInfo.GetDrives (Boolean readyDrivesOnly) [0x00000] in <filename unknown>:0
  at Basenji.Gui.Preferences.<Preferences>m__1C () [0x00000] in <filename unknown>:0
  at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0

output from basenji --debug this is when add volume is selected.

 basenji --debug
[Basenji DBG]: Basenji 1.0.1.0
[Basenji DBG]: Used runtime: /usr/lib/mono/4.5
[VolumeDB DBG]: _SearchVolume() executes query: 'SELECT * FROM Volumes;'

Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
  at Platform.Unix.IO.DkDriveInfoProvider.GetAll (Boolean readyDrivesOnly) [0x00000] in <filename unknown>:0
  at Platform.Gnome.IO.GioDriveInfoProvider.GetAll (Boolean readyDrivesOnly) [0x00000] in <filename unknown>:0
  at Platform.Common.IO.DriveInfo.GetDrives (Boolean readyDrivesOnly) [0x00000] in <filename unknown>:0
  at Basenji.Gui.DriveSelection.<RefreshListAsync>m__0 () [0x00000] in <filename unknown>:0
  at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
  at Platform.Unix.IO.DkDriveInfoProvider.GetAll (Boolean readyDrivesOnly) [0x00000] in <filename unknown>:0
  at Platform.Gnome.IO.GioDriveInfoProvider.GetAll (Boolean readyDrivesOnly) [0x00000] in <filename unknown>:0
  at Platform.Common.IO.DriveInfo.GetDrives (Boolean readyDrivesOnly) [0x00000] in <filename unknown>:0
  at Basenji.Gui.DriveSelection.<RefreshListAsync>m__0 () [0x00000] in <filename unknown>:0
  at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0

Revision history for this message
Patrick Ulbrich (pulb) wrote :

Thanks for reporting.
It seems udisks has been removed from Ubuntu and the following packages are affected:
https://bugs.launchpad.net/ubuntu/+source/basenji/+bug/1288253

Revision history for this message
Patrick Ulbrich (pulb) wrote :

Update: the udisks package has not been removed (yet). The udisks daemon is just not started automatically for some reason. Maybe it's best to file a bugreport for the udisks package

Revision history for this message
Amano (amano) wrote :

thanks for the updates, i found out to make udisk daemon run by running /usr/lib/udisks/udisks-daemon and basneji works like normal now
if udisk is removed in the future will basneji no longer work in future Ubuntu's and is there a way to install udisk manually ?

Thanks for a great program been using it for years

Revision history for this message
Guillermo Espertino (Gez) (gespertino-gmail) wrote :

Hi, I file the same bug in Debian a few weeks ago.
I see that in Debian there are 2 bugs filed against Basenji: One of them says that libgnomedesktop2 is about to be removed from Debian and it's currently marked as a dependency of Basenji, and the other says that udisks is deprecated, and it should be replaced by udisks2.

This confirms that udisks is on its way out, so reporting this problem against udisks won't be very helpful.

Currently it's impossible to run basenji in Debian (as reported, it crashes when the add volume button is pressed, or trying to enter the preferences) because of this problem.

Revision history for this message
Patrick Ulbrich (pulb) wrote :

@Amano, thanks for the kind words. I hope I'll find the time to port Basenji to udisk2 anytime soon, so you shouln't be worried about compatibility with future ubuntu versions.

@Gez,
I understand that Basenji needs to be ported to udisks2 (what's the replacement for libgnomedesktop2 btw?) in the long run, though I do not understand why those dependencies are included but not working any longer. So i still think that it does make sense to file a bug against udisks2 as the current package is obviously broken.

The man page for the udisks package (http://manpages.ubuntu.com/manpages/trusty/man8/udisks-daemon.8.html) states:

"udisks-daemon provides the org.freedesktop.UDisks service on the system
message bus. Users or administrators should never need to start this
daemon as it will be automatically started by dbus-daemon(1) whenever
an application calls into the org.freedesktop.UDisks service."

And with the current package this is clearly not the case.

Revision history for this message
Patrick Ulbrich (pulb) wrote :

Err.. that should actually read "So i still think that it does make sense to file a bug against udisks1 as the current package is obviously broken."

Revision history for this message
rootsandculture (ivantutavac) wrote :

Hi, I'm noob, and wish to use Basenji someway, is there any manual fix right now? I don't understand who and how will be fixed. Thanks

Revision history for this message
Patrick Ulbrich (pulb) wrote :

Hi rootsandculture,

you can try the workaround Amano suggested:
open a terminal and type ' sudo /usr/lib/udisks/udisks-daemon' (without the quaotes).
You have to enter your password to run that command.

Revision history for this message
Guillermo Espertino (Gez) (gespertino-gmail) wrote :

Hi Patrick,

The workaround suggested by Amano doesn't seem to work in Debian.
The daemon seems to hang (or it takes really long to start) and Basenji keeps crashing.

Revision history for this message
rootsandculture (ivantutavac) wrote :

Same here, the workaround doesn't work.

Revision history for this message
Patrick Ulbrich (pulb) wrote :

I added further insights about the udisks daemon to the bugreport of the debian package.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=742303

Revision history for this message
Patrick Ulbrich (pulb) wrote :

@gespertino-gmail: Could you please file a bug against package udisks and add a link to this bugreport? It seems i have to install a package (reportbug) to report new bugs (doh!) which is not available for my distro.

Patrick Ulbrich (pulb)
Changed in basenji:
status: New → Confirmed
importance: Undecided → Critical
Revision history for this message
rootsandculture (ivantutavac) wrote :

Hi all, any news about this bug, I tested recently under xubuntu 14.04.1 and the problem stills same as Ubuntu 14.04.

Revision history for this message
Patrick Ulbrich (pulb) wrote :

Since Debian/Ubuntu devs don't seem to be interested in fixing their broken udisk1 package I have no choice but porting to udisk2. This may take some time as I'm short of time (and motivation).

Revision history for this message
Patrick Ulbrich (pulb) wrote :

Good news everyone. I accidently found the real culprit by trying to compile the source on Ubuntu 14.04. Actually it's not the udisks1 package that is broken but the dbus-sharp2 package that is supposed to start the udisks1 daemon on demand. Basenji does not use dbus-sharp2 by default but the Debian/Ubuntu package is patched to do so. I had a conversation with the responsible packagers. Until this issue gets resolved, you can use the Basenji package from the daily PPA.

Revision history for this message
Amano (amano) wrote :

Hello thanks for the work and update, the daily still crashes when trying to add a volume or going to the preferences. . I've tried reinstalling fresh. the udisk solution i had used actually only worked a few times. I've been running an older version of Ubuntu in Vmware to scan my drives.

 this is the output of the daily

 basenji --debug
[Basenji DBG]: Basenji 1.0.1.0
[Basenji DBG]: Used runtime: /usr/lib/mono/4.5
[VolumeDB DBG]: _SearchVolume() executes query: 'SELECT * FROM Volumes;'

Unhandled Exception:
System.ArgumentException: DkDisk is of an unknown type
  at Platform.Unix.IO.DkDriveInfoProvider.FillDriveInfo (Platform.Common.IO.DriveInfo d, Platform.Unix.IO.DkDisk dev) [0x00000] in <filename unknown>:0
  at Platform.Unix.IO.DkDriveInfoProvider.GetAll (Boolean readyDrivesOnly) [0x00000] in <filename unknown>:0
  at Platform.Gnome.IO.GioDriveInfoProvider.GetAll (Boolean readyDrivesOnly) [0x00000] in <filename unknown>:0
  at Platform.Common.IO.DriveInfo.GetDrives (Boolean readyDrivesOnly) [0x00000] in <filename unknown>:0
  at Basenji.Gui.DriveSelection.<RefreshListAsync>m__0 () [0x00000] in <filename unknown>:0
  at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentException: DkDisk is of an unknown type
  at Platform.Unix.IO.DkDriveInfoProvider.FillDriveInfo (Platform.Common.IO.DriveInfo d, Platform.Unix.IO.DkDisk dev) [0x00000] in <filename unknown>:0
  at Platform.Unix.IO.DkDriveInfoProvider.GetAll (Boolean readyDrivesOnly) [0x00000] in <filename unknown>:0
  at Platform.Gnome.IO.GioDriveInfoProvider.GetAll (Boolean readyDrivesOnly) [0x00000] in <filename unknown>:0
  at Platform.Common.IO.DriveInfo.GetDrives (Boolean readyDrivesOnly) [0x00000] in <filename unknown>:0
  at Basenji.Gui.DriveSelection.<RefreshListAsync>m__0 () [0x00000] in <filename unknown>:0
  at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0

Revision history for this message
Patrick Ulbrich (pulb) wrote : Re: [Bug 1310700] Re: Basenji crashes in ubuntu 14.04

This appears to be a different problem. I only rebuilt daily packages for 14.04 and 14.10. What version are you using?

Revision history for this message
Amano (amano) wrote :

I switched to the daily ppa for 14.04. The version that was listed in synaptic when I added the ppa was 1.0.1+641-0~ubuntu14.04.1

Revision history for this message
Patrick Ulbrich (pulb) wrote :

It seems you have a drive/mountpoint attached to your vm that is unknown to Basenji. Please disconnect all drives/mounts and connect them one by one to find the one responsible for the crash. Oh and please open a new bubreport since this issue is completely unrelated to this report.

Revision history for this message
Guillermo Espertino (Gez) (gespertino-gmail) wrote :

Good to know you found the problem, Patrick.
When you say that you contacted the packagers, you mean Ubuntu's or you also got in touch with Debian's?
If you haven't notified the Debian packager yet, it's probably a good idea to add this information to the existing report:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=742303

Thanks!

Revision history for this message
Patrick Ulbrich (pulb) wrote :
Download full text (3.9 KiB)

I talked to the debian packagers. The problem is dbus#1 is nach longer available in debian and dbus#2 appears to be buggy.

Am 19. Oktober 2014 02:07:56 MESZ, schrieb "Guillermo Espertino (Gez)" <email address hidden>:
>Good to know you found the problem, Patrick.
>When you say that you contacted the packagers, you mean Ubuntu's or you
>also got in touch with Debian's?
>If you haven't notified the Debian packager yet, it's probably a good
>idea to add this information to the existing report:
>https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=742303
>
>Thanks!
>
>--
>You received this bug notification because you are subscribed to the
>bug
>report.
>https://bugs.launchpad.net/bugs/1310700
>
>Title:
> Basenji crashes in ubuntu 14.04
>
>Status in Basenji:
> Confirmed
>
>Bug description:
> in Ubuntu 14.04 Basenji crashes anytime the prefernce tab is selected
> or trying to add a volume
>
> output from basenji --debug this is when prefernces is selected.
>
> basenji --debug
> [Basenji DBG]: Basenji 1.0.1.0
> [Basenji DBG]: Used runtime: /usr/lib/mono/4.5
>[VolumeDB DBG]: _SearchVolume() executes query: 'SELECT * FROM
>Volumes;'
>
> Unhandled Exception:
>System.NullReferenceException: Object reference not set to an instance
>of an object
>at Platform.Unix.IO.DkDriveInfoProvider.GetAll (Boolean
>readyDrivesOnly) [0x00000] in <filename unknown>:0
>at Platform.Gnome.IO.GioDriveInfoProvider.GetAll (Boolean
>readyDrivesOnly) [0x00000] in <filename unknown>:0
>at Platform.Common.IO.DriveInfo.GetDrives (Boolean readyDrivesOnly)
>[0x00000] in <filename unknown>:0
>at Basenji.Gui.Preferences.<Preferences>m__1C () [0x00000] in <filename
>unknown>:0
>at System.Threading.Thread.StartInternal () [0x00000] in <filename
>unknown>:0
>[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException:
>Object reference not set to an instance of an object
>at Platform.Unix.IO.DkDriveInfoProvider.GetAll (Boolean
>readyDrivesOnly) [0x00000] in <filename unknown>:0
>at Platform.Gnome.IO.GioDriveInfoProvider.GetAll (Boolean
>readyDrivesOnly) [0x00000] in <filename unknown>:0
>at Platform.Common.IO.DriveInfo.GetDrives (Boolean readyDrivesOnly)
>[0x00000] in <filename unknown>:0
>at Basenji.Gui.Preferences.<Preferences>m__1C () [0x00000] in <filename
>unknown>:0
>at System.Threading.Thread.StartInternal () [0x00000] in <filename
>unknown>:0
>
> output from basenji --debug this is when add volume is selected.
>
> basenji --debug
> [Basenji DBG]: Basenji 1.0.1.0
> [Basenji DBG]: Used runtime: /usr/lib/mono/4.5
>[VolumeDB DBG]: _SearchVolume() executes query: 'SELECT * FROM
>Volumes;'
>
> Unhandled Exception:
>System.NullReferenceException: Object reference not set to an instance
>of an object
>at Platform.Unix.IO.DkDriveInfoProvider.GetAll (Boolean
>readyDrivesOnly) [0x00000] in <filename unknown>:0
>at Platform.Gnome.IO.GioDriveInfoProvider.GetAll (Boolean
>readyDrivesOnly) [0x00000] in <filename unknown>:0
>at Platform.Common.IO.DriveInfo.GetDrives (Boolean readyDrivesOnly)
>[0x00000] in <filename unknown>:0
>at Basenji.Gui.DriveSelection.<RefreshListAsync>m__0 () [0x00000] in
><filename unknown>:0
>at System.Threading.Thread.StartInte...

Read more...

Revision history for this message
Daniel Antonio (souliaq) wrote :

This problem still present in Ubuntu 15.04

Revision history for this message
rootsandculture (ivantutavac) wrote :

Yep, same here

Revision history for this message
Patrick Ulbrich (pulb) wrote :

The Basenji package in the official Ubuntu repos is patched by debian developers to use dbus-sharp2. Unfortunately dbus-sharp2 appears to be buggy (please see comment #15). I talked to a debian developer some time ago but he does not seem to feel responsible. Reverting the patch is no option for debian devs either since they already removed the dbus-sharp1 package from their repos...

Please use the daily PPA which contains vanilla unpatched packages.
https://code.launchpad.net/~pulb/+archive/ubuntu/basenji-daily/+packages

Revision history for this message
NZ (nuntius1975) wrote :

dbus-sharp1 has been removed not only by Debian but also by ArchLinux and Basenj is no longer in AUR as you can check easily: https://aur.archlinux.org/packages/basenji

in this moment Basenji can be used ONLY in Ubuntu 15.10 & Mint 17.3 or older versions of these distros; no other distro supports it and this is very bad because this tool is very useful!

1.0.1 is 3 years old and no news on 1.1: is Basenj still developed or it's a dead project?
if it's still active, when we will see a new version compatible with dbus-sharp2 and properly working on any modern distro?

I really love Basenji and hope I can use it again in short time.

Revision history for this message
Patrick Ulbrich (pulb) wrote :

Fixed in Basenji 1.0.2.

Changed in basenji:
status: Confirmed → Fix Released
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.