MCreator UI glitched in some cases

Published by Klemen on Fri, 02/02/2018 - 14:31
Status
Fixed
Type
Product/platform
Not applicable
Priority
Normal
Issue description

MCreator UI glitched in some cases because of image format problems. The glitch causes strange image artifacts and produces the following error log in the debug console:

[Thu Jan 04 17:37:16 CET 2018] Exception in thread "AWT-EventQueue-0" [Thu Jan 04 17:37:16 CET 2018] java.lang.IllegalArgumentException: Width (-1) and height (-1) cannot be <= 0
[Thu Jan 04 17:37:16 CET 2018]  at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
[Thu Jan 04 17:37:16 CET 2018]  at java.awt.image.BufferedImage.<init>(Unknown Source)
[Thu Jan 04 17:37:16 CET 2018]  at co.pylo.mcreator.k.a.b.a(Unknown Source)
[Thu Jan 04 17:37:16 CET 2018]  at co.pylo.mcreator.n.v.a(Unknown Source)
[Thu Jan 04 17:37:16 CET 2018]  at co.pylo.mcreator.n.v.getListCellRendererComponent(Unknown Source)
[Thu Jan 04 17:37:16 CET 2018]  at javax.swing.JList.getToolTipText(Unknown Source)
[Thu Jan 04 17:37:16 CET 2018]  at javax.swing.ToolTipManager$insideTimerAction.actionPerformed(Unknown Source)
[Thu Jan 04 17:37:16 CET 2018]  at javax.swing.Timer.fireActionPerformed(Unknown Source)
[Thu Jan 04 17:37:16 CET 2018]  at javax.swing.Timer$DoPostEvent.run(Unknown Source)
[Thu Jan 04 17:37:16 CET 2018]  at java.awt.event.InvocationEvent.dispatch(Unknown Source)
[Thu Jan 04 17:37:16 CET 2018]  at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
[Thu Jan 04 17:37:16 CET 2018]  at java.awt.EventQueue.access$500(Unknown Source)
[Thu Jan 04 17:37:16 CET 2018]  at java.awt.EventQueue$3.run(Unknown Source)
[Thu Jan 04 17:37:16 CET 2018]  at java.awt.EventQueue$3.run(Unknown Source)
[Thu Jan 04 17:37:16 CET 2018]  at java.security.AccessController.doPrivileged(Native Method)
[Thu Jan 04 17:37:16 CET 2018]  at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
[Thu Jan 04 17:37:16 CET 2018]  at java.awt.EventQueue.dispatchEvent(Unknown Source)
[Thu Jan 04 17:37:16 CET 2018]  at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
[Thu Jan 04 17:37:16 CET 2018]  at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
[Thu Jan 04 17:37:16 CET 2018]  at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
[Thu Jan 04 17:37:16 CET 2018]  at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
[Thu Jan 04 17:37:16 CET 2018]  at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
[Thu Jan 04 17:37:16 CET 2018]  at java.awt.EventDispatchThread.run(Unknown Source)

 

Issue comments