{"action":"created","issue":{"url":"https://api.github.com/repos/fabiofalci/sconsify/issues/19","labels_url":"https://api.github.com/repos/fabiofalci/sconsify/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/fabiofalci/sconsify/issues/19/comments","events_url":"https://api.github.com/repos/fabiofalci/sconsify/issues/19/events","html_url":"https://github.com/fabiofalci/sconsify/issues/19","id":123907450,"number":19,"title":"panic: runtime error: invalid memory address or nil pointer dereference","user":{"login":"Raihid","id":9852093,"avatar_url":"https://avatars.githubusercontent.com/u/9852093?v=3","gravatar_id":"","url":"https://api.github.com/users/Raihid","html_url":"https://github.com/Raihid","followers_url":"https://api.github.com/users/Raihid/followers","following_url":"https://api.github.com/users/Raihid/following{/other_user}","gists_url":"https://api.github.com/users/Raihid/gists{/gist_id}","starred_url":"https://api.github.com/users/Raihid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Raihid/subscriptions","organizations_url":"https://api.github.com/users/Raihid/orgs","repos_url":"https://api.github.com/users/Raihid/repos","events_url":"https://api.github.com/users/Raihid/events{/privacy}","received_events_url":"https://api.github.com/users/Raihid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-26T04:12:48Z","updated_at":"2016-01-11T11:45:55Z","closed_at":null,"body":"On launch, after succesful login, I get a message attached below. From what I've understood the ALSA warnings aren't really the issue, but I'm not really sure of anything else. I'd like to be more specific, but I honestly don't know where to look and of course I will gladly provide more info. \r\n\r\nLogs after calling: ./sconsify --debug=true (Debian Jessie 64-bit, Sconsify r0.2.0).\r\n\r\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear\r\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe\r\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side\r\nALSA lib pcm_route.c:947:(find_matching_chmap) Found no matching channel map\r\nALSA lib pcm_route.c:947:(find_matching_chmap) Found no matching channel map\r\nCannot connect to server socket err = No such file or directory\r\nCannot connect to server request channel\r\njack server is not running or cannot be started\r\npanic: runtime error: invalid memory address or nil pointer dereference\r\n[signal 0xb code=0x1 addr=0x10 pc=0x49338f]\r\n\r\ngoroutine 6 [running]:\r\ngithub.com/fabiofalci/sconsify/spotify.(*Spotify).initPlaylist(0xc20804a9c0, 0x0, 0x0)\r\n\t/home/fabio/go/src/github.com/fabiofalci/sconsify/spotify/spotify_playlists.go:26 +0x81f\r\ngithub.com/fabiofalci/sconsify/spotify.(*Spotify).finishInitialisation(0xc20804a9c0, 0xc20803e0a0, 0x0, 0x0)\r\n\t/home/fabio/go/src/github.com/fabiofalci/sconsify/spotify/spotify.go:127 +0x6f\r\ngithub.com/fabiofalci/sconsify/spotify.(*Spotify).checkIfLoggedIn(0xc20804a9c0, 0xc20803e0a0, 0x0, 0x0)\r\n\t/home/fabio/go/src/github.com/fabiofalci/sconsify/spotify/spotify.go:96 +0x12c\r\ngithub.com/fabiofalci/sconsify/spotify.initialiseSpotify(0xc20802a940, 0xa, 0xc20802aa70, 0xf, 0x10, 0xc20804a960, 0xc20802a8a0, 0x0, 0x0)\r\n\t/home/fabio/go/src/github.com/fabiofalci/sconsify/spotify/spotify.go:45 +0x26e\r\ngithub.com/fabiofalci/sconsify/spotify.Initialise(0xc20802a940, 0xa, 0xc20802aa70, 0xf, 0x10, 0xc20804a960, 0xc20802a8a0)\r\n\t/home/fabio/go/src/github.com/fabiofalci/sconsify/spotify/spotify.go:25 +0x81\r\ncreated by main.main\r\n\t/home/fabio/go/src/github.com/fabiofalci/sconsify/sconsify.go:56 +0x76d\r\n\r\ngoroutine 1 [select]:\r\ngithub.com/fabiofalci/sconsify/sconsify.StartMainLoop(0xc20804a960, 0x7fa302d4ed98, 0x94c258, 0x0, 0x0, 0x0)\r\n\t/home/fabio/go/src/github.com/fabiofalci/sconsify/sconsify/mainloop.go:4 +0x63a\r\nmain.main()\r\n\t/home/fabio/go/src/github.com/fabiofalci/sconsify/sconsify.go:60 +0x7c1\r\n\r\ngoroutine 4 [runnable, locked to thread]:\r\ngithub.com/op/go-libspotify/spotify._Cfunc_sp_artist_release(0x7fa2f42e25c0, 0x0)\r\n\t/home/fabio/go/src/github.com/op/go-libspotify/spotify/:275 +0x43\r\ngithub.com/op/go-libspotify/spotify.(*Artist).release(0xc2080c6ab0)\r\n\t/home/fabio/go/src/github.com/op/go-libspotify/spotify/libspotify.go:2117 +0x83\r\n\r\ngoroutine 5 [syscall]:\r\nos/signal.loop()\r\n\t/usr/lib/go/src/os/signal/signal_unix.go:21 +0x1f\r\ncreated by os/signal.init·1\r\n\t/usr/lib/go/src/os/signal/signal_unix.go:27 +0x35\r\n\r\ngoroutine 17 [syscall, locked to thread]:\r\nruntime.goexit()\r\n\t/usr/lib/go/src/runtime/asm_amd64.s:2232 +0x1\r\n\r\ngoroutine 7 [runnable, locked to thread]:\r\ngithub.com/op/go-libspotify/spotify._Cfunc_sp_session_process_events(0x7fa2f400b260, 0xc20801d620, 0x0)\r\n\t/home/fabio/go/src/github.com/op/go-libspotify/spotify/:905 +0x43\r\ngithub.com/op/go-libspotify/spotify.(*Session).processEvents(0xc208066000)\r\n\t/home/fabio/go/src/github.com/op/go-libspotify/spotify/libspotify.go:878 +0xd6\r\ngithub.com/op/go-libspotify/spotify.func·001()\r\n\t/home/fabio/go/src/github.com/op/go-libspotify/spotify/libspotify.go:243 +0x141\r\ncreated by github.com/op/go-libspotify/spotify.NewSession\r\n\t/home/fabio/go/src/github.com/op/go-libspotify/spotify/libspotify.go:244 +0x819\r\n\r\ngoroutine 9 [select]:\r\ngithub.com/op/go-libspotify/spotify.(*Session).processBackground(0xc208066000)\r\n\t/home/fabio/go/src/github.com/op/go-libspotify/spotify/libspotify.go:900 +0x2ad\r\ncreated by github.com/op/go-libspotify/spotify.NewSession\r\n\t/home/fabio/go/src/github.com/op/go-libspotify/spotify/libspotify.go:250 +0x8c8\r\n\r\ngoroutine 18 [syscall, locked to thread]:\r\nruntime.goexit()\r\n\t/usr/lib/go/src/runtime/asm_amd64.s:2232 +0x1\r\n\r\ngoroutine 10 [chan send]:\r\ngithub.com/fabiofalci/sconsify/spotify.func·001()\r\n\t/home/fabio/go/src/github.com/fabiofalci/sconsify/spotify/spotify.go:103 +0x62\r\ncreated by github.com/fabiofalci/sconsify/spotify.(*Spotify).waitForSuccessfulConnectionStateUpdates\r\n\t/home/fabio/go/src/github.com/fabiofalci/sconsify/spotify/spotify.go:104 +0xc1\r\n\r\ngoroutine 11 [chan receive]:\r\ngithub.com/fabiofalci/sconsify/spotify.(*portAudio).player(0xc20803e0a0)\r\n\t/home/fabio/go/src/github.com/fabiofalci/sconsify/spotify/portaudio.go:50 +0x25d\r\ncreated by github.com/fabiofalci/sconsify/spotify.(*Spotify).finishInitialisation\r\n\t/home/fabio/go/src/github.com/fabiofalci/sconsify/spotify/spotify.go:124 +0x49\r\n"},"comment":{"url":"https://api.github.com/repos/fabiofalci/sconsify/issues/comments/170516959","html_url":"https://github.com/fabiofalci/sconsify/issues/19#issuecomment-170516959","issue_url":"https://api.github.com/repos/fabiofalci/sconsify/issues/19","id":170516959,"user":{"login":"mrbohnke","id":3263939,"avatar_url":"https://avatars.githubusercontent.com/u/3263939?v=3","gravatar_id":"","url":"https://api.github.com/users/mrbohnke","html_url":"https://github.com/mrbohnke","followers_url":"https://api.github.com/users/mrbohnke/followers","following_url":"https://api.github.com/users/mrbohnke/following{/other_user}","gists_url":"https://api.github.com/users/mrbohnke/gists{/gist_id}","starred_url":"https://api.github.com/users/mrbohnke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrbohnke/subscriptions","organizations_url":"https://api.github.com/users/mrbohnke/orgs","repos_url":"https://api.github.com/users/mrbohnke/repos","events_url":"https://api.github.com/users/mrbohnke/events{/privacy}","received_events_url":"https://api.github.com/users/mrbohnke/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T11:45:55Z","updated_at":"2016-01-11T11:45:55Z","body":"looks like I'm having the same issue (OS X 10.11.2):\r\n```\r\nSconsify - your awesome Spotify music service in a text-mode interface.\r\nProvided username: myUsername\r\nPassword: ******\r\n2016-01-11 11:34:09.922 sconsify[2729:196641] 11:34:09.921 WARNING:  140: This application, or a library it uses, is using the deprecated Carbon Component Manager for hosting Audio Units. Support for this will be removed in a future release. Also, this makes the host incompatible with version 3 audio units. Please transition to the API's in AudioComponent.h.\r\npanic: runtime error: invalid memory address or nil pointer dereference\r\n[signal 0xb code=0x1 addr=0x10 pc=0x408ba7f]\r\n\r\ngoroutine 6 [running]:\r\ngithub.com/fabiofalci/sconsify/spotify.(*Spotify).initPlaylist(0xc20804a720, 0x0, 0x0)\r\n\t/Users/fabio/go/src/github.com/fabiofalci/sconsify/spotify/spotify_playlists.go:26 +0x81f\r\ngithub.com/fabiofalci/sconsify/spotify.(*Spotify).finishInitialisation(0xc20804a720, 0xc208038028, 0x0, 0x0)\r\n\t/Users/fabio/go/src/github.com/fabiofalci/sconsify/spotify/spotify.go:127 +0x6f\r\ngithub.com/fabiofalci/sconsify/spotify.(*Spotify).checkIfLoggedIn(0xc20804a720, 0xc208038028, 0x0, 0x0)\r\n\t/Users/fabio/go/src/github.com/fabiofalci/sconsify/spotify/spotify.go:96 +0x12c\r\ngithub.com/fabiofalci/sconsify/spotify.initialiseSpotify(0xc20800a48a, 0x8, 0xc20802a580, 0xc, 0x10, 0xc20804a6c0, 0xc20802a2d0, 0x0, 0x0)\r\n\t/Users/fabio/go/src/github.com/fabiofalci/sconsify/spotify/spotify.go:45 +0x26e\r\ngithub.com/fabiofalci/sconsify/spotify.Initialise(0xc20800a48a, 0x8, 0xc20802a580, 0xc, 0x10, 0xc20804a6c0, 0xc20802a2d0)\r\n\t/Users/fabio/go/src/github.com/fabiofalci/sconsify/spotify/spotify.go:25 +0x81\r\ncreated by main.main\r\n\t/Users/fabio/go/src/github.com/fabiofalci/sconsify/sconsify.go:56 +0x76d\r\n\r\ngoroutine 1 [select, 2 minutes]:\r\ngithub.com/fabiofalci/sconsify/sconsify.StartMainLoop(0xc20804a6c0, 0x469dd68, 0x4338c20, 0x0, 0x0, 0x0)\r\n\t/Users/fabio/go/src/github.com/fabiofalci/sconsify/sconsify/mainloop.go:4 +0x63a\r\nmain.main()\r\n\t/Users/fabio/go/src/github.com/fabiofalci/sconsify/sconsify.go:60 +0x7c1\r\n\r\ngoroutine 5 [syscall, 2 minutes]:\r\nos/signal.loop()\r\n\t/usr/local/go/src/os/signal/signal_unix.go:21 +0x1f\r\ncreated by os/signal.init·1\r\n\t/usr/local/go/src/os/signal/signal_unix.go:27 +0x35\r\n\r\ngoroutine 17 [runnable, locked to thread]:\r\nruntime.goexit()\r\n\t/usr/local/go/src/runtime/asm_amd64.s:2232 +0x1\r\n\r\ngoroutine 7 [select, locked to thread]:\r\ngithub.com/op/go-libspotify/spotify.(*Session).processEvents(0xc20800c160)\r\n\t/Users/fabio/go/src/github.com/op/go-libspotify/spotify/libspotify.go:886 +0x340\r\ngithub.com/op/go-libspotify/spotify.func·001()\r\n\t/Users/fabio/go/src/github.com/op/go-libspotify/spotify/libspotify.go:243 +0x141\r\ncreated by github.com/op/go-libspotify/spotify.NewSession\r\n\t/Users/fabio/go/src/github.com/op/go-libspotify/spotify/libspotify.go:244 +0x819\r\n\r\ngoroutine 9 [select]:\r\ngithub.com/op/go-libspotify/spotify.(*Session).processBackground(0xc20800c160)\r\n\t/Users/fabio/go/src/github.com/op/go-libspotify/spotify/libspotify.go:900 +0x2ad\r\ncreated by github.com/op/go-libspotify/spotify.NewSession\r\n\t/Users/fabio/go/src/github.com/op/go-libspotify/spotify/libspotify.go:250 +0x8c8\r\n\r\ngoroutine 18 [syscall, 2 minutes, locked to thread]:\r\nruntime.goexit()\r\n\t/usr/local/go/src/runtime/asm_amd64.s:2232 +0x1\r\n\r\ngoroutine 10 [chan send, 1 minutes]:\r\ngithub.com/fabiofalci/sconsify/spotify.func·001()\r\n\t/Users/fabio/go/src/github.com/fabiofalci/sconsify/spotify/spotify.go:103 +0x62\r\ncreated by github.com/fabiofalci/sconsify/spotify.(*Spotify).waitForSuccessfulConnectionStateUpdates\r\n\t/Users/fabio/go/src/github.com/fabiofalci/sconsify/spotify/spotify.go:104 +0xc1\r\n\r\ngoroutine 11 [chan receive, 2 minutes]:\r\ngithub.com/fabiofalci/sconsify/spotify.(*portAudio).player(0xc208038028)\r\n\t/Users/fabio/go/src/github.com/fabiofalci/sconsify/spotify/portaudio.go:50 +0x25d\r\ncreated by github.com/fabiofalci/sconsify/spotify.(*Spotify).finishInitialisation\r\n\t/Users/fabio/go/src/github.com/fabiofalci/sconsify/spotify/spotify.go:124 +0x49\r\n```"}}