PlayN 1.4 to PlayN 1.6 runtime error

33 views
Skip to first unread message

brentryan

unread,
Dec 17, 2012, 1:21:55 PM12/17/12
to pl...@googlegroups.com
On a macbook pro if I try to update the hello sample playN game from 1.4 to 1.6 playN version I'm seeing the following runtime error and it won't run.

Is there some trick to getting this to work with the latest playN build?

I'm using the following command line:
bryan:hello bryan$ mvn -Pjava package


[INFO] Executing tasks

main:
     [java] Exception in thread "main" java.lang.IncompatibleClassChangeError: Implementing class
     [java] at java.lang.ClassLoader.defineClass1(NatGPU/driver lacks sufficient vertex uniform vectors for QuadShader.
     [java] ive Method)
     [java] at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
     [java] at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
     [java] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
     [java] at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
     [java] at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
     [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
     [java] at java.security.AccessController.doPrivileged(Native Method)
     [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
     [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
     [java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
     [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

Michael Bayne

unread,
Dec 17, 2012, 1:38:47 PM12/17/12
to pl...@googlegroups.com
On Mon, Dec 17, 2012 at 10:21 AM, brentryan <brent...@gmail.com> wrote:
bryan:hello bryan$ mvn -Pjava package

I assume you mean 1.6-SNAPSHOT since 1.6 has not been released.

This should work:

  mvn clean package -Pjava

or just

  mvn clean test

You don't need to specify -Pjava since it's the default. And the 'test' target will actually run the game.

-- m...@samskivert.com

brentryan

unread,
Dec 17, 2012, 2:43:46 PM12/17/12
to pl...@googlegroups.com
Ya, "mvn clean test" no longer launches the game and for some reason it doesn't launch without me explicitely running "-Pjava" profile even though it's activated by default.

Anyways, I did get the "hello" sample to run again after erasing my local maven repo and rebuilding.  However, it does still print out this message to the console:

     [java] GPU/driver lacks sufficient vertex uniform vectors for QuadShader.

The strange thing is that I don't get this error in my own project when using PlayN 1.4, but if I update to use PlayN 1.5 then I get this error.

main:
     [java] Exception in thread "main" java.lang.IncompatibleClassChangeError: Implementing class
     [java] at java.lang.ClassLoader.defineClass1(Native Method)
     [java] at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
     [java] at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
     [java] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
     [java] at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
     [java] at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
     [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
     [java] at java.security.AccessController.doPrivileged(Native Method)
     [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
     [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
     [java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
     [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
     [java] at ****.***Game.init(****Game.java:GPU/driver lacks sufficient vertex uniform vectors for QuadShader.
     [java] 30)
     [java] at playn.java.JavaPlatform.run(JavaPlatform.java:284)
     [java] at playn.core.PlayN.run(PlayN.java:47)
     [java] at ***.***GameJava.main(****GameJava.java:12)



Any ideas? 

brentryan

unread,
Dec 17, 2012, 3:03:55 PM12/17/12
to pl...@googlegroups.com
Ok, I did eventually get things working with 1.5 and 1.6-SNAPSHOT.  I think the problem was we were using a different version of the nativedependencies plugin.

But I do still see this printing out to the console when we launch so it something must not be doing things correctly.  I'll have to investigate more later.

[java] GPU/driver lacks sufficient vertex uniform vectors for QuadShader.



Reply all
Reply to author
Forward
0 new messages