Modify

Opened 4 years ago

Closed 4 years ago

Last modified 10 days ago

#9209 closed defect (othersoftware)

IAE: Width (0) and height (0) must be non-zero (Linux / cursors)

Reported by: Saikrishna Arcot <saiarcot895@…> Owned by: Saikrishna Arcot <saiarcot895@…>
Priority: normal Milestone:
Component: Core Version: tested
Keywords: javabug x11 linux cursor Cc:

Description

What steps will reproduce the problem?

  1. 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 (19)

comment:1 in reply to:  description Changed 4 years ago by skyper

Owner: changed from team to Saikrishna Arcot <saiarcot895@…>
Status: newneedinfo
Version: tested

Replying to Saikrishna <saiarcot895@…>:

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)

Java package: openjdk-7-jre:amd64-7u25-2.3.12-4ubuntu3

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.

comment:2 Changed 4 years ago by Saikrishna Arcot <saiarcot895@…>

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 Changed 4 years ago by skyper

Do you use webstart or the ubuntu package ?

There seems to be a problem with Mir (#9184).

comment:4 Changed 4 years ago by Saikrishna Arcot <saiarcot895@…>

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 Changed 4 years ago by skyper

Keywords: mir added; template_report removed
Resolution: othersoftware
Status: needinfoclosed

comment:6 Changed 3 years ago by Don-vip

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

comment:7 Changed 3 years ago by Don-vip

Java bug created. If it gets accepted it will be available here: https://bugs.openjdk.java.net/browse/JI-9010791

comment:8 Changed 3 years ago by Don-vip

Last edited 3 years ago by Don-vip (previous) (diff)

comment:10 Changed 4 months ago by fnatter@…

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:11 Changed 2 months ago by Don-vip

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

comment:12 in reply to:  10 Changed 2 months ago by Don-vip

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 Changed 2 months ago by Don-vip

List of our duplicates:

  1. #9184: Ubuntu 13.10, Java 1.7.0_25, openjdk-7-jre:i386-7u25-2.3.12-4ubuntu3
  2. #9209: Ubuntu 13.10, Java 1.7.0_25, openjdk-7-jre:amd64-7u25-2.3.12-4ubuntu3
  3. #9768: Ubuntu 13.10, Java 1.7.0_51 (Oracle ?)
  4. #12619: Ubuntu 14.04.4, Java 1.7.0_95-b00, openjdk-7-jre:amd64-7u95-2.6.4-0ubuntu0.14.04.1
  5. #13469: Debian stretch, Java 1.8.0_102-8u102-b14.1-2-b14, openjdk-8-jre:i386-8u102-b14.1-2
  6. #13496: Ubuntu 16.10, Java 1.8.0_101-b13 (Oracle ?)
  7. #14497: Debian stretch, Java 1.8.0_121-8u121-b13-3-b13, openjdk-8-jre:i386-8u121-b13-3
  8. #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 Changed 2 months ago by Don-vip

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 Changed 2 months ago by Don-vip

Keywords: javabug x11 linux cursor added

comment:16 Changed 2 months ago by fnatter@…

great!

Cheers and Best Regards,
Felix

comment:17 Changed 4 weeks ago by bastiK

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

comment:18 Changed 10 days ago by Don-vip

Keywords: mir removed
Summary: JOSM fails to open editing mapIAE: Width (0) and height (0) must be non-zero (Linux / cursors)

comment:19 Changed 10 days ago by Don-vip

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Saikrishna Arcot <saiarcot895@…>.
as The resolution will be set. Next status will be 'closed'.
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.