OK, I've managed to get the error from this report to happen reliably (for me) and I was wrong about where it was. It was happening for me in the Palindome because that's the first time I generally need to restore HP.
It happens when I am using Item Manager:Restores tab and press the column header for the HP Restore column.
Note that it does sort the first 3 items in place, but not the blanks and not the items after that.


version: KoLmafia v20.7 r20382 (my local source build)
Java: 13.0.2
gCLI text
Using 1 scroll of drastic healing...
Unexpected error, debug log printed.
Finished using 1 scroll of drastic healing.
View attachment DEBUG_20200923.txt
Since I started from terminal, I also have this. I can make this happen as many times as I press the sort button.
It happens when I am using Item Manager:Restores tab and press the column header for the HP Restore column.
Note that it does sort the first 3 items in place, but not the blanks and not the items after that.


version: KoLmafia v20.7 r20382 (my local source build)
Java: 13.0.2
gCLI text
Using 1 scroll of drastic healing...
Unexpected error, debug log printed.
Finished using 1 scroll of drastic healing.
View attachment DEBUG_20200923.txt
Since I started from terminal, I also have this. I can make this happen as many times as I press the sort button.
Code:
Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: java.lang.Long incompatible with java.lang.Integer
at net.sourceforge.kolmafia.swingui.widget.ShowDescriptionTable$RenderedComparator.compare(ShowDescriptionTable.java:412)
at org.jdesktop.swingx.decorator.Sorter.compare(Sorter.java:136)
at org.jdesktop.swingx.decorator.Sorter.compare(Sorter.java:112)
at org.jdesktop.swingx.decorator.ShuttleSorter.sort(ShuttleSorter.java:157)
at org.jdesktop.swingx.decorator.ShuttleSorter.sort(ShuttleSorter.java:127)
at org.jdesktop.swingx.decorator.ShuttleSorter.sort(ShuttleSorter.java:126)
at org.jdesktop.swingx.decorator.ShuttleSorter.sort(ShuttleSorter.java:127)
at org.jdesktop.swingx.decorator.ShuttleSorter.filter(ShuttleSorter.java:77)
at org.jdesktop.swingx.decorator.Filter.refresh(Filter.java:349)
at org.jdesktop.swingx.decorator.Sorter.refresh(Sorter.java:58)
at org.jdesktop.swingx.decorator.Filter.refresh(Filter.java:74)
at org.jdesktop.swingx.decorator.FilterPipeline.setSorter(FilterPipeline.java:129)
at org.jdesktop.swingx.decorator.FilterPipeline$SorterBasedSortController.toggleSortOrder(FilterPipeline.java:171)
at org.jdesktop.swingx.JXTable.toggleSortOrder(JXTable.java:2046)
at org.jdesktop.swingx.JXTableHeader$HeaderListener.doSort(JXTableHeader.java:608)
at org.jdesktop.swingx.JXTableHeader$HeaderListener.mouseClicked(JXTableHeader.java:589)
at java.desktop/java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:278)
at java.desktop/java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:277)
at java.desktop/java.awt.Component.processMouseEvent(Component.java:6639)
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:4556)
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:704)
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:704)
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)