maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   [ANNOUNCE] QSpot, a Qt-based Spotify client based on libspotify (https://talk.maemo.org/showthread.php?t=55589)

aenbacka 2011-11-27 08:35

Re: [ANNOUNCE] QSpot, a Qt-based Spotify client based on libspotify
 
Quote:

Originally Posted by rgodinez (Post 1129439)
I've found the same problem as ukki.

$ /opt/qspot/bin/qspot
> set_stream 'QSpot'
FATAL ERROR: Could not initiate session. Error reason: "Unable to open trace file"
Segmentation fault
~ $

I've deleted (moved away) /home/.config/qspot/qspot.conf and the result is the same, and file is not re-created.

So I've created an strace output file for you to be able to debug better this behaviour.

~ $ strace -o MyDocs/qspot.strace /opt/qspot/bin/qspot

(attached, gzip compressed, qspot.strace.gz)

Thanks for this great app I use almost every day!
Rafa.

Thanks a lot for the trace will, I will check whether it helps to locate the problem. Did you also try to move away /home/user/MyDocs/.qspot directory, as it is used by the application for cache and library settings?

aenbacka 2011-11-27 08:38

Re: [ANNOUNCE] QSpot, a Qt-based Spotify client based on libspotify
 
Quote:

Originally Posted by solbrit (Post 1129379)
I have about 20 playlists, but they used to load just fine in a second or two... And yes, I start with an active internet connection.

Do you also have some content (subdirectories) in the application cache directory /home/user/MyDocs/.qspot? The playlists should load quite quickly, as they are always by default loaded from cache.

aenbacka 2011-11-27 09:56

Re: [ANNOUNCE] QSpot, a Qt-based Spotify client based on libspotify
 
A minor update is available from extras-devel (1.0.0-3), which contains some changes to session init (cache / settings directory created manually in case not exist, prior to session initialisation). Also, some logging has been added in case session init fails.

It could be good to first remove the old cache directory /home/user/MyDocs/.qspot and then try with the updated version.

ukki 2011-11-27 17:02

Re: [ANNOUNCE] QSpot, a Qt-based Spotify client based on libspotify
 
Quote:

Originally Posted by aenbacka (Post 1129469)
A minor update is available from extras-devel (1.0.0-3), which contains some changes to session init (cache / settings directory created manually in case not exist, prior to session initialisation). Also, some logging has been added in case session init fails.

It could be good to first remove the old cache directory /home/user/MyDocs/.qspot and then try with the updated version.

Now it creates the dir (stays empty), but still segfaults.

$ /opt/qspot/bin/qspot
Unsupported date format character at 1 (%-d.%-m.)
> set_stream 'QSpot'
Error code: 26
FATAL ERROR: Could not initiate session. Error reason: "Unable to open trace file"
Segmentation fault

aenbacka 2011-11-27 17:46

Re: [ANNOUNCE] QSpot, a Qt-based Spotify client based on libspotify
 
Quote:

Originally Posted by ukki (Post 1129605)
Now it creates the dir (stays empty), but still segfaults.

$ /opt/qspot/bin/qspot
Unsupported date format character at 1 (%-d.%-m.)
> set_stream 'QSpot'
Error code: 26
FATAL ERROR: Could not initiate session. Error reason: "Unable to open trace file"
Segmentation fault

Error code 26 is corresponding to "unable to open trace file". This is a library related error code, seems to be e.g., permission related. Do you have lot of free space on the EMMC (MyDocs)?

ukki 2011-11-27 19:38

Re: [ANNOUNCE] QSpot, a Qt-based Spotify client based on libspotify
 
Quote:

Originally Posted by aenbacka (Post 1129632)
Error code 26 is corresponding to "unable to open trace file". This is a library related error code, seems to be e.g., permission related. Do you have lot of free space on the EMMC (MyDocs)?

Yes, around 20G free.

aenbacka 2011-11-27 20:17

Re: [ANNOUNCE] QSpot, a Qt-based Spotify client based on libspotify
 
Quote:

Originally Posted by ukki (Post 1129686)
Yes, around 20G free.

Ok. I have just pushed another update (1.0.0-4) to extras-devel, which disables logging for the library (as the trace file error seems to be related to this). Hopefully it will have some impact.

ukki 2011-11-27 22:32

Re: [ANNOUNCE] QSpot, a Qt-based Spotify client based on libspotify
 
Nope, still the same error :(

aenbacka 2011-11-28 07:34

Re: [ANNOUNCE] QSpot, a Qt-based Spotify client based on libspotify
 
Quote:

Originally Posted by ukki (Post 1129768)
Nope, still the same error :(

Well the tracefile was still being created. A new version should now be available from extras-devel (1.0.0-5), this time the library tracefile creation should be explicitly disabled.

ukki 2011-11-28 09:05

Re: [ANNOUNCE] QSpot, a Qt-based Spotify client based on libspotify
 
Quote:

Originally Posted by aenbacka (Post 1129899)
Well the tracefile was still being created. A new version should now be available from extras-devel (1.0.0-5), this time the library tracefile creation should be explicitly disabled.

Now it starts and seems to work (segfaulted on exit once, but who cares). You sir are my new idol.


All times are GMT. The time now is 06:43.

vBulletin® Version 3.8.8