Modify

Opened 2 years ago

Closed 2 years ago

#22918 closed defect (duplicate)

Reading pbf files on apple silicon

Reported by: anonymous Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

  1. instal JOSM on Apple Mac m1 or m2 mac
  2. install pbf plugin
  3. open any osm.pbf on JSOM it will throw the below error and it happens only in apple silicon

What is the expected result?

What happens instead?

Please provide any additional information below. Attach a screenshot if possible.

Revision:18700
Build-Date:2023-04-04 06:56:19

Identification: JOSM/1.5 (18700 en) Mac OS X 13.3.1
OS Build number: macOS 13.3.1 (22E261)
Memory Usage: 296 MB / 8192 MB (96 MB allocated, but free)
Java version: 17.0.6+10-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.apple.laf.AquaLookAndFeel
Screen: Display 1 1728×1117 (scaling 2.00×2.00)
Maximum Screen Size: 1728×1117
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=18700, --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:
+ pbf (36034)

Last errors/warnings:
- 00126.198 E: Handled by bug report queue: java.lang.NullPointerException: Cannot invoke "org.openstreetmap.josm.data.osm.BBox.getMin()" because the return value of "org.openstreetmap.josm.data.osm.pbf.HeaderBlock.bbox()" is null



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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: main-worker-0 (22) of main
java.lang.NullPointerException: Cannot invoke "org.openstreetmap.josm.data.osm.BBox.getMin()" because the return value of "org.openstreetmap.josm.data.osm.pbf.HeaderBlock.bbox()" is null
	at org.openstreetmap.josm.io.OsmPbfReader.parseDataBlock(OsmPbfReader.java:339)
	at org.openstreetmap.josm.io.OsmPbfReader.parse(OsmPbfReader.java:116)
	at org.openstreetmap.josm.io.AbstractReader.doParseDataSet(AbstractReader.java:329)
	at org.openstreetmap.josm.io.AbstractReader.doParseDataSet(AbstractReader.java:304)
	at org.openstreetmap.josm.io.OsmPbfReader.doParseDataSet(OsmPbfReader.java:85)
	at org.openstreetmap.josm.io.OsmPbfReader.parseDataSet(OsmPbfReader.java:80)
	at org.openstreetmap.josm.gui.io.importexport.OsmPbfImporter.parseDataSet(OsmPbfImporter.java:44)
	at org.openstreetmap.josm.gui.io.importexport.OsmImporter.loadLayer(OsmImporter.java:121)
	at org.openstreetmap.josm.gui.io.importexport.OsmImporter.importData(OsmImporter.java:97)
	at org.openstreetmap.josm.gui.io.importexport.OsmImporter.importData(OsmImporter.java:82)
	at org.openstreetmap.josm.gui.io.importexport.FileImporter.importDataHandleExceptions(FileImporter.java:103)
	at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.importData(OpenFileAction.java:401)
	at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.realRun(OpenFileAction.java:350)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:94)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:142)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
	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 (1)

comment:1 by taylor.smock, 2 years ago

Resolution: duplicate
Status: newclosed

Closed as duplicate of #22868.
> Identification: JOSM/1.5 (18700 en) Mac OS X 13.3.1
This should be fixed in r18702.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
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.