PDA

View Full Version : Dealing with Buggy Startup in Linux


cayhorstmann
08-14-2007, 10:45 PM
I post this in case another intrepid Linux user runs into it.

I tried the Linux version of Alice a few weeks ago, and all was well. Today I get this:

$ uname -a
Linux thinkpad-x60 2.6.20-16-generic #2 SMP Thu Jun 7 20:19:32 UTC 2007
i686 GNU/Linux

$ java -version
java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
Java HotSpot(TM) Server VM (build 1.6.0_02-b05, mixed mode)

$ ./run-alice
attempting to register mp3 capability...
Registered succesfully
*sys-package-mgr*: processing new jar,
'/home/apps/Alice/Required/gnu/getopt-1.0.7.jar'
*sys-package-mgr*: processing new jar,
'/home/apps/Alice/Required/jython-2.1/jython.jar'
*sys-package-mgr*: processing new jar,
'/home/apps/Alice/Required/lib/alice.jar'
*sys-package-mgr*: processing new jar,
'/home/apps/Alice/Required/jogl/lib/jogl.jar'
*sys-package-mgr*: processing new jar,
'/home/apps/Alice/Required/xerces-2_6_2/resolver.jar'
*sys-package-mgr*: processing new jar,
'/home/apps/Alice/Required/vecmath/lib/ext/vecmath.jar'
*sys-package-mgr*: processing new jar,
'/home/apps/Alice/Required/xerces-2_6_2/xercesImpl.jar'
*sys-package-mgr*: processing new jar,
'/home/apps/Alice/Required/xerces-2_6_2/xml-apis.jar'
*sys-package-mgr*: processing new jar,
'/home/apps/Alice/Required/xerces-2_6_2/xmlParserAPIs.jar'
*sys-package-mgr*: processing new jar,
'/home/apps/Alice/Required/JMF-2.1.1e/lib/customizer.jar'
*sys-package-mgr*: processing new jar,
'/home/apps/Alice/Required/JMF-2.1.1e/lib/jmf.jar'
*sys-package-mgr*: processing new jar,
'/home/apps/Alice/Required/JMF-2.1.1e/lib/mediaplayer.jar'
*sys-package-mgr*: processing new jar,
'/home/apps/Alice/Required/JMF-2.1.1e/lib/multiplayer.jar'
*sys-package-mgr*: processing new jar,
'/home/apps/Alice/Required/mp3/lib/ext/mp3plugin.jar'
*sys-package-mgr*: processing new jar,
'/home/apps/jdk1.6.0_02/jre/lib/resources.jar'
*sys-package-mgr*: processing new jar,
'/home/apps/jdk1.6.0_02/jre/lib/rt.jar'
*sys-package-mgr*: processing new jar,
'/home/apps/jdk1.6.0_02/jre/lib/jsse.jar'
*sys-package-mgr*: processing new jar,
'/home/apps/jdk1.6.0_02/jre/lib/jce.jar'
*sys-package-mgr*: processing new jar,
'/home/apps/jdk1.6.0_02/jre/lib/charsets.jar'
*sys-package-mgr*: processing new jar,
'/home/apps/jdk1.6.0_02/jre/lib/ext/dnsns.jar'
*sys-package-mgr*: processing new jar,
'/home/apps/jdk1.6.0_02/jre/lib/ext/sunpkcs11.jar'
*sys-package-mgr*: processing new jar,
'/home/apps/jdk1.6.0_02/jre/lib/ext/sunjce_provider.jar'
*sys-package-mgr*: processing new jar,
'/home/apps/jdk1.6.0_02/jre/lib/ext/localedata.jar'
java.lang.IndexOutOfBoundsException: Invalid index
at
javax.swing.DefaultRowSorter.convertRowIndexToMode l(DefaultRowSorter.java:49
7)
at
sun.swing.FilePane$SortableListModel.getElementAt( FilePane.java:525)
at
javax.swing.plaf.basic.BasicListUI.updateLayoutSta te(BasicListUI.java:1341)
at
javax.swing.plaf.basic.BasicListUI.maybeUpdateLayo utState(BasicListUI.java:1
292)
at
javax.swing.plaf.basic.BasicListUI.getCellBounds(B asicListUI.java:933)
at javax.swing.JList.getCellBounds(JList.java:1600)
at javax.swing.JList.ensureIndexIsVisible(JList.java: 1116)
at sun.swing.FilePane.ensureIndexIsVisible(FilePane.j ava:1514)
at sun.swing.FilePane.doDirectoryChanged(FilePane.jav a:1440)
at sun.swing.FilePane.propertyChange(FilePane.java:14 87)
at
java.beans.PropertyChangeSupport.firePropertyChang e(PropertyChangeSupport.ja
va:339)
at
java.beans.PropertyChangeSupport.firePropertyChang e(PropertyChangeSupport.ja
va:276)
at java.awt.Component.firePropertyChange(Component.ja va:7865)
at
javax.swing.JFileChooser.setCurrentDirectory(JFile Chooser.java:568)
at
edu.cmu.cs.stage3.alice.authoringtool.AuthoringToo l.worldsDirectoryChanged(A
uthoringTool.java:478)
at
edu.cmu.cs.stage3.alice.authoringtool.AuthoringToo l.dialogInit(AuthoringTool
.java:631)
at
edu.cmu.cs.stage3.alice.authoringtool.AuthoringToo l.<init>(AuthoringTool.jav
a:413)
at
edu.cmu.cs.stage3.alice.authoringtool.JAlice.main( JAlice.java:131)

My fix was to edit the run-alice script and force it to run JDK 1.5.0. That cleaned up something, and then I was able to switch it back to 1.6.0. Go figure.

Cheers,

Cay

jdeisenberg
11-06-2007, 06:59 PM
I got the same error with Ubuntu 7.04.

I ran Alice on Mandriva 2008 with java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
Java HotSpot(TM) Client VM (build 1.6.0_02-b05, mixed mode) and it starts up fine, but there are other problems (I'm going to post a separate thread for that).

hpp3
07-31-2008, 03:28 AM
My fix was to edit the run-alice script and force it to run JDK 1.5.0. That cleaned up something, and then I was able to switch it back to 1.6.0. Go figure.

Please can you explain how to force JDK 1.5.0?
I tried adding "-version:1.5.0" at the beginning of the options string, but no avail.
I got the exact error message you got the first time out.
:confused:

$ uname -a
Linux xubuntu-desktop 2.6.22-14-rt #1 SMP PREEMPT RT Tue Feb 12 09:57:10 UTC 2008 i686 GNU/Linux

$ java -version
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)

DrJim
07-31-2008, 09:00 AM
Not personally a Linux user or even familiar with it - but suspect your problems are with the JRE. Alice will run fine without the full JDK installed, so I doubt the problem is with the overall environment.

Somehow JRE 1.4 (or maybe even an earlier version) seems to be "hard wired" (know that's not a software term, but I'm a hardware guy :p) into Alice - and people have generally reported JRE 1.6_x versions don't seem to work.

For a better start, look at http://www.alice.org/community/showthread.php?t=786&highlight=1.6.0_02 .

And if you do come up with a clearer answer - please post it. :) This seems to be a very common problem and I've not seen a clear solution.

hpp3
08-01-2008, 01:45 AM
Curiouser and curiouser...

Thanks for your reply DrJim, I didn't know about Alice's dependence on JRE 1.4, it makes a little more sense now, but not much...

However, I've found that running Alice in "sudo" mode (analagous to running with administrative privileges in Windows...) works just fine. Perhaps a clue?

Update: just tried from Xubuntu 8.04. (previously tried on 7.10)
Looks like it works, but I get a bunch of errors in the terminal:
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0x8f616767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0x8f6168b1]
#2 /usr/lib/libX11.so.6(_XReply+0xfd) [0x8f2591bd]
#3 /opt/Alice/Required/jogl/lib/linux-i586/libjogl.so(XineramaQueryScreens+0xd1) [0x8dfaa487]
#4 /opt/Alice/Required/jogl/lib/linux-i586/libjogl.so(XineramaEnabled+0x5f) [0x8dff16b3]
#5 /opt/Alice/Required/jogl/lib/linux-i586/libjogl.so(Java_com_sun_opengl_impl_x11_GLX_Xinera maEnabled__J+0x2a) [0x8dfac7c9]
#6 [0xb550dd1d]
#7 [0xb5506ea5]
#8 [0xb5506ea5]
#9 [0xb5506ddf]
#10 [0xb5506c87]
#11 [0xb5506c87]
#12 [0xb5506c87]
#13 [0xb550729f]
#14 [0xb5506c87]
#15 [0xb5506c87]
#16 [0xb5506c87]
#17 [0xb5506c87]
#18 [0xb5506c87]
#19 [0xb5506c87]
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0x8f616767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x2e) [0x8f61681e]
#2 /usr/lib/libX11.so.6 [0x8f258518]
#3 /usr/lib/libX11.so.6(XGetVisualInfo+0x26) [0x8f24f0a6]
#4 /usr/lib/libGL.so.1(glXChooseVisual+0x187) [0x8e9783c7]
#5 [0xb550dd1d]
#6 [0xb5506ddf]
#7 [0xb5506ddf]
#8 [0xb5506ddf]
#9 [0xb5506c87]
#10 [0xb5506c87]
#11 [0xb5506c87]
#12 [0xb550729f]
#13 [0xb5506c87]
#14 [0xb5506c87]
#15 [0xb5506c87]
#16 [0xb5506c87]
#17 [0xb5506c87]
#18 [0xb5506c87]
#19 [0xb5506c87]


and trying to run a world, the window resizes larger and larger untill it goes off the screen and my computer locks up.

:confused:
:confused:

hdixon
08-05-2008, 06:47 PM
Alice on Unbuntu 8.04

Following the advice of this thread, http://www.alice.org/community/showthread.php?t=786&highlight=1.6.0_02 I swapped over to the Sun 1.5 java and then started Alice. The switch seemed to work _first time_ running. I could move the objects around and manipulate them no problem. After saving and restarting Alice, the slow choppy behavior returned.Regardless of the version, I still get the Locking Assertion Failure errors on launch.