Banshee: Segmentation fault when iPhone is connected to the PC

Bug #871389 reported by Heiner Valverde
68
This bug affects 14 people
Affects Status Importance Assigned to Milestone
Banshee
New
Medium
banshee (Ubuntu)
Triaged
Undecided
Unassigned

Bug Description

When Banshee launches or it's already running, the application will crash if an iPhone is connected (well that's my case), here's the dropout of my terminal:

heiner@heiner-desktop:~$ banshee
[Info 11:42:25.609] Running Banshee 2.2.0: [Ubuntu oneiric (development branch) (linux-gnu, x86_64) @ 2011-09-23 04:47:58 UTC]
[Info 11:42:26.883] Updating web proxy from GConf
[Info 11:42:27.093] All services are started 1.180969
[Info 11:42:28.486] nereid Client Started
[Info 11:42:28.589] GStreamer version 0.10.35.0, gapless: True, replaygain: False
Device 0 (VID=05ac and PID=1297) is a Apple 0x1297.
LIBMTP WARNING: no MTP vendor extension on device 5 on bus 1LIBMTP WARNING: VendorExtensionID: 00000000LIBMTP WARNING: VendorExtensionDesc: Device has no vendor extensionsLIBMTP WARNING: this typically means the device is PTP (i.e. a camera) but not an MTP device at all. Trying to continue anyway.LIBMTP PANIC: could not inspect object property descriptions!
LIBMTP PANIC: could not inspect object property descriptions!
LIBMTP PANIC: could not inspect object property descriptions!
Stacktrace:

Segmentation fault

Revision history for this message
Chow Loong Jin (hyperair) wrote : Re: [Bug 871389] [NEW] Banshee: Segmentation fault when iPhone is connected to the PC

On 10/10/2011 01:44, Heiner Valverde wrote:
> Public bug reported:
>
> When Banshee launches or it's already running, the application will
> crash if an iPhone is connected (well that's my case), here's the
> dropout of my terminal:

Could you post the full output, please?

  status incomplete

--
Kind regards,
Loong Jin

Changed in banshee (Ubuntu):
status: New → Incomplete
Revision history for this message
Heiner Valverde (dylian17-deactivatedaccount) wrote :

Sure, I think you are looking for this:

heiner@heiner-desktop:~$ banshee
[Info 13:35:58.996] Running Banshee 2.2.0: [Ubuntu oneiric (development branch) (linux-gnu, x86_64) @ 2011-09-23 04:47:58 UTC]
[Info 13:36:00.263] Updating web proxy from GConf
[Info 13:36:00.470] All services are started 1.152501
[Info 13:36:01.919] nereid Client Started
[Info 13:36:02.038] GStreamer version 0.10.35.0, gapless: True, replaygain: False
Device 0 (VID=05ac and PID=1297) is a Apple 0x1297.
[Info 13:36:07.203] Timed out trying to unmount {0} - Documents on Heiner's iPhone
LIBMTP WARNING: no MTP vendor extension on device 5 on bus 1LIBMTP WARNING: VendorExtensionID: 00000000LIBMTP WARNING: VendorExtensionDesc: Device has no vendor extensionsLIBMTP WARNING: this typically means the device is PTP (i.e. a camera) but not an MTP device at all. Trying to continue anyway.LIBMTP PANIC: could not inspect object property descriptions!
LIBMTP PANIC: could not inspect object property descriptions!
LIBMTP PANIC: could not inspect object property descriptions!
Stacktrace:

Native stacktrace:

 banshee() [0x4911ea]
 banshee() [0x4e064f]
 banshee() [0x41b187]
 /lib/x86_64-linux-gnu/libpthread.so.0(+0x10060) [0x7fa7904dd060]
 /lib/x86_64-linux-gnu/libc.so.6(+0x82721) [0x7fa7901b0721]
 banshee(mono_string_new+0x1c) [0x56178c]
 [0x4104bf7a]

Debug info from gdb:

Could not attach to process. If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
No threads.

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Aborted

------

I am using Ubuntu 11.10 RC, just upgraded today from Natty

Revision history for this message
Chow Loong Jin (hyperair) wrote : Re: [Bug 871389] Re: Banshee: Segmentation fault when iPhone is connected to the PC

On 10/10/2011 03:39, Heiner Valverde wrote:
> Sure, I think you are looking for this:

Hmm, that wasn't as helpful as I had hoped. Could you install the banshee-dbg
package, run sudo sysctl kernel/yama/ptrace_scope=0, and try again with "banshee
--debug" this time, please?

--
Kind regards,
Loong Jin

Revision history for this message
Heiner Valverde (dylian17-deactivatedaccount) wrote :

Sorry, I didn't those steps, I got this:

- The "Banshee no iPhone" document shows an unhandled error, at this point Banshee was unable to launch after running sudo sysctl kernel/yama/ptrace_scope=0, however I can't reproduce it because now Banshee launches fine without the iPhone connected to the PC.

- The "Banshee iPhone" contains all the data you are looking for, I guess.

Thank you

Revision history for this message
Heiner Valverde (dylian17-deactivatedaccount) wrote :
Changed in banshee (Ubuntu):
status: Incomplete → Triaged
Changed in banshee:
importance: Unknown → Medium
status: Unknown → New
Revision history for this message
Micheal Winger (mike-winger87) wrote :

Figured the more exposure and debug output people can get, likely the faster it'll get fixed.

https://gist.github.com/1367159

There's my debug output. Also this is a big problem for me, I use my iPhone to tether my internet.. so my iPhone is ALWAYS plugged in while I'm using my computer. Essentially this makes me unable to listen to music with Banshee until this is fixed.. unfortunately I'll have to use another player until then.

Revision history for this message
Micheal Winger (mike-winger87) wrote :

I discovered recently that if Banshee is opened *before* my iPhone is connected, it works and continues to work once the iPhone is plugged in (even though the iPhone shows up in Banshee at that point as well). Based on this, I believe it to be isolated to the start up checks and initialization.

Hopefully this helps point someone in the right direction.

Revision history for this message
Marcello Miccoli (marcello-miccoli) wrote :

What's the status on this bug? It also affect my iPhone (even though now it has an iPad baseband, so technically maybe it's an iPad). Unlike Micheal before, Banshee crashes even if it's working before iPhone is connected. Let me know if I can help by providing some documentation

Revision history for this message
Marcello Miccoli (marcello-miccoli) wrote :
Download full text (6.7 KiB)

The output when Banshee is started after iPhone has been already connected is the same as Heiner's in bug description. However when Banshee is started, and then iPhone connected, the output is this.

miccoli@netbook-N230:~$ banshee
[Info 21:49:49.340] Running Banshee 2.2.1: [Ubuntu 11.10 (linux-gnu, i686) @ 2011-12-19 14:51:26 UTC]
[Info 21:49:53.158] Updating web proxy from GConf
[Info 21:49:53.649] All services are started 3.480067
[Info 21:49:55.662] AmazonMP3 store redirect URL: https://one.ubuntu.com/music/store/amz/
[Info 21:49:58.068] nereid Client Started
[Info 21:49:58.647] GStreamer version 0.10.35.0, gapless: True, replaygain: True
[Info 21:49:58.837] AppleDeviceSource is ignoring unmounted volume SYSTEM
[Info 21:49:59.056] AppleDeviceSource is ignoring unmounted volume 50 GB Filesystem
libitdbprep: itdb_iphone_start_sync called with uuid=7e64625d12b526ec37ce9d5a8c02ef99802f9bc7
itdb_iphone_start_sync: posted syncWillStart
itdb_iphone_start_sync: posted syncLockRequest
Locking for sync, attempt 0...
Locking for sync, attempt 1...
itdb_iphone_start_sync: posted syncDidStart
libitdbprep: itdb_iphone_stop_sync called
itdb_iphone_stop_sync: posted syncDidFinish
[Warn 21:50:32.478] Caught an exception - GLib.GException: Can't write iPod database because of missing HashInfo file (in `libgpod-sharp')
  at GPod.ITDB.InitIpod (System.String mountpoint, System.String model_number, System.String ipod_name) [0x00000] in <filename unknown>:0
  at Banshee.Dap.AppleDevice.AppleDeviceSource.DeviceInitialize (IDevice device) [0x00000] in <filename unknown>:0
  at Banshee.Dap.DapService.FindDeviceSource (IDevice device) [0x00000] in <filename unknown>:0
Device 0 (VID=05ac and PID=1294) is a Apple iPhone 3GS.
[Info 21:50:37.630] Timed out trying to unmount {0} - Marcello Miccoli’s iPhone
LIBMTP WARNING: no MTP vendor extension on device 7 on bus 1LIBMTP WARNING: VendorExtensionID: 00000000LIBMTP WARNING: VendorExtensionDesc: Device has no vendor extensionsLIBMTP WARNING: this typically means the device is PTP (i.e. a camera) but not an MTP device at all. Trying to continue anyway.LIBMTP PANIC: could not inspect object property descriptions!
LIBMTP PANIC: could not inspect object property descriptions!
LIBMTP PANIC: could not inspect object property descriptions!
[Warn 21:50:40.387] Unable to get battery level from MTP device - Mtp.LibMtpException: Could not retrieve battery stats (in `Mtp')
  at Mtp.MtpDevice.GetBatteryLevel (Mtp.MtpDeviceHandle handle, System.UInt16& maxLevel, System.UInt16& currentLevel) [0x00000] in <filename unknown>:0
  at Mtp.MtpDevice.get_BatteryLevel () [0x00000] in <filename unknown>:0
  at Banshee.Dap.Mtp.MtpSource.DeviceInitialize (IDevice device) [0x00000] in <filename unknown>:0
[Warn 21:50:40.500] Caught an exception - System.NullReferenceException: Object reference not set to an instance of an object (in `Banshee.Dap')
  at Banshee.Dap.Gui.DapInfoBar.UpdateUsage () [0x00000] in <filename unknown>:0
  at Banshee.Dap.Gui.DapInfoBar.<OnSourceUpdated>m__4 () [0x00000] in <filename unknown>:0
[Warn 21:50:40.500] Caught an exception - System.NullReferenceException: Obje...

Read more...

Revision history for this message
Marcello Miccoli (marcello-miccoli) wrote :

ok, now somehow wierdly, if I start banshee from the terminal it does not crash with the iPhone already connected (not so if banshee is started from launcher). However Banshee does not recognize it as "my iphone" (it should come out as Marcello Miccoli's iphone), and no music can be copied onto the device. here is the output, in case it helps:

miccoli@netbook-N230:~$ banshee
[Info 21:59:50.387] Running Banshee 2.2.1: [Ubuntu 11.10 (linux-gnu, i686) @ 2011-12-19 14:51:26 UTC]
[Info 21:59:54.256] Updating web proxy from GConf
[Info 21:59:54.686] All services are started 3.43646
[Info 21:59:56.625] AmazonMP3 store redirect URL: https://one.ubuntu.com/music/store/amz/
[Info 21:59:58.910] nereid Client Started
[Info 21:59:59.379] GStreamer version 0.10.35.0, gapless: True, replaygain: True
[Info 21:59:59.569] AppleDeviceSource is ignoring unmounted volume Marcello Miccoli’s iPhone
Device 0 (VID=05ac and PID=1294) is a Apple iPhone 3GS.
LIBMTP WARNING: no MTP vendor extension on device 7 on bus 1LIBMTP WARNING: VendorExtensionID: 00000000LIBMTP WARNING: VendorExtensionDesc: Device has no vendor extensionsLIBMTP WARNING: this typically means the device is PTP (i.e. a camera) but not an MTP device at all. Trying to continue anyway.LIBMTP PANIC: could not inspect object property descriptions!
LIBMTP PANIC: could not inspect object property descriptions!
LIBMTP PANIC: could not inspect object property descriptions!
[Warn 22:00:01.536] Unable to get battery level from MTP device - Mtp.LibMtpException: Could not retrieve battery stats (in `Mtp')
  at Mtp.MtpDevice.GetBatteryLevel (Mtp.MtpDeviceHandle handle, System.UInt16& maxLevel, System.UInt16& currentLevel) [0x00000] in <filename unknown>:0
  at Mtp.MtpDevice.get_BatteryLevel () [0x00000] in <filename unknown>:0
  at Banshee.Dap.Mtp.MtpSource.DeviceInitialize (IDevice device) [0x00000] in <filename unknown>:0
[Info 22:00:01.543] AppleDeviceSource is ignoring unmounted volume SYSTEM
[Info 22:00:01.580] AppleDeviceSource is ignoring unmounted volume 50 GB Filesystem
[Warn 22:00:01.786] Caught an exception - System.NullReferenceException: Object reference not set to an instance of an object (in `Mtp')
  at (wrapper unknown) Mtp.TrackStruct:PtrToStructure (intptr,object)
  at (wrapper managed-to-native) System.Runtime.InteropServices.Marshal:PtrToStructure (intptr,System.Type)
  at Mtp.MtpDevice.GetAllTracks (Mtp.ProgressFunction callback) [0x00000] in <filename unknown>:0
  at Banshee.Dap.Mtp.MtpSource.LoadFromDevice () [0x00000] in <filename unknown>:0

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

Hi Marcello,

This bug is tracked in the GNOME bug tracker (see gnome-bugs link above). Please
forward the information you have submitted over there instead.

--
Kind regards,
Loong Jin

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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