Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#1643 closed defect (invalid)

JOSM reports an error on start

Reported by: kalxas Owned by: live-demo@…
Priority: blocker Milestone: OSGeoLive9.5
Component: OSGeoLive Keywords: josm
Cc: live-demo@…


This is reported automatically by JOSM in build190:

Debian-Release: 0.0.svn8159+dfsg1-1~trusty1
Build-Date: 2015-07-16 09:57:15
Revision: 8159
Is-Local-Build: true

Identification: JOSM/1.5 (8159 en) Linux Ubuntu 14.04.4 LTS
Memory Usage: 59 MB / 957 MB (44 MB allocated, but free)
Java version: 1.7.0_95, Oracle Corporation, OpenJDK 64-Bit Server VM
Java package: openjdk-7-jre:amd64-7u95-2.6.4-0ubuntu0.14.04.1
VM arguments: []

Last errors/warnings:
- E: java.lang.ExceptionInInitializerError. Cause: java.lang.IllegalArgumentException: Width (0) and height (0) must be non-zero

	at org.openstreetmap.josm.gui.layer.ImageryLayer.<init>(
	at org.openstreetmap.josm.gui.layer.WMSLayer.<init>(
	at org.openstreetmap.josm.gui.layer.WMSLayer.<init>(
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
	at java.lang.reflect.Constructor.newInstance(
	at java.lang.Class.newInstance(
	at org.openstreetmap.josm.actions.ExtensionFileFilter.<clinit>(
	at org.openstreetmap.josm.actions.OpenFileAction.<clinit>(
	at org.openstreetmap.josm.gui.MainMenu.<init>(
	at org.openstreetmap.josm.Main.<init>(
	at org.openstreetmap.josm.gui.MainApplication.<init>(
	at org.openstreetmap.josm.gui.MainApplication.main(
Caused by: java.lang.IllegalArgumentException: Width (0) and height (0) must be non-zero
	at java.awt.image.ReplicateScaleFilter.<init>(
	at java.awt.Image.getScaledInstance(
	at sun.awt.CustomCursor.<init>(
	at sun.awt.X11CustomCursor.<init>(
	at sun.awt.X11.XCustomCursor.<init>(
	at sun.awt.X11.XToolkit.createCustomCursor(
	at org.openstreetmap.josm.actions.ImageryAdjustAction.<clinit>(
	... 15 more

Change history (6)

comment:1 by Bas Couwenberg, 8 years ago

Try disabling assistive_technologies=org.GNOME.Accessibility.AtkWrapper in /etc/java-7-openjdk/ See also: openjdk-7-jre-headless: Please re-disable atk bridge

comment:2 by kalxas, 8 years ago

This line was already disabled in /etc/java-7-openjdk/

comment:3 by kalxas, 8 years ago

Tested the latest stable josm version (9979). The application starts, but the same error appears when trying to open some osm data.

comment:4 by kalxas, 8 years ago

It appears to be network related, josm does not work even on 9.5beta1 (josm was confirmed to work on that build a month ago)

comment:5 by kalxas, 8 years ago

Resolution: invalid
Status: newclosed

This seems to be a problem with the network setup of my KVM testing environment. JOSM fails to contact the OSM servers on startup and crashes.

After downloading the latest iso and testing under VirtualBox, JOSM does not have any problem.

comment:6 by darkblueb, 8 years ago

built a clean test environment under VirtualBox; cannot reproduce error.

Note: See TracTickets for help on using tickets.