Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails if /tmp too small #79

Open
ckoegit opened this issue Jul 10, 2022 · 0 comments
Open

Fails if /tmp too small #79

ckoegit opened this issue Jul 10, 2022 · 0 comments

Comments

@ckoegit
Copy link

ckoegit commented Jul 10, 2022

Hello !

This is a minor observation and a suggestion for improved documentation/ usability.

I got this somewhat cryptic (pythonic ?) error message from the git cloned version 2.0.0

 % ~/Downloads/dr14_t.meter/dr14_tmeter -v
2.0.0

% ~/Downloads/dr14_t.meter/dr14_tmeter
...
...
 - ERROR ! 
Unexpected error: (<class 'ValueError'>, ValueError('cannot reshape array of size 59471833 into shape (1073741823,2)'), <traceback object at 0x14d699a68940>)

 - ERROR ! 
- fail - /mnt/ramfs/TEST/jxtQ.flac
- fail - /mnt/ramfs/TEST/sUF.flac
No audio files found

 Usage: dr14_tmeter [options] path_name
...
...

After some head scratching and poking around (debian 11.3) I looked into dr14tmeter/audio_file_reader.py where a temporary directory is created via

tmp_dir = tempfile.gettempdir()

Well, on this particular machine /tmp is only a 256 MByte ramdisk, which I guessed is too small to store a wav (?) file derived from an about 700 MByte flac input. In fact, setting $TMPDIR in the environment to point to a larger (i.e. GBytes free space) filesytem completely cured the problem, dr14_tmeter ran and finished successfully.

I would suggest documenting that enough space on /tmp or in another location is needed (to work around the useless error message python generates), together with a hint to set $TMPDIR if necessary and/or exposing a command line option to set the location for temporary files.

Best Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant