Bug 25150

Summary: K3b say "Invalid argument" when power calibration fail (?)
Product: Mageia Reporter: Morgan Leijström <fri>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Normal CC: ftg, lewyssmith
Version: 6   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: growisofs, k3b CVE:
Status comment:
Attachments: Brasero fills up power calibration area and stops.

Description Morgan Leijström 2019-07-19 03:00:56 CEST
Description of problem:

K3b started burning mga7 live iso, but before it actually got to burning, growisofs had an illegal argument, see below.

I have not burned any disc in a year or so, so i cant tell when this started.
This mga6 system is fully updated including the testing repos.


_______________K3b error output dialogue:


Burned media
-----------------------
Dvd+r

Devices
-----------------------
ATAPI iHAS124   B AL0R (/dev/sr0, Cd-r, Cd-rw, Cd-rom, Dvd-rom, Dvd-r, Dvd-rw, Dvd-r DL, Dvd+r, Dvd+rw, Dvd+r DL) [Dvd-rom, Dvd-r sekvensiell, Dvd-r med två lager sekvensiell, Dvd-r med två lager och hoppmöjlighet, Dvd-ram, Dvd-rw begränsad överskrivning, Dvd-rw sekvensiell, Dvd+rw, Dvd+r, Dvd+r med två lager, Cd-rom, Cd-r, Cd-rw] [SAO, TAO, RAW, SAO/R96P, SAO/R96R, RAW/R16, RAW/R96P, RAW/R96R, Begränsad överskrivning, Lagerhopp] [%7]

System
-----------------------
K3b Version: 17.12.2
KDE Version: 5.42.0
Qt Version:  5.9.4
Kernel:      4.14.131-desktop-1.mga6

Used versions
-----------------------
growisofs: 7.1

growisofs
-----------------------
Executing 'builtin_dd if=/dev/fd/0 of=/dev/sr0 obs=32k seek=0'
/dev/sr0: "Current Write Speed" is 16.4x1352KBps.
          0/2356486144 ( 0.0%) @0x, remaining ??:?? RBU 100.0% UBU   0.0%
=== last message repeated 18 times. ===
:-[ WRITE@LBA=0h failed with SK=5h/ASC=21h/ACQ=04h]: Invalid argument
:-( write failed: Invalid argument

growisofs command:
-----------------------
/bin/growisofs -Z /dev/sr0=/dev/fd/0 -use-the-force-luke=notray -use-the-force-luke=tty -use-the-force-luke=4gms -use-the-force-luke=tracksize:1150628 -use-the-force-luke=dao:1150628 -dvd-compat -speed=16 -use-the-force-luke=bufsize:32m
Comment 1 Morgan Leijström 2019-07-19 03:15:10 CEST
Created attachment 11199 [details]
Brasero fills up power calibration area and stops.

Strange.
Now i tried Brasero instead.  Different error:  It fills up power calibration area on the disc and stops.  Attaching its log.  Wasted two DVD+R on this.
Comment 2 Frank Griffin 2019-07-19 03:23:37 CEST
I've seen this occasionally.  It usually has to do with either defective media or with a failing laser in your burner.  

If you're using blank media from a spindle pack, try selecting one from several disks down in the stack.  If the error persists, try swapping out the burner for a new one (currently about USD24).

Alternatively, you can try xfburn rather than k3b.  I have also seen scenarios in the past (I usually run cauldron, so your error may be present in MGA6), where xfburn works and k3b gets this error.  The only downside is that xfburn doesn't have a VERIFY function, so you have to use "cmp -l /dev/sr0 xxxx.iso" to manually verify.
Comment 3 Morgan Leijström 2019-07-19 03:36:39 CEST
Well If so this ends up issuing bugs for misleading error messages instead...  "Invalid argument" ??

Will try to open the drive and remove dust, and trying other media; CD and DVD+R (i was wrong above, it was DVD-R i burned)
Comment 4 Frank Griffin 2019-07-19 04:05:41 CEST
If it helps, failing lasers tend to produce this error far more frequently with double-sided (DL) disks than single-sided.  I doubt that +-R is significant (I've always used +R).  I also suspect that burning CDs will work fine.

CC: (none) => ftg

Comment 5 Lewis Smith 2019-07-19 21:51:30 CEST
@Morgan
Tell me:
- what ISO you are trying to burn (you say just 'live')
- confirm that it is a *DVD* you are trying to burn (a CD would be too small)
- under what desktop
I have all desktops & the main CD/DVD burners, so may be able to try to reproduce your faults.
I always used DVD-RW to be able to re-use them.
------
@Frank
> use "cmp -l /dev/sr0 xxxx.iso" to manually verify
This is a marvelous ruse; can you really cite the optical device as one of the filenames to compare? I once documented how to read back an ISO DVD to disc in order to checksum it, but cmp would be much easier.

CC: (none) => lewyssmith

Comment 6 Morgan Leijström 2019-07-19 23:10:33 CEST
7.1 Live xfce x86_64. And it works perfectly to put and use on USB.

Yes a DVD+R disc, TDK brand, 16x, 4,7GB, blue colour, round, flat... and now i actually see the ones left in the package also say "RW" in a styled manner i did not bother do decode last time i read... (now digging up the ones i tossed... thanks for asking! ;) )  I will try to blow dust out of the burner, and get other type disc.  And maybe also set it to low speed manually.

Running Plasma. I also have gnome, xfce, cinnemon installed for curiosity but not used for long...

Mageia 6 fully updated (incl testing repos...) running on my old workstation, with Intel i7.

The burner spun for something between ten seconds and half a minute before the programs told (different) error.  Neither program ever begun counting percentage.

Currently i believe the burner is aged and something goes wrong during speed/power calibration, but especially K3b fail to forward that message properly to the user, and *that* should be the bug.

Summary: K3b + growisofs = Invalid argument => K3b say "Invalid argument" when power calibration fail (?)

Comment 7 Frank Griffin 2019-07-19 23:36:28 CEST
(In reply to Lewis Smith from comment #5)
> ------
> @Frank
> > use "cmp -l /dev/sr0 xxxx.iso" to manually verify
> This is a marvelous ruse; can you really cite the optical device as one of
> the filenames to compare? I once documented how to read back an ISO DVD to
> disc in order to checksum it, but cmp would be much easier.

Yes, everything in Unix is a file.  It's not perfect; you may get a message that one or the other hit EOF before its partner, but that can be ignored.  As long as you don't get comparison errors or I/O errors, you're good.
Comment 8 Lewis Smith 2019-07-21 09:48:18 CEST
@Frank : thanks for this useful tip.

@Morgan : Thank you for the information you gave. I will re-run your case, although a ropey DVD drive is almost certainly the root of your woes.
BTW It is never recommended to write DVDs at maximum speed, but 4x. My own experience of k3b 'automatic' write speed is that is what it chooses.
> K3b fail to forward that message properly to the user, and *that* should be
> the bug.
And for Brasero and Xfburn? I have my doubts, because in spite of all the error messages, misleading or not, the final
> :-( write failed: Invalid argument
"write failed" is clear enough to make any user question his hardware if errors are repeated.
Comment 9 Morgan Leijström 2019-07-21 11:14:13 CEST
"Write failed" user already see ;) and want to know why.
"Invalid argument" is then definitely misleading.

(if we in this bug have guessed the cause correctly)
Comment 10 Lewis Smith 2019-07-22 21:42:48 CEST
Morgan
I have just tried under M6/Plasma k3b, Brasero & Xfburn with a DVD-RW on the M7 Live 64-bit Xfce ISO, all with no problems.
We must beg to differ about this.
> "Write failed" user already see ;) and want to know why.
> "Invalid argument" is then definitely misleading.
Presumably k3b is seeing & reporting this from the flakey DVD drive. It, and the other burner programs, may see & report something different.
There is no dispute that your drive is faulty; it is not then fair to raise bugs that the various burner programs report strange errors.
So please excuse the closure. You can re-open it, but I doubt that that would go anywhere.

Status: NEW => RESOLVED
Resolution: (none) => INVALID

Comment 11 Morgan Leijström 2019-07-22 23:10:40 CEST
Thank you for the investigation!
Even when I complain about the error message presented by the program, it is not Mageias fault anyway :)