Skip to main content

Problems running phoneme

1 reply [Last post]
mariof67
Offline
Joined: 2007-07-30

Hello Everyone:

I have build phoneme advanced + qt (3.3.8) for arm-linux using the toolchain arm-linux-cs344-2.3 from scratchbox.
Here is the build command I used:

make JDK_HOME=/home/mario/j2sdk1.4.2_15 J2ME_CLASSLIB=personal CVM_TARGET_TOOLS_PREFIX=/scratchbox/compilers/arm-linux-cs344-2.3/bin/arm-none-linux-gnueabi- QT_TARGET_DIR=/scratchbox/users/mario/home/mario/qt-x11-free-3.3.8/ HOST_CC=/usr/bin/cc HOST_CCC=/usr/bin/g++ AWT_IMPLEMENTATION=peer_based AWT_PEERSET=qt X11_LIB_DIR=/scratchbox/users/mario/targets/Nilo/usr/local/lib/

Running the jvm in Scratchbox using sbrsh with this result :

[sbox-Nilo: ~/jvm-prova] > bin/cvm -cp testclasses.zip Test
*Number of command line arguments: 0
Starting test1
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...link
...link
...link
Starting test1 again
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...link
...link
...link
test6: Caught inner java.lang.NullPointerException
test6: Caught outer java.lang.NullPointerException
Testing Array Copy
*TEST FAILURE: testArrayCopy: Float copy
*TEST FAILURE: testArrayCopy: Double copy
*TEST FAILURE: testArrayCopy: Long copy
*TestE exception thrown because "I'm feeling Testy"
* threw java.lang.ExceptionInInitializerError
* threw java.lang.NoClassDefFoundError: StaticE
c1 = class [LTest;
c2 = class [[LTest;
c3 = class [LC;
c4 = class [[LC;
c1.modifiers = 1041
c2.modifiers = 1041
c3.modifiers = 1040
c4.modifiers = 1040
*TEST FAILURE: testCloning: Cloned object not the same as original
*FloatMIN =1.4E-45
*FloatMAX =3.4028235E38
FloatMIN (the int bits) =1
FloatMAX (the int bits) =2139095039
java.lang.IllegalArgumentException: too many dimensions
at java.lang.reflect.Array.multiNewArray(Native Method)
at java.lang.reflect.Array.newInstance(Unknown Source)
at Test.testDeepArrayConstruction(Unknown Source)
at Test.main(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.misc.CVM.runMain(Unknown Source)
Constructed an object of type [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[LTest;
finally!
Requesting GC with a latency request of 2 seconds
(Turning GC tracing on)
Sleeping 5 seconds, and waiting for GC's

... it hangs ....

[sbox-Nilo: ~/jvm-prova] > bin/cvm -cp testclasses.zip HelloWorld
Hello world.

[sbox-Nilo: ~/jvm-prova] > bin/cvm -cp democlasses.jar personal.DemoFrame
java.lang.UnsatisfiedLinkError: sun.awt.qt.QtToolkit.initIDs()V
at sun.awt.qt.QtToolkit.(Unknown Source)
at java.lang.Class.runStaticInitializers(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at java.awt.Toolkit$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Unknown Source)
at java.security.AccessController.doPrivileged(Unknown Source)
at java.awt.Toolkit.getDefaultToolkit(Unknown Source)
at sun.awt.qt.QtGraphicsEnvironment.(Unknown Source)
at java.lang.Class.runStaticInitializers(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Source)
at java.awt.Window.(Unknown Source)
at java.awt.Frame.(Unknown Source)
at java.awt.Frame.(Unknown Source)
at basis.DemoFrame.(Unknown Source)
at personal.DemoFrame.(Unknown Source)
at personal.DemoFrame.main(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.misc.CVM.runMain(Unknown Source)

Using nm to look at the symbols in the native library seems the symbols are being defined correctly:

[sbox-Nilo: ~/jvm-prova] > nm lib/libqtawt.so | grep sun.awt.qt.QtToolkit.initIDs
00040ea0 T Java_sun_awt_qt_QtToolkit_initIDs

Could anyone give me suggestions ?
Thanks in advance.

Regards,
Mario

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
cjplummer
Offline
Joined: 2006-10-16

I'm not sure about the first problem. Try a CVM_DEBUG=true build and see if that turns up anything. If possible, debug in gdb and see where it is hanging. Also, try running with -Xjit:compile=none to see if it is likely a JIT problem.

For the second problem, you probably need to add qt to your LD_LIBRARY_PATH. A debug build should produce a bit more information. Also, look here for more help:

http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedCVMNative...

Chris