Sound-juicer don't unlock drive on exit : brasero fails to burn

Bug #131475 reported by Francis Viviers
8
Affects Status Importance Assigned to Milestone
Sound Juicer
Fix Released
Medium
brasero (Ubuntu)
Invalid
Medium
Unassigned
sound-juicer (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: sound-juicer

sound-juicer lock drive at startup via hal , but it only unlock it when ejecting the drive,
and so when you exit normally, the drive is still locked.
A consequence is that applications that respect this lock, like brasero, refuse to go ahead.

Step to reproduce :

- Start sound-juicer (even if you don't have a CD on your drive)
- Exit it normaly.
- Insert a blank CD in your drive
- Normaly you should have a dialog that ask you if you want to burn an audio
  CD or a data CD, but here you have nothing : the drive is locked (you can also check that with hal-device-manager).
- Start brasero or burn:/// and try to burn something : it will fail.
  Serpentine will work, but it's only because it don't respect the lock state.

Original report :

Brasero keeps moaning that the cd writer is locked and refuses to write. Other tools like k3b and gnomes build in cd burner works.

Related branches

Revision history for this message
Mario Đanić (mario-danic) wrote : Re: brasero fails to lock cd writer

Thank you for reporting this bug. Could you please tell me the ubuntu version and Brasero version? Thanks.

Changed in brasero:
status: New → Incomplete
Revision history for this message
Francis Viviers (francis-impilinux) wrote :

This version 0.6.0-0ubuntu2 on gutsy

Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

Hi,

I am not able to reproduce this issue with the last gutsy revision (0.6.0-2ubuntu1). Could you try with it as soon as it hits the archive?
Thanks.

Changed in brasero:
importance: Undecided → Medium
Revision history for this message
Francis Viviers (francis-impilinux) wrote :

In the latest version it does not do that but when i write data to disc it immediately sais "successfully written" without writing anything to disc.

Revision history for this message
Francis Viviers (francis-impilinux) wrote :

This works on a dvd tho, but not a rewritable disc.

Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

Hi,

Could you provide a log when it fails?
You can get a log by launching the following command in a terminal:
brasero -g 2>&1 > brasero.log

And please attach here brasero.log.
Thanks.

Revision history for this message
Francis Viviers (francis-impilinux) wrote :

Ok writing dvds works fine.

The rewritable disc is 16x which my writer supports but brasero only wants to write in 10x. Thus is fails. Will provide a log for that in a bit.

Revision history for this message
Francis Viviers (francis-impilinux) wrote :

heres the log

Revision history for this message
pascalh (divers-hild) wrote :

I noticed that Brasero give the message "Unable to burn. The CD writer is locked" after I have used Sound Juicer.

Revision history for this message
Olivier Cortès (olive) wrote :

Hi. Here, analog problem on up-to-date Gutsy. extracting a CD with sound-juicer works fine, and then trying to burn an audio CD from flac files gives message "cd writer locked" from brasero (sound-juicer window is already closed, could this be a dbus/hal problem or a bug in the hardware ?).
How could I gather more information about this bug (dbus/hal commands) ?

Dmesg of the machine attached (this is a NEC notebook "versa M320"). This is my brother's machine and I won't have access to it everytime, but i have a ssh access when it is on. My brother is not comfortable at all with command line, so I will do distant debugging with ssh -X if possible.

Revision history for this message
Olivier Cortès (olive) wrote :

Here is the brasero log :

(brasero:14327): BraseroBurn-DEBUG: At burn-medium.c:1179: Trying to open device /dev/hdc
(brasero:14327): BraseroBurn-DEBUG: At burn-medium.c:1196: Open () succeeded
(brasero:14327): BraseroBurn-DEBUG: At burn-medium.c:752: medium is 516
(brasero:14327): BraseroBurn-DEBUG: At burn-job.c:669: job (BraseroLocalImage) set_source
(brasero:14327): BraseroBurn-DEBUG: At burn-job.c:669: imager (BraseroLocalImage) set_output
(brasero:14327): BraseroBurn-DEBUG: At burn-job.c:669: job (BraseroLocalImage) set_task
(brasero:14327): BraseroBurn-DEBUG: At burn-job.c:669: imager (BraseroLocalImage) get_track
(brasero:14327): BraseroBurn-DEBUG: At burn-job.c:669: job (BraseroLocalImage) set_task
(brasero:14327): BraseroBurn-DEBUG: At burn.c:339: Session starting:
        flags = 8535
        media type = 0
        speed = 2
        track type = 3
        track format = 0
        output = none
(brasero:14327): BraseroBurn-DEBUG: At burn.c:339: Session error : the drive can't be locked (Extraction audio du CD)
gnome-mount 0.6
Device /dev/hdc is in /etc/fstab with mount point "/media/cdrom0"

Florent Mertens (givre)
description: updated
Florent Mertens (givre)
description: updated
Revision history for this message
Florent Mertens (givre) wrote :

Attach is a patch that remove the lock feature from sound-juicer.
At this state of Gutsy, it's might be too intrusive to create a patch that make sure that the drive is unlocked whatever sound-juicer is exited normally or crash. For now, it's better to make sure that the drive is not locked at all by sound-juicer.
Anyway, this is not something that useful. It's quite uncommon to burn a CD while extracting music from it.
And since the default audio CD burner application Serpentine don't respect this lock state, this is not useful at all.

Revision history for this message
Winckler (winckler) wrote :

Same problem here.

I used the sound-juicer, and now I can't burn with brasero, that reports the same log that Olivier Cortès posted.

If someone need any info, let me know.

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

Thank you for your bug. It's likely easy to fix the unlocking issue there is no need to workaround it by disabling the feature

Changed in sound-juicer:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Triaged
Changed in sound-juicer:
status: Unknown → New
Changed in sound-juicer:
status: New → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

The bug has been fixed upstream now

Changed in sound-juicer:
status: Triaged → Fix Committed
Revision history for this message
Sebastien Bacher (seb128) wrote :

sound-juicer (2.20.0-1ubuntu3) gutsy; urgency=low

  * debian/patches/91_from_svn_correctly_lock_drive.patch:
    - patch from SVN, lock the drive only when extracting
      and correctly unlock it (LP: #131475)

 -- Sebastien Bacher <email address hidden> Tue, 09 Oct 2007 12:07:52 +0200

Changed in sound-juicer:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for brasero (Ubuntu) because there has been no activity for 60 days.]

Changed in sound-juicer:
importance: Unknown → Medium
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.