Opened 5 years ago

Last modified 4 years ago

#19585 closed defect

IAE: Width and height must be >= 0 — at Version 51

Reported by: skyper Owned by: team
Priority: critical Milestone: 21.03
Component: Core Version:
Keywords: template_report IAE linux java11 tooltip metal javabug Cc: simon04, mnalis, dx125, OSM_RogerWilco, SoCal, Maplove, SpillerC, Strubbl, Win32netsky, A_Pirard, icke68746

Description (last modified by Klumbumbus)

What steps will reproduce the problem?

I do not know or simply using JOSM. Bug Report Dialog rises on different actions like simply clicks in Mapview or closing a relation editor.

What is the expected result?

No Bug Report Dialogs

What happens instead?

Bug Report Dialogs

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

I just updated java from 11.0.7+ to 11.0.8+.
#11123 looks similar. So I suspect this to be a java bug but maybe a workaround is possible.
I reported this to my JRE package maintainers, see Debian Bug #967049.

As of 2020-11-11 all duplicate reports are with:

  • MetalLookAndFeel
  • Linux Suse/Ubuntu/Debian/Flathub
  • openjdk-jre 11.0.8 / 11.0.9
Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2020-07-26 09:33:11 +0200 (Sun, 26 Jul 2020)
Revision:16809
Build-Date:2020-07-27 01:30:49
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (16809 en) Linux Debian GNU/Linux 10 (buster)
Java version: 11.0.8+10-post-Debian-1deb10u1, Debian, OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel

Last errors/warnings:
- E: Handled by bug report queue: java.lang.IllegalArgumentException: Width and height must be >= 0
- E: Handled by bug report queue: java.lang.IllegalArgumentException: Width and height must be >= 0


=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (18) of main
java.lang.IllegalArgumentException: Width and height must be >= 0
	at java.desktop/javax.swing.plaf.basic.BasicHTML.getHTMLBaseline(BasicHTML.java:91)
	at java.desktop/javax.swing.plaf.metal.MetalToolTipUI.paint(MetalToolTipUI.java:126)
	at java.desktop/javax.swing.plaf.ComponentUI.update(ComponentUI.java:161)
	at java.desktop/javax.swing.JComponent.paintComponent(JComponent.java:797)
	at java.desktop/javax.swing.JComponent.paint(JComponent.java:1074)
	at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907)
	at java.desktop/javax.swing.JComponent.paint(JComponent.java:1083)
	at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907)
	at java.desktop/javax.swing.JComponent.paint(JComponent.java:1083)
	at java.desktop/javax.swing.JLayeredPane.paint(JLayeredPane.java:590)
	at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907)
	at java.desktop/javax.swing.JComponent.paintToOffscreen(JComponent.java:5262)
	at java.desktop/javax.swing.RepaintManager$PaintManager.paintDoubleBufferedImpl(RepaintManager.java:1643)
	at java.desktop/javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1618)
	at java.desktop/javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1556)
	at java.desktop/javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:262)
	at java.desktop/javax.swing.RepaintManager.paint(RepaintManager.java:1323)
	at java.desktop/javax.swing.JComponent.paint(JComponent.java:1060)
	at java.desktop/java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39)
	at java.desktop/sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:78)
	at java.desktop/sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:115)
	at java.desktop/java.awt.Container.paint(Container.java:2002)
	at java.desktop/java.awt.Window.paint(Window.java:3940)
	at java.desktop/javax.swing.RepaintManager$4.run(RepaintManager.java:876)
	at java.desktop/javax.swing.RepaintManager$4.run(RepaintManager.java:848)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:848)
	at java.desktop/javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:823)
	at java.desktop/javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:772)
	at java.desktop/javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1890)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

Change History (51)

comment:1 by skyper, 5 years ago

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

comment:2 by skyper, 5 years ago

I faced this exception only after the first startup with the new java version. Yesterday, I did not face it, though, I was not editing much.

Last edited 5 years ago by skyper (previous) (diff)

comment:3 by skyper, 5 years ago

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

comment:4 by skyper, 5 years ago

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

comment:5 by Klumbumbus, 5 years ago

all reports are with Metal Look And Feel.

in reply to:  5 comment:6 by skyper, 5 years ago

Replying to Klumbumbus:

all reports are with Metal Look And Feel.

Yeah, and so far with debian-based Linux with openjdk 11.0.8+10-post

comment:7 by Klumbumbus, 5 years ago

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

in reply to:  2 comment:8 by skyper, 5 years ago

Replying to skyper:

I faced this exception only after the first startup with the new java version. Yesterday, I did not face it, though, I was not editing much.

Does not happen that often but I just got it, again.

Let's see what package maintainers say about it: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=967049

Last edited 5 years ago by skyper (previous) (diff)

comment:9 by Klumbumbus, 5 years ago

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

comment:10 by skyper, 5 years ago

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

comment:11 by Klumbumbus, 5 years ago

Priority: normalmajor

comment:12 by skyper, 5 years ago

Description: modified (diff)
Keywords: linux java11 added

Maybe, an Ubuntu user is willed to report this against the Ubuntu package on launchpad.

comment:13 by skyper, 5 years ago

Description: modified (diff)

comment:14 by skyper, 5 years ago

Description: modified (diff)

comment:15 by skyper, 5 years ago

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

comment:16 by skyper, 5 years ago

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

comment:17 by skyper, 5 years ago

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

comment:18 by simon04, 5 years ago

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

comment:19 by skyper, 5 years ago

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

comment:20 by Klumbumbus, 5 years ago

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

comment:21 by skyper, 5 years ago

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

comment:22 by Klumbumbus, 5 years ago

Cc: simon04 added

I have the slight feeling that this bug was triggered by the rework in #19381, because I think I read "upload" in several of the duplicate reports and #11123 was about resizing windows too.

in reply to:  22 ; comment:23 by skyper, 5 years ago

Replying to Klumbumbus:

I have the slight feeling that this bug was triggered by the rework in #19381, because I think I read "upload" in several of the duplicate reports and #11123 was about resizing windows too.

No, I get it with all kinds of dialogs like relation manager, validator panel, history viewer etc.. Have to watch out, if it only happens with separate dialogs and undocked panels.

Have a look at Don-vip's on #11123 comment:10:

OK reproduced on Ubuntu, and on Windows too by enabling the Metal L&F. It's a bug of Java (javabug:6719550) itself that can happen even if our tooltip has positive dimensions. Netbeans guys already encountered the bug and silently ignored the exception, I'll do the same.

I am not sure if is tight to metal look-and-feel but I am pretty sure that something changed in openjdk-11-jre with the last security update, as I remember the josm version did not change that day and I only faced this exception after the java update.

Probably the easiest solution on our side is to silently ignore this warning.

comment:24 by skyper, 5 years ago

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

comment:25 by GerdP, 5 years ago

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

comment:26 by Klumbumbus, 5 years ago

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

comment:27 by GerdP, 5 years ago

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

comment:28 by Klumbumbus, 5 years ago

Description: modified (diff)

comment:29 by skyper, 5 years ago

Description: modified (diff)
Keywords: tooltip added

comment:30 by skyper, 5 years ago

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

comment:31 by Klumbumbus, 5 years ago

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

comment:32 by skyper, 5 years ago

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

comment:33 by Klumbumbus, 5 years ago

Description: modified (diff)

comment:34 by Klumbumbus, 5 years ago

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

in reply to:  23 ; comment:35 by Don-vip, 5 years ago

Replying to skyper:

Probably the easiest solution on our side is to silently ignore this warning.

Not easy at all. The error happens in the EDT, not in a JOSM thread. The question is really why so many people are using Metal?

comment:36 by Don-vip, 5 years ago

Description: modified (diff)
Keywords: metal added
Priority: majorcritical

in reply to:  35 comment:37 by skyper, 5 years ago

Replying to Don-vip:

The question is really why so many people are using Metal?

I did use it together with Gnome, as the Gtk-Theme has bigger elements and therefore less content is displayed.

Is the Look-And-Feel set properly on the first startup or does every user have to set it once, manually?

Last edited 5 years ago by skyper (previous) (diff)

comment:38 by mdk, 5 years ago

I never choose a GTK theme (as far as I remember) but my JOSM on Ubuntu uses Metal. So it looks like a default value.

comment:39 by skyper, 5 years ago

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

comment:40 by Klumbumbus, 5 years ago

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

comment:41 by Klumbumbus, 5 years ago

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

comment:42 by skyper, 5 years ago

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

comment:43 by skyper, 5 years ago

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

comment:44 by Klumbumbus, 5 years ago

Description: modified (diff)

#20011 is the first one with 11.0.9

comment:45 by GerdP, 5 years ago

In #20011 there is also a hint about the problematic JOSM code in the stacktrace:
org.openstreetmap.josm.gui.ExtendedDialog.setVisible(ExtendedDialog.java:459)

comment:46 by Klumbumbus, 5 years ago

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

comment:47 by GerdP, 5 years ago

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

comment:48 by mnalis, 5 years ago

for the record, I've had this problem (in dupe #20060) and I'm not using any DE, but just icewm on Debian Buster (with "icedesert" theme)

comment:49 by mnalis, 5 years ago

Cc: mnalis added

in reply to:  48 comment:50 by skyper, 5 years ago

Replying to mnalis:

for the record, I've had this problem (in dupe #20060) and I'm not using any DE, but just icewm on Debian Buster (with "icedesert" theme)

Sorry for not adding you to "cc".

This problem does not depend on X or WM but on the java theme (Metal) used and openjdk-11-jre version 11.0.8+. You may want to comment on the debian bug 967049.

comment:51 by Klumbumbus, 5 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.