For some users, the libspotify crashes when calling sp_session_create.
All config parameters are set except the proxy settings which are NULL.
The crash occurs at libspotify+0xdc7c0
I have minidumps available.
For some users, the libspotify crashes when calling sp_session_create.
All config parameters are set except the proxy settings which are NULL.
The crash occurs at libspotify+0xdc7c0
I have minidumps available.
I have found this to be a permissions issue. If the user does not have permissions to create (and/or modify) the settings and cache directories passed to sp_session_create
, it will helpfully crash. I think that a helpful error code with no crash would have saved me an awful lot of time.
The solution is to make sure the settings and cache directories can be created (if they do not exist) and that they are writable by the current user. This could be achieved either by directly modifying directory permissions or by changing the location of those directories to somewhere else (eg the user's AppData directory).
I should mention that I use the same directory for both (in case that wasn't already obvious), and I haven't bothered to isolate which is responsible for the crash.
Anyway, on Windows 8 this was a problem when a program was installed under the Program Files directory and my settings/cache was a relative path off that. The users by default did not have sufficient privileges.
Hope this helps.