thomasvs / morituri

For those about to RIP - a Unix CD ripper preferring accuracy over speed
GNU General Public License v3.0
301 stars 42 forks source link

CD drive blocked after failed rip offset find #135

Open Soukyuu opened 9 years ago

Soukyuu commented 9 years ago

Running on archlinux x64, installed via aur package. It tries to rip with offset 6 -> fails after a time, and just dumps the following text to the console.

$ rip offset find
Checking device /dev/sr1
Trying read offset 6 ...                      
** Message: pygobject_register_sinkfunc is deprecated (GstObject)
WARNING: cannot rip with offset 6...          
Trying read offset 48 ...
WARNING: cannot rip with offset 48...         
Trying read offset 102 ...
WARNING: cannot rip with offset 102...        
Trying read offset 667 ...
WARNING: cannot rip with offset 667...        
Trying read offset 12 ...
WARNING: cannot rip with offset 12...         
Trying read offset 30 ...
WARNING: cannot rip with offset 30...         
Trying read offset 618 ...
WARNING: cannot rip with offset 618...        
Trying read offset 594 ...
WARNING: cannot rip with offset 594...        
Trying read offset 738 ...
WARNING: cannot rip with offset 738...        
Trying read offset -472 ...
WARNING: cannot rip with offset -472...       
Trying read offset 98 ...
WARNING: cannot rip with offset 98...         
Trying read offset 116 ...
WARNING: cannot rip with offset 116...        
Trying read offset 96 ...
WARNING: cannot rip with offset 96...         
Trying read offset 733 ...
WARNING: cannot rip with offset 733...        
Trying read offset 120 ...
WARNING: cannot rip with offset 120...        
Trying read offset 691 ...
WARNING: cannot rip with offset 691...        
Trying read offset 685 ...
WARNING: cannot rip with offset 685...        
Trying read offset 97 ...
WARNING: cannot rip with offset 97...         
Trying read offset 600 ...
WARNING: cannot rip with offset 600...        
Trying read offset 690 ...
WARNING: cannot rip with offset 690...        
Trying read offset 1292 ...
WARNING: cannot rip with offset 1292...       
Trying read offset 99 ...
WARNING: cannot rip with offset 99...         
Trying read offset 676 ...
WARNING: cannot rip with offset 676...        
Trying read offset 686 ...
WARNING: cannot rip with offset 686...        
Trying read offset 1182 ...
WARNING: cannot rip with offset 1182...       
Trying read offset -24 ...
WARNING: cannot rip with offset -24...        
Trying read offset 704 ...
WARNING: cannot rip with offset 704...        
Trying read offset 572 ...
WARNING: cannot rip with offset 572...        
Trying read offset 688 ...
WARNING: cannot rip with offset 688...        
Trying read offset 91 ...
WARNING: cannot rip with offset 91...         
Trying read offset 696 ...
WARNING: cannot rip with offset 696...        
Trying read offset 103 ...
WARNING: cannot rip with offset 103...        
Trying read offset -491 ...
WARNING: cannot rip with offset -491...       
Trying read offset 689 ...
WARNING: cannot rip with offset 689...        
Trying read offset 145 ...
WARNING: cannot rip with offset 145...        
Trying read offset 708 ...
WARNING: cannot rip with offset 708...        
Trying read offset 697 ...
WARNING: cannot rip with offset 697...        
Trying read offset 564 ...
WARNING: cannot rip with offset 564...        
Trying read offset 86 ...
WARNING: cannot rip with offset 86...         
Trying read offset 679 ...
WARNING: cannot rip with offset 679...        
Trying read offset 355 ...
WARNING: cannot rip with offset 355...        
Trying read offset -496 ...
WARNING: cannot rip with offset -496...       
Trying read offset -1164 ...
WARNING: cannot rip with offset -1164...      
Trying read offset 1160 ...
WARNING: cannot rip with offset 1160...       
Trying read offset 694 ...
WARNING: cannot rip with offset 694...        
Trying read offset 0 ...
WARNING: cannot rip with offset 0...          
Trying read offset -436 ...
WARNING: cannot rip with offset -436...       
Trying read offset 79 ...
WARNING: cannot rip with offset 79...         
Trying read offset 94 ...
WARNING: cannot rip with offset 94...         
Trying read offset 684 ...
WARNING: cannot rip with offset 684...        
Trying read offset 681 ...
WARNING: cannot rip with offset 681...        
Trying read offset 106 ...
WARNING: cannot rip with offset 106...        
Trying read offset 692 ...
WARNING: cannot rip with offset 692...        
Trying read offset 943 ...
WARNING: cannot rip with offset 943...        
Trying read offset 1194 ...
WARNING: cannot rip with offset 1194...       
Trying read offset 92 ...
WARNING: cannot rip with offset 92...         
Trying read offset 117 ...
WARNING: cannot rip with offset 117...        
Trying read offset 680 ...
WARNING: cannot rip with offset 680...        
Trying read offset 682 ...
WARNING: cannot rip with offset 682...        
Trying read offset 1268 ...
WARNING: cannot rip with offset 1268...       
Trying read offset 678 ...
WARNING: cannot rip with offset 678...        
Trying read offset -582 ...
WARNING: cannot rip with offset -582...       
Trying read offset 1473 ...
WARNING: cannot rip with offset 1473...       
Trying read offset 1279 ...
WARNING: cannot rip with offset 1279...       
Trying read offset -54 ...
WARNING: cannot rip with offset -54...        
Trying read offset 1508 ...
WARNING: cannot rip with offset 1508...       
Trying read offset 740 ...
WARNING: cannot rip with offset 740...        
Trying read offset 1272 ...
WARNING: cannot rip with offset 1272...       
Trying read offset 534 ...
WARNING: cannot rip with offset 534...        
Trying read offset 976 ...
WARNING: cannot rip with offset 976...        
Trying read offset 687 ...
WARNING: cannot rip with offset 687...        
Trying read offset 675 ...
WARNING: cannot rip with offset 675...        
Trying read offset 1303 ...
WARNING: cannot rip with offset 1303...       
Trying read offset 674 ...
WARNING: cannot rip with offset 674...        
Trying read offset 1263 ...
WARNING: cannot rip with offset 1263...       
Trying read offset 108 ...
WARNING: cannot rip with offset 108...        
Trying read offset 974 ...
WARNING: cannot rip with offset 974...        
Trying read offset 122 ...
WARNING: cannot rip with offset 122...        
Trying read offset 111 ...
WARNING: cannot rip with offset 111...        
Trying read offset -489 ...
WARNING: cannot rip with offset -489...       
Trying read offset 772 ...
WARNING: cannot rip with offset 772...        
Trying read offset 732 ...
WARNING: cannot rip with offset 732...        
Trying read offset -495 ...
WARNING: cannot rip with offset -495...       
Trying read offset -494 ...
WARNING: cannot rip with offset -494...       
Trying read offset 975 ...
WARNING: cannot rip with offset 975...        
Trying read offset 935 ...
WARNING: cannot rip with offset 935...        
Trying read offset 87 ...
WARNING: cannot rip with offset 87...         
Trying read offset 668 ...
WARNING: cannot rip with offset 668...        
Trying read offset 1776 ...
WARNING: cannot rip with offset 1776...       
Trying read offset 1364 ...
WARNING: cannot rip with offset 1364...       
Trying read offset 1336 ...
WARNING: cannot rip with offset 1336...       
Trying read offset 1127 ...
WARNING: cannot rip with offset 1127...       
No matching offset found.
Consider trying again with a different disc.

Ejection is not possible at this point. Looking at processes, I have about 100 (!!!) cdparanoia processes, all in disk sleep state. The LED is blinking frantically, but nothing is happening. Only solution is to killall cdparanoia

thomasvs commented 9 years ago

Interesting. That sounds like a bug with cdparanoia, and I suggest you file a bug with them.

I'll keep this open to actually make sure that rip offset find kills off cdparanoia on each find.

T

On 09/01/2015 11:11 AM, Ivan Pilipenko wrote:

Running on archlinux x64, installed via aur package. It tries to rip with offset 6 -> fails after a time, and just dumps the following text to the console.

$ rip offset find Checking device /dev/sr1 Trying read offset 6 ... \ Message: pygobject_register_sinkfunc is deprecated (GstObject) WARNING: cannot rip with offset 6... Trying read offset 48 ... WARNING: cannot rip with offset 48... Trying read offset 102 ... WARNING: cannot rip with offset 102... Trying read offset 667 ... WARNING: cannot rip with offset 667... Trying read offset 12 ... WARNING: cannot rip with offset 12... Trying read offset 30 ... WARNING: cannot rip with offset 30... Trying read offset 618 ... WARNING: cannot rip with offset 618... Trying read offset 594 ... WARNING: cannot rip with offset 594... Trying read offset 738 ... WARNING: cannot rip with offset 738... Trying read offset -472 ... WARNING: cannot rip with offset -472... Trying read offset 98 ... WARNING: cannot rip with offset 98... Trying read offset 116 ... WARNING: cannot rip with offset 116... Trying read offset 96 ... WARNING: cannot rip with offset 96... Trying read offset 733 ... WARNING: cannot rip with offset 733... Trying read offset 120 ... WARNING: cannot rip with offset 120... Trying read offset 691 ... WARNING: cannot rip with offset 691... Trying read offset 685 ... WARNING: cannot rip with offset 685... Trying read offset 97 ... WARNING: cannot rip with offset 97... Trying read offset 600 ... WARNING: cannot rip with offset 600... Trying read offset 690 ... WARNING: cannot rip with offset 690... Trying read offset 1292 ... WARNING: cannot rip with offset 1292... Trying read offset 99 ... WARNING: cannot rip with offset 99... Trying read offset 676 ... WARNING: cannot rip with offset 676... Trying read offset 686 ... WARNING: cannot rip with offset 686... Trying read offset 1182 ... WARNING: cannot rip with offset 1182... Trying read offset -24 ... WARNING: cannot rip with offset -24... Trying read offset 704 ... WARNING: cannot rip with offset 704... Trying read offset 572 ... WARNING: cannot rip with offset 572... Trying read offset 688 ... WARNING: cannot rip with offset 688... Trying read offset 91 ... WARNING: cannot rip with offset 91... Trying read offset 696 ... WARNING: cannot rip with offset 696... Trying read offset 103 ... WARNING: cannot rip with offset 103... Trying read offset -491 ... WARNING: cannot rip with offset -491... Trying read offset 689 ... WARNING: cannot rip with offset 689... Trying read offset 145 ... WARNING: cannot rip with offset 145... Trying read offset 708 ... WARNING: cannot rip with offset 708... Trying read offset 697 ... WARNING: cannot rip with offset 697... Trying read offset 564 ... WARNING: cannot rip with offset 564... Trying read offset 86 ... WARNING: cannot rip with offset 86... Trying read offset 679 ... WARNING: cannot rip with offset 679... Trying read offset 355 ... WARNING: cannot rip with offset 355... Trying read offset -496 ... WARNING: cannot rip with offset -496... Trying read offset -1164 ... WARNING: cannot rip with offset -1164... Trying read offset 1160 ... WARNING: cannot rip with offset 1160... Trying read offset 694 ... WARNING: cannot rip with offset 694... Trying read offset 0 ... WARNING: cannot rip with offset 0... Trying read offset -436 ... WARNING: cannot rip with offset -436... Trying read offset 79 ... WARNING: cannot rip with offset 79... Trying read offset 94 ... WARNING: cannot rip with offset 94... Trying read offset 684 ... WARNING: cannot rip with offset 684... Trying read offset 681 ... WARNING: cannot rip with offset 681... Trying read offset 106 ... WARNING: cannot rip with offset 106... Trying read offset 692 ... WARNING: cannot rip with offset 692... Trying read offset 943 ... WARNING: cannot rip with offset 943... Trying read offset 1194 ... WARNING: cannot rip with offset 1194... Trying read offset 92 ... WARNING: cannot rip with offset 92... Trying read offset 117 ... WARNING: cannot rip with offset 117... Trying read offset 680 ... WARNING: cannot rip with offset 680... Trying read offset 682 ... WARNING: cannot rip with offset 682... Trying read offset 1268 ... WARNING: cannot rip with offset 1268... Trying read offset 678 ... WARNING: cannot rip with offset 678... Trying read offset -582 ... WARNING: cannot rip with offset -582... Trying read offset 1473 ... WARNING: cannot rip with offset 1473... Trying read offset 1279 ... WARNING: cannot rip with offset 1279... Trying read offset -54 ... WARNING: cannot rip with offset -54... Trying read offset 1508 ... WARNING: cannot rip with offset 1508... Trying read offset 740 ... WARNING: cannot rip with offset 740... Trying read offset 1272 ... WARNING: cannot rip with offset 1272... Trying read offset 534 ... WARNING: cannot rip with offset 534... Trying read offset 976 ... WARNING: cannot rip with offset 976... Trying read offset 687 ... WARNING: cannot rip with offset 687... Trying read offset 675 ... WARNING: cannot rip with offset 675... Trying read offset 1303 ... WARNING: cannot rip with offset 1303... Trying read offset 674 ... WARNING: cannot rip with offset 674... Trying read offset 1263 ... WARNING: cannot rip with offset 1263... Trying read offset 108 ... WARNING: cannot rip with offset 108... Trying read offset 974 ... WARNING: cannot rip with offset 974... Trying read offset 122 ... WARNING: cannot rip with offset 122... Trying read offset 111 ... WARNING: cannot rip with offset 111... Trying read offset -489 ... WARNING: cannot rip with offset -489... Trying read offset 772 ... WARNING: cannot rip with offset 772... Trying read offset 732 ... WARNING: cannot rip with offset 732... Trying read offset -495 ... WARNING: cannot rip with offset -495... Trying read offset -494 ... WARNING: cannot rip with offset -494... Trying read offset 975 ... WARNING: cannot rip with offset 975... Trying read offset 935 ... WARNING: cannot rip with offset 935... Trying read offset 87 ... WARNING: cannot rip with offset 87... Trying read offset 668 ... WARNING: cannot rip with offset 668... Trying read offset 1776 ... WARNING: cannot rip with offset 1776... Trying read offset 1364 ... WARNING: cannot rip with offset 1364... Trying read offset 1336 ... WARNING: cannot rip with offset 1336... Trying read offset 1127 ... WARNING: cannot rip with offset 1127... No matching offset found. Consider trying again with a different disc.

Ejection is not possible at this point. Looking at processes, I have about 100 (!!!) cdparanoia processes, all in disk sleep state. The LED is blinking frantically, but nothing is happening. Only solution is to |killall cdparanoia|

— Reply to this email directly or view it on GitHub https://github.com/thomasvs/morituri/issues/135.

Soukyuu commented 9 years ago

Which operation specifically does it fail at, in this case? I've tried cdparanoia -A and cdparanoia -B and everything is working - it's ripping a disc as I write this.

thomasvs commented 9 years ago

Whatever rip offset find invokes - set RIP_DEBUG=5 and capture the log output to a file to see the commands.

On 09/05/2015 06:24 AM, Ivan Pilipenko wrote:

Which operation specifically does it fail at, in this case? I've tried |cdparanoia -A| and |cdparanoia -B| and everything is working - it's ripping a disc as I write this.

— Reply to this email directly or view it on GitHub https://github.com/thomasvs/morituri/issues/135#issuecomment-137955765.

Soukyuu commented 9 years ago

It's not cdparanoia, I've run the commands mentioned in the debug log, and they produce a == :^D * == output, so that should be fine. However, I see following errors:

<GstException: GError 'A WAV decoder plugin is required to play this stream, but not installed.', debug "gstdecodebin.c(1003): close_pad_link (): /GstPipeline:pipeline0/GstDecodeBin:decode:\nNo decoder to handle media type 'audio/x-wav'">, 'exception GstException at /usr/lib/python2.7/site-packages/morituri/extern/task/gstreamer.py:102: start(): (<GError at 0x562590200820>, "gstdecodebin.c(1003): close_pad_link (): /GstPipeline:pipeline0/GstDecodeBin:decode:\\nNo decoder to handle media type \'audio/x-wav\'")' (morituri/extern/task/task.py:211) 

I have the following gstreamer packages installed:

local/gst-plugins-base 1.4.5-1
    GStreamer Multimedia Framework Base Plugins
local/gst-plugins-base-libs 1.4.5-1
    GStreamer Multimedia Framework Base Plugin libraries
local/gstreamer 1.4.5-1
    GStreamer Multimedia Framework
local/gstreamer0.10 0.10.36-4
    GStreamer Multimedia Framework
local/gstreamer0.10-base 0.10.36-3
    GStreamer Multimedia Framework Base plugin libraries
local/gstreamer0.10-base-plugins 0.10.36-3 (gstreamer0.10-plugins)
    GStreamer Multimedia Framework Base Plugins (gst-plugins-base)
local/gstreamer0.10-python 0.10.22-2
    Python bindings for GStreamer 0.10
local/phonon-qt4-gstreamer 4.8.2-1
    Phonon GStreamer backend for Qt4
local/phonon-qt5-gstreamer 4.8.2-1
    Phonon GStreamer backend for Qt5

According to the morituri-git AUR package, it depends on

Depends On     : cdparanoia  cdrdao  gstreamer0.10  gstreamer0.10-python  python2-xdg  python2-setuptools
Optional Deps  : python2-pycdio: Drive recognition. [installed]
                 gstreamer0.10-base-plugins: Offset detection. [installed]
                 cddb-py: FreeDB support. [installed]

So I appear to have all dependencies installed. Is something missing?

Full log

JoeLametta commented 9 years ago

Have you tried issuing a rm -fv ~/.gstreamer-0.10/registry* then running morituri again? If this fails you can try installing the remaining gstreamer0.10-*-plugins packages:

Then issue the previous command and test it again.

Soukyuu commented 9 years ago

Confirmed to be a packaging issue. gstreamer0.10-good-plugins is required, notified the packager. It would be good if morituri could detect that and shut down more gracefully, though.

l-mb commented 9 years ago

Had a very similar problem on openSUSE Tumbleweed. Installing the additional plugins fixed it.

Freso commented 8 years ago

gstreamer0.10-good-plugins is now listed in the requirements of the morituri-git package. It is listed as an optional dependency of the [community] morituri PKGBUILD though, so not sure if the -git package should follow that lead, or a ticket should be made for Arch to move their dependency from $optdepends to $depends.

ArchangeGabriel commented 8 years ago

@Freso Open a ticket against community one. Have you ever tried to rip without gstreamer0.10-good-plugins installed? It crashes. The minimal set of plugins seems to be level, wavenc, wavparse and taglib, but I’ve also added flac in https://aur.archlinux.org/packages/gstreamer0.10-good-plugins-morituri/, since it’s the main use I think. And at least mine.

Freso commented 8 years ago

@ArchangeGabriel Sure, but while ripping is one of the core functions of morituri, it isn't the only one, and there are probably several functions of morituri that work fine without gst0.10-good-plugins.

ArchangeGabriel commented 8 years ago

Oh… From that point of view, yes. Then it should be marked “for ripping”, or something like that. Though I’ve never heard of anyone using morituri without the ripping function at all…