pms icon indicating copy to clipboard operation
pms copied to clipboard

Nil pointer dereference on startup

Open mpldr opened this issue 4 years ago • 2 comments

Terminal Emulator: Alacritty Version: 93ed7dd

Error Message:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x8a9d3f]
goroutine 88 [running]:
github.com/ambientsound/pms/index.(*Index).IndexFull(0x0, 0xfc4c38, 0x0, 0x0, 0xc000476070, 0x0, 0x0)
    /tmp/pms/index/index.go:175 +0xdf
github.com/ambientsound/pms/songlist.(*Library).ReIndex.func1(0xc00016e360)
    tmp/pms/songlist/library.go:109 +0x7f
created by github.com/ambientsound/pms/songlist.(*Library).ReIndex
    /tmp/pms/songlist/library.go:107 +0x92

I reformatted it so it's easier readable. In the Terminal it's shifted all around.

Steps to reproduce: execute pms in the terminal

mpldr avatar Dec 07 '19 22:12 mpldr

~Closing as a duplicate of #66.~

Sorry, this is a different issue altogether.

kimtore avatar Dec 10 '19 14:12 kimtore

Hi @poldi1405,

I am unable to reproduce this error so I added some debugging statements to try to diagnose your problem. Could you try running the latest master with the following command-line flags?

pms --debug=debug.log

Please include the log in the issue, then I can look into it.

kimtore avatar Dec 26 '19 17:12 kimtore

Feedback timeout. Closing.

ephemeralriggs avatar Aug 14 '22 09:08 ephemeralriggs