Modify

Opened 5 years ago

Closed 4 years ago

#20439 closed defect (fixed)

Fatal: failed to locate image 'ok.png'

Reported by: becky.murphy@… Owned by: Don-vip
Priority: normal Milestone:
Component: Plugin DxfImport Version:
Keywords: template_report icon png svg Cc:

Description

What steps will reproduce the problem?

  1. create new layer
  2. select dxf file to open
  3. open

What is the expected result?

dxf scale dialog box opens, then dxf file is opened

What happens instead?

nothing - not even an error message

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

This feature worked as expected 3 weeks ago.
I have reinstalled the plug in but nothing has changed.

Revision:17428
Is-Local-Build:true
Build-Date:2020-12-30 15:56:02

Identification: JOSM/1.5 (17428 SVN en) Mac OS X 10.15.7
OS Build number: Mac OS X 10.15.7 (19H15)
Memory Usage: 616 MB / 8192 MB (129 MB allocated, but free)
Java version: 15.0.1+9, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.apple.laf.AquaLookAndFeel
Screen: Display 69734662 1792×1120 (scaling 2.00×2.00)
Maximum Screen Size: 1792×1120
Best cursor sizes: 16×16→16×16, 32×32→32×32
VM arguments: [--module-path=/Applications/JOSM.app/Contents/app/mods]
Dataset consistency test: No problems found

Plugins:
+ CADTools (1008)
+ DxfImport (1013)
+ EasyPresets (1583691763)
+ ImportImagePlugin (35567)
+ ImproveWay (29)
+ PicLayer (2a9aa7a)
+ ShapeTools (1240)
+ SimplifyArea (35640)
+ alignways (35640)
+ apache-commons (35524)
+ areaselector (368)
+ austriaaddresshelper (1597341117)
+ buildings_tools (35669)
+ ejml (35458)
+ geotools (35458)
+ jts (35458)
+ log4j (35458)
+ measurement (35640)
+ pdfimport (35640)
+ reverter (35688)
+ utilsplugin2 (35691)

Map paint styles:
+ ${HOME}/Documents/gozio/git-repo/mapdata/theme/goziomapstyle.mapcss
+ ${HOME}/Documents/gozio/git-repo/mapdata/theme/gozio-<user.name>-mapstyle.mapcss

Validator rules:
+ ${HOME}/Documents/gozio/git-repo/mapdata/theme/gozio-tagcheck.validator.mapcss

Last errors/warnings:
- 01754.621 W: Unable to convert property symbol-size to type class java.lang.Float: found RelativeFloat{val=6.0} of type class org.openstreetmap.josm.gui.mappaint.mapcss.Instruction$RelativeFloat!
- 01761.338 W: Unable to convert property symbol-size to type class java.lang.Float: found RelativeFloat{val=6.0} of type class org.openstreetmap.josm.gui.mappaint.mapcss.Instruction$RelativeFloat!
- 01761.338 W: Unable to convert property symbol-size to type class java.lang.Float: found RelativeFloat{val=4.0} of type class org.openstreetmap.josm.gui.mappaint.mapcss.Instruction$RelativeFloat!
- 01761.339 W: Unable to convert property symbol-size to type class java.lang.Float: found RelativeFloat{val=6.0} of type class org.openstreetmap.josm.gui.mappaint.mapcss.Instruction$RelativeFloat!
- 01761.339 W: Unable to convert property symbol-size to type class java.lang.Float: found RelativeFloat{val=4.0} of type class org.openstreetmap.josm.gui.mappaint.mapcss.Instruction$RelativeFloat!
- 01761.339 W: Unable to convert property symbol-size to type class java.lang.Float: found RelativeFloat{val=4.0} of type class org.openstreetmap.josm.gui.mappaint.mapcss.Instruction$RelativeFloat!
- 01761.339 W: Unable to convert property symbol-size to type class java.lang.Float: found RelativeFloat{val=4.0} of type class org.openstreetmap.josm.gui.mappaint.mapcss.Instruction$RelativeFloat!
- 01761.339 W: Unable to convert property symbol-size to type class java.lang.Float: found RelativeFloat{val=6.0} of type class org.openstreetmap.josm.gui.mappaint.mapcss.Instruction$RelativeFloat!
- 01761.340 W: Unable to convert property symbol-size to type class java.lang.Float: found RelativeFloat{val=4.0} of type class org.openstreetmap.josm.gui.mappaint.mapcss.Instruction$RelativeFloat!
- 01761.340 W: Unable to convert property symbol-size to type class java.lang.Float: found RelativeFloat{val=4.0} of type class org.openstreetmap.josm.gui.mappaint.mapcss.Instruction$RelativeFloat!

OSM API: https://map.goziohealth.com/api

Attachments (0)

Change History (13)

comment:1 by Don-vip, 5 years ago

Owner: changed from team to becky.murphy@…
Status: newneedinfo

Does it work if you disable your custom map paint styles? It seems they contain an error.

comment:2 by becky.murphy@…, 5 years ago

Thank you for getting back to me so quickly!
I disabled one of my custom map styles, restarted Jose, and it didn’t load the dxf. I disabled the second one, restarted, and still nothing.
Any other suggestions?

Is there error information somewhere that I can send to you?
Becky

comment:3 by skyper, 5 years ago

Component: CorePlugin DxfImport

comment:4 by cealigbe@…, 5 years ago

I am also seeing the same issue trying to import dxfs into JOSM. I have tried older DXF versions, disabling custom map styles, older versions of JOSM, with no success.

https://imgur.com/gallery/cIosMXu

comment:5 by skyper, 5 years ago

Cc: Stereo added

So far only reports with macOS. Is it possible to share a small example file by attaching it to this ticket?

comment:6 by Stereo, 5 years ago

And/or can one of you macOS users please open Terminal.app and type in /Applications/JOSM.app/Contents/MacOS/JOSM and hit return? You will get a lot of useful debugging output.

comment:7 by cealigbe@…, 5 years ago

Here is the debug output from Terminal when opening up a DXF. There seems to be a missing "ok.png" regardless of which DXF you try to open up, so it must be something lost in JOSM or the Plugin. Here is a link to a couple of test files I used:

https://www.dropbox.com/sh/7z27rta4iynx6xi/AABTpwxC7WJY4Xg4nudLiBuZa?dl=0

2021-02-02 11:31:57.557 INFO: Open file: /Users/cealigbe/Documents/JOSM/test-floor.dxf (217106 bytes)
2021-02-02 11:31:57.669 SEVERE: Exception raised in EDT: java.lang.reflect.InvocationTargetException. Cause: org.openstreetmap.josm.tools.JosmRuntimeException: Fatal: failed to locate image 'ok.png'. This is a serious configuration problem. JOSM will stop working.
java.lang.reflect.InvocationTargetException
	at java.desktop/java.awt.EventQueue.invokeAndWait(Unknown Source)
	at java.desktop/java.awt.EventQueue.invokeAndWait(Unknown Source)
	at java.desktop/javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
	at org.openstreetmap.josm.gui.util.GuiHelper.runInEDTAndWait(GuiHelper.java:227)
	at org.openstreetmap.josm.plugins.dxfimport.DxfImporter.importData(DxfImporter.java:37)
	at org.openstreetmap.josm.gui.io.importexport.FileImporter.importDataHandleExceptions(FileImporter.java:98)
	at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.importData(OpenFileAction.java:370)
	at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.realRun(OpenFileAction.java:320)
	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)
Caused by: org.openstreetmap.josm.tools.JosmRuntimeException: Fatal: failed to locate image 'ok.png'. This is a serious configuration problem. JOSM will stop working.
	at org.openstreetmap.josm.tools.ImageProvider.getResource(ImageProvider.java:717)
	at org.openstreetmap.josm.tools.ImageProvider.get(ImageProvider.java:655)
	at org.openstreetmap.josm.tools.ImageProvider.get(ImageProvider.java:823)
	at org.openstreetmap.josm.gui.ExtendedDialog.setButtonIcons(ExtendedDialog.java:187)
	at org.openstreetmap.josm.plugins.dxfimport.ImportDialog.<init>(ImportDialog.java:31)
	at org.openstreetmap.josm.plugins.dxfimport.DxfImporter.lambda$importData$1(DxfImporter.java:38)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.WaitDispatchSupport$2.run(Unknown Source)
	at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source)
	at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.desktop/java.awt.WaitDispatchSupport.enter(Unknown Source)
	at java.desktop/java.awt.Dialog.show(Unknown Source)
	at java.desktop/java.awt.Component.show(Unknown Source)
	at java.desktop/java.awt.Component.setVisible(Unknown Source)
	at java.desktop/java.awt.Window.setVisible(Unknown Source)
	at java.desktop/java.awt.Dialog.setVisible(Unknown Source)
	at org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor.lambda$doBeginTask$3(PleaseWaitProgressMonitor.java:255)
	at org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor.lambda$doInEDT$0(PleaseWaitProgressMonitor.java:113)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)

2021-02-02 11:31:57.670 JOSM[42582:5043756] 2021-02-02 11:31:57.669 SEVERE: Exception raised in EDT: java.lang.reflect.InvocationTargetException. Cause: org.openstreetmap.josm.tools.JosmRuntimeException: Fatal: failed to locate image 'ok.png'. This is a serious configuration problem. JOSM will stop working.
java.lang.reflect.InvocationTargetException
	at java.desktop/java.awt.EventQueue.invokeAndWait(Unknown Source)
	at java.desktop/java.awt.EventQueue.invokeAndWait(Unknown Source)
	at java.desktop/javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
	at org.openstreetmap.josm.gui.util.GuiHelper.runInEDTAndWait(GuiHelper.java:227)
	at org.openstreetmap.josm.plugins.dxfimport.DxfImporter.importData(DxfImporter.java:37)
	at org.openstreetmap.josm.gui.io.importexport.FileImporter.importDataHandleExceptions(FileImporter.java:98)
	at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.importData(OpenFileAction.java:370)
	at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.realRun(OpenFileAction.java:320)
	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)
Caused by: org.openstreetmap.josm.tools.JosmRuntimeException: Fatal: failed to locate image 'ok.png'. This is a serious configuration problem. JOSM will stop working.
	at org.openstreetmap.josm.tools.ImageProvider.getResource(ImageProvider.java:717)
	at org.openstreetmap.josm.tools.ImageProvider.get(ImageProvider.java:655)
	at org.openstreetmap.josm.tools.ImageProvider.get(ImageProvider.java:823)
	at org.openstreetmap.josm.gui.ExtendedDialog.setButtonIcons(ExtendedDialog.java:187)
	at org.openstreetmap.josm.plugins.dxfimport.ImportDialog.<init>(ImportDialog.java:31)
	at org.openstreetmap.josm.plugins.dxfimport.DxfImporter.lambda$importData$1(DxfImporter.java:38)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.WaitDispatchSupport$2.run(Unknown Source)
	at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source)
	at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.desktop/java.awt.WaitDispatchSupport.enter(Unknown Source)
	at java.desktop/java.awt.Dialog.show(Unknown Source)
	at java.desktop/java.awt.Component.show(Unknown Source)
	at java.desktop/java.awt.Component.setVisible(Unknown Source)
	at java.desktop/java.awt.Window.setVisible(Unknown Source)
	at java.desktop/java.awt.Dialog.setVisible(Unknown Source)
	at org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor.lambda$doBeginTask$3(PleaseWaitProgressMonitor.java:255)
	at org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor.lambda$doInEDT$0(PleaseWaitProgressMonitor.java:113)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)

2021-02-02 11:31:57.671 INFO: Open file: /Users/cealigbe/Documents/JOSM/test-floor.dxf (217106 bytes) completed in 114 ms

comment:8 by simon04, 5 years ago

Bug report on GitHub (2020-11-06): https://github.com/JOSM/Dxf-Import/issues/6

comment:9 by Stereo, 5 years ago

Cc: Stereo removed

comment:11 by Don-vip, 4 years ago

Owner: changed from becky.murphy@… to Don-vip
Status: needinfoassigned

comment:12 by Don-vip, 4 years ago

Keywords: icon png svg added
Summary: dxf import stopped workingFatal: failed to locate image 'ok.png'

comment:13 by Don-vip, 4 years ago

Resolution: fixed
Status: assignedclosed

Modify Ticket

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