Modify

Opened 9 months ago

Closed 9 months ago

#16834 closed defect (fixed)

IAE when opening .osmc created by OsmAnd

Reported by: mnalis-josm@… Owned by: team
Priority: normal Milestone: 18.10
Component: Core Version: tested
Keywords: template_report osmand note Cc:

Description

What steps will reproduce the problem?

  1. opening .osmc file created by OsmAnd

What is the expected result?

POI changes opens in JOSM

What happens instead?

error window "an unexpected error occured" pops up, and no data loads

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

URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2018-10-01 23:59:36 +0200 (Mon, 01 Oct 2018)
Build-Date:2018-10-01 22:08:47
Revision:14289
Relative:URL: ^/trunk

Identification: JOSM/1.5 (14289 en) Linux Debian GNU/Linux 9.5 (stretch)
Memory Usage: 226 MB / 1820 MB (71 MB allocated, but free)
Java version: 1.8.0_181-8u181-b13-1~deb9u1-b13, Oracle Corporation, OpenJDK 64-Bit Server VM
Screen: :0.0 1600x900
Maximum Screen Size: 1600x900
Java package: openjdk-8-jre:amd64-8u181-b13-1~deb9u1
WebStart package: icedtea-netx:amd64-1.6.2-3.1
Java ATK Wrapper package: libatk-wrapper-java:all-0.33.3-13+deb9u1
VM arguments: [-Dicedtea-web.bin.name=javaws, -Dicedtea-web.bin.location=/usr/bin/javaws, -Djava.security.manager, -Djava.security.policy=/etc/icedtea-web/javaws.policy]

Plugins:
+ DirectDownload (34593)
+ DirectUpload (34502)
+ FixAddresses (34511)
+ Mapillary (v1.5.17)
+ apache-commons (34506)
+ apache-http (34632)
+ geochat (34512)
+ imagery_offset_db (34641)
+ jna (34633)
+ reverter (34552)
+ turnlanes (34566)
+ turnrestrictions (34643)
+ utilsplugin2 (34506)

Tagging presets:
+ http://<user.name>.com/prezentacije/OpenStreetMap/josm-preset.xml
+ https://josm.openstreetmap.de/josmfile?page=Presets/BloodDonation&zip=1

Last errors/warnings:
- E: Failed to locate image 'presets/empty.png'
- W:  fotokopiraona: Could not get presets icon presets/empty.png
- E: Failed to locate image 'presets/empty.png'
- W:  fotograf: Could not get presets icon presets/empty.png
- E: Failed to locate image 'presets/empty.png'
- W:  recycle: Could not get presets icon presets/empty.png
- E: Failed to locate image 'presets/empty.png'
- W:  pametna klupa: Could not get presets icon presets/empty.png
- W: No configuration settings found.  Using hardcoded default values for all pools.
- E: Handled by bug report queue: java.lang.IllegalArgumentException: Comment can not be blank when creating a note


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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: main-worker-0 (66) of JOSM
java.lang.IllegalArgumentException: Comment can not be blank when creating a note
	at org.openstreetmap.josm.data.osm.NoteData.createNote(NoteData.java:174)
	at org.openstreetmap.josm.io.OsmChangeReader.parseNote(OsmChangeReader.java:125)
	at org.openstreetmap.josm.io.OsmChangeReader.parseCommon(OsmChangeReader.java:88)
	at org.openstreetmap.josm.io.OsmChangeReader.parseOsmChange(OsmChangeReader.java:62)
	at org.openstreetmap.josm.io.OsmChangeReader.parseRoot(OsmChangeReader.java:43)
	at org.openstreetmap.josm.io.OsmReader.parse(OsmReader.java:71)
	at org.openstreetmap.josm.io.OsmReader.lambda$doParseDataSet$0(OsmReader.java:430)
	at org.openstreetmap.josm.io.AbstractReader.doParseDataSet(AbstractReader.java:296)
	at org.openstreetmap.josm.io.OsmReader.doParseDataSet(OsmReader.java:427)
	at org.openstreetmap.josm.io.OsmChangeReader.parseDataSetAndNotes(OsmChangeReader.java:168)
	at org.openstreetmap.josm.gui.io.importexport.OsmChangeImporter.importData(OsmChangeImporter.java:66)
	at org.openstreetmap.josm.gui.io.importexport.OsmChangeImporter.importData(OsmChangeImporter.java:58)
	at org.openstreetmap.josm.gui.io.importexport.FileImporter.importDataHandleExceptions(FileImporter.java:95)
	at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.importData(OpenFileAction.java:367)
	at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.realRun(OpenFileAction.java:319)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:95)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:143)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

Attachments (0)

Change History (4)

comment:1 Changed 9 months ago by mnalis-josm@…

.osc file contained (among other things):

    <note lat="46.074115753173814" lon="12.91759967803955" id="-2">
      <comment text="" />
    </note>

removing that block allows import to succeed

Last edited 9 months ago by Don-vip (previous) (diff)

comment:2 Changed 9 months ago by Don-vip

Ticket #16823 has been marked as a duplicate of this ticket.

comment:3 Changed 9 months ago by Don-vip

Keywords: osmand note added
Milestone: 18.10
Summary: error when opening .osmcIAE when opening .osmc created by OsmAnd

comment:4 Changed 9 months ago by Don-vip

Resolution: fixed
Status: newclosed

In 14314/josm:

fix #16834 - IAE when opening .osmc containing empty note created by OsmAnd

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.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.