Bug 258074 - CD Ripping always misses first track
Summary: CD Ripping always misses first track
Status: RESOLVED DUPLICATE of bug 319678
Alias: None
Product: k3b
Classification: Applications
Component: general (show other bugs)
Version: 2.0.1
Platform: Debian unstable Linux
: NOR normal
Target Milestone: ---
Assignee: Michał Małek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-27 15:41 UTC by Nicos Gollan
Modified: 2014-09-29 22:39 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicos Gollan 2010-11-27 15:41:34 UTC
Version:           2.0.1 (using KDE 4.5.1) 
OS:                Linux

When ripping an audio CD, k3b 2.0.1 always misses the first track. It does show up in the filename list of the ripping dialog and it is listed in the playlist, but no audio file is generated.

Reproducible: Always

Steps to Reproduce:
(1) Insert audio CD
(2) Tools -> Rip audio CD
 At this point, all tracks are checked.
(3) click "Start ripping"

Actual Results:  
The first track is never ripped

Expected Results:  
An audio file of the first track
Comment 1 Nicola Mori 2011-01-01 17:02:58 UTC
I can partially confirm this. The audio file for the first track is created but there's nothing in it (size ~ 980 bytes). Additionally, if only the first track is selected for ripping then the ripping is successful.
Comment 2 Michał Małek 2011-01-07 14:53:51 UTC
Hi, thanks for the report. Unfortunately I can't reproduce this error so I will need a bit help from you.
Please click on the medium and choose "Media Info" from the context menu. Copy the information and paste it here.
Comment 3 Nicola Mori 2011-01-07 15:34:53 UTC
I tried again to rip (with filetypes "MPEG1 Layer ||| (mp3)" and "Ogg-Vorbis") and I got the same behavior: 918 bytes for mp3 and 29 for ogg. Here's the media info:

Medium

Type:	CD-ROM
Capacity:	75:36:35 min (664.5 MiB)
Used Capacity:	75:36:35 min (664.5 MiB)
Remaining:	00:00:00 min (0 B)
Rewritable:	no
Appendable:	no
Empty:	no
Sessions:	2
ISO9660 Filesystem Info

System Id:	-
Volume Id:	THE_SHOWDOWN
Volume Set Id:	-
Publisher Id:	-
Preparer Id:	-
Application Id:	NERO BURNING ROM
Volume Size:	102.4 MiB (2,048 B * 52,411 blocks = 107,337,728 B)
Tracks

Type	Attributes	First-Last Sector	Length
Session 1
1	(Audio)	copy/no preemp	0 - 26697	26698 (05:55:73)
ALLEN / LANDE - THE SHOWDOWN (CD-Text)
2	(Audio)	copy/no preemp	26698 - 53236	26539 (05:53:64)
ALLEN / LANDE - JUDGEMENT DAY (CD-Text)
3	(Audio)	copy/no preemp	53237 - 75610	22374 (04:58:24)
ALLEN / LANDE - NEVER AGAIN (CD-Text)
4	(Audio)	copy/no preemp	75611 - 93704	18094 (04:01:19)
ALLEN / LANDE - TURN ALL INTO GOLD (CD-Text)
5	(Audio)	copy/no preemp	93705 - 116710	23006 (05:06:56)
ALLEN / LANDE - BLOODLINES (CD-Text)
6	(Audio)	copy/no preemp	116711 - 139424	22714 (05:02:64)
ALLEN / LANDE - COPERNICUS (CD-Text)
7	(Audio)	copy/no preemp	139425 - 165893	26469 (05:52:69)
ALLEN / LANDE - WE WILL RISE AGAIN (CD-Text)
8	(Audio)	copy/no preemp	165894 - 186899	21006 (04:40:06)
ALLEN / LANDE - THE GUARDIAN (CD-Text)
9	(Audio)	copy/no preemp	186900 - 206759	19860 (04:24:60)
ALLEN / LANDE - MAYA (CD-Text)
10	(Audio)	copy/no preemp	206760 - 230013	23254 (05:10:04)
ALLEN / LANDE - THE ARTIST (CD-Text)
11	(Audio)	copy/no preemp	230014 - 255138	25125 (05:35:00)
ALLEN / LANDE - ETERNITY (CD-Text)
12	(Audio)	copy/no preemp	255139 - 276423	21285 (04:43:60)
ALLEN / LANDE - ALIAS (bonus euro) (CD-Text)
Session 2
13	(Data/Mode2 XA Form1)	no copy/uninterrupted	287824 - 340234	52411 (11:38:61)
- Data Track (CD-Text)

I can try also with other disks if it can be helpful.
Comment 4 Nicos Gollan 2011-01-24 20:19:34 UTC
Trying to rip to Wavpack with custom settings. It worked fine for two disks, but failed for this one (didn't even create a file for the first track, but listed it in the ripping progress window):

============================================================
Medium

Type:	CD-ROM
Capacity:	43:26:45 min (381.8 MiB)
Used Capacity:	43:26:45 min (381.8 MiB)
Remaining:	00:00:00 min (0 B)
Rewritable:	no
Appendable:	no
Empty:	no
Sessions:	1
Tracks

Type	Attributes	First-Last Sector	Length
1	(Audio)	no copy/no preemp	0 - 18554	18555 (04:07:30)
Belinda Carlisle - Heaven Is A Place On Earth
2	(Audio)	no copy/no preemp	18555 - 38524	19970 (04:26:20)
Belinda Carlisle - Circle In The Sand
3	(Audio)	no copy/no preemp	38525 - 60231	21707 (04:49:32)
Belinda Carlisle - I Feel Free
4	(Audio)	no copy/no preemp	60232 - 79506	19275 (04:17:00)
Belinda Carlisle - Should I Let You In?
5	(Audio)	no copy/no preemp	79507 - 100774	21268 (04:43:43)
Belinda Carlisle - World Without You
6	(Audio)	no copy/no preemp	100775 - 122699	21925 (04:52:25)
Belinda Carlisle - I Get Weak
7	(Audio)	no copy/no preemp	122700 - 139631	16932 (03:45:57)
Belinda Carlisle - We Can Change
8	(Audio)	no copy/no preemp	139632 - 157326	17695 (03:55:70)
Belinda Carlisle - Fool For Love
9	(Audio)	no copy/no preemp	157327 - 171841	14515 (03:13:40)
Belinda Carlisle - Nobody Owns Me
10	(Audio)	no copy/no preemp	171842 - 195494	23653 (05:15:28)
Belinda Carlisle - Love Never Dies
============================================================

Worked for that:

============================================================
Medium

Type:	CD-ROM
Capacity:	45:01:32 min (395.7 MiB)
Used Capacity:	45:01:32 min (395.7 MiB)
Remaining:	00:00:00 min (0 B)
Rewritable:	no
Appendable:	no
Empty:	no
Sessions:	1
Tracks

Type	Attributes	First-Last Sector	Length
1	(Audio)	no copy/no preemp	32 - 2364	2333 (00:31:08)
Sparks - Gratuitous sax
2	(Audio)	no copy/no preemp	2365 - 23156	20792 (04:37:17)
Sparks - When do I get to sing "My Way"
3	(Audio)	no copy/no preemp	23157 - 46656	23500 (05:13:25)
Sparks - (When I kiss you) I hear Charlie Parker playing
4	(Audio)	no copy/no preemp	46657 - 69419	22763 (05:03:38)
Sparks - Frankly, Scarlett, I don't give a damn
5	(Audio)	no copy/no preemp	69420 - 88924	19505 (04:20:05)
Sparks - I thought I told you to wait in the car
6	(Audio)	no copy/no preemp	88925 - 114201	25277 (05:37:02)
Sparks - Hear no evil, see no evil, speak no evil
7	(Audio)	no copy/no preemp	114202 - 136596	22395 (04:58:45)
Sparks - Now that I own the BBC
8	(Audio)	no copy/no preemp	136597 - 156959	20363 (04:31:38)
Sparks - Tsui Hark (featuring Tsui Hark & Bill Kong)
9	(Audio)	no copy/no preemp	156960 - 176144	19185 (04:15:60)
Sparks - The ghost of Liberace
10	(Audio)	no copy/no preemp	176145 - 198861	22717 (05:02:67)
Sparks - Let's go surfing
11	(Audio)	no copy/no preemp	198862 - 202606	3745 (00:49:70)
Sparks - Senseless violins
============================================================

It did work for another disk starting at sector 0.
Comment 5 Nicos Gollan 2011-01-24 20:28:09 UTC
Small addition: the track is completely skipped, it's immediately listed as properly ripped once the track before it is done.
Comment 6 Nicos Gollan 2011-04-06 20:45:34 UTC
The issue does not seem to come up when unchecking all tracks and re-checking them through the context menu. Together with the weird sorting (are you handling track numbers as strings‽) that makes me think the model for the list view is broken in more than one way, leading to the ripper component failing on bad data.
Comment 7 Nicos Gollan 2011-09-03 16:10:51 UTC
OK, seriously. How hard can it be to iterate over the list of songs that is shown in the album view? I *really* don't think that this is a problem with specific CDs (after all, it's very much possible to rip the missed tracks!), but plain and simple a SNAFU in that iteration.
Comment 8 edfardos 2012-09-29 05:04:35 UTC
K3b
Version 2.0.2
Using KDE Development Platform 4.8.4 (4.8.4)

This bug is still present.  The first track is ~1.5K,  has lame/mp3 headers in it, but doesn't play.  All other tracks rip appropriately.  Problem is seen with ~90% of CD's tried.  One in ten actually rip the first track.   If you rip the first track by itself it works fine, the bug only happens when you select all tracks (the default) and rip.

I see this bug has been around for years.  If nobody can fix it, can anyone recommend a reliable CD ripping program?  Grip maybe?
Comment 9 edfardos 2012-09-29 05:05:25 UTC
*** This bug has been confirmed by popular vote. ***
Comment 10 Nicola Mori 2012-09-29 12:35:50 UTC
K3B seems prettty unmaintained. According to www.k3b.org, the latest release is dated 15 January 2011, version 2.0.2; no feature or bugfix releases since then. Since a burning suite is a must-have tool in a modern desktop (at least for a large number of users, I think), I wonder which is the official KDE position about this. Would KDE state that the KDE Desktop lacks a proper burning tool? Would KDE recommend some other solution (same question asked by edfardos)? Is someone effectively taking care of opened bugs (maybe at a slow pace, that wouldn't mind) or can I avoid to waste my time filing bugs that no one will ever fix? Thanks
Comment 11 edfardos 2012-10-02 19:41:10 UTC
enabled debugging for k3b, an error is reported when it tries to rip the first physical track (which happens to be the last track it tries since it's last in the alphabet):



k3b(24214) K3b::Process::start:
k3b(24214) K3b::Process::start: started
k3b(24214) K3b::CdparanoiaLib::read: (K3b::CdparanoiaLib) need to seek before read. Looks as if we are reusing the paranoia instance.
k3b(24214) K3b::JobProgressDialog::slotNewSubTask: "Ripping track 10 (The Band Perry - Quittin' You)"
k3b(24214) K3b::CdparanoiaLib::read: (K3b::CdparanoiaLib) finished ripping. read  15035  sectors.
current sector:  159280
k3b(24214) K3b::CdparanoiaLib::initReading: (K3b::CdparanoiaLib) initReading(  109791 ,  127909  )
K3bQProcess::QProcess(0x0)
k3b(24214) K3bSoxEncoder::initEncoderInternal: ***** sox parameters:
k3b(24214) K3bSoxEncoder::initEncoderInternal: "/usr/bin/sox -t raw -r 44100 -s -2 -c 2 - -t raw /home/craiger/mp3/mp3-new/test/The Band Perry - Walk Me Down the Middle.raw"
k3b(24214) K3b::Process::start:
k3b(24214) K3b::Process::start: started
k3b(24214) K3b::CdparanoiaLib::read: (K3b::CdparanoiaLib) need to seek before read. Looks as if we are reusing the paranoia instance.
k3b(24214) K3b::JobProgressDialog::slotNewSubTask: "Ripping track 8 (The Band Perry - Walk Me Down the Middle)"
k3b(24214) K3b::CdparanoiaLib::read: (K3b::CdparanoiaLib) finished ripping. read  18119  sectors.
current sector:  127910
k3b(24214) K3b::CdparanoiaLib::initReading: (K3b::CdparanoiaLib) initReading(  0 ,  16202  )
K3bQProcess::QProcess(0x0)
k3b(24214) K3bSoxEncoder::initEncoderInternal: ***** sox parameters:
k3b(24214) K3bSoxEncoder::initEncoderInternal: "/usr/bin/sox -t raw -r 44100 -s -2 -c 2 - -t raw /home/craiger/mp3/mp3-new/test/The Band Perry - You Lie.raw"
k3b(24214) K3b::Process::start:
k3b(24214) K3b::Process::start: started
k3b(24214) K3b::CdparanoiaLib::read: (K3b::CdparanoiaLib) need to seek before read. Looks as if we are reusing the paranoia instance.
k3b(24214) K3b::JobProgressDialog::slotNewSubTask: "Ripping track 1 (The Band Perry - You Lie)"
k3b(24214) K3b::MediaCache::unblockDevice: "/dev/sr0"
k3b(24214) K3b::JobProgressDialog::slotFinished: received finished signal!
k3b(24214) K3b::Device::ScsiCommand::debugError: (K3b::Device::ScsiCommand) failed:
command:     "READ TOC/PMA/ATIP (43)"
errorcode:   "70"
sense key:   "ILLEGAL REQUEST (5)"
asc:         "30"
ascq:        "2"
k3b(24214) K3b::Device::Device::readTocPmaAtip: (K3b::Device::Device)  "/dev/sr0" : READ TOC/PMA/ATIP length det failed.
k3b(24214) K3b::Device::Device::readTocPmaAtip: (K3b::Device::Device)  "/dev/sr0" : READ TOC/PMA/ATIP invalid length returned:  4
k3b(24214) K3b::Device::ScsiCommand::debugError: (K3b::Device::ScsiCommand) failed:
command:     "READ TOC/PMA/ATIP (43)"
errorcode:   "70"
sense key:   "ILLEGAL REQUEST (5)"
asc:         "30"
ascq:        "2"
k3b(24214) K3b::Device::Device::readTocPmaAtip: (K3b::Device::Device)  "/dev/sr0" : READ TOC/PMA/ATIP format  4  with real length  65536  failed.
k3b(24214) K3b::Device::ScsiCommand::debugError: (K3b::Device::ScsiCommand) failed:
command:     "READ TOC/PMA/ATIP (43)"
errorcode:   "70"
sense key:   "ILLEGAL REQUEST (5)"
asc:         "30"
ascq:        "2"
k3b(24214) K3b::Device::Device::readTocPmaAtip: (K3b::Device::Device)  "/dev/sr0" : READ TOC/PMA/ATIP length det failed.
k3b(24214) K3b::Device::Device::readTocPmaAtip: (K3b::Device::Device)  "/dev/sr0" : READ TOC/PMA/ATIP invalid length returned:  4
k3b(24214) K3b::Device::ScsiCommand::debugError: (K3b::Device::ScsiCommand) failed:
command:     "READ TOC/PMA/ATIP (43)"
errorcode:   "70"
sense key:   "ILLEGAL REQUEST (5)"
asc:         "30"
ascq:        "2"
k3b(24214) K3b::Device::Device::readTocPmaAtip: (K3b::Device::Device)  "/dev/sr0" : READ TOC/PMA/ATIP format  4  with real length  65536  failed.
k3b(24214) K3b::Device::Device::diskInfo: (K3b::Device::Device) READ CAPACITY:  "39:49:30"  other capacity:  "00:00:00"
k3b(24214) K3b::Device::Device::diskInfo: (K3b::Device::Device) READ CAPACITY:  "39:49:30"  other capacity:  "00:00:00"
k3b(24214) K3b::Medium::update: found medium: ( "/dev/sr0" )
=====================================================
k3b(24214) K3b::Device::DiskInfo::debug: DiskInfo:
Mediatype:        "CD-ROM"
Current Profile:  "CD-ROM"
Disk state:       complete
Empty:            false
Rewritable:       false
Appendable:       false
Sessions:         1
Tracks:           11
Layers:           1
Capacity:         "39:49:31"  (LBA  179206 ) ( 367013888  Bytes)
Remaining size:   "00:00:00"  (LBA  0 ) ( 0  Bytes)
Used Size:        "39:49:31"  (LBA  179206 ) ( 367013888  Bytes)
k3b(24214) K3b::Medium::update: =====================================================
k3b(24214) K3b::Device::ScsiCommand::debugError: (K3b::Device::ScsiCommand) failed:
command:     "READ TOC/PMA/ATIP (43)"
errorcode:   "70"
sense key:   "ILLEGAL REQUEST (5)"
asc:         "30"
ascq:        "2"
k3b(24214) K3b::Device::Device::readTocPmaAtip: (K3b::Device::Device)  "/dev/sr0" : READ TOC/PMA/ATIP length det failed.
k3b(24214) K3b::Device::Device::readTocPmaAtip: (K3b::Device::Device)  "/dev/sr0" : READ TOC/PMA/ATIP invalid length returned:  4
k3b(24214) K3b::Device::ScsiCommand::debugError: (K3b::Device::ScsiCommand) failed:
command:     "READ TOC/PMA/ATIP (43)"
errorcode:   "70"
sense key:   "ILLEGAL REQUEST (5)"
asc:         "30"
ascq:        "2"
k3b(24214) K3b::Device::Device::readTocPmaAtip: (K3b::Device::Device)  "/dev/sr0" : READ TOC/PMA/ATIP format  4  with real length  65536  failed.
k3b(24214) K3b::Device::Device::readRawToc: Session |  ADR   | CONTROL|  TNO   | POINT  |  Min   |  Sec   | Frame  |  Zero  |  PMIN  |  PSEC  | PFRAME |
k3b(24214) K3b::Device::Device::readRawToc: "      1 |      1 |      0 |      0 |     a0 |      0 |      0 |      0 |      0 |      1 |      0 |      0 |"
k3b(24214) K3b::Device::Device::readRawToc: "      1 |      1 |      0 |      0 |     a1 |      0 |      0 |      0 |      0 |     11 |      0 |      0 |"
k3b(24214) K3b::Device::Device::readRawToc: "      1 |      1 |      0 |      0 |     a2 |      0 |      0 |      0 |      0 |     39 |     51 |     31 |"
k3b(24214) K3b::Device::Device::readRawToc: "      1 |      1 |      0 |      0 |      1 |      0 |      0 |      0 |      0 |      0 |      2 |      0 |"
k3b(24214) K3b::Device::Device::readRawToc: "      1 |      1 |      0 |      0 |      2 |      0 |      0 |      0 |      0 |      3 |     38 |      3 |"
k3b(24214) K3b::Device::Device::readRawToc: "      1 |      1 |      0 |      0 |      3 |      0 |      0 |      0 |      0 |      6 |     38 |     44 |"
k3b(24214) K3b::Device::Device::readRawToc: "      1 |      1 |      0 |      0 |      4 |      0 |      0 |      0 |      0 |     10 |     22 |     50 |"
k3b(24214) K3b::Device::Device::readRawToc: "      1 |      1 |      0 |      0 |      5 |      0 |      0 |      0 |      0 |     14 |     15 |      4 |"
k3b(24214) K3b::Device::Device::readRawToc: "      1 |      1 |      0 |      0 |      6 |      0 |      0 |      0 |      0 |     17 |     11 |     12 |"
k3b(24214) K3b::Device::Device::readRawToc: "      1 |      1 |      0 |      0 |      7 |      0 |      0 |      0 |      0 |     20 |     49 |     44 |"
k3b(24214) K3b::Device::Device::readRawToc: "      1 |      1 |      0 |      0 |      8 |      0 |      0 |      0 |      0 |     24 |     25 |     66 |"
k3b(24214) K3b::Device::Device::readRawToc: "      1 |      1 |      0 |      0 |      9 |      0 |      0 |      0 |      0 |     28 |     27 |     35 |"
k3b(24214) K3b::Device::Device::readRawToc: "      1 |      1 |      0 |      0 |      a |      0 |      0 |      0 |      0 |     32 |      5 |     20 |"
k3b(24214) K3b::Device::Device::readRawToc: "      1 |      1 |      0 |      0 |      b |      0 |      0 |      0 |      0 |     35 |     25 |     55 |"
k3b(24214) K3b::Device::Device::rawTocDataWithBcdValues: (K3b::Device::Device) found invalid bcd values. No bcd toc.
k3b(24214) K3b::Device::Device::readRawToc: "/dev/sr0" : setting last sector of last track to  179205
k3b(24214)/kio (KDirListerCache) KDirListerCache::slotFileDirty: "/home/craiger/.pulse"
k3b(24214)/kio (KDirListerCache) KDirListerCache::updateDirectory: KUrl("file:///home/craiger/.pulse")
k3b(24214)/kdeui (KNotification) KNotificationManager::notificationClosed: 1570
k3b(24214) K3b::Device::Device::readTocPmaAtip: (K3b::Device::Device)  "/dev/sr0" : READ TOC/PMA/ATIP invalid length returned:  4
k3b(24214) K3b::Device::CdText::setRawPackData: (K3b::Device::CdText) zero-sized CD-TEXT:  0
k3b(24214) K3b::CDDB::CDDBJob::start:
k3b(24214)/libkcddb KCDDB::Cache::lookup: Looking up  "8c09550b"  in CDDB cache
k3b(24214)/libkcddb KCDDB::CDInfo::load: Loaded CDInfo for  "8c09550b"
k3b(24214) KCDDB::MusicBrainzLookup::cacheFiles: Cache files found:  0
k3b(24214)/libkcddb KCDDB::Client::lookup: Found  1  hit(s)
k3b(24214)/libkcddb KCDDB::Cache::store: Storing  "8c09550b"  in CDDB cache
k3b(24214) K3b::MediaContentsView::slotMediumChanged:   new supported medium found
k3b(24214) K3b::ViewColumnAdjuster::adjustColumns: 0 1
k3b(24214) K3b::ViewColumnAdjuster::adjustColumns: 1 2
k3b(24214) K3b::ViewColumnAdjuster::adjustColumns: 0 1
k3b(24214) K3b::ViewColumnAdjuster::adjustColumns: 1 2
k3b(24214) K3b::TitleLabel::updatePositioning: 24 24
k3b(24214)/kio (Slave) KIO::Slave::kill: killing slave pid 24263 ( "file://" )
k3b(24214)/kio (Slave) KIO::Slave::kill: killing slave pid 24264 ( "file://" )
k3b(24214)/kio (Slave) KIO::Slave::kill: killing slave pid 24261 ( "file://" )
k3b(24214)/kio (Slave) KIO::Slave::kill: killing slave pid 24260 ( "trash://" )
Comment 12 Albert Astals Cid 2014-09-29 22:39:34 UTC

*** This bug has been marked as a duplicate of bug 319678 ***