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

panic: EOF #56

Open
vmpartner opened this issue Apr 21, 2018 · 6 comments
Open

panic: EOF #56

vmpartner opened this issue Apr 21, 2018 · 6 comments

Comments

@vmpartner
Copy link

Get error panic: EOF from decode

@mpl
Copy link
Collaborator

mpl commented Apr 22, 2018

Hello.

There is not much we can do from this bug report.

Could you please provide more information, such as:

-what method/function the caller was using
-what the input file was

@ajthemacboy
Copy link

ajthemacboy commented May 12, 2018

I'm getting this too. Here is one of the photos that causes the error on Google Drive (there are others too, but some taken on the same camera work).

Here is my relevant code:

f, err := os.Open(path); if err != nil { panic(err) }
x, err := exif.Decode(f); if err != nil { panic(err) }

Here is the error:

panic: EOF

goroutine 1 [running]:
main.main.func1(0xc042054180, 0x5d, 0x5415c0, 0xc0420c4000, 0x0, 0x0, 0x0, 0x0)
	D:/dev/golang/2018-05/exifsort/exifsort.go:31 +0x300
path/filepath.walk(0xc042054180, 0x5d, 0x5415c0, 0xc0420c4000, 0x532128, 0x0, 0x0)
	D:/bin/goroot/src/path/filepath/path.go:357 +0x409
path/filepath.walk(0x52f342, 0x24, 0x5415c0, 0xc0420c4000, 0x532128, 0x0, 0xc042081f78)
	D:/bin/goroot/src/path/filepath/path.go:381 +0x2c9
path/filepath.Walk(0x52f342, 0x24, 0x532128, 0xc042081f78, 0xc042054058)
	D:/bin/goroot/src/path/filepath/path.go:403 +0x10d
main.main()
	D:/dev/golang/2018-05/exifsort/exifsort.go:16 +0x49

I am able to read the EXIF with the 'ExifRead' package for Python, and File Explorer on Windows shows EXIF info.

@harshit777
Copy link

panic: EOF

goroutine 1 [running]:
main.main()
/home/harshit/Projects/twitter-golang/main.go:50 +0x810
exit status 2

Getting this error

@tpiros
Copy link

tpiros commented Mar 2, 2020

I have the same issue - not sure if this is still being tracked here though ...

@taomin597715379
Copy link

I have the same issue - not sure if this is still being tracked here though ...

@TheBellman
Copy link

see #78 - this may be a common problem

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

7 participants