enigma icon indicating copy to clipboard operation
enigma copied to clipboard

broken configs can cause UI to silently fail

Open Col-E opened this issue 9 months ago • 5 comments

Following the java -jar instructions in README.md does not work as expected for any release in the past year or so. None of the artifacts past version 2.0 launch the user interface.

Using java -jar enigma-swing-all.jar:

  • 1.X: Works as expected
  • 2.0: Crashes with IOOBE in org.quiltmc.enigma.gui.config.Config.getMostRecentProject(Config.java:131)
  • 2.1+: Creates an empty window that can't be interacted with (Can't maximize, bring to front, has no title, has no preview when hovering over the windows dock bar icon)

I've tried launching with Java 17 and 21 but there is no change in behavior. Is there some additional requirement not outlined in the README.md ?

Col-E avatar Mar 21 '25 12:03 Col-E

i'll look into this, thanks for reporting!

ix0rai avatar Mar 21 '25 22:03 ix0rai

unfortunately working fine. let me try clearing my config

ix0rai avatar Mar 21 '25 23:03 ix0rai

still cannot reproduce. UI is fully functional using java 21 and the latest build off master (https://github.com/QuiltMC/enigma/commit/bd1defafe2c9daec68f4b4a0c9104cef6f81c791), launching with an empty config on arch linux. can you provide some system details?

ix0rai avatar Mar 22 '25 00:03 ix0rai

let me try clearing my config

That solved my issue, I guess upgrading from some old version I used previously got something stuck.

The contents of my config folder are here: enigma.zip (AppData/Local/Enigma)

The empty window I mentioned before has no main thread, and the swing threads are all parked. Not sure what happened to cause that, but having some console output for any errors would probably be beneficial.

Col-E avatar Mar 22 '25 01:03 Col-E

thanks! i'll make sure to get that config fixed.

ix0rai avatar Mar 22 '25 01:03 ix0rai