Author Topic: [APP] - version 4.5.+ ( 1. 12. 2021+ )  (Read 10698 times)

Offline 0709

  • Apprentice of Locus
  • **
  • Posts: 112
  • Thanked: 49 times
    • View Profile
    • Locus track navigation
  • Device: THL4000 CM12.1 (A5.1.1) MI A2 Lite (A9)
Re: [APP] - version 4.5.+ ( 1. 12. 2021+ )
« Reply #180 on: December 31, 2021, 09:47:43 »
Tiramisu_3_0_2.zip into folder Vector maps > themes >
Guten appetit.
« Last Edit: December 31, 2021, 20:33:09 by 0709 »
Locus Pro 3.59.0
 

Offline Menion

  • Locus team
  • Professor of Locus
  • *****
  • Posts: 12789
  • Thanked: 930 times
  • Country: cz
    • View Profile
    • https://www.asamm.com
  • Device: Pixel 5, A12
Re: [APP] - version 4.5.+ ( 1. 12. 2021+ )
« Reply #181 on: December 31, 2021, 21:51:50 »
@balloni55
your zip file contains some non-UTF8 characters and because of this, the app is unable to extract it (and crash). I've fixed it so the next version only notifies about the incorrect theme. Check the modified version from Willy, it works correctly.
« Last Edit: December 31, 2021, 21:58:00 by Menion »
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 final download
 
The following users thanked this post: balloni55

Offline balloni55

  • Global Moderator
  • Professor of Locus
  • *****
  • Posts: 3043
  • Thanked: 181 times
  • Country: de
    • View Profile
  • Device: Samsung XCover 4s Android 11
Re: [APP] - version 4.5.+ ( 1. 12. 2021+ )
« Reply #182 on: January 01, 2022, 14:15:00 »
Tiramisu_3_0_2.zip into folder Vector maps > themes >
Guten appetit.
first of all  a happy new year

thanks willy, i didn't realize you had provided a modified zip
now there are no problems with the this theme
Locus Map Classic 3.60.0 AFA
Locus Map 4.9.0 Gold AFA
LMP User ID 7ee4dad32
LM4 User ID e06d572d4
 

Offline tapio

  • Expert
  • Master of Locus
  • ****
  • Posts: 861
  • Thanked: 176 times
    • View Profile
Re: [APP] - version 4.5.+ ( 1. 12. 2021+ )
« Reply #183 on: January 02, 2022, 13:36:00 »
BTW, I always wondered, are there other reason than "historical" as for the somewhat redundant path? 😄

- menion.android.locus - Good.
- /files -? What else, a bit unnecessary subfolder?
/Locus - Again? Yes? It's not Osmand, I know!
LM4 USER ID: 1AACAFF2A2
 

Offline tapio

  • Expert
  • Master of Locus
  • ****
  • Posts: 861
  • Thanked: 176 times
    • View Profile
Re: [APP] - version 4.5.+ ( 1. 12. 2021+ )
« Reply #184 on: January 02, 2022, 13:41:24 »
In the About screen, Locus should not portray the external folder as some kind of error, in red... because it is a valid setup.
LM4 USER ID: 1AACAFF2A2
 

Offline Georg D

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: [APP] - version 4.5.+ ( 1. 12. 2021+ )
« Reply #185 on: January 02, 2022, 16:39:01 »
In ZIP themes the lnk file simply has to consist of the name of the legend PDF file (assuming it is at the same top level as the XMLs).
To my experience, in Locus 3.56.5 the file OutdoorV4 2021-12-08.zip\Outdoor\Outdoor.lnk needs to contain Outdoor/Legende_Outdoor-Desert.pdf despite being a sibling of OutdoorV4 2021-12-08.zip\Outdoor\Outdoor.xml – so .xml and .lnk and .pdf are on same hierarchy level but directory within ZIP must be provided in .lnk file.
« Last Edit: January 02, 2022, 17:15:48 by Georg D »
 

Offline michaelbechtold

  • Expert
  • Professor of Locus
  • *****
  • Posts: 1013
  • Thanked: 126 times
    • View Profile
Re: [APP] - version 4.5.+ ( 1. 12. 2021+ )
« Reply #186 on: January 02, 2022, 16:40:21 »
Menion already plans to rename those items.
 

In the About screen, Locus should not portray the external folder as some kind of error, in red... because it is a valid setup.
 

Offline Georg D

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: [APP] - version 4.5.+ ( 1. 12. 2021+ )
« Reply #187 on: January 02, 2022, 17:07:09 »
@balloni55
your zip file contains some non-UTF8 characters and because of this, the app is unable to extract it (and crash).
I downloaded Tiramisu_3_0_2.zip from https://tartamillo.wordpress.com/tiramisu/ and it crashed Locus as expected. After renaming files containing Tiramisù to Tiramisu,  the theme worked and looked correct. So the crash seems not to be [only?] caused by files containing non-UTF8 characters, but already much simpler by filenamens containing UTF8-characters with certain (higher?) codepoints (here hex 00F9 or decimal 249). For an international application developed by a Czech team where accents are common, this is unexpected.

Would be great if that information was added in https://docs.locusmap.eu/doku.php?id=manual:advanced:map_tools:theming or https://docs.locusmap.eu/doku.php?id=manual:user_guide:maps_locusmaps#map_themes
alongside information about ZIP support as posted in https://help.locusmap.eu/topic/shortcuts-to-legends#comment-84305 and https://forum.locusmap.eu/index.php?topic=7632.msg66444#msg66444. Moreover, https://docs.locusmap.eu/doku.php?id=manual:user_guide:maps_locusmaps:legend might be completely deleted or extended by a note how to display the legend within the app.

Related is https://help.locusmap.eu/topic/26779-crash-when-switching-theme-probably-since-support-for-zipped-themes

Cheers, Georg
« Last Edit: January 02, 2022, 17:16:36 by Georg D »
 

Offline Menion

  • Locus team
  • Professor of Locus
  • *****
  • Posts: 12789
  • Thanked: 930 times
  • Country: cz
    • View Profile
    • https://www.asamm.com
  • Device: Pixel 5, A12
Re: [APP] - version 4.5.+ ( 1. 12. 2021+ )
« Reply #188 on: January 03, 2022, 10:09:17 »
@tapio
nono, there aren't any reasons. If I ever knew, these paths will be visible and used, I should of course remove "Locus" from the path and most probably also "menion" from the app name  :D

@Georg D
hmm, this is most probably a good point. I'll try to fix the relative path in the zip to keep it compatible with the un-zipped version.

About support for utf-8: which app was used to pack this zip? I've found one info on dev forum:

Code: [Select]
The problem arises because by default 7-Zip encodes the names of the files within the zip file using Cp437, as noted in this comment from 7-Zip:

Default encoding is OEM (DOS) encoding. It's for compatibility with old zip software.

That's why the unzip works when using Charset.forName("Cp437") instead of Charset.forName("UTF-8").

Anyway, I've tried to pack them as UTF-8, and no difference, hmm.

I'll post your info about the manual to Michal, he look at it. There is a lot of manual pages to change and it takes some time ...
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 final download
 

Offline michaelbechtold

  • Expert
  • Professor of Locus
  • *****
  • Posts: 1013
  • Thanked: 126 times
    • View Profile
Re: [APP] - version 4.5.+ ( 1. 12. 2021+ )
« Reply #189 on: January 04, 2022, 13:59:13 »
Hello Menion,
when traversing /Android/media, Locus includes the private sub-folders of other apps - like Whatsapp. Then all hell brakes lose - 1000s of files are tried - which are not maps in any shape or form :-) The expanded themes horror, but on steroids.
I'd advise to exclude all sub-folders like com.* Apps like c:geo or Cruiser can use sensible names for sub-folders, not the technical names. So Locus catches the useful stuff, not the useless.
Alternatively you could create a config file that initially includes Locus sub-folders of /Android/media. Users who use more than one app should also be able to edit and add some lines with file paths without wheeping ...
Cheers
Michael
 

Offline Menion

  • Locus team
  • Professor of Locus
  • *****
  • Posts: 12789
  • Thanked: 930 times
  • Country: cz
    • View Profile
    • https://www.asamm.com
  • Device: Pixel 5, A12
Re: [APP] - version 4.5.+ ( 1. 12. 2021+ )
« Reply #190 on: January 04, 2022, 14:14:44 »
Are you sure? App should only iterate over own data, so only over "x/Android/media/menion.android.locus/maps" and "x/Android/media/menion.android.locus/mapsVector". Nothing more! Do you see in the log that the app test all files from other directories?
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 final download
 

Offline michaelbechtold

  • Expert
  • Professor of Locus
  • *****
  • Posts: 1013
  • Thanked: 126 times
    • View Profile
Re: [APP] - version 4.5.+ ( 1. 12. 2021+ )
« Reply #191 on: January 04, 2022, 14:22:56 »
The log file is impressive, nearly 1 MB, just for the start ... I'll send it via classical e-Mail.
Besides 1000s of lines for Whatsapp you'll find a number of other java errors I cannot understand.
TXs and cheers
Michael
 

Offline michaelbechtold

  • Expert
  • Professor of Locus
  • *****
  • Posts: 1013
  • Thanked: 126 times
    • View Profile
Re: [APP] - version 4.5.+ ( 1. 12. 2021+ )
« Reply #192 on: January 04, 2022, 14:30:01 »
Mail sent.
 

Offline Menion

  • Locus team
  • Professor of Locus
  • *****
  • Posts: 12789
  • Thanked: 930 times
  • Country: cz
    • View Profile
    • https://www.asamm.com
  • Device: Pixel 5, A12
Re: [APP] - version 4.5.+ ( 1. 12. 2021+ )
« Reply #193 on: January 04, 2022, 14:55:25 »
Sorry Michael, but this can't be an app problem. Please check a) your custom setup for "mapsVector" and "maps" directory and most probably setup for "External maps" defined in the offline tab of the map manager.
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 final download
 

Offline michaelbechtold

  • Expert
  • Professor of Locus
  • *****
  • Posts: 1013
  • Thanked: 126 times
    • View Profile
Re: [APP] - version 4.5.+ ( 1. 12. 2021+ )
« Reply #194 on: January 04, 2022, 15:24:28 »
I will check that later, when I have more time. LM4 start takes ages, and often even crashes with my current setup. Your suspicion sounds very logical ...

I also assume I have put /Android/media path into the external map section some days ago (I do not restart Locus frequently). Why? Because of interoperability testing. Because interoperability must not be dependent on app specific sub-folders of /Android/media.