Can't run 006 on Linux (ubuntu)

Report bugs and errors

Can't run 006 on Linux (ubuntu)

Postby voxelfog on Fri, 12 Dec 2008 04:04:05 GMT

Hi, I just downloaded the new release of Alchemy for Linux, but it doesn't seem to start up.
I'm able to run 005 just fine.
I'm running Ubuntu, and have java installed.

I get these errors when running from the terminal, from the Alchemy directory

Exception in thread "main" java.lang.ExceptionInInitializerError
at org.alchemy.core.Alchemy.<clinit>(Alchemy.java:41)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 8
at java.lang.String.substring(String.java:1946)
at org.alchemy.core.AlcConstants.<clinit>(AlcConstants.java:57)
... 1 more
Could not find the main class: org.alchemy.core.Alchemy. Program will exit.

Any ideas?
voxelfog
 
Posts: 5
Joined: Thu, 04 Dec 2008 16:08:49 GMT

Re: Can't run 006 on Linux (ubuntu)

Postby Karl DD on Fri, 12 Dec 2008 06:46:24 GMT

Thanks for the bug report.
I've uploaded a modified version without the one line of code that was causing the problem.
Always the worst thing to upload a fresh version and it doesnt work!
Thanks again.

Karl

Ps, if you have any problems I will have to fix them up on Monday when I get back.
Also Ubuntu has a few java bugs lurking around, mainly to do with interface widgets.
But it still seems to run here on 8.04.
User avatar
Karl DD
Site Admin
 
Posts: 592
Joined: Sun, 20 Jan 2008 02:45:28 GMT
Location: Pittsburgh, PA

Re: Can't run 006 on Linux (ubuntu)

Postby Glaurung on Sun, 15 Feb 2009 00:02:33 GMT

Hi,

I have tested your modified version and still cannot run Alchemy on my Debian Lenny, giving the same errors as already posted but in previous versions too, at least until alpha 004.
I have the original jre installation from Sun. Tested 1.6 and 1.5 with no differences, it seems.

When I try to run Alchemy directly from Alchemy.jar file, different error appears:
- At least one modules must be installed for Alchemy to run. Check the module folder and try to launch the application again.

Hope it helps to solve.
Thanks,
Raimon
Glaurung
 
Posts: 5
Joined: Sat, 14 Feb 2009 23:52:12 GMT

Re: Can't run 006 on Linux (ubuntu)

Postby Karl DD on Sun, 15 Feb 2009 12:18:19 GMT

Hi,

Can you post the error that turns up when using the 'Alchemy' launch script?

As far as opening from the .jar file it sounds like it cannot locate the modules folder for some reason...
It should look for that within the local Alchemy folder, but I am not quite sure how this works in Linux land.

I am not sure this has anything to do with it, but you might try and play with launching it from the command, or modifying the launch script below.
I also got the 'At least one module must be installed for Alchemy to run' when trying to launch Alchemy.jar from the UI, but when running "java -jar Alchemy.jar" it worked ok.

Code: Select all
#!/bin/sh
cd `dirname $0`
if [ -n "$JAVA_HOME" ]; then
  $JAVA_HOME/bin/java -jar ./Alchemy.jar $*
else
  java -jar ./Alchemy.jar $*
fi
cd $OLDPWD
User avatar
Karl DD
Site Admin
 
Posts: 592
Joined: Sun, 20 Jan 2008 02:45:28 GMT
Location: Pittsburgh, PA

Re: Can't run 006 on Linux (ubuntu)

Postby Glaurung on Sun, 15 Feb 2009 13:27:06 GMT

Hi,

this is the error that appears wether I run from java -jar Alchemy.jar or from the launcher script:

Code: Select all
Exception in thread "main" java.lang.ExceptionInInitializerError
   at java.lang.Class.initializeClass(libgcj.so.90)
   at org.alchemy.core.Alchemy.<clinit>(Alchemy.java:41)
   at java.lang.Class.initializeClass(libgcj.so.90)
Caused by: java.lang.IllegalArgumentException:  width<=0 height<=0
   at java.awt.image.SampleModel.<init>(libgcj.so.90)
   at java.awt.image.SinglePixelPackedSampleModel.<init>(libgcj.so.90)
   at java.awt.image.SinglePixelPackedSampleModel.<init>(libgcj.so.90)
   at java.awt.image.BufferedImage.<init>(libgcj.so.90)
   at org.alchemy.core.AlcUtil.getCursor(AlcUtil.java:271)
   at org.alchemy.core.AlcConstants.<clinit>(AlcConstants.java:123)
   at java.lang.Class.initializeClass(libgcj.so.90)
   ...2 more


By the way and anyway, great app. I'm wondering why I haven't discovered it before!!!
Raimon
Glaurung
 
Posts: 5
Joined: Sat, 14 Feb 2009 23:52:12 GMT

Re: Can't run 006 on Linux (ubuntu)

Postby Karl DD on Mon, 16 Feb 2009 12:28:36 GMT

Hi,

I have had a quick look at the output and made a small fix.
Can you have a try with the attached file - drop it in the Alchemy folder.
Let me know how it goes, and if there is still a problem please post the console output back here.

Thanks!
Attachments
Alchemy.jar
(3.61 MB) Downloaded 105 times
User avatar
Karl DD
Site Admin
 
Posts: 592
Joined: Sun, 20 Jan 2008 02:45:28 GMT
Location: Pittsburgh, PA

Re: Can't run 006 on Linux (ubuntu)

Postby Glaurung on Mon, 16 Feb 2009 14:21:55 GMT

Hi Karl,

thanks for your efforts. This time the application starts, with the following output in the terminal:

Code: Select all
~/Desktop/Alchemy$ java -jar Alchemy.jar
16-feb-09 3:12:10  org.java.plugin.registry.xml.ManifestParser <init>
INFO: got SAX parser factory - gnu.xml.stream.SAXParserFactory@6a6013f5
16-feb-09 3:12:10  org.java.plugin.registry.xml.PluginRegistryImpl configure
INFO: configured, stopOnError=false, isValidating=true
16-feb-09 3:12:24  org.java.plugin.registry.xml.PluginRegistryImpl register
INFO: plug-in and fragment descriptors registered - 19
16-feb-09 3:12:24  org.java.plugin.standard.StandardPluginManager activatePlugin
INFO: plug-in started - org.alchemy.core@1.0.0 (active/total: 1 of 19)
16-feb-09 3:12:24  org.java.plugin.standard.StandardPluginManager activatePlugin
INFO: plug-in started - org.alchemy.affect.displace@1.0.3 (active/total: 2 of 19)
16-feb-09 3:12:24  org.java.plugin.standard.StandardPluginManager activatePlugin
INFO: plug-in started - org.alchemy.affect.repeat@1.0.4 (active/total: 3 of 19)
16-feb-09 3:12:24  org.java.plugin.standard.StandardPluginManager activatePlugin
INFO: plug-in started - org.alchemy.affect.micExpand@1.0.5 (active/total: 4 of 19)
16-feb-09 3:12:24  org.java.plugin.standard.StandardPluginManager activatePlugin
INFO: plug-in started - org.alchemy.affect.random@1.0.4 (active/total: 5 of 19)
16-feb-09 3:12:24  org.java.plugin.standard.StandardPluginManager activatePlugin
INFO: plug-in started - org.alchemy.affect.colourSwitcher@1.0.1 (active/total: 6 of 19)
16-feb-09 3:12:24  org.java.plugin.standard.StandardPluginManager activatePlugin
INFO: plug-in started - org.alchemy.affect.mirror@1.0.9 (active/total: 7 of 19)
16-feb-09 3:12:24  org.java.plugin.standard.StandardPluginManager activatePlugin
INFO: plug-in started - org.alchemy.affect.blindness@1.0.4 (active/total: 8 of 19)
16-feb-09 3:12:24  org.java.plugin.standard.StandardPluginManager activatePlugin
INFO: plug-in started - org.alchemy.create.micShapes@1.0.4 (active/total: 9 of 19)
16-feb-09 3:12:24  org.java.plugin.standard.StandardPluginManager activatePlugin
INFO: plug-in started - org.alchemy.create.xShapes@1.0.3 (active/total: 10 of 19)
16-feb-09 3:12:24  org.java.plugin.standard.StandardPluginManager activatePlugin
INFO: plug-in started - org.alchemy.create.speedShapes@1.0.3 (active/total: 11 of 19)
16-feb-09 3:12:24  org.java.plugin.standard.StandardPluginManager activatePlugin
INFO: plug-in started - org.alchemy.create.medianShapes@1.0.4 (active/total: 12 of 19)
16-feb-09 3:12:24  org.java.plugin.standard.StandardPluginManager activatePlugin
INFO: plug-in started - org.alchemy.create.scrawlShapes@1.0.2 (active/total: 13 of 19)
16-feb-09 3:12:24  org.java.plugin.standard.StandardPluginManager activatePlugin
INFO: plug-in started - org.alchemy.create.inverseShapes@1.0.4 (active/total: 14 of 19)
16-feb-09 3:12:24  org.java.plugin.standard.StandardPluginManager activatePlugin
INFO: plug-in started - org.alchemy.create.shapes@1.0.9 (active/total: 15 of 19)
16-feb-09 3:12:24  org.java.plugin.standard.StandardPluginManager activatePlugin
INFO: plug-in started - org.alchemy.create.traceShapes@1.0.4 (active/total: 16 of 19)
16-feb-09 3:12:24  org.java.plugin.standard.StandardPluginManager activatePlugin
INFO: plug-in started - org.alchemy.create.detachShapes@1.0.2 (active/total: 17 of 19)
16-feb-09 3:12:24  org.java.plugin.standard.StandardPluginManager activatePlugin
INFO: plug-in started - org.alchemy.create.pullShapes@1.0.0 (active/total: 18 of 19)
16-feb-09 3:12:24  org.java.plugin.standard.StandardPluginManager activatePlugin
INFO: plug-in started - org.alchemy.create.typeShapes@1.0.7 (active/total: 19 of 19)
Number of Plugins: 18
16-feb-09 3:12:24  jpen.provider.xinput.NativeLoader load
INFO: loading architecture: ""
16-feb-09 3:12:25  jpen.provider.xinput.NativeLoader$3 run
INFO: setting preferred architecture to: "null"
Java Version: 1.5.0
Platform: Linux
Version: 2.6.26-1-amd64
Architecture: x86_64


The app window appears and the app itself is monitored with Alchemy logo icon at the task bar, but sadly is completely unresponsive.
I have to close it by killing. edit: I've noticed too that there isn't CPU relevant activity while the app is hung.

Perhaps this is another problem not related to the former, or maybe I miss some dependencies wich I don't know... you will know better than me ;)
Thanks again,
Raimon
Glaurung
 
Posts: 5
Joined: Sat, 14 Feb 2009 23:52:12 GMT

Re: Can't run 006 on Linux (ubuntu)

Postby Karl DD on Tue, 17 Feb 2009 00:28:03 GMT

Hi,

Are you using a pen tablet?

We have been using a pen tablet library since Alpha 006 and that has some issues with 64 bit systems.
To be sure this is the problem, can you download jPen from here: http://jpen.wiki.sourceforge.net/
Launch the demo app .jar file and see if you can draw with pressure (ink will be black and the size of the brush will change).

Cheers,

Karl
User avatar
Karl DD
Site Admin
 
Posts: 592
Joined: Sun, 20 Jan 2008 02:45:28 GMT
Location: Pittsburgh, PA

Re: Can't run 006 on Linux (ubuntu)

Postby Glaurung on Wed, 18 Feb 2009 12:31:48 GMT

Hi Karl,

sorry for the delay, I was busy. I have tested the jpen app and doesn't detect pressure. I think that even doesn't detect the tablet itself, because at the device info only appears the mouse. I can draw with the tablet and its pen, but ink is not black but blue and, as said, isn't sensible to pressure. Of course, my tablet is well working with other apps, but I must say too that there's not a only way to install wacom tablets in Debian Lenny, and mine is the easiest one.

What can i do if the problem is the tablet? I understand -correct me if not- that is not the tablet itself as a device the problem, but its drivers instead that conflicts with some java issue.
Thanks,
Raimon
Glaurung
 
Posts: 5
Joined: Sat, 14 Feb 2009 23:52:12 GMT

Re: Can't run 006 on Linux (ubuntu)

Postby Karl DD on Wed, 18 Feb 2009 13:35:29 GMT

Hi,

If your tablet works with other applications (pressure/tilt etc...) then then it should in theory work with JPen.
I would post a quick message in their forums:
http://sourceforge.net/forum/forum.php?forum_id=753961
They are really helpful, and also using Linux.
Be sure to post the 'Status Report' from the JPen demo (the button on the bottom right) and mention you are on 64 bit.

In the meantime I will make a version without JPen support and see if that will run on your machine.

Karl
User avatar
Karl DD
Site Admin
 
Posts: 592
Joined: Sun, 20 Jan 2008 02:45:28 GMT
Location: Pittsburgh, PA

Next

Return to Bugs

Who is online

Users browsing this forum: No registered users and 0 guests