After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 557561 - Brasero don't recognize empty disk
Brasero don't recognize empty disk
Status: RESOLVED OBSOLETE
Product: brasero
Classification: Applications
Component: general
0.8.2
Other All
: Normal major
: 0.8
Assigned To: Brasero maintainer(s)
Brasero maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2008-10-23 07:47 UTC by fatespineer81
Modified: 2009-08-28 16:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Brasero Log File (52.10 KB, text/plain)
2008-10-24 06:12 UTC, fatespineer81
  Details
hal-device report for my combo drive (3.09 KB, text/plain)
2008-10-24 06:12 UTC, fatespineer81
  Details
Brasero SVN version log (54.29 KB, text/plain)
2008-10-24 11:03 UTC, fatespineer81
  Details
Log from new svn version (58.64 KB, text/plain)
2008-10-26 10:37 UTC, fatespineer81
  Details
Log when inserting a CD-R that shows with a size to 0 (1.19 KB, text/plain)
2008-11-10 13:10 UTC, David Cavallini
  Details
Log when inserting a CD-RW that shows with a correct size (1.36 KB, text/plain)
2008-11-10 13:11 UTC, David Cavallini
  Details
Fix (4.05 KB, patch)
2008-11-17 15:23 UTC, Philippe Rouquier
committed Details | Review
Patch for release 0.8.2 to correctly detect the size of CD-R (3.74 KB, patch)
2008-12-14 21:58 UTC, David Planella
committed Details | Review
brasero-0.8.4 startup log #1 (50.45 KB, text/plain)
2008-12-15 23:59 UTC, Stephen Sugden
  Details
brasero-0.8.4 startup log #2 let me know if you want logs for 0.8.2 as well (50.06 KB, text/plain)
2008-12-15 23:59 UTC, Stephen Sugden
  Details

Description fatespineer81 2008-10-23 07:47:45 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.
Comment 1 Philippe Rouquier 2008-10-23 18:44:01 UTC
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.
Comment 2 fatespineer81 2008-10-24 06:12:00 UTC
Created attachment 121243 [details]
Brasero Log File
Comment 3 fatespineer81 2008-10-24 06:12:50 UTC
Created attachment 121244 [details]
hal-device report for my combo drive
Comment 4 fatespineer81 2008-10-24 06:16:05 UTC
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.
Comment 5 Philippe Rouquier 2008-10-24 07:13:03 UTC
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.
Comment 6 fatespineer81 2008-10-24 11:03:14 UTC
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..
Comment 7 Philippe Rouquier 2008-10-24 17:57:15 UTC
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.
Comment 8 fatespineer81 2008-10-26 10:37:06 UTC
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.
Comment 9 David Cavallini 2008-11-10 13:10:53 UTC
Created attachment 122324 [details]
Log when inserting a CD-R that shows with a size to 0
Comment 10 David Cavallini 2008-11-10 13:11:32 UTC
Created attachment 122325 [details]
Log when inserting a CD-RW that shows with a correct size
Comment 11 Philippe Rouquier 2008-11-10 15:01:53 UTC
@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.
Comment 12 Erik Andrén 2008-11-11 20:14:50 UTC
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
Comment 13 Pelo1968 2008-11-16 18:38:09 UTC
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
Comment 14 Philippe Rouquier 2008-11-17 15:22:00 UTC
@ 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.
Comment 15 Philippe Rouquier 2008-11-17 15:23:07 UTC
Created attachment 122849 [details] [review]
Fix
Comment 16 Matthäus Brandl 2008-11-24 17:01:14 UTC
@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)
Comment 17 David Planella 2008-12-14 15:20:45 UTC
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
Comment 18 Philippe Rouquier 2008-12-14 19:44:52 UTC
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.
Comment 19 David Planella 2008-12-14 21:58:14 UTC
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.
Comment 20 Achim Frase 2008-12-14 22:11:11 UTC
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
Comment 21 Stephen Sugden 2008-12-15 02:37:00 UTC
(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

Comment 22 Stephen Sugden 2008-12-15 02:50:43 UTC
brasero 0.8.4 also reports a 0 minute disc
Comment 23 Achim Frase 2008-12-15 11:36:58 UTC
For me brasero 0.8.4 is working.

I have tested this with a CD and DVD, brasero detected the size correctly.

Regards
Achim
Comment 24 Philippe Rouquier 2008-12-15 16:40:01 UTC
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.
Comment 25 Stephen Sugden 2008-12-15 23:59:08 UTC
Created attachment 124764 [details]
brasero-0.8.4 startup log #1

 starting wtihout media inserted, and then inserting a blank DVD-R
Comment 26 Stephen Sugden 2008-12-15 23:59:58 UTC
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
Comment 27 Philippe Rouquier 2009-01-28 17:16:11 UTC
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.
Comment 28 Philippe Rouquier 2009-01-28 17:31:12 UTC
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.
Comment 29 Pedro Villavicencio 2009-05-14 15:20:55 UTC
a brasero debug log was attached to bug on the Ubuntu bug tracker here: http://launchpadlibrarian.net/25791470/log
Comment 30 Pedro Villavicencio 2009-08-28 16:29:12 UTC
reporters on the downstream bug said that this is no longer an issue with latest release.
Comment 31 Luis Medinas 2009-08-28 16:49:31 UTC
Ok Pedro thanks for the update. Closing the bug