Skip to content
This repository was archived by the owner on May 3, 2021. It is now read-only.

panic: EOF #10

Open
xyproto opened this issue Sep 14, 2018 · 1 comment
Open

panic: EOF #10

xyproto opened this issue Sep 14, 2018 · 1 comment

Comments

@xyproto
Copy link

xyproto commented Sep 14, 2018

Hi,

I'm using the latest commit of waveform: 6b28917
and Go 1.11 on 64-bit Arch Linux.

After building waveform and copying test.wav to the cmd/waveform directory:

$ ls -al
.rw-r----- 1,0k afr 14 sep.  11:36 README.md
.rw-r-----  47M afr 14 sep.  11:40 test.wav
.rwxr-x--- 3,0M afr 14 sep.  11:36 waveform*
.rw-r----- 4,8k afr 14 sep.  11:36 waveform.go
.rw-r-----    0 afr 14 sep.  11:40 waveform.png
$ file test.wav
test.wav: RIFF (little-endian) data, WAVE audio

When attempting to create a .png image, I get an error message:

$ cat test.wav | ./waveform -x 5 -y 2 > waveform.png
panic: EOF

goroutine 1 [running]:
main.main()
        /home/afr/clones/waveform/cmd/waveform/waveform.go:127 +0xc9b

I tried with several different .wav files.

Line 127 in waveform.go is here.

@mdlayher
Copy link
Owner

It's been years since I worked on this program, but I don't think EOF should be treated as a fatal error. PRs are welcome.

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

No branches or pull requests

2 participants