Comment 7 for bug 1952551

Revision history for this message
Bob (paul-crapouillou) wrote :

I don't know how many jobs, I believe the default is the number of CPU cores? That would be 8 in my case. But it does happen with -j1 as well.

I don't know what I did on last trace, I was definitely in the events-taskqueue branch. My HEAD is commit adcb133 now, and I still get recursion errors:

Traceback (most recent call last):
  File "/tmp/soundconverter/soundconverter/util/taskqueue.py", line 134, in task_done
    self.start_next()
  File "/tmp/soundconverter/soundconverter/util/taskqueue.py", line 150, in start_next
    task.run()
  File "/tmp/soundconverter/soundconverter/gstreamer/converter.py", line 459, in run
    self.newname = self.name_generator.generate_target_uri(
  File "/tmp/soundconverter/soundconverter/util/namegenerator.py", line 451, in generate_target_uri
    filename = self._get_target_filename(sound_file)
  File "/tmp/soundconverter/soundconverter/util/namegenerator.py", line 430, in _get_target_filename
    self.fill_pattern(sound_file, self.basename_pattern),
  File "/tmp/soundconverter/soundconverter/util/namegenerator.py", line 325, in fill_pattern
    filename = beautify_uri(sound_file.uri)
  File "/tmp/soundconverter/soundconverter/util/fileoperations.py", line 44, in beautify_uri
    match = split_uri(uri)
  File "/tmp/soundconverter/soundconverter/util/fileoperations.py", line 118, in split_uri
    match = re.match(r'^([a-zA-Z]+://([^/]+?)?)?(/.*)', uri)
  File "/usr/lib/python3.9/re.py", line 191, in match
    return _compile(pattern, flags).match(string)
  File "/usr/lib/python3.9/re.py", line 291, in _compile
    if isinstance(flags, RegexFlag):
RecursionError: maximum recursion depth exceeded while calling a Python object

Note that I run it with "-e skip" and at this point a good number of my songs are already converted, maybe 3000+, so I get a lot of "output file already exists, skipping". I don't know if that's related.