java.lang.IllegalArgumentException: Comparison method violates its general contract!
at java.base/java.util.TimSort.mergeHi(Unknown Source)
at java.base/java.util.TimSort.mergeAt(Unknown Source)
at java.base/java.util.TimSort.mergeForceCollapse(Unknown Source)
at java.base/java.util.TimSort.sort(Unknown Source)
at java.base/java.util.Arrays.sort(Unknown Source)
at mindustry.ui.dialogs.FileChooser.getFileNames(FileChooser.java:167)
at mindustry.ui.dialogs.FileChooser.updateFiles(FileChooser.java:193)
at mindustry.ui.dialogs.FileChooser.setupWidgets(FileChooser.java:98)
at mindustry.ui.dialogs.FileChooser.lambda$new$1(FileChooser.java:49)
at arc.scene.ui.Dialog$5.shown(Dialog.java:397)
at arc.scene.event.VisibilityListener.handle(VisibilityListener.java:11)
at arc.scene.Element.notify(Element.java:162)
at arc.scene.Element.fire(Element.java:133)
at arc.scene.ui.Dialog.show(Dialog.java:468)
at arc.scene.ui.Dialog.show(Dialog.java:507)
at arc.scene.ui.Dialog.show(Dialog.java:502)
at mindustry.core.Platform.defaultFileDialog(Platform.java:211)
at mindustry.core.Platform.showFileChooser(Platform.java:147)
at mindustry.core.Platform.showFileChooser(Platform.java:215)
at mindustry.ui.dialogs.SchematicsDialog.lambda$showImport$27(SchematicsDialog.java:237)
at arc.scene.Element.lambda$clicked$2(Element.java:913)
at arc.scene.Element$4.clicked(Element.java:922)
at arc.scene.event.ClickListener.touchUp(ClickListener.java:77)
at arc.scene.event.InputListener.handle(InputListener.java:31)
at arc.scene.Scene.touchUp(Scene.java:370)
at arc.input.InputMultiplexer.touchUp(InputMultiplexer.java:136)
at arc.input.InputEventQueue.drain(InputEventQueue.java:71)
at arc.backend.sdl.SdlInput.update(SdlInput.java:181)
at arc.backend.sdl.SdlApplication.loop(SdlApplication.java:189)
at arc.backend.sdl.SdlApplication.(SdlApplication.java:54)
at mindustry.desktop.DesktopLauncher.main(DesktopLauncher.java:39)
java.lang.IllegalArgumentException: Comparison method violates its general contract!
at java.base/java.util.TimSort.mergeHi(Unknown Source)
at java.base/java.util.TimSort.mergeAt(Unknown Source)
at java.base/java.util.TimSort.mergeForceCollapse(Unknown Source)
at java.base/java.util.TimSort.sort(Unknown Source)
at java.base/java.util.Arrays.sort(Unknown Source)
at mindustry.ui.dialogs.FileChooser.getFileNames(FileChooser.java:167)
at mindustry.ui.dialogs.FileChooser.updateFiles(FileChooser.java:193)
at mindustry.ui.dialogs.FileChooser.lambda$updateFiles$14(FileChooser.java:230)
at arc.scene.Element.lambda$clicked$2(Element.java:913)
at arc.scene.Element$4.clicked(Element.java:922)
at arc.scene.event.ClickListener.touchUp(ClickListener.java:77)
at arc.scene.event.InputListener.handle(InputListener.java:31)
at arc.scene.Scene.touchUp(Scene.java:370)
at arc.input.InputMultiplexer.touchUp(InputMultiplexer.java:136)
at arc.input.InputEventQueue.drain(InputEventQueue.java:71)
at arc.backend.sdl.SdlInput.update(SdlInput.java:181)
at arc.backend.sdl.SdlApplication.loop(SdlApplication.java:189)
at arc.backend.sdl.SdlApplication.(SdlApplication.java:54)
at mindustry.desktop.DesktopLauncher.main(DesktopLauncher.java:39)
Platforms
Windows
Build
steam build 146
Issue
crash
Steps to reproduce
clicked on the import scheme button
Mods used
vanilla
Save file
No response
(Crash) logs
Mindustry has crashed. How unfortunate. Report this at https://github.com/Anuken/Mindustry/issues/new?labels=bug&template=bug_report.md
Version: steam build 146 OS: Windows 10 x64 (amd64) Java Version: 16.0.1 Runtime Available Memory: 4078mb Cores: 16 Mods: none (vanilla)
java.lang.IllegalArgumentException: Comparison method violates its general contract! at java.base/java.util.TimSort.mergeHi(Unknown Source) at java.base/java.util.TimSort.mergeAt(Unknown Source) at java.base/java.util.TimSort.mergeForceCollapse(Unknown Source) at java.base/java.util.TimSort.sort(Unknown Source) at java.base/java.util.Arrays.sort(Unknown Source) at mindustry.ui.dialogs.FileChooser.getFileNames(FileChooser.java:167) at mindustry.ui.dialogs.FileChooser.updateFiles(FileChooser.java:193) at mindustry.ui.dialogs.FileChooser.setupWidgets(FileChooser.java:98) at mindustry.ui.dialogs.FileChooser.lambda$new$1(FileChooser.java:49) at arc.scene.ui.Dialog$5.shown(Dialog.java:397) at arc.scene.event.VisibilityListener.handle(VisibilityListener.java:11) at arc.scene.Element.notify(Element.java:162) at arc.scene.Element.fire(Element.java:133) at arc.scene.ui.Dialog.show(Dialog.java:468) at arc.scene.ui.Dialog.show(Dialog.java:507) at arc.scene.ui.Dialog.show(Dialog.java:502) at mindustry.core.Platform.defaultFileDialog(Platform.java:211) at mindustry.core.Platform.showFileChooser(Platform.java:147) at mindustry.core.Platform.showFileChooser(Platform.java:215) at mindustry.ui.dialogs.SchematicsDialog.lambda$showImport$27(SchematicsDialog.java:237) at arc.scene.Element.lambda$clicked$2(Element.java:913) at arc.scene.Element$4.clicked(Element.java:922) at arc.scene.event.ClickListener.touchUp(ClickListener.java:77) at arc.scene.event.InputListener.handle(InputListener.java:31) at arc.scene.Scene.touchUp(Scene.java:370) at arc.input.InputMultiplexer.touchUp(InputMultiplexer.java:136) at arc.input.InputEventQueue.drain(InputEventQueue.java:71) at arc.backend.sdl.SdlInput.update(SdlInput.java:181) at arc.backend.sdl.SdlApplication.loop(SdlApplication.java:189) at arc.backend.sdl.SdlApplication.(SdlApplication.java:54)
at mindustry.desktop.DesktopLauncher.main(DesktopLauncher.java:39)
Mindustry has crashed. How unfortunate. Report this at https://github.com/Anuken/Mindustry/issues/new?labels=bug&template=bug_report.md
Version: steam build 146 OS: Windows 10 x64 (amd64) Java Version: 16.0.1 Runtime Available Memory: 4078mb Cores: 16 Mods: none (vanilla)
java.lang.IllegalArgumentException: Comparison method violates its general contract! at java.base/java.util.TimSort.mergeHi(Unknown Source) at java.base/java.util.TimSort.mergeAt(Unknown Source) at java.base/java.util.TimSort.mergeForceCollapse(Unknown Source) at java.base/java.util.TimSort.sort(Unknown Source) at java.base/java.util.Arrays.sort(Unknown Source) at mindustry.ui.dialogs.FileChooser.getFileNames(FileChooser.java:167) at mindustry.ui.dialogs.FileChooser.updateFiles(FileChooser.java:193) at mindustry.ui.dialogs.FileChooser.lambda$updateFiles$14(FileChooser.java:230) at arc.scene.Element.lambda$clicked$2(Element.java:913) at arc.scene.Element$4.clicked(Element.java:922) at arc.scene.event.ClickListener.touchUp(ClickListener.java:77) at arc.scene.event.InputListener.handle(InputListener.java:31) at arc.scene.Scene.touchUp(Scene.java:370) at arc.input.InputMultiplexer.touchUp(InputMultiplexer.java:136) at arc.input.InputEventQueue.drain(InputEventQueue.java:71) at arc.backend.sdl.SdlInput.update(SdlInput.java:181) at arc.backend.sdl.SdlApplication.loop(SdlApplication.java:189) at arc.backend.sdl.SdlApplication.(SdlApplication.java:54)
at mindustry.desktop.DesktopLauncher.main(DesktopLauncher.java:39)
Submission