Bug 1893431

Summary: Update to audioread 2.1.9 in fedora 32 and 33 - fixing an upstream issue with gst
Product: [Fedora] Fedora Reporter: Juan Orti <jorti>
Component: python-audioreadAssignee: Terje Røsten <terje.rosten>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 32CC: aannoaanno, mh, michele, terje.rosten, tim.dolores
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: python-audioread-2.1.9-2.fc33 python-audioread-2.1.9-2.fc32 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-16 02:07:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Juan Orti 2020-10-31 12:33:27 UTC
Description of problem:
When importing a dir with flac music, I get this error:

~~~
$ beet import <dir>
/usr/lib64/dri/hybrid_drv_video.so init failed
Not using hybrid_drv_video.so
Traceback (most recent call last):
  File "/usr/bin/beet", line 33, in <module>
    sys.exit(load_entry_point('beets==1.4.9', 'console_scripts', 'beet')())
  File "/usr/lib/python3.9/site-packages/beets/ui/__init__.py", line 1266, in main
    _raw_main(args)
  File "/usr/lib/python3.9/site-packages/beets/ui/__init__.py", line 1253, in _raw_main
    subcommand.func(lib, suboptions, subargs)
  File "/usr/lib/python3.9/site-packages/beets/ui/commands.py", line 955, in import_func
    import_files(lib, paths, query)
  File "/usr/lib/python3.9/site-packages/beets/ui/commands.py", line 925, in import_files
    session.run()
  File "/usr/lib/python3.9/site-packages/beets/importer.py", line 329, in run
    pl.run_parallel(QUEUE_SIZE)
  File "/usr/lib/python3.9/site-packages/beets/util/pipeline.py", line 445, in run_parallel
    six.reraise(exc_info[0], exc_info[1], exc_info[2])
  File "/usr/lib/python3.9/site-packages/six.py", line 703, in reraise
    raise value
  File "/usr/lib/python3.9/site-packages/beets/util/pipeline.py", line 312, in run
    out = self.coro.send(msg)
  File "/usr/lib/python3.9/site-packages/beets/util/pipeline.py", line 194, in coro
    func(*(args + (task,)))
  File "/usr/lib/python3.9/site-packages/beets/importer.py", line 1344, in lookup_candidates
    plugins.send('import_task_start', session=session, task=task)
  File "/usr/lib/python3.9/site-packages/beets/plugins.py", line 489, in send
    result = handler(**arguments)
  File "/usr/lib/python3.9/site-packages/beets/plugins.py", line 143, in wrapper
    return func(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/beetsplug/chroma.py", line 182, in fingerprint_task
    return fingerprint_task(self._log, task, session)
  File "/usr/lib/python3.9/site-packages/beetsplug/chroma.py", line 251, in fingerprint_task
    acoustid_match(log, item.path)
  File "/usr/lib/python3.9/site-packages/beetsplug/chroma.py", line 91, in acoustid_match
    duration, fp = acoustid.fingerprint_file(util.syspath(path))
  File "/usr/lib/python3.9/site-packages/acoustid.py", line 333, in fingerprint_file
    return _fingerprint_file_audioread(path, maxlength)
  File "/usr/lib/python3.9/site-packages/acoustid.py", line 275, in _fingerprint_file_audioread
    fp = fingerprint(f.samplerate, f.channels, iter(f), maxlength)
  File "/usr/lib/python3.9/site-packages/acoustid.py", line 217, in fingerprint
    fper.feed(block)
  File "/usr/lib/python3.9/site-packages/chromaprint.py", line 145, in feed
    data = BYTES_TYPE(data)
ValueError: operation forbidden on released memoryview object
~~~

Version-Release number of selected component (if applicable):
beets-1.4.9-8.fc33.noarch
libva-intel-hybrid-driver-1.0.2-19.fc33.x86_64
libva-intel-driver-2.4.1-3.fc33.x86_64
python3-acoustid-1.2.0-3.fc33.noarch
libchromaprint-1.5.0-1.fc33.x86_64
kernel-5.8.16-300.fc33.x86_64

How reproducible:
Always

Steps to Reproduce:
1. beet import <dir>

Actual results:
ValueError: operation forbidden on released memoryview object

Expected results:
Music imported

Additional info:
I don't know why there are messages about the dri drivers. My graphic card is:

00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
    Kernel modules: i915

Comment 1 Tim Smith 2020-12-06 20:30:26 UTC
See https://github.com/beetbox/audioread/pull/110

Comment 2 Michele Baldessari 2020-12-08 21:25:57 UTC
Fixed in audioread 2.1.9 (thanks Tim), moving to that component. Could be marked as a dupe of https://bugzilla.redhat.com/show_bug.cgi?id=1889693 (but that was for rawhide), I guess we'd love to have 2.1.9 in F33

Comment 3 Michele Baldessari 2020-12-30 09:06:39 UTC
*** Bug 1911589 has been marked as a duplicate of this bug. ***

Comment 4 Fedora Update System 2021-02-07 16:09:42 UTC
FEDORA-2021-a328b7903f has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-a328b7903f

Comment 5 Fedora Update System 2021-02-08 01:46:15 UTC
FEDORA-2021-a328b7903f has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-a328b7903f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-a328b7903f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2021-02-08 02:12:57 UTC
FEDORA-2021-0093c6e8cf has been pushed to the Fedora 32 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-0093c6e8cf`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-0093c6e8cf

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2021-02-16 02:07:35 UTC
FEDORA-2021-a328b7903f has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2021-02-16 02:10:15 UTC
FEDORA-2021-0093c6e8cf has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.