Uncatched Exception

Installation and usage on Linux / Installation unter Linux
ibanez
Posts: 2
Joined: 10 Jun 2015 17:43

Uncatched Exception

Postby ibanez » 10 Jun 2015 18:03

Hi,

I've got an uncatched Null Pointer exception in HELI-X 6.0.1612.
It appears firstly after updating OS from Ubuntu 14.10 to Ubuntu 15.04. Under 14.10 HELI-X 6.0.1612 works fine.
Went wrong when my RX2SIM Controller is plugged in at startup of HELI-X, but Controller works correctly with calibration app "jstest-gtk".

Thanks

------
~/HELI-X6$ ./runHELI-X.sh
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /home/jens/HELI-X6/libjinput-linux.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
Failed to open device (/dev/input/event14): Failed to open device /dev/input/event14 (13)

Failed to open device (/dev/input/event13): Failed to open device /dev/input/event13 (13)

Failed to open device (/dev/input/event12): Failed to open device /dev/input/event12 (13)

Failed to open device (/dev/input/event11): Failed to open device /dev/input/event11 (13)

Failed to open device (/dev/input/event10): Failed to open device /dev/input/event10 (13)

Failed to open device (/dev/input/event9): Failed to open device /dev/input/event9 (13)

Failed to open device (/dev/input/event8): Failed to open device /dev/input/event8 (13)

Failed to open device (/dev/input/event7): Failed to open device /dev/input/event7 (13)

Failed to open device (/dev/input/event6): Failed to open device /dev/input/event6 (13)

Failed to open device (/dev/input/event5): Failed to open device /dev/input/event5 (13)

Failed to open device (/dev/input/event3): Failed to open device /dev/input/event3 (13)

Failed to open device (/dev/input/event2): Failed to open device /dev/input/event2 (13)

Failed to open device (/dev/input/event1): Failed to open device /dev/input/event1 (13)

Failed to open device (/dev/input/event0): Failed to open device /dev/input/event0 (13)

Linux plugin claims to have found 1 controllers
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at net.HeliX.j.j.ae(Unknown Source)
at net.HeliX.d.ay.<init>(Unknown Source)
at net.HeliX.d.j.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
at java.awt.EventQueue.access$400(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:697)
at java.awt.EventQueue$3.run(EventQueue.java:691)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:714)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at com.jme3.system.Natives.extractNativeLib(Natives.java:150)
at com.jme3.system.Natives.extractNativeLib(Natives.java:121)
at com.jme3.system.Natives.extractNativeLibs(Natives.java:307)
at com.jme3.system.JmeDesktopSystem.initialize(JmeDesktopSystem.java:315)
at com.jme3.system.JmeDesktopSystem.newContext(JmeDesktopSystem.java:234)
at com.jme3.system.JmeSystem.newContext(JmeSystem.java:138)
at com.jme3.app.Application.start(Application.java:385)
at com.jme3.app.Application.start(Application.java:366)
at net.HeliX.j.j.start(Unknown Source)
at net.HeliX.d.i.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
at java.awt.EventQueue.access$400(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:697)
at java.awt.EventQueue$3.run(EventQueue.java:691)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:714)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

~$ lsusb
Bus 001 Device 010: ID 0483:a0eb STMicroelectronics <----- RX2SIM Controller

~/HELI-X6$ java -version
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)

User avatar
Michael
Posts: 1671
Joined: 25 May 2008 16:11
Location: Germany
Contact:

Re: Uncatched Exception

Postby Michael » 10 Jun 2015 21:01

type in:

chmod 777 /dev/input/e*

Then start again with the interface polugged in.

Michael

ibanez
Posts: 2
Joined: 10 Jun 2015 17:43

Re: Uncatched Exception

Postby ibanez » 11 Jun 2015 17:49

Hi,

unfortunately this fixes only the warnings "Failed to open device" of devices that I do not use, but the NP Exception was still raised.

Thanks
Jens
-----------------------------------

$ sudo chmod 777 /dev/input/e*
$ sudo chmod 777 /dev/input/js0
$ ./runHELI-X.sh
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /home/jens/HELI-X6/libjinput-linux.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
Linux plugin claims to have found 7 controllers
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at net.HeliX.j.j.ae(Unknown Source)
at net.HeliX.d.ay.<init>(Unknown Source)
at net.HeliX.d.j.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
at java.awt.EventQueue.access$400(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:697)
at java.awt.EventQueue$3.run(EventQueue.java:691)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:714)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at com.jme3.system.Natives.extractNativeLib(Natives.java:150)
at com.jme3.system.Natives.extractNativeLib(Natives.java:121)
at com.jme3.system.Natives.extractNativeLibs(Natives.java:307)
at com.jme3.system.JmeDesktopSystem.initialize(JmeDesktopSystem.java:315)
at com.jme3.system.JmeDesktopSystem.newContext(JmeDesktopSystem.java:234)
at com.jme3.system.JmeSystem.newContext(JmeSystem.java:138)
at com.jme3.app.Application.start(Application.java:385)
at com.jme3.app.Application.start(Application.java:366)
at net.HeliX.j.j.start(Unknown Source)
at net.HeliX.d.i.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
at java.awt.EventQueue.access$400(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:697)
at java.awt.EventQueue$3.run(EventQueue.java:691)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:714)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

$ ls -al /dev/input
insgesamt 0
drwxr-xr-x 4 root root 440 Jun 11 18:32 .
drwxr-xr-x 19 root root 4740 Jun 11 18:32 ..
drwxr-xr-x 2 root root 160 Jun 11 18:32 by-id
drwxr-xr-x 2 root root 160 Jun 11 18:32 by-path
crwxrwxrwx 1 root input 13, 64 Jun 11 18:29 event0
crwxrwxrwx 1 root input 13, 65 Jun 11 18:29 event1
crwxrwxrwx 1 root input 13, 74 Jun 11 18:29 event10
crwxrwxrwx 1 root input 13, 75 Jun 11 18:29 event11
crwxrwxrwx 1 root input 13, 76 Jun 11 18:29 event12
crwxrwxrwx 1 root input 13, 77 Jun 11 18:29 event13
crwxrwxrwx 1 root input 13, 78 Jun 11 18:29 event14
crwxrwxrwx 1 root input 13, 66 Jun 11 18:29 event2
crwxrwxrwx 1 root input 13, 67 Jun 11 18:29 event3
crwxrwxrwx+ 1 root input 13, 68 Jun 11 18:32 event4
crwxrwxrwx 1 root input 13, 69 Jun 11 18:29 event5
crwxrwxrwx 1 root input 13, 70 Jun 11 18:29 event6
crwxrwxrwx 1 root input 13, 71 Jun 11 18:29 event7
crwxrwxrwx 1 root input 13, 72 Jun 11 18:29 event8
crwxrwxrwx 1 root input 13, 73 Jun 11 18:29 event9
crwxrwxrwx+ 1 root input 13, 0 Jun 11 18:32 js0 <--- RX2SIM
crw-rw---- 1 root input 13, 63 Jun 11 18:29 mice
crw-rw---- 1 root input 13, 32 Jun 11 18:29 mouse0

User avatar
Michael
Posts: 1671
Joined: 25 May 2008 16:11
Location: Germany
Contact:

Re: Uncatched Exception

Postby Michael » 12 Jun 2015 06:33

you could follow this recommondation:

It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.


Return to “HELI-X on Linux”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest