-
Notifications
You must be signed in to change notification settings - Fork 34
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: runtime error: invalid memory address or nil pointer dereference #17
Comments
Taking a look, this is very weird though, newFIle creates the cachedFile object (so it's not nil): Line 224 in 646777d
And then calls inc, where it's failing on nil deref on: Line 327 in 646777d
But that should not be nil because we're in newFile and literally just initialized it. Is this reproducible with a specific setup? I'd like to do some debugging on it to figure out how this is possible. |
I suspect this is the problem: What's the specific Go build constraints that produces this situation? I'm guessing alignment is messed up. Though it's odd that it would be considering it's the first arg. I suspect now maybe even though it's the first arg of handleCounter, because that is embedded in cachedFile that might mess up the alignment. This makes me sad because it breaks some of the 'easiness' of Go when a failure can cascade like this. Related: |
This error occurs on arm (raspberry pi 3) |
@0xERR0R Can you dump "go env" so I can match your build setup? |
I used arm/v7 build from navidrome's release page. I guess, this will be built by goreleaser |
I gotta focus on my day job for awhile, but now that I've got enough details I work on fixing this tonight. |
If you want to perform some test -> please contact me, I would be glad to help |
Thanks for the quick turnaround on this issue! |
I'm not totally sure when and why this happens, but one user of my app is reporting this error:
You can see in the original report that the key files are being created, but the cache files are created with size 0.
Maybe I'm using it wrongly?
https://github.com/deluan/navidrome/blob/master/engine/cover.go#L50
What other information can I give you to help pin this error down?
Original report: navidrome/navidrome#177
The text was updated successfully, but these errors were encountered: