Author Topic: Locus Actions crashes APP  (Read 2535 times)

Offline kech61

  • Apprentice of Locus
  • **
  • Posts: 169
  • Thanked: 3 times
    • View Profile
Locus Actions crashes APP
« 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:
Code: [Select]
<?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
Best regards/ Grüsse
Christian
www.openandromaps.org
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11486
  • Thanked: 329 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Locus Actions crashes APP
« Reply #1 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)
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline kech61

  • Apprentice of Locus
  • **
  • Posts: 169
  • Thanked: 3 times
    • View Profile
Re: Locus Actions crashes APP
« Reply #2 on: December 31, 2013, 14:53:55 »
Hi Menion,

Thanks and a happy new year!
Best regards/ Grüsse
Christian
www.openandromaps.org
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11486
  • Thanked: 329 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Locus Actions crashes APP
« Reply #3 on: December 31, 2013, 14:55:12 »
sure, you're welcome. And happy to You and your projects also ;)
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline kech61

  • Apprentice of Locus
  • **
  • Posts: 169
  • Thanked: 3 times
    • View Profile
Re: Locus Actions crashes APP
« Reply #4 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?

« Last Edit: September 27, 2014, 23:53:30 by gynta »
Best regards/ Grüsse
Christian
www.openandromaps.org
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11486
  • Thanked: 329 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Locus Actions crashes APP
« Reply #5 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 ..
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline tommi

  • Global Moderator
  • Professor of Locus
  • *****
  • Posts: 1228
  • Thanked: 2 times
  • Devices: Samsung S7 + S5 + S3 + Nexus7 flo
    • View Profile
Re: Locus Actions crashes APP
« Reply #6 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
 

Offline gynta

  • Global Moderator
  • Professor of Locus
  • *****
  • Posts: 3553
  • Thanked: 40 times
    • View Profile
    • Locus live tracking service
  • Device: SM-A530F(A8) Android 8.0.0
Re: Locus Actions crashes APP
« Reply #7 on: September 27, 2014, 23:52:00 »
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

Offline kech61

  • Apprentice of Locus
  • **
  • Posts: 169
  • Thanked: 3 times
    • View Profile
Re: Locus Actions crashes APP
« Reply #8 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?
Best regards/ Grüsse
Christian
www.openandromaps.org
 

Offline tommi

  • Global Moderator
  • Professor of Locus
  • *****
  • Posts: 1228
  • Thanked: 2 times
  • Devices: Samsung S7 + S5 + S3 + Nexus7 flo
    • View Profile
Re: Locus Actions crashes APP
« Reply #9 on: September 28, 2014, 10:13: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
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11486
  • Thanked: 329 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Locus Actions crashes APP
« Reply #10 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.
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!