Bug 1700492

Summary: A stack trace is thrown every time Josm is started
Product: [Fedora] Fedora Reporter: hgbhcprm
Component: josmAssignee: Jakub Jelen <jjelen>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 29CC: cedric.olivier, jjelen
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: josm-0-0.99.15238svn.fc30 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-09 01:02:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description hgbhcprm 2019-04-16 17:54:06 UTC
Description of problem:
Every time I start Josm it says "You have encountered a bug in Josm"

Version-Release number of selected component (if applicable):
0.89.14066svn.fc29

How reproducible:
Always

Steps to Reproduce:
1. Start Josm
2. Observe error message
3.

Actual results:


Expected results:
That Josm would start without errors

Additional info:

Although this exception is thrown, the error message can be clicked away and Josm functions normally 

This is the info that Josm gives about the error

{{{
Build-Date:2018-12-12 14:44:47
Revision:14066
Is-Local-Build:true

Identification: JOSM/1.5 (14066 SVN en_GB) Linux Fedora release 29 (Twenty Nine)
Memory Usage: 458 MB / 3536 MB (212 MB allocated, but free)
Java version: 1.8.0_201-b09, Oracle Corporation, OpenJDK 64-Bit Server VM
Screen: :0.0 3440x1440
Maximum Screen Size: 3440x1440
VM arguments: [-agentpath:/usr/lib/abrt-java-connector/libabrt-java-connector.so=abrt=on,]

Plugins:
+ reverter

Last errors/warnings:
- W:  Volleyball: Could not get presets icon presets/sport/volleyball.svg
- E: Failed to locate image 'presets/sport/billiards.svg'
- W:  Billiards: Could not get presets icon presets/sport/billiards.svg
- E: Failed to locate image 'presets/misc/pipeline_marker.svg'
- W:  Pipeline Marker: Could not get presets icon presets/misc/pipeline_marker.svg
- E: Failed to locate image 'presets/shop/kiosk.svg'
- W:  Kiosk: Could not get presets icon presets/shop/kiosk.svg
- E: Failed to locate image 'presets/shop/lottery.svg'
- W:  Bookmaker: Could not get presets icon presets/shop/lottery.svg
- E: Handled by bug report queue: java.lang.IllegalArgumentException: Width (0) and height (16) cannot be <= 0


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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (19) of main
java.lang.IllegalArgumentException: Width (0) and height (16) cannot be <= 0
	at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1016)
	at java.awt.image.BufferedImage.<init>(BufferedImage.java:333)
	at org.openstreetmap.josm.tools.ImageProvider.createImageFromSvg(ImageProvider.java:1590)
	at org.openstreetmap.josm.tools.ImageResource.getImageIcon(ImageResource.java:163)
	at org.openstreetmap.josm.tools.ImageResource.getImageIconBounded(ImageResource.java:276)
	at org.openstreetmap.josm.tools.ImageResource.getImageIconBounded(ImageResource.java:229)
	at org.openstreetmap.josm.tools.ImageResource.attachImageIcon(ImageResource.java:104)
	at org.openstreetmap.josm.gui.tagging.presets.TaggingPreset.lambda$null$0(TaggingPreset.java:223)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
}}}

Comment 1 Fedora Update System 2019-07-31 12:38:41 UTC
FEDORA-2019-7ad440f159 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-7ad440f159

Comment 2 Fedora Update System 2019-08-01 03:28:35 UTC
josm-0-0.99.15238svn.fc30, svgsalamander-1.1.2-3.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-7ad440f159

Comment 3 Fedora Update System 2019-08-09 01:02:47 UTC
josm-0-0.99.15238svn.fc30, svgsalamander-1.1.2-3.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.