Banshee hangs up/crashes when pluggin in MTP-USB-Player

Bug #267922 reported by John Doe
52
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Banshee
Fix Released
High
banshee (Ubuntu)
Fix Released
Undecided
Unassigned
Intrepid
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: banshee

Banshee crashes in the presence of an MTP digital audio player. Crash happens whether the MTP device is plugged in before or after Banshee is started.

When starting via Terminal, I get a long output with the following message at the end:

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.

The complete Output can be found in the attached textfile.

Test Case: Start Banshee, then plug in an MTP device. If it crashes, the bug is present. Otherwise, it is not.

Revision history for this message
John Doe (jodo-deactivatedaccount) wrote :
Revision history for this message
pdaemon (philipp-burath) wrote :

Hi,

I also have same error when plugging in my Creative Zen MTP device via USB, except that it doesn't "hang" but rather crash.

I am running Intepid Ibex Alpha 6:
Linux coppermine 2.6.27-4-generic #1 SMP Wed Sep 24 01:30:51 UTC 2008 i686 GNU/Linux

The banshee version is:
Banshee 1.2.1 (1.2.1) http://banshee-project.org

Please fix, so I can upload music to my Creative Zen.

What other information do you need, that I can help with?

Thanks Alot
Regards
pdaemon

Revision history for this message
Sergio Domingo-Hernando (sdomingo78) wrote :

I have the same problem that pdaemon:

 · Banshee 1.2.1 on Intrepid Release Candidate crashes when connecting my Creative Zen V Plus.

 · Banshee 1.3.3 (build from SVN) doesn't crash, but displays a message saying that there is problem with MTP support ("Error Initializing MTP Device Support - There was an error intializing MTP device support. See http://www.banshee-project.org/Guide/DAPs/MTP for more information.")

See attached the output from both versions.

(I am not sure, but I think that banshee mtp support is build against libmtp7, and Intrepid comes with libmtp8).

Best regards!
Sergio,

Changed in banshee:
status: New → Confirmed
Revision history for this message
Sergio Domingo-Hernando (sdomingo78) wrote :

I have managed to make work Banshee 1.3.3 SVN with MTP support (disclaimer: my knowledge of the development tools for Linux and Mono is close to zero):

I was my fault, I was building banshee with the makefiles previously generated for hardy. I didn't have all the packages needed to build the last Banshee on Intrepid, since "sudo apt-get build-dep banshee" doesn't install all the packages needed for the last version (you have to manually install automake1.9 and libtool).

Conclusion: I can confirm that the default installation of Banshee crashes in Intrepid when connecting a Creative Zen V+, but ignore what I said about Banshee 1.3.3, libmtp7 and libmtp8 in the last message.

Best regards!
Sergio,

Revision history for this message
Chow Loong Jin (hyperair) wrote : Re: [Bug 267922] Re: Banshee hangs up when pluggin in MTP-USB-Player

On Sun, 2008-10-26 at 10:11 +0000, Sergio Domingo wrote:
> I have the same problem that pdaemon:
>
> · Banshee 1.2.1 on Intrepid Release Candidate crashes when connecting
> my Creative Zen V Plus.
>
> · Banshee 1.3.3 (build from SVN) doesn't crash, but displays a message
> saying that there is problem with MTP support ("Error Initializing MTP
> Device Support - There was an error intializing MTP device support. See
> http://www.banshee-project.org/Guide/DAPs/MTP for more information.")
>
> See attached the output from both versions.
>
> (I am not sure, but I think that banshee mtp support is build against
> libmtp7, and Intrepid comes with libmtp8).
>
> Best regards!
> Sergio,
>
> ** Attachment added: "banshee-1.2.1-1.3.3.output.tar.gz"
> http://launchpadlibrarian.net/18916207/banshee-1.2.1-1.3.3.output.tar.gz
>
Please clarify something: Are you using the official Intrepid build of
Banshee from the universe repository or not? If you aren't, your
feedback does not count here, and you should be filing a bug at
http://bugzilla.gnome.org instead.
--
Chow Loong Jin

Revision history for this message
Sergio Domingo-Hernando (sdomingo78) wrote :

Yes, I'm using the official Banshee build from Intrepid repositories. This is the one that crashes when connecting the MTP player (Creative Zen V+).

Also, I have built the last version from SVN (it can be run without interfering with the official one).

Sorry for the confusion.
Sergio,

Revision history for this message
Chow Loong Jin (hyperair) wrote : Re: [Bug 267922] Re: Banshee hangs up/crashes when pluggin in MTP-USB-Player

On Sun, 2008-10-26 at 15:42 +0000, Sergio Domingo wrote:
> Yes, I'm using the official Banshee build from Intrepid repositories. This is the one that crashes when connecting the MTP player (Creative Zen V+).
>
> Also, I have built the last version from SVN (it can be run without
> interfering with the official one).
>
> Sorry for the confusion.
> Sergio,
>
Okay, so let me get this straight. Banshee (1.2.1-3ubuntu1) crashes when
connecting MTP player, but Banshee (1.3.3) doesn't? Also, if you need a
1.3.3 build, it's here:
http://launchpad.net/~banshee-unstable-team/+archive

--
Chow Loong Jin

Revision history for this message
Sergio Domingo-Hernando (sdomingo78) wrote :

That's it:

· Banshee (1.2.1-3ubuntu1) crashes when connecting MTP player.
· Banshee (1.3.3-0ubuntu1~intrepid1) doesn't.

Sergio,

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

On Sun, 2008-10-26 at 16:42 +0000, Sergio Domingo wrote:
> That's it:
>
> · Banshee (1.2.1-3ubuntu1) crashes when connecting MTP player.
> · Banshee (1.3.3-0ubuntu1~intrepid1) doesn't.
>
> Sergio,
>
You're right, it's related to libmtp8. I'll try to isolate a patch to
fix this.
--
Chow Loong Jin

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

Okay, here's a debdiff. Grab the package from my PPA
(http://launchpad.net/~hyperair/+archive) later when it's done building.
--
Chow Loong Jin

Revision history for this message
Andrew Conkling (andrewski) wrote :

On Sun, Oct 26, 2008 at 4:02 PM, hyperair <email address hidden> wrote:

> Okay, here's a debdiff. Grab the package from my PPA
> (http://launchpad.net/~hyperair/+archive<http://launchpad.net/%7Ehyperair/+archive>)
> later when it's done building.

Should this patch end go upstream or only in Ubuntu?

Revision history for this message
Sergio Domingo-Hernando (sdomingo78) wrote :

The new package, Banshee (1.2.1-3ubuntu2), still crashes when connecting the MTP player (Creative Zen V+). See attached the output.

Revision history for this message
Sergio Domingo-Hernando (sdomingo78) wrote :

See also attached the output of mtp-detect.

Sergio,

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

On Mon, 2008-10-27 at 07:37 +0000, Sergio Domingo wrote:
> See also attached the output of mtp-detect.
>
> Sergio,
>
> ** Attachment added: "mtp-detect.txt"
> http://launchpadlibrarian.net/18937933/mtp-detect.txt
>
Okay, I think I missed out something in Makefile.in. Attached is an
updated debdiff. Please test the new package in my PPA. If this doesn't
work, I'm stumped.
--
Chow Loong Jin

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

Okay, so that last one didn't work either. Here's another updated patch
(I realized I needed to modify configure as well). The version in my PPA
that corresponds to this patch would be 1.2.1-3ubuntu2+hyper2. Please
test.
--
Chow Loong Jin

Revision history for this message
Sergio Domingo-Hernando (sdomingo78) wrote :

The last one (banshee_1.2.1-3ubuntu2+hyper2) works, great work!

Thanks,
Sergio

Revision history for this message
Kuba Paszkowski (kuba-paszkowski) wrote :

Hey, i've had the same issue with my Creative ZEN (just ZEN) and with Banshee 1.2.1 from Ubuntu 8.10 (Intrepid Ibex) repository but you've made great work hyperair and version banshee_1.2.1-3ubuntu2+hyper2 works like a charm!

Maybe they should include it in official ubuntu repo, or updates? Many people may have this issue with MTP devices and official banshee from ubuntu repo?

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

Updated debdiff. Altered target to intrepid-proposed, and set version to
1.2.1-3ubuntu1.1.

--
Chow Loong Jin

description: updated
Revision history for this message
Pete Boyd (petes-accounts) wrote :

I can also confirm that banshee_1.2.1-3ubuntu2+hyper2_i386.deb fixed the same problem for me with a Creative Microphoto 8GB.

Many thanks for the fix, this will make the people whose computer I've just put Ubuntu on happy.

Pete Boyd

Revision history for this message
John Dong (jdong) wrote :

ACK from motu-sru for banshee_1.2.1-3ubuntu1.1.debdiff ; please sponsor this into intrepid-proposed.

Changed in banshee:
status: New → Confirmed
Revision history for this message
Martin Pitt (pitti) wrote :

Accepted into intrepid-proposed, please test and give feedback here. Please see https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in banshee:
status: Confirmed → Fix Committed
Revision history for this message
James Westby (james-w) wrote :

Hi,

Is this fixed in Jaunty? Is there a patch to sponsor for jaunty?

Thanks,

James

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

On Wed, 2008-11-19 at 17:29 +0000, James Westby wrote:
> Hi,
>
> Is this fixed in Jaunty? Is there a patch to sponsor for jaunty?
>
> Thanks,
>
> James
>
Jaunty should sync Banshee 1.4.x from Debian. The bug was fixed upstream
in 1.3.x.
--
Chow Loong Jin

Revision history for this message
psypher (psypher246) wrote :

Hi Martin,

confirmed fix on my side. installed the update from proposed and now banshee does not crash.

but I don't know if I'm being stupid but I cannot seem to find the "sync library" function?

i can transfer songs and videos but that cool feature is gone

Revision history for this message
James Westby (james-w) wrote :

Hi,

The fixed banshee has now been synced from Debian.

Thanks,

James

Changed in banshee:
status: Confirmed → Fix Released
Revision history for this message
Brian Parma (bj0) wrote :

I just ran into this bug. I am using 8.1, and I have intrepid-proposed repo enabled, and I followed the instructions in the link provided. It shows the version I have is: Version: 1.2.1-3ubuntu1.1

It crashes when I plug in a Sansa Fuze with updated firmware.

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

On Fri, 2008-12-05 at 06:49 +0000, B wrote:
> I just ran into this bug. I am using 8.1, and I have intrepid-proposed
> repo enabled, and I followed the instructions in the link provided. It
> shows the version I have is: Version: 1.2.1-3ubuntu1.1
>
>
> It crashes when I plug in a Sansa Fuze with updated firmware.
>
That's strange. Could you post the output of the crash from the
terminal? Command is "banshee --debug"
--
Chow Loong Jin

Revision history for this message
Brian Parma (bj0) wrote :

Ok, I've attached the console output. It doesn't seem very helpful though, as the only thing that comes up when I plug in the device is "PTP: Opening session".

I did notice this strange, but repeatable behavior. Running "banshee --debug" with the device already plugged in got to the same "PTP: Opening session" and froze, like normal. If I Ctrl-C, and then repeat "banshee --debug", it doesn't freeze, actually recognizes the player and shows music on it. The debug output consequently shows one extra line: " Found DAP support (Banshee.Dap.Mtp.MtpSource) for device Sansa Fuze 4GB". I didn't try to do anything else with the device except eject it, and closing and re-launching banshee produced the same behavior (crash once, then function).

B

Revision history for this message
psypher (psypher246) wrote :

So any answer on what happened to the sync library with player function?

Changed in banshee:
status: Unknown → Incomplete
Revision history for this message
callMeTom (almighty-spork) wrote :

I am having this same problem with both an Insignia Sport player and a Sansa View. Earlier today I downloaded the latest version of Banshee from intrepid-proposed which claims to have fixed this issue, it has not. I have replicated exactly what 'B' wrote, if I kill banshee and then re-launch it works. My --debug output from when it crashes has been attached.

Also, I tried transferring music to my player once I got banshee working, it added a bunch of songs, then started erroring about a corrupt file system, but that's a problem for another day unless you find it relevant, then I'll post those errors too.

-Tom

Revision history for this message
Martin Pitt (pitti) wrote :

callMeTom, B, are the crashes you observe regressions from intrepid final, or did they happen with the final version as well?

Revision history for this message
callMeTom (almighty-spork) wrote :

The crashes have happened with every version of Banshee on intrepid
since the second alpha through the current version in intrepid
proposed. I did a complete format and install when I installed the
official release of intrepid since samba (well actually winbind) was
doing very strange things. Hope that helps.

-Tom

Changed in banshee:
status: Incomplete → Fix Released
Revision history for this message
Brian Parma (bj0) wrote :

I just used the PPA on the banshee site to update to 1.4.2. I started it up, plugged in my sansa fuze and it froze. This bug is marked as fixed, is the fix in the SVN version?

Revision history for this message
Brownout (brownout) wrote :

I'm using the version from the PPA for about a month now, since I had freezing issues with the one from official Intrepid repo, working flawlessly with a Creative Zen V Plus.

Revision history for this message
Andrew Conkling (andrewski) wrote :

B: Yes, should hopefully be in 1.4.3.

Revision history for this message
user2037 (user2037) wrote :

Using the PPA recommended by Banshee project (1.4.3) doesn't work with the Sansa Fuze. Running with "--debug" doesn't show any response once the Fuze is plugged in or disconnected. Mtp-detect finds the player. And Rhythmbox partially works (fails to sync large transfers, consumes CPU).

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

On Mon, 2009-04-13 at 21:50 +0000, user2037 wrote:
>
> Using the PPA recommended by Banshee project (1.4.3) doesn't work with
> the Sansa Fuze. Running with "--debug" doesn't show any response once
> the Fuze is plugged in or disconnected. Mtp-detect finds the player.
> And
> Rhythmbox partially works (fails to sync large transfers, consumes
> CPU).
>
Hi,
Thanks for the bug report.

Could you make sure the MTP plugin is enabled? If that still doesn't
work, please file a new bug with the information above, and include your
--debug log anyway.
--
Regards,
Chow Loong Jin

Revision history for this message
Martin Pitt (pitti) wrote :

To summarize current feedback about the -proposed package: comment 24 says that it does not crash any more, but that the "sync library" feature is gone. The other reported crashes are not a regression in the -proposed update.

So as far as I can see, this introduces a regression ("sync library") and thus should be removed from -proposed, the patch fixed, and reuploaded?

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

On Thu, 2009-04-16 at 09:30 +0000, Martin Pitt wrote:
> To summarize current feedback about the -proposed package: comment 24
> says that it does not crash any more, but that the "sync library"
> feature is gone. The other reported crashes are not a regression in the
> -proposed update.
>
> So as far as I can see, this introduces a regression ("sync library")
> and thus should be removed from -proposed, the patch fixed, and
> reuploaded?
I think it's more of something like this:
Before: Banshee completely doesn't work with the MTP device (crash)
After: Banshee works with it, but doesn't have sync support.

Hence, no regressions.

The whole bug is because Banshee was incompatible with libmtp8, which
broke binary compatibility from libmtp7, and hence segfaulted when
Banshee tried to use the interface from libmtp7 with Intrepid's libmtp8.
The patch adds a compile-time check for either libmtp7 or libmtp8, and
uses the appropriate interface.
--
Regards,
Chow Loong Jin

Revision history for this message
Martin Pitt (pitti) wrote :

OK, thanks. Thus this update should be fine.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package banshee - 1.2.1-3ubuntu1.1

---------------
banshee (1.2.1-3ubuntu1.1) intrepid-proposed; urgency=low

  * debian/patches/06_mtp8-crash.patch:
    + Fix crash when plugging in MTP device (LP: #267922)

 -- Chow Loong Jin <email address hidden> Wed, 05 Nov 2008 01:41:56 +0800

Changed in banshee (Ubuntu Intrepid):
status: Fix Committed → Fix Released
Changed in banshee:
importance: Unknown → High
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.