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 564748 - Brasero fails to burn DVDs
Brasero fails to burn DVDs
Status: RESOLVED FIXED
Product: brasero
Classification: Applications
Component: general
0.8.2
Other All
: Normal critical
: 0.8
Assigned To: Brasero maintainer(s)
Brasero maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2008-12-16 15:48 UTC by Emilio López
Modified: 2009-01-17 14:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
One session log of a failed DVD (100.16 KB, text/plain)
2008-12-16 15:49 UTC, Emilio López
  Details
Another brasero session of a failed DVD (98.88 KB, text/plain)
2008-12-16 15:50 UTC, Emilio López
  Details
k3b log on the same burner (13.57 KB, text/plain)
2009-01-05 18:55 UTC, Emilio López
  Details
No DAO Patch - Made by Philippe on IRC (695 bytes, patch)
2009-01-14 20:33 UTC, Emilio López
none Details | Review
Refined patch using gconf (4.51 KB, patch)
2009-01-15 01:25 UTC, Luis Medinas
needs-work Details | Review

Description Emilio López 2008-12-16 15:48:28 UTC
Please describe the problem:
When burning a DVD using Brasero 0.8.2 on Ubuntu Intrepid 8.10, Brasero gives an error just before finishing the burning process. The error says "Unhandled error. Aborting." The DVD seems to work fine though. (Some data at the end of the disk might be missing?)

Steps to reproduce:
1. Insert a blank DVD and start Brasero
2. Select the ISO option in Brasero
3. Select the ISO and start burning


Actual results:
Brasero will burn OK up to 99% and then give the Unhandled Error.

Expected results:
Brasero should burn the DVD fully and OK.

Does this happen every time?
Yes, burned 3 DVDs and it happened in all of them

Other information:
The disks work fine, but as brasero logs state, some data is missing in the disks.

This bug was first reported in Launchpad, see https://bugs.launchpad.net/ubuntu/+source/brasero/+bug/307939 for the brasero logs
Comment 1 Emilio López 2008-12-16 15:49:34 UTC
Created attachment 124800 [details]
One session log of a failed DVD
Comment 2 Emilio López 2008-12-16 15:50:28 UTC
Created attachment 124801 [details]
Another brasero session of a failed DVD
Comment 3 André Klapper 2008-12-30 21:39:16 UTC
BraseroGrowisofs stderr: :-[ WRITE@LBA=200b50h failed with SK=0h/ASC=00h/ACQ=03h]: Input/output error
BraseroGrowisofs stderr: :-( write failed: Input/output error
BraseroGrowisofs called brasero_job_error
BraseroGrowisofs finished with an error
BraseroGrowisofs asked to stop because of an error
	error		= 1
	message	= "Error no manejado, abortando"
BraseroGrowisofs stopping
BraseroGrowisofs got killed
Session error : Error no manejado, abortando (brasero_burn_record burn.c:2524)
Comment 4 Philippe Rouquier 2008-12-31 14:37:34 UTC
Hi thanks for the reports and the logs.
Unfortunately, I've been hitting a wall with this bug. First because I couldn't reproduce it however hard I tried. This isn't the first time it's been filed and it seems that growisofs tends to fail just before ending DVDs with some drives. That's why I chose to enable libburn backend as a first choice since apparently it doesn't seem to have that kind of problems. Unfortunately, libburn is not shipped in many distributions.
Secondly, the author of growisofs is not really responsive (and admits so on his site) which makes it difficult to track the issue properly.
I'll try to email him again...

At least, the error returned by the drive is the same in each case:
SK=0h/ASC=00h/ACQ=03h
If I don't make any mistake this means: "No sense" "Setmark detected" which looks fishy to me. But I don't have the slighest idea of what a "setmark" is.

A probable cause would be the use of DAO which is not really useful for DVD-R anyway and I think I'll remove it.

A few questions:
Can you reliably reproduce the error or does it happen randomly?
Have you ever encountered this error with k3b (shame on me for asking this ;) ) or with any other burning program?
Comment 5 Emilio López 2008-12-31 15:44:29 UTC
Hello Philippe,

I burned 3 dvds, the error happened in the 3 burning processes. So I might say it happens always :p

I just installed K3b, the next time I burn a DVD I'll tell you if it happpens with it.

By the way, I just checked in my package manager and libburn4 doesn't seem to be installed. Would installing it make Brasero automatically use it for burning instead of growisofs?

Thanks for the support!

PS: A quick look at google reveals a lot of people suffering from this problem! http://www.google.com.ar/search?q=SK%3D0h%2FASC%3D00h%2FACQ%3D03h&ie=utf-8&oe=utf-8&aq=t&rls=com.ubuntu:es-AR:unofficial&client=firefox-a&hl=en Maybe we could fill in bugs for the distributions to use libburn meanwhile?
Comment 6 Emilio López 2009-01-05 18:55:34 UTC
Created attachment 125800 [details]
k3b log on the same burner

I burned a DVD using k3b as you requested, and it seemed to finish the burning process correctly, although it said there was an error starting the verifying procedure. I suppouse this is due to the fact that k3b automatically ejected the disc.

I attach the log for you to see, as it seems k3b also uses growisofs.
Comment 7 Philippe Rouquier 2009-01-11 20:01:10 UTC
Thanks for the log. It looks I'd be right to remove DAO since your successful session with k3b was done in Track At Once. I'll think about it.
One question, could you test trunk if I did the change?
Comment 8 Emilio López 2009-01-13 21:58:56 UTC
Sure, I will test if you remove it. Just tell me when it's removed and I'll try it :)
Comment 9 Emilio López 2009-01-14 20:33:54 UTC
Created attachment 126459 [details] [review]
No DAO Patch - Made by Philippe on IRC
Comment 10 Philippe Rouquier 2009-01-14 20:39:45 UTC
The bug is indeed triggered by DAO with some drives (On mine it works). The patch needs to be refined.
Last note: it seems to happen with both DVD- and DVD+.
Comment 11 Luis Medinas 2009-01-15 01:25:56 UTC
Created attachment 126477 [details] [review]
Refined patch using gconf

Ok this is a better refined patch to fix this issue.
It uses gconf key (default to true) to use or not dao mode.

Use gconf-editor to disable (this is your case).

Philippe it's ok to commit ?
Comment 12 Philippe Rouquier 2009-01-16 17:12:09 UTC
Luis, whether DAO should be used at all with growisofs should be declared right from the start, when the plugin declares its capabilities in brasero_growisofs_export_caps (). It can be done that way:

if (use_dao_gconf_key == TRUE) {
	BRASERO_PLUGIN_ADD_STANDARD_DVDR_FLAGS (plugin, BRASERO_BURN_FLAG_NONE);
	BRASERO_PLUGIN_ADD_STANDARD_DVDR_PLUS_FLAGS (plugin, BRASERO_BURN_FLAG_NONE);
}
else {
        /* All above standard flags minus DAO flag support for DVD+R then for DVD-R */
	brasero_plugin_set_flags (plugin_MACRO,					
				  BRASERO_MEDIUM_DVDR_PLUS|			
				  BRASERO_MEDIUM_DUAL_L|			
				  BRASERO_MEDIUM_BLANK,				
				  (BRASERO_BURN_FLAG_BURNPROOF|			
				  BRASERO_BURN_FLAG_OVERBURN|			
				  BRASERO_BURN_FLAG_MULTI|			
				  BRASERO_BURN_FLAG_NOGRACE) &			
				  (~unsupported_MACRO),				
				  BRASERO_BURN_FLAG_NONE);			

	brasero_plugin_set_flags (plugin_MACRO,					
				  BRASERO_MEDIUM_DVDR_PLUS|			
				  BRASERO_MEDIUM_DUAL_L|			
				  BRASERO_MEDIUM_APPENDABLE|			
				  BRASERO_MEDIUM_HAS_DATA,			
				  (BRASERO_BURN_FLAG_MERGE|			
				  BRASERO_BURN_FLAG_APPEND|			
				  BRASERO_BURN_FLAG_BURNPROOF|		
				  BRASERO_BURN_FLAG_OVERBURN|			
				  BRASERO_BURN_FLAG_MULTI|			
				  BRASERO_BURN_FLAG_NOGRACE) &			
				  (~unsupported_MACRO),				
				  BRASERO_BURN_FLAG_APPEND);

	brasero_plugin_set_flags (plugin_MACRO,					
				  BRASERO_MEDIUM_DVDR|				
				  BRASERO_MEDIUM_DUAL_L|			
				  BRASERO_MEDIUM_JUMP|				
				  BRASERO_MEDIUM_BLANK,				
				  (BRASERO_BURN_FLAG_BURNPROOF|			
				  BRASERO_BURN_FLAG_OVERBURN|			
				  BRASERO_BURN_FLAG_MULTI|			
				  BRASERO_BURN_FLAG_DUMMY|			
				  BRASERO_BURN_FLAG_NOGRACE) &			
				  (~unsupported_MACRO),				
				  BRASERO_BURN_FLAG_NONE);			

	brasero_plugin_set_flags (plugin_MACRO,					
				  BRASERO_MEDIUM_DVDR|			
				  BRASERO_MEDIUM_DUAL_L|			
				  BRASERO_MEDIUM_JUMP|				
				  BRASERO_MEDIUM_APPENDABLE|			
				  BRASERO_MEDIUM_HAS_DATA,			
				  (BRASERO_BURN_FLAG_APPEND|			
				  BRASERO_BURN_FLAG_MERGE|			
				  BRASERO_BURN_FLAG_BURNPROOF|			
				  BRASERO_BURN_FLAG_OVERBURN|			
				  BRASERO_BURN_FLAG_MULTI|			
				  BRASERO_BURN_FLAG_DUMMY|			
				  BRASERO_BURN_FLAG_NOGRACE) &			
				  (~unsupported_MACRO),				
				  BRASERO_BURN_FLAG_APPEND);
}

With this when the plugin declares its capabilities, the library register whether or not it supports DAO right from the start and won't ask growisofs to burn a DVD+R or a DVD-R with DAO flag on.

As I said my patch was rough and it was just for testing whether or not DAO was the problem. It wasn't nor the right place nor the right way to do it.

As for the rest it's OK: plugin options, and GConf schema (one spelling mistake)


Comment 13 Philippe Rouquier 2009-01-17 14:02:23 UTC
Since we're in a bit of a hurry for next release, I updated the patch and committed the (modified) work of Luis.
NOTE: the flag to use DAO is on by default, don't forget to turn it off for your drive to work properly Emilio.
Thanks for testing.