Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - TrulloF

#1
I'm using pyhgtmap too, but it has a nasty bug in version 4.0, where it silently truncates node/way start IDs because it uses a 32-bit integer internally. This causes corrupted maps with elements rendered as straight parallel lines.
Your script uses start IDs of 20 billion and 25 billion to avoid conflicts with real OSM data IDs. The 32-bit overflow wraps these into the 2-3 billion range, where they collide with real OpenStreetMap node IDs, causing map corruption.
Here's how to fix it:
Locate the file (adjust Python path as needed):
C:\PythonXXX\Lib\site-packages\pyhgtmap\hgt\processor.py
Find these two lines (around line 47):
multiprocessing.Value("L", node_start_id),
...
multiprocessing.Value("L", way_start_id),
Change "L" to "Q" in both lines:
multiprocessing.Value("Q", node_start_id),
...
multiprocessing.Value("Q", way_start_id),

Explanation:
"L" is an unsigned 32-bit integer (max 4.2 billion). "Q" is an unsigned 64-bit integer that can hold these values correctly.
#2
Hi Bernard,
thank you for your efforts. You got me started with mapsforge map rendering and your old script was the base for my own pipeline I'm using today. Respect and a big THANK YOU!
TrulloF
#3
Developers / Re: Custom router over API
May 01, 2026, 12:24:00
Sent you a PM. Thank you for looking into it.
#4
Developers / Re: Custom router over API
April 26, 2026, 10:27:51
The problem with external routers crashing is only half gone. I have to open the settings of the addon, before trying any routing activities. If not the app crashes while initializing/enumerating the present routing services. I'll send a better description and a log, if I find the time. I can live with the current situation. It's just an additional step before I can start routing. So take your time.
#5
Hier meine 2 Cent. Ich nutze Locus nun seit mehr als 10 Jahren. In der Zwischenzeit habe ich eine Menge anderer Apps ausprobiert inklusive der bereits hier im Thread genannten.
Ja, Locus hatte schon immer Fehler, die mich teilweise an den Rand eines Nervenzusammenbruchs gebracht haben, aber ich bin immer wieder zurückgekommen.
Keine Navigations-App lässt mich so viel personalisieren und anpassen, wie Locus. Punkt.
#6
Developers / Re: Custom router over API
April 18, 2026, 19:21:10
Problem is fixed with the latest build. Great work. Now I can route with my TomTom-addon in Locus and use traffic information to avoid traffic jams. That was the only thing missing for me. Thanks to Claude Code... 😊
By the way, if you enabled Google location services in GPS & Sensor settings, but have only MicroG installed, GPS position will be found but the GPS icon stays yellow and position doesn't follow during routing, even though the signal is strong. Only disabling this option fixed it for me.
#7
Developers / Re: Custom router over API
April 16, 2026, 08:34:19
Thanks for looking into it. BRouter, if installed as separate app is also affected by this bug. It crashes Locus, if you try to plan a route or try to navigate from the point menu. Because BRouter is now integrated into Locus Map, probably nobody noticed.

Quote from: Menion on April 15, 2026, 14:47:19Hi @TrulloF
Nice to see someone playing with the API! To be honest, this API functionality is not used by any addon, so it is, as you see, not well tested.

Anyway, in this case > issue found and should be fixed in the next (Friday probably) version.


#8
Developers / Custom router over API
April 13, 2026, 08:49:49
[Bug] InvalidObjectException crash when tapping navigation tile with external routing providers - ACTION_COMPUTE_TRACK_PROVIDER service not yet bound

Hi Menion,

I'm developing a third-party routing addon with the help of Claude Code that registers as an ACTION_COMPUTE_TRACK_PROVIDER service. Routing and rerouting work correctly, but Locus crashes whenever the navigation tile is tapped during active navigation (or when the navigation menu is opened, e.g. from the point menu, without having gone through Navigation → Routing first).

Crash:

java.io.InvalidObjectException: Service does not return valid 'trackTypes'

Root cause:
The navigation tile/menu ViewModel enumerates all registered ACTION_COMPUTE_TRACK_PROVIDER services and calls getTrackTypes() on each one synchronously, before onServiceConnected() has fired for services that haven't been bound in the current session. Internally, the API proxy guards every call with an isConnected flag that is only set inside onServiceConnected(). If the service wasn't previously bound, isConnected is still false at call time → InvalidObjectException.

100% reproducible steps:

Install any app (e.g. BRouter) that exports a service with action="locus.api.android.ACTION_COMPUTE_TRACK_PROVIDER".
Start a navigation session without going through Navigation → Routing (so the service was never bound in this session).
Tap the navigation tile during active navigation.
Crash.
Suggested fix (Locus side):

Wrap the getTrackTypes() call in a try/catch and treat the service as temporarily unavailable rather than crashing:

try {
    int[] types = service.getTrackTypes();
    // use types
} catch (InvalidObjectException | RemoteException e) {
    Log.w(TAG, "Routing service not yet connected, skipping: " + e.getMessage());
}

Alternatively, collect track types asynchronously inside onServiceConnected() and update the UI once binding completes, rather than calling eagerly before the connection is established.

Thanks for looking into this!
#9
I have a problem with themes using transparency. If areas are drawn with transparency (doesn't matter if using transparency with area or line colors or svg graphics, whith transpareny) I get visible tile borders, which is pretty annoying and ugly to my eyes. Happens with internal theme too (look at forest areas), but mainly with smaller maps. Germany North isn't affected by this, but for instance Brandenburg or other counties. Seems to me like a rendering bug. If I stop using transparency in my theme the tile borders are gone.
#10
Danke, aber das ist leider nicht das vollständige Theme, sondern nur die XML für Vectormaps ab Version 4. Die reicht leider nicht aus, um das Theme a
in Locus zu verwenden. Trotzdem Danke für den Hinweis.
#11
Quote from: michaelbechtold on November 29, 2025, 09:49:13
Quote from: Andrew Heard on November 29, 2025, 05:57:40
Quote from: freischneider on November 28, 2025, 23:12:46New beta, release notes aren't displayed at the top. Then I went to the menu under App Info. As soon as I click on Release Notes, the app crashes.
confirmed
same
here too
#12
Quote from: balloni55 on October 31, 2025, 20:58:31When trying to open a poi > fc
Here too. Reverted back to previous version. It's good, that you removed it from Google drive. It's not usable at all.
#13
New version crashes immediately when tapping a search result in LoSearch (Xperia XZ1 Compact, Android 12).
#14
Hallo zusammen,
hat jemand noch das alte Waymark Theme im Einsatz? Falls ja, würde ich mich sehr freuen, wenn Ihr das hier posten könntet. Danke im Voraus für die Mühe. 🙏
#15
Quote from: freischneider on October 15, 2025, 06:13:03It happens to me regularly.
Same here. Routing data gets updated without any problems for me and there's a message every time it's done.