Locus Map - forum

Support => Troubles & Questions => Topic started by: kech61 on December 29, 2013, 11:13:34

Title: Locus Actions crashes APP
Post by: kech61 on December 29, 2013, 11:13:34
Hi Menion,

I tried to implement the Locus:Actions for downloading and installing OpenAndroMaps themes to locus.
Well, it crashes Locus (the actions from Freizeitkarte too).

Sometimes Locus says that an error occured, sometimes it crashes hard.
There is no errorlog in /locus/logs

Phone: XperiaActive Android 2.3

Script:

<?xml version="1.0" encoding="utf-8"?>
<locusActions>
<download>
<source>http://www.openandromaps.org/wp-content/files/themes/locus/andromaps_hc.zip</source>
<dest>/mapsVector/_themes/andromaps_hc.zip</dest>
<after>extract|deleteSource</after>
</download>
</locusActions>


URL: http://www.openandromaps.org/kartenlegende/andromaps_hc
(klick on Android-Phone symbol)

I tried various encodings, unix and dos EOLs, size tag, - no luck

Best regards,
Christian
www.openandromaps.org
Title: Re: Locus Actions crashes APP
Post by: Menion on December 31, 2013, 13:31:49
Hello Christian,
  thank you for a report. Problem in your file was BOM header at start of file (http://en.wikipedia.org/wiki/Byte_order_mark) . Android XML parser has some problems with it. Anyway it's fixed now and will work correctly in next version (available soon)
Title: Re: Locus Actions crashes APP
Post by: kech61 on December 31, 2013, 14:53:55
Hi Menion,

Thanks and a happy new year!
Title: Re: Locus Actions crashes APP
Post by: Menion on December 31, 2013, 14:55:12
sure, you're welcome. And happy to You and your projects also ;)
Title: Re: Locus Actions crashes APP
Post by: kech61 on September 27, 2014, 15:46:10
Hi Menion,

I gave the Locus-Actions a second try and it works in Virtual Tablet, Android 4.
On my XperiaActive, Android 2.3.## it still crashes the App.

Is there any hint you can give, any known problems with android versions, Apps or something like this?

Title: Re: Locus Actions crashes APP
Post by: Menion on September 27, 2014, 21:55:29
Hello kech,

I'm not aware of any issues. I think that best should be if you may give me some sample data I may test on own server. I'll fix any problem immediately when possible to simulate issue ..
Title: Re: Locus Actions crashes APP
Post by: tommi on September 27, 2014, 22:27:34
For me it works (tested with Firefox on N7 A4.4.2 and S5 A4.4.2),  Menion.

You can try it here:
http://www.openandromaps.org/kartenlegende/elevation-hike-theme
E.g.
locus-actions://http/www.openandromaps.org/wp-content/users/tobias/Elevate_Locus_L.xml
Title: Re: Locus Actions crashes APP
Post by: gynta on September 27, 2014, 23:52:00
Quote from: tommi on September 27, 2014, 22:27:34
For me it works (tested with Firefox on N7 A4.4.2 and S5 A4.4.2)
thx for link tommi
works fine with Dolphin on S2 A4.0.4 stock root

Would logfile from christian help here?
http://docs.locusmap.eu/doku.php?id=manual:faq:issue_reporting
http://docs.locusmap.eu/doku.php?id=manual:faq:how_to_create_debug_log
Title: Re: Locus Actions crashes APP
Post by: kech61 on September 28, 2014, 08:18:25
Hi,

I have sent the catlog to support.locus@asamm.com
Anyway, it seems to be that the scripting works well on other devices so I will add this method for download and install on Openandromaps in the next weeks.

@Menion: Does the scripting work on Android 4.4.2 Devices?
Title: Re: Locus Actions crashes APP
Post by: tommi on September 28, 2014, 10:13:25
Quote from: kech61 on September 28, 2014, 08:18:25
Hi,

I have sent the catlog to support.locus@asamm.com
Anyway, it seems to be that the scripting works well on other devices so I will add this method for download and install on Openandromaps in the next weeks.

@Menion: Does the scripting work on Android 4.4.2 Devices?
See my comment above, yes it does
Title: Re: Locus Actions crashes APP
Post by: Menion on September 28, 2014, 10:57:51
kech, thanks for a log. There seems to be some weird issue in work on background on older devices.

I'm not sure if my small change helps, anyway please try this new BETA version https://dl.dropboxusercontent.com/u/8015949/_temp/LocusFree_324_3.2.3.8_beta.txt and if there still be a problem, create a log for me once more, thanks.