IsmAvatar / LateralGM

A free Game Maker source file editor
http://lateralgm.org/
Other
95 stars 25 forks source link

Font Clear Ranges Exception #536

Closed RobertBColton closed 4 years ago

RobertBColton commented 4 years ago

If you try to clear the range when there already aren't any ranges, you get this. Can also reproduce it in the room editor with the delete all instances button on the toolbar.

LateralGM Version: 1.8.195
Working Directory: C:\Users\Owner\Documents\Eclipse Workspace\LateralGM\bin

Operating System: Windows 10
Version: 10.0
Architecture: amd64

Java Name: Java HotSpot(TM) 64-Bit Server VM
Java Vendor: Oracle Corporation
Version: 13.0.2

Current Thread: AWT-EventQueue-0
Available processors (cores): 6
Free memory (bytes): 33661328
Maximum memory (bytes): 4259315712
Total memory available to JVM (bytes): 52428800

File system root: C:\
Total space (bytes): 999526756352
Free space (bytes): 599273472000
Usable space (bytes): 599273472000

Stack trace:
java.lang.IndexOutOfBoundsException: bitIndex < 0: -1
    at java.base/java.util.BitSet.get(BitSet.java:624)
    at java.desktop/javax.swing.DefaultListSelectionModel.clear(DefaultListSelectionModel.java:314)
    at java.desktop/javax.swing.DefaultListSelectionModel.setState(DefaultListSelectionModel.java:622)
    at java.desktop/javax.swing.DefaultListSelectionModel.removeIndexInterval(DefaultListSelectionModel.java:690)
    at java.desktop/javax.swing.plaf.basic.BasicListUI$Handler.intervalRemoved(BasicListUI.java:2763)
    at org.lateralgm.ui.swing.util.ArrayListModel.updated(ArrayListModel.java:93)
    at org.lateralgm.main.UpdateSource$WeakListenerTraverser.visit(UpdateSource.java:137)
    at org.lateralgm.main.UpdateSource$WeakListenerTraverser.visit(UpdateSource.java:1)
    at org.lateralgm.util.SetTraverser.traverse(SetTraverser.java:72)
    at org.lateralgm.main.UpdateSource.fireUpdate(UpdateSource.java:63)
    at org.lateralgm.main.UpdateSource.access$0(UpdateSource.java:61)
    at org.lateralgm.main.UpdateSource$UpdateTrigger.fire(UpdateSource.java:103)
    at org.lateralgm.util.ActiveArrayList.clear(ActiveArrayList.java:75)
    at org.lateralgm.subframes.FontFrame.actionPerformed(FontFrame.java:508)
    at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
    at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
    at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
    at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
    at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279)
    at java.desktop/java.awt.Component.processMouseEvent(Component.java:6636)
    at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
    at java.desktop/java.awt.Component.processEvent(Component.java:6401)
    at java.desktop/java.awt.Container.processEvent(Container.java:2263)
    at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5012)
    at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
    at java.desktop/java.awt.Component.dispatchEvent(Component.java:4844)
    at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
    at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
    at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
    at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
    at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2762)
    at java.desktop/java.awt.Component.dispatchEvent(Component.java:4844)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
    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(AccessController.java:391)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
    at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
    at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
    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)