Bug 236466 - k3b hangs after ripping audio CD to MP3 using Lame
Summary: k3b hangs after ripping audio CD to MP3 using Lame
Status: RESOLVED FIXED
Alias: None
Product: k3b
Classification: Applications
Component: general (show other bugs)
Version: 1.91.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Michał Małek
URL:
Keywords:
: 238267 241691 243118 245111 248433 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-05-05 20:22 UTC by Hannes Schniepp
Modified: 2010-11-13 08:58 UTC (History)
11 users (show)

See Also:
Latest Commit:
Version Fixed In: 2.0.1


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hannes Schniepp 2010-05-05 20:22:58 UTC
Version:           1.91.0 (using KDE 4.4.2)
OS:                Linux
Installed from:    Ubuntu Packages

Every time I rip and audio CD to MP3, k3b hangs after completing the ripping process. The mp3's are complete, but k3b is unresponsive and shows a high processor load for a long time (minutes) after completing the last MP3 file. I have to kill the process every time after ripping. 
No problem with ripping to OGG. 
Nothing related in dmesg, syslog, or X.org log. When I run k3b from a console, there is no output at the point of the crash (it's not really a crash, the process just hangs at high load).
Lame version is 3.98.2.
When I try to use FLAC or musepack as codecs, k3b never even starts to encode. The CD spins up, but there is no progress on encoding and the k3b process also hangs at a high load. However, I usually do not use the latter codecs, so I am not sure my machine is properly configured for them.
Comment 1 Michał Małek 2010-05-09 21:58:11 UTC
This is probably related to bug 231174. Please right-click on the audio disc in the left pane and choose "Media Info" from the context menu. Past the info here, especially "Tracks" section.
Comment 2 Gil Gibbons 2010-05-18 15:52:57 UTC
I have the same trouble with lame and flac, Ripping to ogg works fine.
I ripped 26 audio cd to flac and 2 completed properly. All the tracks all ripped
but k3b hangs and doesn't show that the last track is completed.
I'm using Kubuntu 10.04 with Kde 4.4.3.
Medium

Type:	CD-ROM
Capacity:	40:03:25 min (352.1 MiB)
Used Capacity:	40:03:25 min (352.1 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	33 - 13057	13025 (02:53:50)
Fleetwood Mac - Second Hand News
2	(Audio)	no copy/no preemp	13058 - 32359	19302 (04:17:27)
Fleetwood Mac - Dreams
3	(Audio)	no copy/no preemp	32360 - 42507	10148 (02:15:23)
Fleetwood Mac - Never Going Back Again
4	(Audio)	no copy/no preemp	42508 - 57054	14547 (03:13:72)
Fleetwood Mac - Don't Stop
5	(Audio)	no copy/no preemp	57055 - 73572	16518 (03:40:18)
Fleetwood Mac - Go Your Own Way
6	(Audio)	no copy/no preemp	73573 - 88799	15227 (03:23:02)
Fleetwood Mac - Songbird
7	(Audio)	no copy/no preemp	88800 - 109137	20338 (04:31:13)
Fleetwood Mac - The Chain
8	(Audio)	no copy/no preemp	109138 - 125107	15970 (03:32:70)
Fleetwood Mac - You Make Loving Fun
9	(Audio)	no copy/no preemp	125108 - 139782	14675 (03:15:50)
Fleetwood Mac - I Don't Want To Know
10	(Audio)	no copy/no preemp	139783 - 157582	17800 (03:57:25)
Fleetwood Mac - Oh Daddy
11	(Audio)	no copy/no preemp	157583 - 180249	22667 (05:02:17)
Fleetwood Mac - Gold Dust Woman
Comment 3 Hannes Schniepp 2010-05-18 17:17:03 UTC
Hello,  

I just saw the recent activity on this bug. Sorry for not responding earlier. It seems that I wasn't automatically cc'ed on all the messages.  

Anyway, I looked at bug 231174, and it doesn't look like it's the same issue. Bug 231174 seems to be due to the fact that k3b tries to extract data tracks and/or has an issue which data tracks are checked. I just checked this with two CDs which don't have any data tracks. These CDs simply have 8 audio tracks, and I want to rip these 8 audio tracks. All 8 are checked, and no other tracks show up. The problem is also there if I just check, say, the first track. (I am a little bit hesitant to post the "Tracks" here. This happened without exception with all the audio CD I previously tried, so I think it's unlikely to be related to a special track structure of certain CDs.   

Let me know if you need more info or if there is anything else I can do.
Comment 4 James Dent 2010-06-25 12:51:38 UTC
*** Bug 238267 has been marked as a duplicate of this bug. ***
Comment 5 Brice Maron 2010-06-29 18:29:36 UTC
I had this pbm too with k3b 2.0.0-2 on archlinux and flac encoding.

Linux 2.6.34  i686
flac 1.2.1

I noticed also that it apply to every cds.. with or without hidden track, opendisc or not, old or recent...
Comment 6 Michał Małek 2010-06-30 22:36:40 UTC
*** Bug 243118 has been marked as a duplicate of this bug. ***
Comment 7 Michał Małek 2010-06-30 22:38:31 UTC
I wasn't able to reproduce it for a long time. Finally, the backtrace from comment #6 pushed me to the right direction. To reproduce it debug output has to be disabled! Fix is under way.
Comment 8 Michał Małek 2010-06-30 23:24:48 UTC
SVN commit 1144809 by mmalek:

Fixed freeze on ripping Audio CD using external encoder.
It was caused by single kDebug() expression in the loop which was causing infinite loop when debug output was turned off. Fixed by using K3b::Process and its splitted output functionality.
BUG: 236466


 M  +5 -0      ChangeLog  
 M  +11 -10    plugins/encoder/external/k3bexternalencoder.cpp  
 M  +1 -1      plugins/encoder/external/k3bexternalencoder.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1144809
Comment 9 Michał Małek 2010-06-30 23:48:57 UTC
SVN commit 1144817 by mmalek:

Fixed freeze on ripping Audio CD using external encoder.
It was caused by single kDebug() expression in the loop which was causing infinite loop when debug output was turned off. Fixed by using K3b::Process and its splitted output functionality.
BUG: 236466

 M  +5 -0      ChangeLog  
 M  +11 -10    plugins/encoder/external/k3bexternalencoder.cpp  
 M  +1 -1      plugins/encoder/external/k3bexternalencoder.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1144817
Comment 10 Hannes Schniepp 2010-07-01 19:58:05 UTC
Michal: 
Thanks so much for hunting this one down! Awesome! 
I look forward to testing the next fixed version (I currently don't have the time to compile it here from SVN.)
Comment 11 Michał Małek 2010-07-10 22:59:49 UTC
*** Bug 241691 has been marked as a duplicate of this bug. ***
Comment 12 Michał Małek 2010-07-26 20:13:58 UTC
*** Bug 245111 has been marked as a duplicate of this bug. ***
Comment 13 kwaichang 2010-08-01 17:02:21 UTC
Nothing changed in K3b_2.0.0. The program hangs, you have to kill the process.
Comment 14 Michał Małek 2010-08-03 07:34:14 UTC
(In reply to comment #13)
> Nothing changed in K3b_2.0.0. The program hangs, you have to kill the process.

That's because the bug will be fixed on 2.0.1 (not released yet)
Comment 15 Jonathan Thomas 2010-08-20 04:21:05 UTC
*** Bug 248433 has been marked as a duplicate of this bug. ***
Comment 16 Judd Rogers 2010-11-13 08:58:50 UTC
Is there a way to turn on the debug output so the released version will work?