mage icon indicating copy to clipboard operation
mage copied to clipboard

CLIENT - unhandled error in GUI - IllegalArgumentException (ComparableTimSort)

Open ReksRaven opened this issue 1 year ago • 3 comments

I have an issue when trying to open deck editor. I have never opened the program before. Did set the available RAM to more than 5gb already

Error type: CLIENT - unhandled error in GUI - IllegalArgumentException Client version: 1.4.55-V2 (build: 2024-12-01 17:48)

Comparison method violates its general contract!

Stack trace: java.util.ComparableTimSort.mergeHi(ComparableTimSort.java:866) java.util.ComparableTimSort.mergeAt(ComparableTimSort.java:483) java.util.ComparableTimSort.mergeForceCollapse(ComparableTimSort.java:422) java.util.ComparableTimSort.sort(ComparableTimSort.java:222) java.util.Arrays.sort(Arrays.java:1246) sun.awt.shell.Win32ShellFolderManager2.get(Win32ShellFolderManager2.java:282) sun.awt.shell.ShellFolder.get(ShellFolder.java:258) sun.swing.plaf.synth.SynthFileChooserUIImpl$DirectoryComboBoxModel.addItem(SynthFileChooserUIImpl.java:770) sun.swing.plaf.synth.SynthFileChooserUIImpl.doDirectoryChanged(SynthFileChooserUIImpl.java:564) sun.swing.plaf.synth.SynthFileChooserUI$SynthFCPropertyChangeListener.propertyChange(SynthFileChooserUI.java:280) and other 50 lines

ReksRaven avatar Dec 09 '24 15:12 ReksRaven

We could fix it. Was probably a Java Issue.

I set this parameter -Djava.util.Arrays.useLegacyMergeSort=true Screenshot 2024-12-09 173154

ReksRaven avatar Dec 09 '24 16:12 ReksRaven

What java version are you using?

Looks like https://bugs.openjdk.org/browse/JDK-8305072

xenohedron avatar Dec 09 '24 17:12 xenohedron

Error related to existing of the same/diff folder names in windows system:

  • there are possible two documents folders: for a user and for all
  • there are possible to put one alias folder into another

The first use case is a possible reason for your bug (if there are multiple aliases to the same folder). So as workaround: put all launcher and xmage files in folder like “D:\games\x”. If not helps then try to find such shell folder and restore it to default. Possible instructions: https://www.winhelponline.com/blog/windows-10-shell-folders-paths-defaults-restore/

I recommends to move files first, then try command line option from prev comment, then try to check and restore bad shell folders.

JayDi85 avatar Dec 09 '24 20:12 JayDi85