#9209 closed defect (othersoftware)
IAE: Width (0) and height (0) must be non-zero (Linux / cursors)
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | tested |
Keywords: | javabug x11 linux cursor | Cc: |
Description
What steps will reproduce the problem?
- Open an existing osm file, or download map data from the OSM server.
What is the expected result?
JOSM map opens successfully
What happens instead?
Error.
Please provide any additional information below. Attach a screenshot if
possible.
I upgraded to Ubuntu Saucy (13.10). The icedtea-plugin version is 1.4-3ubuntu2 and the default-jre version is 1:1.7-48ubuntu2. JOSM worked correctly in Raring (13.04)
Repository Root: http://josm.openstreetmap.de/svn Build-Date: 2013-09-20 01:34:27 Last Changed Author: Don-vip Revision: 6238 Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b URL: http://josm.openstreetmap.de/svn/trunk Last Changed Date: 2013-09-20 00:19:19 +0200 (Fri, 20 Sep 2013) Last Changed Rev: 6238 Identification: JOSM/1.5 (6238 en) Linux Ubuntu 13.10 Memory Usage: 171 MB / 864 MB (68 MB allocated, but free) Java version: 1.7.0_25, Oracle Corporation, OpenJDK 64-Bit Server VM Java package: openjdk-7-jre:amd64-7u25-2.3.12-4ubuntu3 VM arguments: [-Djosm.restart=true, -Djava.net.useSystemProxies=true] Plugin: AddrInterpolation (29854) Plugin: DirectUpload (29866) Plugin: FixAddresses (29971) Plugin: OpeningHoursEditor (29854) Plugin: download_along (29854) Plugin: editgpx (29854) Plugin: geochat (29851) Plugin: notes (v0.6) Plugin: public_transport (29862) Plugin: turnrestrictions (29854) Plugin: utilsplugin2 (30015) 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:1134) at org.openstreetmap.josm.tools.ImageProvider.getCursor(ImageProvider.java:769) at org.openstreetmap.josm.actions.mapmode.SelectAction.<init>(SelectAction.java:170) at org.openstreetmap.josm.gui.MapFrame.<init>(MapFrame.java:210) at org.openstreetmap.josm.Main.createMapFrame(Main.java:459) at org.openstreetmap.josm.Main.addLayer(Main.java:449) at org.openstreetmap.josm.io.OsmImporter$1.run(OsmImporter.java:97) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733) at java.awt.EventQueue.access$200(EventQueue.java:103) at java.awt.EventQueue$3.run(EventQueue.java:694) at java.awt.EventQueue$3.run(EventQueue.java:692) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:703) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:154) at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:182) at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:221) at java.security.AccessController.doPrivileged(Native Method) at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:219) at java.awt.Dialog.show(Dialog.java:1082) at java.awt.Component.show(Component.java:1651) at java.awt.Component.setVisible(Component.java:1603) at java.awt.Window.setVisible(Window.java:1014) at java.awt.Dialog.setVisible(Dialog.java:1005) at org.openstreetmap.josm.gui.progress.PleaseWaitProgressMonitor$4.run(PleaseWaitProgressMonitor.java:172) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733) at java.awt.EventQueue.access$200(EventQueue.java:103) at java.awt.EventQueue$3.run(EventQueue.java:694) at java.awt.EventQueue$3.run(EventQueue.java:692) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:703) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Attachments (0)
Change History (21)
comment:1 by , 11 years ago
Owner: | changed from | to
---|---|
Status: | new → needinfo |
Version: | → tested |
comment:2 by , 11 years ago
I restarted after the upgrade twice. As for video drivers, I have Intel HD Graphics and so have to use the open-source Mesa drivers. If it makes a difference, I installed the Unity compositor package to test XMir.
The difference between Raring and Saucy in terms of Java versions seems to be the IcedTea version; Raring uses IcedTea 2.3.10 while Saucy uses 2.3.12. In addition, I'm having problems with 2 other Java apps (Android Studio 0.3 and Netbeans 7.3.1 (I know the latest is 7.4)), so it may be something on my system. I'm going to test JOSM with a clean Saucy ISO to see if it works there.
comment:3 by , 11 years ago
Do you use webstart or the ubuntu package ?
There seems to be a problem with Mir (#9184).
comment:4 by , 11 years ago
The problem was with Mir/XMir. I removed unity-system-compositor and the mir/xmir packages, and JOSM works now. Thank you.
For the record the crash had occurred with both webstart and the ubuntu package.
comment:5 by , 11 years ago
Keywords: | mir added; template_report removed |
---|---|
Resolution: | → othersoftware |
Status: | needinfo → closed |
comment:7 by , 11 years ago
Java bug created. If it gets accepted it will be available here: https://bugs.openjdk.java.net/browse/JI-9010791
comment:8 by , 11 years ago
Mir bug created as well: https://bugs.launchpad.net/mir/+bug/1286359
EDIT: didn't see this one too: https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1239499
comment:9 by , 9 years ago
The issues is being followed here: https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1232471
follow-up: 12 comment:10 by , 8 years ago
hello JOSM devs,
I see this problem a lot of times on Debian unstable with freeplane and jajuk.
I've reopened the launchpad bug, but as it appears on Debian, it's probably not
due to some ubuntu xserver update.
Do you know a workaround?
Cheers and Best Regards,
Felix
comment:12 by , 8 years ago
Replying to fnatter@…:
hello JOSM devs,
Hi Felix :)
Do you know a workaround?
Unfortunately, no. Maybe we could ask Oracle (through Quality Outreach) to reopen the bug I created 3 years ago: javabug:8141094
comment:13 by , 8 years ago
List of our duplicates:
- #9184: Ubuntu 13.10, Java 1.7.0_25, openjdk-7-jre:i386-7u25-2.3.12-4ubuntu3
- #9209: Ubuntu 13.10, Java 1.7.0_25, openjdk-7-jre:amd64-7u25-2.3.12-4ubuntu3
- #9768: Ubuntu 13.10, Java 1.7.0_51 (Oracle ?)
- #12619: Ubuntu 14.04.4, Java 1.7.0_95-b00, openjdk-7-jre:amd64-7u95-2.6.4-0ubuntu0.14.04.1
- #13469: Debian stretch, Java 1.8.0_102-8u102-b14.1-2-b14, openjdk-8-jre:i386-8u102-b14.1-2
- #13496: Ubuntu 16.10, Java 1.8.0_101-b13 (Oracle ?)
- #14497: Debian stretch, Java 1.8.0_121-8u121-b13-3-b13, openjdk-8-jre:i386-8u121-b13-3
- #14544: Ubuntu 16.10, Java 1.8.0_121-8u121-b13-0ubuntu1.16.10.2-b13, openjdk-8-jre:amd64-8u121-b13-0ubuntu1.16.10.2
comment:14 by , 8 years ago
Ah, someone created a new bugreport: javabug:8173853
It has been fixed recently in Java 9 and backported to Java 8u152 which is meant to be released on 2017-10-16.
We just have to wait a few months.
comment:15 by , 8 years ago
Keywords: | javabug x11 linux cursor added |
---|
comment:18 by , 8 years ago
Keywords: | mir removed |
---|---|
Summary: | JOSM fails to open editing map → IAE: Width (0) and height (0) must be non-zero (Linux / cursors) |
Replying to Saikrishna <saiarcot895@…>:
This looks like you are still using some old libraries. Did you restart after upgrade (probably including kernel upgrade + video driver update). At least you should logout and in again.