maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [SFOS] [WIP] CuteSpotify for Sailfish (https://talk.maemo.org/showthread.php?t=91892)

junnuvi 2013-12-01 17:10

Re: [Work in Progress] CuteSpotify for Sailfish
 
Quality settings saving is now ok.

Maybe these errors have something to do with losting credentials. It will throw those to console when closing application:

Code:

16:49:50.225 E [playlist:1990] Unable to save file: playlist.bnk

16:49:50.226 E [social-mgr:830] Unable to save file: social_stream.bnk

16:49:50.227 E [user_cache:107] Unable to save file: user-cache.bnk

16:49:50.245 E [playlist:1990] Unable to save file: playlist.bnk

16:49:50.262 E [playlist:1990] Unable to save file: playlist.bnk

I was not able to repeat losting credentials anymore. But I think these save errors might be one reason why it updates playlists everytime when starting up application?

mikecomputing 2013-12-01 17:22

Re: [Work in Progress] CuteSpotify for Sailfish
 
Quote:

Originally Posted by Elleo (Post 1391248)
Yeah, I'm having to use the armv6 hard float beta version unfortunately, not certain what effects this may have on stability.


I think we should ask spotify for an armv7hl file. It should be no problem for them build an binary for armv7hl if not because of some stupid uknown decision.

junnuvi 2013-12-03 05:06

Re: [Work in Progress] CuteSpotify for Sailfish
 
I had to reset factory settings on my phone because Jolla store was not working anymore. And after that I of course had to re-intall Cute Spotify as well.

Now it will not save credentials at all.

Code:

04:59:58.708 E [playlist:1990] Unable to save file: playlist.bnk
04:59:58.709 E [social-mgr:830] Unable to save file: social_stream.bnk
04:59:58.709 E [user_cache:107] Unable to save file: user-cache.bnk
04:59:58.734 E [playlist:1990] Unable to save file: playlist.bnk
04:59:58.751 E [playlist:1990] Unable to save file: playlist.bnk

Where it should save those files? Maybe there is missing directory or something?

Elleo 2013-12-04 20:45

Re: [Work in Progress] CuteSpotify for Sailfish
 
Quote:

Originally Posted by junnuvi (Post 1392004)
Where it should save those files? Maybe there is missing directory or something?

It should be writing to ~/.local/share/CuteSpotify (the default Qt DataLocation).

junnuvi 2013-12-04 20:59

Re: [Work in Progress] CuteSpotify for Sailfish
 
I might found something..

When saving credentials fails it will write some files to "~/.local/share/CuteSpotify/CuteSpot)" or similar by random. Last time it saved files to "~/.local/share/CuteSpotify/CuteSpot?".

At least it writes index.dat to that directory and I presume it will also try to save those .bnk files mentioned before to same directory?

Probably it will also try to load config files from incorrect directory as well.

Here is list of files currently in ~/.local/share/CuteSpotify
Code:

./CuteSpotify
./CuteSpotify/Storage
./CuteSpotify/Storage/index.dat
./CuteSpotify/Storage/eb
./CuteSpotify/Storage/eb/eb7c990b1ee2684886e5c1d1147ea198e23bc91a.file
./CuteSpotify/Users
./CuteSpotify/Users/username-user
./CuteSpotify/Users/username-user/offline2
./CuteSpotify/Users/username-user/playlist-04d1f02608960bdd1fc30e19fe474702.bnk
./CuteSpotify/Users/username-user/playlist-649c63cda41ca68cecfa10b164fa8f02.bnk
./CuteSpotify/Users/username-user/playlist-d9a0a76559b9c72587bcacd1cad15b02.bnk
./CuteSpotify/Users/username-user/playlist.bnk
./CuteSpotify/Users/username-user/social_stream.bnk
./CuteSpotify/offline.bnk
./CuteSpotify/settings
./CuteSpotify/user-cache.bnk
./CuteSpot?
./CuteSpot?/index.dat

Edit: Quick and dirty workaround..

Code:

[nemo@localhost ~]$ ls -l .local/share/CuteSpotify/
total 16
lrwxrwxrwx 1 nemo nemo        11 2013-12-04 23:18 CuteSpot! -> CuteSpotify
lrwxrwxrwx 1 nemo nemo        11 2013-12-04 23:17 CuteSpot? -> CuteSpotify
lrwxrwxrwx 1 nemo nemo        11 2013-12-04 23:17 CuteSpot) -> CuteSpotify
drwxr-xr-x 1 nemo privileged 130 2013-12-05 17:17 CuteSpotify
lrwxrwxrwx 1 nemo nemo        11 2013-12-04 23:15 CuteSpot^Q -> CuteSpotify

With this temporary "fix" most of CureSpotify startups are ok (less than 10% of startups fails) and it will automatically login.

Elleo 2013-12-06 22:00

Re: [Work in Progress] CuteSpotify for Sailfish
 
Yeah, I suspect that the string being passed to libspotify is getting corrupted somewhere; unfortunately debugging things involving libspotify is a bit tricky due to the lack of any debugging symbols/source on the libspotify side of things.

mikecomputing 2013-12-06 22:15

Re: [Work in Progress] CuteSpotify for Sailfish
 
hmm to long path for libsportify to handle maybe? :confused: may sound stupid but...

Anyway, If you think its a bug in libspotify please report it to spotify.

junnuvi 2013-12-07 05:12

Re: [Work in Progress] CuteSpotify for Sailfish
 
Actually i was thinking same but it sounded so stupid that i didn't even say that :) back to the ms-dos 8+3 characters limit?

It seems to cut after 8 characters so can you Elleo cut directory name to CuteSpot just for testing?

Elleo 2013-12-07 16:12

Re: [Work in Progress] CuteSpotify for Sailfish
 
Quote:

Originally Posted by mikecomputing (Post 1393248)
hmm to long path for libsportify to handle maybe? :confused: may sound stupid but...

Anyway, If you think its a bug in libspotify please report it to spotify.

We use a much longer pathname on Ubuntu Touch (~/.local/share/com.mikeasoft.cutespotify/), so I don't think it's a length limitation, I think a bit of the memory containing the string is being overwritten somewhere. When I've got a bit more time I'll have a poke and see if it can be replicated in the x86 version.

parasemic 2013-12-15 18:23

Re: [Work in Progress] CuteSpotify for Sailfish
 
Volumelevel is too high for my headphones :(

Good work so far anyway!


All times are GMT. The time now is 22:14.

vBulletin® Version 3.8.8