Bug - Fixed Can't build a Windows .exe file for KoLmafia

Veracity

Developer
Staff member
Nothing's changed, near as I can tell.

We use the latest version of JSmooth - 0.9.9.7 -to bundle the .jar to a .exe. That version was released on May 20, 2007.

And yet, when I do "ant jsmooth", I now get the following stack trace:

Code:
jsmooth:
     [move] Moving 1 file to /src/kolmafia/util/windows
  [jsmooth] Executable file is /src/kolmafia/util/windows/../../dist/KoLmafia-15.0.exe
  [jsmooth] java.lang.NegativeArraySizeException
  [jsmooth] 	at net.charabia.jsmoothgen.application.ExeCompiler.getQuantizedImage(ExeCompiler.java:284)
  [jsmooth] 	at net.charabia.jsmoothgen.application.ExeCompiler.getScaledImage(ExeCompiler.java:421)
  [jsmooth] 	at net.charabia.jsmoothgen.application.ExeCompiler.compile(ExeCompiler.java:175)
  [jsmooth] 	at net.charabia.jsmoothgen.ant.JSmoothGen.execute(JSmoothGen.java:133)
  [jsmooth] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
  [jsmooth] 	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
  [jsmooth] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  [jsmooth] 	at java.lang.reflect.Method.invoke(Method.java:597)
  [jsmooth] 	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
  [jsmooth] 	at org.apache.tools.ant.Task.perform(Task.java:348)
  [jsmooth] 	at org.apache.tools.ant.Target.execute(Target.java:390)
  [jsmooth] 	at org.apache.tools.ant.Target.performTasks(Target.java:411)
  [jsmooth] 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
  [jsmooth] 	at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
  [jsmooth] 	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
  [jsmooth] 	at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
  [jsmooth] 	at org.apache.tools.ant.Main.runBuild(Main.java:809)
  [jsmooth] 	at org.apache.tools.ant.Main.startAnt(Main.java:217)
  [jsmooth] 	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
  [jsmooth] 	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
  [jsmooth] jsmoothgen failed: [Error: null]
   [delete] Deleting: /src/kolmafia/util/windows/tmp.build.jsmooth

I expect this is why the .exe files are no longer building weekly here, too.
 

Veracity

Developer
Staff member
I found the issue. The last .exe file on builds.kolmafia.us was created on October 8. So, obviously, something changed in the week following. Turns out, revision 9885 changed the icon from a JPEG to a GIF, but the jsmooth configuration file was not updated.

Revision 10270 fixes this. Weekly EXE builds should now work again.
 
Top