Mir

Mir conflict with Java (IllegalArgumentException)

Bug #1286359 reported by Don-vip
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
JOSM
Unknown
High
Mir
New
Undecided
Unassigned

Bug Description

Upstream bug for:
- https://josm.openstreetmap.de/ticket/9184
- https://josm.openstreetmap.de/ticket/9209
- https://josm.openstreetmap.de/ticket/9768

Several users complain of a Java bug only when Mir is installed. The following stacktrace occurs:

java.lang.reflect.InvocationTargetException
 at java.awt.EventQueue.invokeAndWait(EventQueue.java:1272)
 at java.awt.EventQueue.invokeAndWait(EventQueue.java:1247)
 at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:87)
 at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:150)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at java.util.concurrent.FutureTask.run(FutureTask.java:262)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.IllegalArgumentException: Width (0) and height (0) must be non-zero
 at java.awt.image.ReplicateScaleFilter.<init>(ReplicateScaleFilter.java:102)
 at java.awt.Image.getScaledInstance(Image.java:173)
 at sun.awt.CustomCursor.<init>(CustomCursor.java:69)
 at sun.awt.X11CustomCursor.<init>(X11CustomCursor.java:43)
 at sun.awt.X11.XCustomCursor.<init>(XCustomCursor.java:42)
 at sun.awt.X11.XToolkit.createCustomCursor(XToolkit.java:1133)

Removing Mir resolves the issue.

FYI as I don't know if it's a Java issue or a Mir issue I have reported a bug to Oracle, here (not visible yet):
https://bugs.openjdk.java.net/browse/JI-9010791

Tags: java openjdk
Don-vip (vincent-privat)
Changed in josm:
importance: Unknown → High
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

The exact details of the exception may vary between Java versions, but this is already logged as bug 1232471.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.