Modify

Opened 6 months ago

Closed 5 months ago

#24013 closed defect (fixed)

Error when routing between two nearby locations

Reported by: eneerhut Owned by: taylor.smock
Priority: normal Milestone:
Component: Plugin Version:
Keywords: template_report routing2 Cc:

Description (last modified by taylor.smock)

Revision:19253
Build-Date:2024-10-31 17:43:38

Identification: JOSM/1.5 (19253 en) Mac OS X 15.1
OS Build number: macOS 15.1 (24B83)
Memory Usage: 1544 MB / 12288 MB (630 MB allocated, but free)
Java version: 21.0.5+11-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.apple.laf.AquaLookAndFeel
Screen: Display 1 1800x1169x32bpp@120Hz (scaling 2.00×2.00) Display 2 3360x1890x32bpp@60Hz (scaling 2.00×2.00)
Maximum Screen Size: 3360×1890
Best cursor sizes: 16×16→16×16, 32×32→32×32
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: en_US
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djpackage.app-version=19253, -XX:MaxRAMPercentage=75.0, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.apple.eawt=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, -Djpackage.app-path=/Applications/JOSM.app/Contents/MacOS/JOSM]
Dataset consistency test: No problems found

Plugins:
+ MapRoulette (40)
+ Mapillary (1778)
+ apache-commons (36349)
+ flatlaf (36349)
+ josm_magic_wand (2.0.3)
+ mapwithai (837)
+ pbf (36348)
+ pmtiles (36219)
+ routing2 (10)
+ sidewalks (71)
+ utilsplugin2 (36350)

Map paint styles:
+ https://josm.openstreetmap.de/josmfile?page=Styles/MapWithAI&zip=1

Last errors/warnings:
- 00737.349 E:   Reason: tried: '/libprotobuf-lite.28.3.0.dylib' (no such file), '/Applications/JOSM.app/Contents/app/libprotobuf-lite.28.3.0.dylib' (no such file), '/opt/homebrew/opt/protobuf/lib/libprotobuf-lite.28.3.0.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/protobuf/lib/libprotobuf-lite.28.3.0.dylib' (no such file), '/opt/homebrew/opt/protobuf/lib/libprotobuf-lite.28.3.0.dylib' (no such file)
- 00737.836 E: 2024-11-15 15:31:49,920 CRITICAL: Couldn't find usable tiles in <josm.userdata>/routing2/valhalla_tiles
- 00738.503 E: dyld[88340]: Library not loaded: /opt/homebrew/opt/protobuf/lib/libprotobuf-lite.28.3.0.dylib
- 00738.503 E:   Referenced from: <C7666BAC-7864-3C42-834B-431F560ACEC1> <josm.userdata>/routing2/bin/valhalla/bin/valhalla_service
- 00738.503 E:   Reason: tried: '/libprotobuf-lite.28.3.0.dylib' (no such file), '/Applications/JOSM.app/Contents/app/libprotobuf-lite.28.3.0.dylib' (no such file), '/opt/homebrew/opt/protobuf/lib/libprotobuf-lite.28.3.0.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/protobuf/lib/libprotobuf-lite.28.3.0.dylib' (no such file), '/opt/homebrew/opt/protobuf/lib/libprotobuf-lite.28.3.0.dylib' (no such file)
- 00738.542 E: Thread main-worker-0 raised jakarta.json.stream.JsonParsingException: Invalid token=EOF at (line no=1, column no=0, offset=-1). Expected tokens are: [CURLYOPEN, SQUAREOPEN, STRING, NUMBER, TRUE, FALSE, NULL]
- 00738.543 E: Handled by bug report queue: jakarta.json.stream.JsonParsingException: Invalid token=EOF at (line no=1, column no=0, offset=-1). Expected tokens are: [CURLYOPEN, SQUAREOPEN, STRING, NUMBER, TRUE, FALSE, NULL]
- 00765.755 W: Invalid plugin main version '${plugin.main.version}' in plugin routing2
- 00765.801 W: Invalid plugin main version '${plugin.main.version}' in plugin routing2
- 00765.859 W: Invalid plugin main version '${plugin.main.version}' in plugin routing2



=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: main-worker-0 (37)
jakarta.json.stream.JsonParsingException: Invalid token=EOF at (line no=1, column no=0, offset=-1). Expected tokens are: [CURLYOPEN, SQUAREOPEN, STRING, NUMBER, TRUE, FALSE, NULL]
	at org.eclipse.parsson.JsonParserImpl.parsingException(JsonParserImpl.java:460)
	at org.eclipse.parsson.JsonParserImpl.access$1000(JsonParserImpl.java:55)
	at org.eclipse.parsson.JsonParserImpl$NoneContext.getNextEvent(JsonParserImpl.java:448)
	at org.eclipse.parsson.JsonParserImpl.next(JsonParserImpl.java:360)
	at org.eclipse.parsson.JsonReaderImpl.readObject(JsonReaderImpl.java:84)
	at org.openstreetmap.josm.plugins.routing2.lib.valhalla.ValhallaServer.generateRoute(ValhallaServer.java:87)
	at org.openstreetmap.josm.plugins.routing2.RoutingLayer.lambda$commandChanged$1(RoutingLayer.java:160)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)

=== ADDITIONAL EXCEPTIONS ===
==== Exception at 1731713510626 ====
jakarta.json.stream.JsonParsingException: Invalid token=EOF at (line no=1, column no=0, offset=-1). Expected tokens are: [CURLYOPEN, SQUAREOPEN, STRING, NUMBER, TRUE, FALSE, NULL]
	at org.eclipse.parsson.JsonParserImpl.parsingException(JsonParserImpl.java:460)
	at org.eclipse.parsson.JsonParserImpl.access$1000(JsonParserImpl.java:55)
	at org.eclipse.parsson.JsonParserImpl$NoneContext.getNextEvent(JsonParserImpl.java:448)
	at org.eclipse.parsson.JsonParserImpl.next(JsonParserImpl.java:360)
	at org.eclipse.parsson.JsonReaderImpl.readObject(JsonReaderImpl.java:84)
	at org.openstreetmap.josm.plugins.routing2.lib.valhalla.ValhallaServer.generateRoute(ValhallaServer.java:87)
	at org.openstreetmap.josm.plugins.routing2.RoutingLayer.lambda$commandChanged$1(RoutingLayer.java:160)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)

Attachments (0)

Change History (4)

comment:1 by taylor.smock, 5 months ago

Component: CorePlugin
Description: modified (diff)
Owner: changed from team to taylor.smock
Status: newassigned

comment:2 by taylor.smock, 5 months ago

I was able to repro on a secondary machine. It looks like the valhalla binaries were not built statically, so they need luajit protobuf-c libspatialite lz4 to be installed (e.g. via homebrew). I'm investigating a fully static build, which is what I anticipated getting.

comment:3 by skyper, 5 months ago

Keywords: routing2 added

comment:4 by taylor.smock, 5 months ago

Resolution: fixed
Status: assignedclosed

I think I fixed this issue in later versions. Checking for dynamic libraries indicated that it shouldn't be a problem anyway.

@skyper: Thanks for poking this ticket. I forgot about it.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain taylor.smock.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.