Closed beastyrabbit closed 1 year ago
Hello! This file is not readable by Mutagen, the low-level library we use to interact with file metadata. Here's a complete traceback:
$ python3 -c 'import mutagen ; mutagen.File("t.m4a")'
Traceback (most recent call last):
File "/Users/fabian/Library/Python/3.11/lib/python/site-packages/mutagen/mp4/__init__.py", line 1196, in load
self.tags = self.MP4Tags(atoms, fileobj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/fabian/Library/Python/3.11/lib/python/site-packages/mutagen/mp4/__init__.py", line 341, in __init__
self.load(*args, **kwargs)
File "/Users/fabian/Library/Python/3.11/lib/python/site-packages/mutagen/mp4/__init__.py", line 361, in load
info[0](self, atom, data)
File "/Users/fabian/Library/Python/3.11/lib/python/site-packages/mutagen/mp4/__init__.py", line 598, in __parse_freeform
length = cdata.uint_be(data[pos:pos + 4])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/fabian/Library/Python/3.11/lib/python/site-packages/mutagen/_util.py", line 559, in <lambda>
get_wrapper = lambda f: lambda *a, **k: f(*a, **k)[0]
^^^^^^^^^^
struct.error: unpack requires a buffer of 4 bytes
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/fabian/Library/Python/3.11/lib/python/site-packages/mutagen/_util.py", line 164, in wrapper_func
return func(h, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/fabian/Library/Python/3.11/lib/python/site-packages/mutagen/_file.py", line 302, in File
return Kind(fileobj, filename=filething.filename)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/fabian/Library/Python/3.11/lib/python/site-packages/mutagen/_file.py", line 48, in __init__
self.load(*args, **kwargs)
File "/Users/fabian/Library/Python/3.11/lib/python/site-packages/mutagen/_util.py", line 156, in wrapper
return func(self, h, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/fabian/Library/Python/3.11/lib/python/site-packages/mutagen/mp4/__init__.py", line 1200, in load
reraise(MP4MetadataError, err, sys.exc_info()[2])
File "/Users/fabian/Library/Python/3.11/lib/python/site-packages/mutagen/_util.py", line 43, in reraise
raise tp(value).with_traceback(tb)
File "/Users/fabian/Library/Python/3.11/lib/python/site-packages/mutagen/mp4/__init__.py", line 1196, in load
self.tags = self.MP4Tags(atoms, fileobj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/fabian/Library/Python/3.11/lib/python/site-packages/mutagen/mp4/__init__.py", line 341, in __init__
self.load(*args, **kwargs)
File "/Users/fabian/Library/Python/3.11/lib/python/site-packages/mutagen/mp4/__init__.py", line 361, in load
info[0](self, atom, data)
File "/Users/fabian/Library/Python/3.11/lib/python/site-packages/mutagen/mp4/__init__.py", line 598, in __parse_freeform
length = cdata.uint_be(data[pos:pos + 4])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/fabian/Library/Python/3.11/lib/python/site-packages/mutagen/_util.py", line 559, in <lambda>
get_wrapper = lambda f: lambda *a, **k: f(*a, **k)[0]
^^^^^^^^^^
mutagen.mp4.MP4MetadataError: unpack requires a buffer of 4 bytes
Since this is an unhandled crash inside Mutagen, it might be useful to file a bug report with that project for further investigation (including this sample file that triggers the crash). https://github.com/quodlibet/mutagen/issues/new
Problem
Running this command in verbose (
-vv
) mode:Led to this problem:
Here's a link to the music files that trigger the bug (if relevant): Had to zip it because m4a not allowed 01 - AcDc - Flick of the Switch - Rising Power.zip I got a lot more files if needed
Setup
My configuration (output of
beet config
) is: