GNOME Bugzilla – Bug 557561
Brasero don't recognize empty disk
Last modified: 2009-08-28 16:49:31 UTC
Please describe the problem: I've a problem with 0.8.x version of brasero. The software don't recognize correctly the free space on empty disk. If insert an empty disk brasero read this like a burneable cd but report to 0 bytes the free space on the disk. This empty disk works well with gnome burn application. Steps to reproduce: 1. Insert empty CD 2. Add a file on this 3. Try to burn and recive the error message that the disk havo no free space Actual results: Is impossible burn a new disk! Expected results: That the cd is correctly burned Does this happen every time? Yes Other information: Brasero works well with my empty DVD-R/RW and with CD-RW. My Combo Drive is: Vendor : HL-DT-ST Model : DVDRAM GSA-H42N Revision : RL00 I'm on Arch Linux with 2.6.27 kernel and Gnome 2.24, libburn version 0.5.2.
Thanks for the report. I 'll need a few things. First, could you attach a log please; run "brasero -g > log 2>&1" in a console with the offending medium inserted and then close it. You'll have a file called "log" in the directory. Then could you also tell me how HAL sees it and how it recognizes it. Thanks in advance.
Created attachment 121243 [details] Brasero Log File
Created attachment 121244 [details] hal-device report for my combo drive
Ok, i've attached this files, the first is log file of brasero (command "brasero -g > log 2>&1") and the secondo is hal report log for my drive (command "hal-device"). Exscuse me if the procedure for send this files is not correct but is my first report on bugzilla.
You did great, don't worry. Thanks. I may be mistaken but it seems to me your problem (brasero fails to retrieve the size of your medium leadout) has been fixed with SVN trunk. Could you give it a try please? I can help you build it if you need.
Created attachment 121259 [details] Brasero SVN version log I've tried the svn version now, but i've same problem. When i try to burn the disk brasero report the message "insert an empty disk for continue the burning". He report media like: "Empty Disk, 0 bytes of free space" in selection menu when i click on burn button..
The problem here is in the medium probing, for whatever reason, your drive refuses to return the medium size and fails. The last line about the sense code means the following: "COMMAND SEQUENCE ERROR" which is strange in this context since that error should mostly happen when you're burning (which is not the case here) or when you have a protected DVD-ROM. I added extra debugging in the hope it'll help me to find a workaround to the problem. Could you update your SVN trunk tree and rebuild it and attach a log please? Also, I thought about your problem and was wondering if you had another CD-R brand available for testing (no need to burn anything, just start brasero with the CD-R inserted and close it right away). Finally, could you run the following commands (depends on what you have installed) and attach the results: [wodim/cdrecord] dev=/dev/sr0 -media-info cdrdao disk-info --device /dev/sr0 Thanks in advance.
Created attachment 121375 [details] Log from new svn version I've upgrade and recompiled the new svn version, revision number is 1418. The log file is attached. I've installed cdrdao this is the output of the command: -------- Cdrdao version 1.2.2 - (C) Andreas Mueller <andreas@daneb.de> SCSI interface library - (C) Joerg Schilling Paranoia DAE library - (C) Monty Check http://cdrdao.sourceforge.net/drives.html#dt for current driver tables. Using libscg version 'schily-0.8' /dev/sr0: HL-DT-ST DVDRAM GSA-H42N Rev: RL00 Using driver: Generic SCSI-3/MMC - Version 2.0 (options 0x0000) That data below may not reflect the real status of the inserted medium if a simulation run was performed before. Reload the medium in this case. CD-RW : no Total Capacity : 79:57:70 (359845 blocks, 702/807 MB) CD-R medium : Ritek Co. Short Strategy Type, e.g. Phthalocyanine Recording Speed : n/a CD-R empty : yes -------- The media works well with gnome burning integrated application and with gnome baker also.
Created attachment 122324 [details] Log when inserting a CD-R that shows with a size to 0
Created attachment 122325 [details] Log when inserting a CD-RW that shows with a correct size
@David Cavallini: Thanks for the log. The fact it works with CD-RW is not a surprise as we retrieve the size in a different way. The problem here is that for an unknown reason brasero fails with blank CD-R when asked to retrieve size with GET_TRACK_INFO SCSI command. I worked on it and I may have found a fix and committed it to trunk SVN (which is basically 0.8.3 which has just been released and the fixes). So please everyone build from trunk and report the results. Also, please even if it does work (and it should hopefully), provide a log of brasero starting with the blank CD-R inside (as usual "brasero -g > log 2>&1"). Thanks in advance.
Philippe, would you mind attaching the patch to this bug? A downstream bugreport in ubuntu https://bugs.launchpad.net/ubuntu/+source/brasero/+bug/181703/ might depend on it. Thanks
I'd like to confirm and add to this problem. with me it occurs only with DVDs, not with CDs $cdrdao disk-info --device /dev/sr0 on blank DVDs returns /dev/sr0: HL-DT-ST DVD-RAM GH22NP20 Rev: 1.01 Using driver: Generic SCSI-3/MMC - Version 2.0 (options 0x0000) CD-RW : no Total Capacity : 00:00:00 (-150 blocks, -1/-1 MB) CD-R medium : Doremi Media Co., Ltd. Long Strategy Type, e.g. Cyanine Recording Speed : n/a CD-R empty : yes and on blank CDs CD-RW : no Total Capacity : 79:57:74 (359849 blocks, 702/807 MB) CD-R medium : Plasmon Data systems Ltd. Short Strategy Type, e.g. Phthalocyanine Recording Speed : n/a CD-R empty : yes I have no problems burning to DVD using gnomebaker or nautilus cd-burner, this issue only occurs with DVDs in Brasero
@ Erik Andrén: I attached the fix (r1510:1509). According to your version it may not apply cleanly though. I may be able to improve it. Please test it and report if it works. The best though would be to try SVN trunk as it receives lots of fixes and is the stable branch at the moment. @Pelo1968: I'd give you the same advice. Try SVN trunk and tell me if it works. Now, I'm surprised you talk about DVDs whereas your log with cdrdao shows a CD-R??? All that said, I'm now almost convinced this patch works as on a similar bugs, I've received only good reports so far (and I closed the bug) including David Cavallini. So I think if you use SVN trunk, it will work.
Created attachment 122849 [details] [review] Fix
@Phillipe: I experienced this problem on Ubuntu 8.10 with Brasero 0.8.2 but an upgrade (build from the source) to 0.8.3 fixed my problems. Sorry, I can't offer a log because I read that comment too late, but I will provide one after my next burnt CD. (which might take a while)
I can also confirm this on Ubuntu Intrepid (Brasero 0.8.2). In my case, it prevents me from burning CD-Rs, for which I have to resort to k3b, which works fine with them. The size of DVDs is detected correctly with Brasero. From the comments in the report and this discussion [1] downstream (Ubuntu), it seems to affect several users, so I would suggest changing this bug's status to NEW. [1] https://answers.edge.launchpad.net/ubuntu/+source/brasero/+question/51066
As said above there is a fix in the upcoming 0.8.4 (should already be released and available at this time). The fix is attached to this bug though I think the diff may not apply cleanly to older brasero trees. Please try SVN or brasero 0.8.4.
Created attachment 124682 [details] [review] Patch for release 0.8.2 to correctly detect the size of CD-R This patch is a reworked version of the originally submitted one which can be applied cleanly to the 0.8.2 release. Please test and report back.
Can someone mark this bug as fixed? At the moment other bug tracker (Launchpad) that have linked you report doesn't see that this problem has been fixed. Regards Achim
(In reply to comment #19) > This patch is a reworked version of the originally submitted one which can be > applied cleanly to the 0.8.2 release. > > Please test and report back. > The patch applied to brasero-0.8.2 from the ubuntu sources with no complaints, and after fixing a few dependency issues not caught by apt-get build-dep brasero,* I have managed to compile. Unfortunately, brasero still recognizes my DVD-R media as having 0 minutes free, (much the same as cdrdao). I guess 0.8.4 is next :) * For anybody else interested in doing this, you need libburn-dev and libisofs-dev
brasero 0.8.4 also reports a 0 minute disc
For me brasero 0.8.4 is working. I have tested this with a CD and DVD, brasero detected the size correctly. Regards Achim
OK, then it's not total success but we're on the right track. @Stephen Sugden: Could you please attach a log of brasero starting with the DVD-R media please? (brasero -g > brasero.log 2>&1) Thanks. This patch was intended for CD-R problem not the DVD-R one but I guess it could be also used for the DVD-R.
Created attachment 124764 [details] brasero-0.8.4 startup log #1 starting wtihout media inserted, and then inserting a blank DVD-R
Created attachment 124765 [details] brasero-0.8.4 startup log #2 let me know if you want logs for 0.8.2 as well starting up with blank DVD-R already inserted
Thanks for the log and sorry for the delay, I had a lot on my plate lately. Let's get back to your bug. First I can't reproduce it with all DVD-Rs I tried which doesn't mean there is not a bug, just it's harder to find out where it is. Then I checked and it seems all other media probing programs do the same as brasero (whether hal or k3b). So I was wondering if you encountered the same problems with these other apps. Could you try: - K3b (shame on me) and see if it does happen - gnome-device-manager (which lists all device on your computer): go through the left tree to the volume inserted in your device. Click on it and in the right panel click on the properties tab (if there isn't any such tab you have to activate it in the View menu). Then look up the line "volume.disc.capacity" and see what its value is. I also add a change in media probing that could help and maybe fix but it's not really sure it'll work... So could you attach another log with drive empty and add the blank DVD-R. This may work only if you did not have the problem prior to 0.8.3. After this release, to avoid the problem with a wrong next writable address, brasero sets write parameters to TAO, which is not a supported mode for DVD-Rs. It seemed to work with my two drives and I didn't have any complaints before. The latest change sets the write mode to incremental, tell me if it helps. Thanks in advance.
by the way, if you use 0.9.1 onward, please use: brasero -g --brasero-media-debug > log 2>&1 to get a full log please.
a brasero debug log was attached to bug on the Ubuntu bug tracker here: http://launchpadlibrarian.net/25791470/log
reporters on the downstream bug said that this is no longer an issue with latest release.
Ok Pedro thanks for the update. Closing the bug