Locus Map - forum

Support => Troubles & Questions => Topic started by: tommi on August 03, 2013, 14:22:21

Title: Dashboards not working
Post by: tommi on August 03, 2013, 14:22:21
Hi,
since some month the dashbaords don't work anymore for me. I know it is working for others (like gynta) but for me it worked in the last months only in Testversions but not in official Proversions, same as now in 2.12.4.
The story started here:
viewtopic.php?f=25&t=3112&p=21452&hilit=dashboard#p21433 (http://forum.locusmap.eu/viewtopic.php?f=25&t=3112&p=21452&hilit=dashboard#p21433)

We already found out:
- It is not related to my dashboard file because
-- it's working for Menion
-- and it's working in Testversion
-- none of the official dashboards is working
- I also provided logcat, nothing interesting in it.
What did I do afterwards to get rid of the problem:
- Deleted Locus Pro App data
- Deleted Locus folder
both in one go but still the absolut clean LocusPro (it sees no maps, none of my settings, just comes up with the newbie questions and a map of Czech) doesn't show any value one of the official dashboards. To be sure, I replaced one of the values with current time but no display of time.

I didn't complain the last months because most of the time I  was using the Test versions to help testing but I want to use it finally again in the Pro version.

Can I ask for some support to get this running again?
It seems to be something very systematic (I have no clue how dashboards work internally but for me it looks that the dashboard has got simply no connection to the rest of Locus).
Thanks,
Tommi
Title: Re: Dashboards not working
Post by: gynta on August 03, 2013, 15:04:21
Please attach your dashboard.
Some question  - sorry if there answeres in the (other) thread. (i'm in rush)
Your device SGS3 4.1.2 root ? right?
Any other devices available?
ALL dashboards has troubles?
New created dashboards are also not working?
more soon...
Title: Re: Dashboards not working
Post by: tommi on August 03, 2013, 15:13:41
Quote from: "gynta"Please attach your dashboard.
Some question  - sorry if there answeres in the (other) thread. (i'm in rush)
Then take your time.

Sorry, Gynta,
in my post I already wrote answers to almost all of your questions and some of your questions make no sense after reading my post.
And the results I wrote I verified immediately before writing the post.
And yes, as stated in my signature the phone is SGS3 4.1.2 root with Samsung stock rom and Boeffla Kernel but this doesn't seems to be important as it was working with all the latest Test versions but not with the Pro versions.
Title: Re: Dashboards not working
Post by: Menion on August 03, 2013, 17:24:27
seems I'll have to create some version for your with some debug info.

Say me, you tap with long-click on "Dashboard view", choose top "Choose dashboard", right? Now you get list of dashboards and you select for example "Joeloc's dream" and what happen then?
Title: Re: Dashboards not working
Post by: tommi on August 03, 2013, 19:09:02
Quote from: "menion"seems I'll have to create some version for your with some debug info.

Say me, you tap with long-click on "Dashboard view", choose top "Choose dashboard", right? Now you get list of dashboards and you select for example "Joeloc's dream" and what happen then?
The dashboard is opened completely normal, just all the values are missing. Not even the time of day is displayed.
Just to repeat me, it is working with the Free Test Versions (actually was because currently Locus Free is from Playstore).
See the link to screenshot below.

from a comment Wed Jun 12, 2013 4:45 pm
Strange, dashboards don't work anymore:
https://www.dropbox.com/sc/walh5tqz6hnq518/Gav1tKxaPB (https://www.dropbox.com/sc/walh5tqz6hnq518/Gav1tKxaPB)
This is only one example picture, also none of the other default dashboards is working anymore.
Title: Re: Dashboards not working
Post by: Menion on August 03, 2013, 19:13:03
hmm understand. Interesting. Dashboard is created by little bit different system. It works in exactly same way as an add-ons, so it's something like add-on inside Locus. So in this case, there should be a problem with receiving info over Locus API. Is Geocaching4Locus live map works for you? (if you tried)
Title: Re: Dashboards not working
Post by: tommi on August 03, 2013, 19:22:21
Quote from: "menion"hmm understand. Interesting. Dashboard is created by little bit different system. It works in exactly same way as an add-ons, so it's something like add-on inside Locus. So in this case, there should be a problem with receiving info over Locus API. Is Geocaching4Locus live map works for you? (if you tried)
ahm, sorry I'm no cacher at all.
If you give me or guide me to some instructions I'll gladly test.
Title: Re: Dashboards not working
Post by: Menion on August 03, 2013, 20:16:13
oki, let's solve this

please enable debug messages in config file (I hope it will works now as expected. There is a new system since 2.13.0 that is not yet perfectly tested)

install this test version https://dl.dropboxusercontent.com/u/801 ... 14.0.1.apk (https://dl.dropboxusercontent.com/u/8015949/Locus%20%28dev%29/test_versions/2.14.0.1.apk) and try to enable a dashboard, wait a while and then close Locus.
Title: Re: Dashboards not working
Post by: tommi on August 03, 2013, 20:56:25
Quote from: "menion"oki, let's solve this

please enable debug messages in config file (I hope it will works now as expected. There is a new system since 2.13.0 that is not yet perfectly tested)

install this test version https://dl.dropboxusercontent.com/u/801 ... 14.0.1.apk (https://dl.dropboxusercontent.com/u/8015949/Locus%20%28dev%29/test_versions/2.14.0.1.apk) and try to enable a dashboard, wait a while and then close Locus.
The dashboard worked in this special version (as usual as it's Test version). Sent log to you a minute ago.
Title: Re: Dashboards not working
Post by: Menion on August 03, 2013, 21:05:55
it again work? ah damn ... in this case it do not help much. So generally it works for you on Locus Free (test version) and do not work on Pro version? May you try to un-install this test version and leave on your device just the Locus Pro from market?
Title: Re: Dashboards not working
Post by: tommi on August 03, 2013, 21:27:11
Quote from: "menion"it again work? ah damn ... in this case it do not help much. So generally it works for you on Locus Free (test version) and do not work on Pro version? May you try to un-install this test version and leave on your device just the Locus Pro from market?
Uninstalled test version and made log again (dashboardpro.txt).
Whereas in the first log I saw the name of my dashboard file this isn't the case in the dashboardpro.txt (start of Locus was at 21:17). Strange (at least for me) that the dashboard was displayed but just without any values.
Title: Re: Dashboards not working
Post by: Menion on August 03, 2013, 21:43:43
thanks for logs ...

firstly, you have very very much xml files with online map definitions in your locus/mapsOnline/custom directory. This slow down start of Locus for almost 2 seconds for you!

anyway first log is quite useless, because .. "It works", so I don't see any problems there (except long start due to online maps configuration). In second, there are absolutely no logs, because in Pro version were not included any debug messages for a dashboard.

Hmm weird and complicated task you prepared for me .. I'll think about it and prepare something during tomorrow
Title: Re: Dashboards not working
Post by: tommi on August 03, 2013, 21:54:30
Quote from: "menion"thanks for logs ...

firstly, you have very very much xml files with online map definitions in your locus/mapsOnline/custom directory. This slow down start of Locus for almost 2 seconds for you!

anyway first log is quite useless, because .. "It works", so I don't see any problems there (except long start due to online maps configuration). In second, there are absolutely no logs, because in Pro version were not included any debug messages for a dashboard.

Hmm weird and complicated task you prepared for me .. I'll think about it and prepare something during tomorrow
Thank you for your excellent support!
Title: Re: Dashboards not working
Post by: Menion on August 03, 2013, 22:05:18
Sure no problem. Just to improve my previous post. Problem is not a number of files. But your files contain very much diplicite items as you may see in log. This mean that locus parse xml file and result throw away because map with this ID already exists ... eh, hope you understand what I wanted to say :)

Sent from my GT-N7100 using Tapatalk 2
Title: Re: Dashboards not working
Post by: tommi on August 03, 2013, 22:17:05
Quote from: "menion"Sure no problem. Just to improve my previous post. Problem is not a number of files. But your files contain very much diplicite items as you may see in log. This mean that locus parse xml file and result throw away because map with this ID already exists ... eh, hope you understand what I wanted to say :)
Ah, you mean the duplicate xml files, right? Ok, removed the redundant files. Thanks, start is faster now.
Title: Re: Dashboards not working
Post by: Menion on August 04, 2013, 09:11:21
hmm don't know why this works just on testing Free and not on Pro. Anyway during a morning I improved system for refreshing dashboards a little bit. Hope it will not cause problems on other places ... we'll see.

Test please this version - it's regular Pro version that I usually publish! except here are some debug messages.

https://dl.dropboxusercontent.com/u/801 ... 14.0.1.apk (https://dl.dropboxusercontent.com/u/8015949/Locus%20%28dev%29/test_versions/2.14.0.1.apk)

Btw. logs from you comes from enabled debugging in locus or any other program?
Title: Re: Dashboards not working
Post by: tommi on August 04, 2013, 10:22:31
Quote from: "menion"Test please this version - it's regular Pro version that I usually publish! except here are some debug messages.

https://dl.dropboxusercontent.com/u/801 ... 14.0.1.apk (https://dl.dropboxusercontent.com/u/8015949/Locus%20%28dev%29/test_versions/2.14.0.1.apk)

Btw. logs from you comes from enabled debugging in locus or any other program?
Dashboard didn't work as always in Pro version. Still dashboard displayed but no value e.g. for time of day.
Sent you log (all logs were with dev_record_debug_logs=1 in config.cfg. Last one is taken from Locus/Logs folder, previous logs were taken with logcat. Does this make a difference regarding information in it? Btw. manual page for config.cfg is not up-to-date.)
Title: Re: Dashboards not working
Post by: Menion on August 06, 2013, 15:21:53
so tommi ... I have no idea :)

seems that in your Pro version, system (or any mystery alien) do not allow to start one simple service that provide data for this dashboard. Biggest mystery for me why it works on one version and not on second. Don't you have any application that serve as some protection. That may block parts of other applications etc.? Because you're really really only one with problem..

I just published new test version where you should at least test pressure sensor. Dashboard will be probably again working so I may also create a Pro version to get some more logs anyway I'm worried that there will be currently no solution ... weird
Title: Re: Dashboards not working
Post by: tommi on August 06, 2013, 20:22:40
Quote from: "menion"so tommi ... I have no idea :)

seems that in your Pro version, system (or any mystery alien) do not allow to start one simple service that provide data for this dashboard. Biggest mystery for me why it works on one version and not on second. Don't you have any application that serve as some protection. That may block parts of other applications etc.? Because you're really really only one with problem..
I loaded down the new testversion and the dashboard did not work on that, too!!! (See below what I found out afterwards)
Then I got a bit angry and so I set up my phone newly because I had the impression that this is a unique problem on my phone and it's system.
And ... the mystery is gone. Dashboard is working again on my Pro Version as well as in the Testversion!

What was the reason why it made me believe even not to work on the Testversion today?
After having setup the system newly I tested Dashboard startup several times and finally found out that Dashboard is not working if Locus comes up with Dashboard switched on (due to being switched on when leaving Locus). If I disable and enable Dashboard again it works. Seems that from previous tests with last Testversion Dashboard was still switched on.

I think this is something you can fix.
And nevertheless you could add debug output in Locus (for all versions) to check if a service was successfully installed and up (if checking that is possible). Locus uses several services, doesn't it?

Sorry for taking so much of your valuable time but I simply had no clue what could have gone  bad on my phone as it was working on Testversions but not on official Proversions.
Title: Re: Dashboards not working
Post by: Menion on August 06, 2013, 21:55:58
hey, you never before tried to disable/enable dashboard again?

Anyway this behaviour (dashboard is not refreshed if started also with locus) is bug from this new version. I see it now, that I made small issue in order so dashboard is not now registered for receiving data because service is not yet running. Anyway in some logs from your previous testing, there were clear, that service itself is not running at all. Weird ...

Anyway I'm glad you found some mystery way to make this work. I'm going to fix this new small issue. And you're welcome of course ;)
Title: Re: Dashboards not working
Post by: tommi on August 07, 2013, 06:50:44
Quote from: "menion"hey, you never before tried to disable/enable dashboard again?
No, no, this was only the problem yesterday.
At least in most (if not in all) of my tests over the last weeks and months the dashboard was disabled when I started Locus.
This was accidentally enabled on startup only yesterday.