NullPointer at any example (9 posts)

  • Profile picture of safetyguard safetyguard-1p said 3 months, 2 weeks ago:

    Hello,
    I have reinstalled the jmePlatform 3.0 beta and started some examples from the JmeTests package, but I get always the following NullPointer:
    SEVERE: Uncaught exception thrown in Thread[AWT-EventQueue-0,6,main]
    java.lang.NullPointerException
    at com.jme3.input.awt.AwtMouseInput$1.run(AwtMouseInput.java:152)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:641)
    at java.awt.EventQueue.access$000(EventQueue.java:84)
    at java.awt.EventQueue$1.run(EventQueue.java:602)
    at java.awt.EventQueue$1.run(EventQueue.java:600)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:611)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Feb 7, 2012 9:56:52 AM com.jme3.renderer.lwjgl.LwjglRenderer updateUniformLocation
    INFO: Uniform m_VertexColor is not declared in shader [ShaderSource[name=Common/MatDefs/Misc/Unshaded.vert, defines, type=Vertex], ShaderSource[name=Common/MatDefs/Misc/Unshaded.frag, defines, type=Fragment]].
    Feb 7, 2012 9:56:52 AM com.jme3.renderer.lwjgl.LwjglRenderer cleanup
    INFO: Deleting objects and invalidating state
    Feb 7, 2012 9:56:52 AM com.jme3.system.lwjgl.LwjglOffscreenBuffer deinitInThread
    INFO: Offscreen buffer destroyed.

    After a Update to the actual stabel version: the same problem.

    Can anybody help me?

  • Profile picture of sbook sbook261p said 3 months, 2 weeks ago:

    It looks like your mouse isn’t being created properly for the canvas… Are you able to run the demos from http://jmonkeyengine.com?

  • Profile picture of normen normen1290p said 3 months, 2 weeks ago:

    Did you create a new JmeTests project? The old one obviously contains the old code.

  • Profile picture of safetyguard safetyguard-1p said 3 months, 1 week ago:

    Yes, I have creates a new JmeTest Project.
    I have tested a bit more: The problem only occurs if the example starts with a “select display settings” frame. The TestCanvas example works without problems.

  • Profile picture of normen normen1290p said 3 months, 1 week ago:

    OS and version? Java JVM and version?

  • Profile picture of safetyguard safetyguard-1p said 3 months, 1 week ago:

    Linux Mint 11 (based on Ubuntu 11.04)
    Kernel Linux 2.6.38-8-generic
    java version “1.6.0_26″
    Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
    Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)

  • Profile picture of safetyguard safetyguard-1p said 2 months, 3 weeks ago:

    Hello,
    I still have these problems. But now unfortunately I have one more problem. The jmePlatform crashes during coding with the following segmentation fault:

    ~/jmonkeyplatform/bin $ ./jmonkeyplatform
    Unknown option -Dsun.java2d.noddraw=true
    The program '<unknown>' received an X Window System error.
    This probably reflects a bug in the program.
    The error was 'BadWindow (invalid Window parameter)'.
      (Details: serial 12675 error_code 3 request_code 20 minor_code 0)
      (Note to programmers: normally, X errors are reported asynchronously;
       that is, you will receive the error a while after causing it.
       To debug your program, run it with the --sync command line
       option to change this behavior. You can then get a meaningful
       backtrace from your debugger if you break on the gdk_x_error() function.)
    #
    # A fatal error has been detected by the Java Runtime Environment:
    #
    #  SIGSEGV (0xb) at pc=0x00007f0703b4da38, pid=7643, tid=139668133607168
    #
    # JRE version: 6.0_26-b03
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (20.1-b02 mixed mode linux-amd64 compressed oops)
    # Problematic frame:
    # C  [libnvidia-glcore.so.270.41.06+0xd43a38]  float+0xd43a38
    #
    # An error report file with more information is saved as:
    # /home/jan/jmonkeyplatform/bin/hs_err_pid7643.log
    #
    # If you would like to submit a bug report, please visit:
    #   http://java.sun.com/webapps/bugreport/crash.jsp
    #
    f./../platform/lib/nbexec: line 548:  7643 Aborted                 "/usr/lib/jvm/java-6-sun/bin/java" -Djdk.home="/usr/lib/jvm/java-6-sun" -classpath "/home/jan/jmonkeyplatform/platform/lib/boot.jar:/home/jan/jmonkeyplatform/platform/lib/org-openide-modules.jar:/home/jan/jmonkeyplatform/platform/lib/org-openide-util.jar:/home/jan/jmonkeyplatform/platform/lib/org-openide-util-lookup.jar:/usr/lib/jvm/java-6-sun/lib/dt.jar:/usr/lib/jvm/java-6-sun/lib/tools.jar" -Dnetbeans.system_http_proxy="DIRECT" -Dnetbeans.system_http_non_proxy_hosts="" -Dnetbeans.dirs="./../jmonkeyplatform:./../extra:./../ide:./../java:" -Dnetbeans.home="/home/jan/jmonkeyplatform/platform" '-Xms24m' '-Xmx512m' '-XX:PermSize=256m' -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="/home/jan/.jmonkeyplatform/3.0beta/var/log/heapdump.hprof" org.netbeans.Main --userdir "/home/jan/.jmonkeyplatform/3.0beta" "--branding" "jmonkeyplatform" "-Dsun.java2d.noddraw=true" "-Dsun.awt.noerasebackground=true" "-Dsun.java2d.d3d=false" "-Dsun.java2d.opengl=false" "-Dsun.java2d.pmoffscreen=false" 0<&0

    It looks like a Nvidia driver bug. Has anybody an idea how to solve this?

  • Profile picture of normen normen1290p said 2 months, 3 weeks ago:

    http://jmonkeyengine.org/wiki/doku.php/sdk:troubleshooting#stability_issues_on_linux

  • Profile picture of safetyguard safetyguard-1p said 2 months, 3 weeks ago:

    I have solved my last problem by using the Oracle JDK version 6 instead of OpenJDK.
    My first problem related to the NullPointer at the application start can be prevented with the following line:

    app.setShowSettings(false);

    I’m still confused a little bit, because a weeks ago all examples works with the settings dialog at the beginning of each example.