Oculus Rift Support

Thanks for your update!

When i run the default TestOVRApplication without an oculus pluged in, everything works perfectly. However when I pluged in the oculus rift and run the project again, it chrashes because of the same access violation exception by the java runtime environment (as i posted 3 posts back).

Since Antuan said that everything works for him, I m thinking there might be something wrong with mine JRE… any sugestions?

A second question, is it possible to use nifty with the oculus rift?

In the early days of the plugin I got as far as displaying it, but not correctly. I don’t think it works at all, anymore. Besides, even then, I think there were some mouse/selection issues as well.

Aight, sounds logical :slight_smile:
Any thoughts on my real problem?

Hmm, yes it looks familiar. Is there anything more printed than that?

This is the complete output i get:

run:
Oculus Rift initialized: HMDInfo [HResolution = 1920, VResolution = 1080, HScreenSize = 0.0, VScreenSize = 0.0, VScreenCenter = 0.0, EyeToScreenDistance = 0.0, LensSeparationDistance = 0.0, InterpupillaryDistance = 0.064, DistortionK = [0.0, 0.0, 0.0, 0.0] , DesktopX = 0, DesktopY = 0, DisplayDeviceName = , DisplayId = 0]
nov 28, 2014 7:10:57 PM com.jme3.system.JmeDesktopSystem initialize
INFO: Running on jMonkeyEngine 3.1.0 (snapshot-github)
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000000000000, pid=2684, tid=6268
#
# JRE version: Java(TM) SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.51-b03 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C  0x0000000000000000
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# D:\JMonkeyEngine\OR\hs_err_pid2684.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
OVRDirect3DCreate9Ex result 0x0
OVRCreateDXGIFactory1 result 0x0
Java Result: 1
BUILD SUCCESSFUL (total time: 5 seconds)

And this is the log file beign refered to:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000000000000, pid=2684, tid=6268
#
# JRE version: Java(TM) SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.51-b03 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C  0x0000000000000000
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------  T H R E A D  ---------------

Current thread (0x00000000101b7000):  JavaThread "LWJGL Renderer Thread" [_thread_in_native, id=6268, stack(0x00000000123f0000,0x00000000124f0000)]

siginfo: ExceptionCode=0xc0000005, ExceptionInformation=0x0000000000000008 0x0000000000000000

Registers:
RAX=0x0000000000000780, RBX=0x0000000000577d90, RCX=0x00000000122e9728, RDX=0x00000000124eed40
RSP=0x00000000124eece8, RBP=0x0000000000000150, RSI=0x000007fee9c84d70, RDI=0x000000005101112a
R8 =0x00000000124eed44, R9 =0x00000000124eed48, R10=0x0000000000000002, R11=0x000007fef8a6e650
R12=0x0000000000000000, R13=0x00000000124eee30, R14=0x000000000000187c, R15=0x000007fee9d504d0
RIP=0x0000000000000000, EFLAGS=0x0000000000010246

Top of Stack: (sp=0x00000000124eece8)
0x00000000124eece8:   000007fef8a68450 0000000000577d90
0x00000000124eecf8:   000007fef8a6e8d0 000007fef8a6e650
0x00000000124eed08:   000000001362f370 16ca000000000307
0x00000000124eed18:   0000000120040900 0000000300000003
0x00000000124eed28:   000007fe0500c22e 000000000c737a50
0x00000000124eed38:   000000000a61e158 0000043800000780
0x00000000124eed48:   000000000000005a 0000ad3e277eb9ba
0x00000000124eed58:   000000005101112a 0000000000577d90
0x00000000124eed68:   000007fef8a68d68 00000000000001c7
0x00000000124eed78:   00000000000001c7 0000000000000150
0x00000000124eed88:   00000000124eee30 00000000122f5a20
0x00000000124eed98:   0000000000483f10 00000000122e2d80
0x00000000124eeda8:   000007fee9d50f60 0000000000010000
0x00000000124eedb8:   000007fee9c8517e 0000000000010000
0x00000000124eedc8:   0000000000010000 0000000000000002
0x00000000124eedd8:   0000000000000003 0000000000000000 

Instructions: (pc=0x0000000000000000)
0xffffffffffffffe0:   

Register to memory mapping:

RAX=0x0000000000000780 is an unknown value
RBX=0x0000000000577d90 is an unknown value
RCX=0x00000000122e9728 is an unknown value
RDX=0x00000000124eed40 is pointing into the stack for thread: 0x00000000101b7000
RSP=0x00000000124eece8 is pointing into the stack for thread: 0x00000000101b7000
RBP=0x0000000000000150 is an unknown value
RSI=0x000007fee9c84d70 is an unknown value
RDI=0x000000005101112a is an unknown value
R8 =0x00000000124eed44 is pointing into the stack for thread: 0x00000000101b7000
R9 =0x00000000124eed48 is pointing into the stack for thread: 0x00000000101b7000
R10=0x0000000000000002 is an unknown value
R11=0x000007fef8a6e650 is an unknown value
R12=0x0000000000000000 is an unknown value
R13=0x00000000124eee30 is pointing into the stack for thread: 0x00000000101b7000
R14=0x000000000000187c is an unknown value
R15=0x000007fee9d504d0 is an unknown value

Stack: [0x00000000123f0000,0x00000000124f0000],  sp=0x00000000124eece8,  free space=1019k
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.lwjgl.opengl.WindowsContextImplementation.nCreate(Ljava/nio/ByteBuffer;Ljava/nio/IntBuffer;Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;+0
j  org.lwjgl.opengl.WindowsContextImplementation.create(Lorg/lwjgl/opengl/PeerInfo;Ljava/nio/IntBuffer;Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;+10
j  org.lwjgl.opengl.ContextGL.<init>(Lorg/lwjgl/opengl/PeerInfo;Lorg/lwjgl/opengl/ContextAttribs;Lorg/lwjgl/opengl/ContextGL;)V+103
j  org.lwjgl.opengl.Display.create(Lorg/lwjgl/opengl/PixelFormat;Lorg/lwjgl/opengl/Drawable;Lorg/lwjgl/opengl/ContextAttribs;)V+102
j  org.lwjgl.opengl.Display.create(Lorg/lwjgl/opengl/PixelFormat;)V+12
j  com.jme3.system.lwjgl.LwjglDisplay.createContext(Lcom/jme3/system/AppSettings;)V+375
j  com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread()Z+25
j  com.jme3.system.lwjgl.LwjglAbstractDisplay.run()V+36
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x000000000202e800 JavaThread "DestroyJavaVM" [_thread_blocked, id=5740, stack(0x0000000002040000,0x0000000002140000)]
=>0x00000000101b7000 JavaThread "LWJGL Renderer Thread" [_thread_in_native, id=6268, stack(0x00000000123f0000,0x00000000124f0000)]
  0x00000000101b3800 JavaThread "TimerQueue" daemon [_thread_blocked, id=6544, stack(0x0000000011a40000,0x0000000011b40000)]
  0x00000000101b2800 JavaThread "D3D Screen Updater" daemon [_thread_blocked, id=5236, stack(0x0000000011480000,0x0000000011580000)]
  0x000000000c778800 JavaThread "Image Fetcher 0" daemon [_thread_blocked, id=6160, stack(0x0000000010830000,0x0000000010930000)]
  0x000000000c772000 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=3940, stack(0x000000000dc50000,0x000000000dd50000)]
  0x000000000c70e000 JavaThread "AWT-Windows" daemon [_thread_in_native, id=7008, stack(0x000000000d700000,0x000000000d800000)]
  0x000000000c65e800 JavaThread "AWT-Shutdown" [_thread_blocked, id=3852, stack(0x000000000d840000,0x000000000d940000)]
  0x000000000c69f800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=5684, stack(0x000000000d5b0000,0x000000000d6b0000)]
  0x000000000a678800 JavaThread "Service Thread" daemon [_thread_blocked, id=6384, stack(0x000000000c1c0000,0x000000000c2c0000)]
  0x000000000a674800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=2116, stack(0x000000000c000000,0x000000000c100000)]
  0x000000000a66f000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=5404, stack(0x000000000bd70000,0x000000000be70000)]
  0x000000000a66e000 JavaThread "Attach Listener" daemon [_thread_blocked, id=6148, stack(0x000000000b920000,0x000000000ba20000)]
  0x000000000a667000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=6200, stack(0x000000000bc10000,0x000000000bd10000)]
  0x000000000a616800 JavaThread "Finalizer" daemon [_thread_blocked, id=6636, stack(0x000000000ba50000,0x000000000bb50000)]
  0x000000000a60d800 JavaThread "Reference Handler" daemon [_thread_blocked, id=7164, stack(0x000000000b6a0000,0x000000000b7a0000)]

Other Threads:
  0x000000000a607000 VMThread [stack: 0x000000000b820000,0x000000000b920000] [id=7120]
  0x000000000a689800 WatcherThread [stack: 0x000000000c3d0000,0x000000000c4d0000] [id=5928]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 PSYoungGen      total 37888K, used 17429K [0x00000007d6080000, 0x00000007d8a80000, 0x0000000800000000)
  eden space 32768K, 53% used [0x00000007d6080000,0x00000007d7185748,0x00000007d8080000)
  from space 5120K, 0% used [0x00000007d8580000,0x00000007d8580000,0x00000007d8a80000)
  to   space 5120K, 0% used [0x00000007d8080000,0x00000007d8080000,0x00000007d8580000)
 ParOldGen       total 85504K, used 0K [0x0000000782200000, 0x0000000787580000, 0x00000007d6080000)
  object space 85504K, 0% used [0x0000000782200000,0x0000000782200000,0x0000000787580000)
 PSPermGen       total 21504K, used 14216K [0x000000077d000000, 0x000000077e500000, 0x0000000782200000)
  object space 21504K, 66% used [0x000000077d000000,0x000000077dde2118,0x000000077e500000)

Card table byte_map: [0x0000000005200000,0x0000000005620000] byte_map_base: 0x0000000001618000

Polling page: 0x0000000000110000

Code Cache  [0x0000000002200000, 0x0000000002470000, 0x0000000005200000)
 total_blobs=557 nmethods=58 adapters=452 free_code_cache=48475Kb largest_free_block=49617024

Compilation events (10 events):
Event: 4.314 Thread 0x000000000a674800   54             java.lang.CharacterDataLatin1::toLowerCase (39 bytes)
Event: 4.314 Thread 0x000000000a674800 nmethod 54 0x000000000229da10 code [0x000000000229db40, 0x000000000229dbf8]
Event: 4.318 Thread 0x000000000a674800   55             java.util.StringTokenizer::scanToken (179 bytes)
Event: 4.327 Thread 0x000000000a674800 nmethod 55 0x000000000229ce50 code [0x000000000229d000, 0x000000000229d3c0]
Event: 4.327 Thread 0x000000000a674800   56             java.lang.String::toLowerCase (472 bytes)
Event: 4.343 Thread 0x000000000a66f000   57             java.io.Win32FileSystem::normalize (231 bytes)
Event: 4.376 Thread 0x000000000a66f000 nmethod 57 0x00000000022aac50 code [0x00000000022aae60, 0x00000000022abec0]
Event: 4.381 Thread 0x000000000a674800 nmethod 56 0x00000000022ac850 code [0x00000000022aca60, 0x00000000022ad910]
Event: 4.404 Thread 0x000000000a66f000   58             java.util.concurrent.locks.AbstractQueuedSynchronizer::getState (5 bytes)
Event: 4.405 Thread 0x000000000a66f000 nmethod 58 0x00000000022a7810 code [0x00000000022a7940, 0x00000000022a7998]

GC Heap History (0 events):
No events

Deoptimization events (8 events):
Event: 1.027 Thread 0x000000000202e800 Uncommon trap: reason=class_check action=maybe_recompile pc=0x0000000002266cbc method=java.util.Properties$LineReader.readLine()I @ 62
Event: 1.278 Thread 0x000000000c772000 Uncommon trap: reason=null_check action=make_not_entrant pc=0x000000000226d858 method=java.lang.String.equals(Ljava/lang/Object;)Z @ 8
Event: 1.322 Thread 0x000000000c772000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x0000000002266cbc method=java.util.Properties$LineReader.readLine()I @ 62
Event: 1.323 Thread 0x000000000c772000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x0000000002266cbc method=java.util.Properties$LineReader.readLine()I @ 62
Event: 1.966 Thread 0x000000000c772000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x000000000227d284 method=java.lang.String.equals(Ljava/lang/Object;)Z @ 8
Event: 1.966 Thread 0x000000000c772000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x000000000227d284 method=java.lang.String.equals(Ljava/lang/Object;)Z @ 8
Event: 1.966 Thread 0x000000000c772000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x000000000227d284 method=java.lang.String.equals(Ljava/lang/Object;)Z @ 8
Event: 1.974 Thread 0x000000000c772000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x000000000227d284 method=java.lang.String.equals(Ljava/lang/Object;)Z @ 8

Internal exceptions (10 events):
Event: 4.618 Thread 0x00000000101b7000 Threw 0x00000007d70f6240 at C:\re\jdk7u51\527\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 4.619 Thread 0x00000000101b7000 Threw 0x00000007d70fa2a0 at C:\re\jdk7u51\527\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 4.620 Thread 0x00000000101b7000 Threw 0x00000007d7100db0 at C:\re\jdk7u51\527\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 4.621 Thread 0x00000000101b7000 Threw 0x00000007d7106ab8 at C:\re\jdk7u51\527\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 4.623 Thread 0x00000000101b7000 Threw 0x00000007d710ba40 at C:\re\jdk7u51\527\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 4.631 Thread 0x00000000101b7000 Threw 0x00000007d71228f0 at C:\re\jdk7u51\527\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 4.632 Thread 0x00000000101b7000 Threw 0x00000007d7126400 at C:\re\jdk7u51\527\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 4.647 Thread 0x00000000101b7000 Threw 0x00000007d712cf88 at C:\re\jdk7u51\527\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 4.648 Thread 0x00000000101b7000 Threw 0x00000007d7133a80 at C:\re\jdk7u51\527\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 4.649 Thread 0x00000000101b7000 Threw 0x00000007d71368b8 at C:\re\jdk7u51\527\hotspot\src\share\vm\prims\jvm.cpp:1244

Events (10 events):
Event: 4.631 loading class 0x00000000103065e0
Event: 4.631 loading class 0x00000000103065e0 done
Event: 4.632 loading class 0x00000000101c8b70
Event: 4.632 loading class 0x00000000101c8b70 done
Event: 4.647 loading class 0x0000000010243020
Event: 4.647 loading class 0x0000000010243020 done
Event: 4.648 loading class 0x0000000010306a20
Event: 4.648 loading class 0x0000000010306a20 done
Event: 4.649 loading class 0x0000000010306920
Event: 4.649 loading class 0x0000000010306920 done

Dynamic libraries:
0x000000013fee0000 - 0x000000013ff13000 	D:\JMonkeyEngine\jmonkeyplatform\jdk\bin\java.exe
0x0000000077260000 - 0x0000000077409000 	C:\Windows\SYSTEM32\ntdll.dll
0x0000000077140000 - 0x000000007725f000 	C:\Windows\system32\kernel32.dll
0x000007fefd150000 - 0x000007fefd1bc000 	C:\Windows\system32\KERNELBASE.dll
0x000007fefef50000 - 0x000007feff02b000 	C:\Windows\system32\ADVAPI32.dll
0x000007fefeba0000 - 0x000007fefec3f000 	C:\Windows\system32\msvcrt.dll
0x000007feff310000 - 0x000007feff32f000 	C:\Windows\SYSTEM32\sechost.dll
0x000007fefecc0000 - 0x000007fefeded000 	C:\Windows\system32\RPCRT4.dll
0x0000000077040000 - 0x000000007713a000 	C:\Windows\system32\USER32.dll
0x000007fefe560000 - 0x000007fefe5c7000 	C:\Windows\system32\GDI32.dll
0x000007fefeb90000 - 0x000007fefeb9e000 	C:\Windows\system32\LPK.dll
0x000007feff240000 - 0x000007feff309000 	C:\Windows\system32\USP10.dll
0x000007fefbc20000 - 0x000007fefbe14000 	C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_fa396087175ac9ac\COMCTL32.dll
0x000007fefd3e0000 - 0x000007fefd451000 	C:\Windows\system32\SHLWAPI.dll
0x000007fefef00000 - 0x000007fefef2e000 	C:\Windows\system32\IMM32.DLL
0x000007fefedf0000 - 0x000007fefeef9000 	C:\Windows\system32\MSCTF.dll
0x00000000698d0000 - 0x00000000699a2000 	D:\JMonkeyEngine\jmonkeyplatform\jdk\jre\bin\msvcr100.dll
0x0000000066700000 - 0x0000000066ec9000 	D:\JMonkeyEngine\jmonkeyplatform\jdk\jre\bin\server\jvm.dll
0x000007fef95d0000 - 0x000007fef95d9000 	C:\Windows\system32\WSOCK32.dll
0x000007feff330000 - 0x000007feff37d000 	C:\Windows\system32\WS2_32.dll
0x000007feff500000 - 0x000007feff508000 	C:\Windows\system32\NSI.dll
0x000007fefa590000 - 0x000007fefa5cb000 	C:\Windows\system32\WINMM.dll
0x0000000077430000 - 0x0000000077437000 	C:\Windows\system32\PSAPI.DLL
0x000000006df20000 - 0x000000006df2f000 	D:\JMonkeyEngine\jmonkeyplatform\jdk\jre\bin\verify.dll
0x000000006def0000 - 0x000000006df18000 	D:\JMonkeyEngine\jmonkeyplatform\jdk\jre\bin\java.dll
0x000000006ded0000 - 0x000000006dee5000 	D:\JMonkeyEngine\jmonkeyplatform\jdk\jre\bin\zip.dll
0x000007fefc860000 - 0x000007fefc877000 	C:\Windows\system32\CRYPTSP.dll
0x000007fefc520000 - 0x000007fefc567000 	C:\Windows\system32\rsaenh.dll
0x000007fefd3c0000 - 0x000007fefd3de000 	C:\Windows\system32\USERENV.dll
0x000007fefd030000 - 0x000007fefd03f000 	C:\Windows\system32\profapi.dll
0x000007fefcec0000 - 0x000007fefcecf000 	C:\Windows\system32\CRYPTBASE.dll
0x000000006deb0000 - 0x000000006dec9000 	D:\JMonkeyEngine\jmonkeyplatform\jdk\jre\bin\net.dll
0x000007fefc800000 - 0x000007fefc855000 	C:\Windows\system32\mswsock.dll
0x000007fefc7f0000 - 0x000007fefc7f7000 	C:\Windows\System32\wship6.dll
0x000007fefa4a0000 - 0x000007fefa4b5000 	C:\Windows\system32\NLAapi.dll
0x000007fefaaf0000 - 0x000007fefab05000 	C:\Windows\system32\napinsp.dll
0x000007fefaac0000 - 0x000007fefaad9000 	C:\Windows\system32\pnrpnsp.dll
0x000007fef5610000 - 0x000007fef5620000 	C:\Windows\system32\wshbth.dll
0x000007fefc680000 - 0x000007fefc6db000 	C:\Windows\system32\DNSAPI.dll
0x000007fefaab0000 - 0x000007fefaabb000 	C:\Windows\System32\winrnr.dll
0x000007fefc1e0000 - 0x000007fefc1e7000 	C:\Windows\System32\wshtcpip.dll
0x000007fefa050000 - 0x000007fefa077000 	C:\Windows\system32\IPHLPAPI.DLL
0x000007fefa040000 - 0x000007fefa04b000 	C:\Windows\system32\WINNSI.DLL
0x000007fef5100000 - 0x000007fef5108000 	C:\Windows\system32\rasadhlp.dll
0x000007fef9dd0000 - 0x000007fef9e23000 	C:\Windows\System32\fwpuclnt.dll
0x000000006ce50000 - 0x000000006ce61000 	D:\JMonkeyEngine\jmonkeyplatform\jdk\jre\bin\nio.dll
0x0000000180000000 - 0x0000000180038000 	C:\Users\Tom\AppData\Local\Temp\jna-84274\jna3116460452946357335.dll
0x000007fef0da0000 - 0x000007fef0e52000 	\\?\C:\Users\Tom\AppData\Local\Temp\JNA-84~1\JNA171~1.DLL
0x000007fefd7d0000 - 0x000007fefe558000 	C:\Windows\system32\SHELL32.dll
0x000007fefd460000 - 0x000007fefd637000 	C:\Windows\system32\SETUPAPI.dll
0x000007fefd060000 - 0x000007fefd096000 	C:\Windows\system32\CFGMGR32.dll
0x000007feff380000 - 0x000007feff457000 	C:\Windows\system32\OLEAUT32.dll
0x000007feff030000 - 0x000007feff233000 	C:\Windows\system32\ole32.dll
0x000007fefd040000 - 0x000007fefd05a000 	C:\Windows\system32\DEVOBJ.dll
0x000007fefc110000 - 0x000007fefc11c000 	C:\Windows\system32\VERSION.dll
0x000007fefb970000 - 0x000007fefba95000 	C:\Windows\system32\dbghelp.dll
0x000007feef0b0000 - 0x000007feef162000 	\\?\C:\Users\Tom\AppData\Local\Temp\JNA-84~1\JNA324~1.DLL
0x000007fef5330000 - 0x000007fef538d000 	C:\Windows\system32\dxgi.dll
0x000007fefb230000 - 0x000007fefb248000 	C:\Windows\system32\dwmapi.dll
0x000007feeddd0000 - 0x000007feedfcf000 	C:\Windows\system32\d3d9.dll
0x000007fefaaa0000 - 0x000007fefaaa7000 	C:\Windows\system32\d3d8thk.dll
0x000007fef5150000 - 0x000007fef5325000 	C:\Windows\system32\d3d11.dll
0x000007fef5110000 - 0x000007fef512f000 	C:\Windows\system32\dxgidebug.dll
0x000007fefa760000 - 0x000007fefa7af000 	C:\Windows\system32\d3d10core.dll
0x000007feeef70000 - 0x000007feef0a6000 	C:\Windows\system32\d3d10.dll
0x000007fee9c60000 - 0x000007fee9d7d000 	C:\Windows\system32\opengl32.dll
0x000007feed6e0000 - 0x000007feed70d000 	C:\Windows\system32\GLU32.dll
0x000007fee9b60000 - 0x000007fee9c51000 	C:\Windows\system32\DDRAW.dll
0x000007feee1c0000 - 0x000007feee1c8000 	C:\Windows\system32\DCIMAN32.dll
0x000007fefa990000 - 0x000007fefa9ab000 	C:\Windows\system32\OVRDisplayRT64.dll
0x000007feeeec0000 - 0x000007feeef66000 	C:\Windows\system32\MSVCP120.dll
0x000007feeedd0000 - 0x000007feeeebf000 	C:\Windows\system32\MSVCR120.dll
0x00000000685c0000 - 0x0000000068755000 	D:\JMonkeyEngine\jmonkeyplatform\jdk\jre\bin\awt.dll
0x000007fefb790000 - 0x000007fefb7e6000 	C:\Windows\system32\uxtheme.dll
0x000007fef8a60000 - 0x000007fef8a76000 	C:\Windows\system32\OVRDisplay64.dll
0x0000000069450000 - 0x00000000698d0000 	C:\Windows\system32\atiumd64.dll
0x0000000068c20000 - 0x0000000068eb5000 	C:\Windows\system32\atiumd6a.dll
0x000000006c240000 - 0x000000006c287000 	D:\JMonkeyEngine\jmonkeyplatform\jdk\jre\bin\fontmanager.dll
0x0000000005b50000 - 0x0000000005bb5000 	C:\Program Files\WIDCOMM\Bluetooth Software\btmmhook.dll
0x000000006bbe0000 - 0x000000006bc21000 	D:\JMonkeyEngine\jmonkeyplatform\jdk\jre\bin\t2k.dll
0x0000000005cf0000 - 0x0000000005d54000 	D:\JMonkeyEngine\OR\OpenAL64.dll
0x000000000b7a0000 - 0x000000000b7f0000 	D:\JMonkeyEngine\OR\lwjgl64.dll
0x00000000127a0000 - 0x00000000138ad000 	C:\Windows\system32\atio6axx.dll
0x000000000bb50000 - 0x000000000bba1000 	C:\Windows\system32\atiadlxx.dll
0x000007fefd1e0000 - 0x000007fefd21a000 	C:\Windows\system32\WINTRUST.dll
0x000007fefd230000 - 0x000007fefd39c000 	C:\Windows\system32\CRYPT32.dll
0x000007fefd020000 - 0x000007fefd02f000 	C:\Windows\system32\MSASN1.dll
0x000007feedac0000 - 0x000007feedb5c000 	C:\Windows\system32\mscms.dll
0x000007fef8a10000 - 0x000007fef8a52000 	C:\Windows\system32\icm32.dll
0x000000006eb40000 - 0x000000006eec4000 	C:\Windows\system32\atidxx64.dll

VM Arguments:
jvm_args: -Dfile.encoding=UTF-8 
java_command: mygame.TestOVRApplication
Launcher Type: SUN_STANDARD

Environment Variables:
PATH=C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Dell\Dell Wireless WLAN Card;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;D:\Java\bin;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;D:\opencv\build\x86\vc11\bin;
USERNAME=Tom
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 37 Stepping 5, GenuineIntel

---------------  S Y S T E M  ---------------

OS: Windows 7 , 64 bit Build 7601 Service Pack 1

CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 37 stepping 5, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, aes, ht, tsc, tscinvbit

Memory: 4k page, physical 8245808k(5690888k free), swap 16489752k(12776236k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (24.51-b03) for windows-amd64 JRE (1.7.0_51-b13), built on Dec 18 2013 18:40:56 by "java_re" with unknown MS VC++:1600

time: Fri Nov 28 19:10:57 2014
elapsed time: 4 seconds

It’s very early on that it crashes. Can it be related to direct mode? Are you running extended or direct? Can you test the opposite and see what happens?

Edit: Just to be clear: I’m talking about Rift Display Mode.

You are correct. I was running direct mode and when i run the extended mode it doesn’t chrash

It’d be interesting to know why it crashed. At least we have the dump now :slight_smile:
Might be video card related, perhaps.

Edit: Direct mode is known to be a bit unstable in general. Actually it might not work on AMD at all. Think I remember something about that on the Oculus forums.

You might be right. At this page they state that OpenGL is presently not functional on AMD hardware.
The page hasn’t been updated since 24th of july though…
Installing the latest driver didn’t help either…

EDIT: Installing the latest driver and making sure that windows own driver is removed does the trick though, so direct mode works. Jeeuhj!
Rickard, I promise you I ll put you name in the acknowledgments of my thesis (when it is finished). And the same for phr00t and the same for pspeed :slight_smile:

@phr00t: Is it intentional that the OculusGuiNode is in the Opaque bucket? Should it be changed to Gui bucket?

@phr00t: Is it intentional that the OculusGuiNode is in the Opaque bucket? Should it be changed to Gui bucket?

Back when the Oculus distortion was a filter, putting the GuiNode into the Gui bucket made it draw ontop of the distortion, which was bad. We had to put the Gui elements “into the scene” & outside of the Gui bucket to be a part of the distortion. Now that SDK-side distortion is happening, it might be fine to put it back into the Gui bucket. However, I’m not sure how setting its distance from the viewer will work. Also, it wouldn’t be obscured from geometry infront of it, which can be jarring. I recommend keeping it part of the scene & out of the Gui bucket, in my opinion. All objects actually get put into the Translucent bucket, which get rendered after most of the filters happen, so they won’t affect Gui elements.

Updated the Rift library to support SDK 0.4.4 & JOVR 0.4.4. Unfortunately, all I see are solid distorted colors on Linux:

… funny thing is, this is an improvement on Linux, since all I saw was black before. However, this will be worse if the same is seen on Windows. The color does change a bit over time, so I suspect I am seeing the lower-left pixel blown up (since that color represents the color of the rotating planet on 4089’s main menu).

Here is a link to the commit:

https://code.google.com/p/jmonkeyengine-oculus-rift/source/detail?r=161

… I did have to make some code changes, but everything seemed equivalent. May need your help here, @rickard or @jherico

All fixed! SDK 0.4.4 support is LIVE! Linux works too!

The problem had to do with texture referencing, which I got help from here:

Here is the commit:

https://code.google.com/p/jmonkeyengine-oculus-rift/source/detail?r=163

1 Like
@phr00t said: All fixed! SDK 0.4.4 support is LIVE! Linux works too!

The problem had to do with texture referencing, which I got help from here:

https://forums.oculus.com/viewtopic.php?p=225397#p225397

Here is the commit:

Google Code Archive - Long-term storage for Google Code Project Hosting.

Awesome work! Great news that Linux is fixed as well.
I have a demo to show next week so I don’t dare to get any updates, right now.

Also, I had to dig into how the GUI positioning works last week, and decided to write a more elaborate tutorial on it. It can be found here:
http://www.softwarepioneering.com/2014/12/free-floating-vr-menu-in-jmonkeyengine.html
The code is checked into a new “examples” folder in the repo.

And we now have a “Virtual Reality” category in the forum!
Hopefully we will be able to organize announcements and support requests better now.

1 Like

Yay we have our own category :smiley:

Can you update the first post and Google SVN to say we are ar 0.4.4 support please?

I moved 3 posts to a new topic: Problem with Oculus Rift lib on Ubuntu

I moved 3 posts to a new topic: Choppy graphics with Oculus Rift lib in direct mode

Hi there,

I am currently experiencing a strange and irritating problem: For a school project i wrote my own multiplayer game using this fantastic engine. It needed to work with the Oculus so i follow the guide. I managed to get everything working on my own laptop (windows 7) and it looked great.

However, i need to demo it on a laptop of the school. They bought a new laptop for this, it has windows 8.1 on it with a GeForce GTX 850M dedicated GPU. I installed the engine, fixed the correct libs and installed the oculus runtime 0.4.4., everything identical to what i did on my own laptop. When i run the game without the oculus dk2 plugged in, everything works fine and i get the expected window with the 2 eyes. However when i plug in the oculus, it shows a black screen for 1sec and afterwards the screen shuts down.

The output is added at the end of this post. But it looks like the Oculus is correctly initialised but at the moment of rendering it just stops. No chrash or error message is shown and the view just vanishes. I should also point out that I do use the Direct HMD display mode, it worked on my own laptop and on this one I am capable of running the oculus rift tuscany demo map this way. I have no idea what is the cause of this problem, i don’t think it is a library issue, a hardware issue or an issue with oculus runtime environment.

I hope someone has an idea since I am kinda desperate. Thanks at front.

run:
Oculus Rift initialized: HMDInfo [HResolution = 1920, VResolution = 1080, HScreenSize = 0.0, VScreenSize = 0.0, VScreenCenter = 0.0, EyeToScreenDistance = 0.0, LensSeparationDistance = 0.0, InterpupillaryDistance = 0.064, DistortionK = [0.0, 0.0, 0.0, 0.0] , DesktopX = 0, DesktopY = 0, DisplayDeviceName = , DisplayId = 0]
jan 27, 2015 1:31:14 PM com.jme3.system.JmeDesktopSystem initialize
INFO: Running on jMonkeyEngine 3.1.0 (snapshot-github)
jan 27, 2015 1:31:15 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Lwjgl 2.9.1 context running on thread LWJGL Renderer Thread
jan 27, 2015 1:31:15 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Adapter: igdumdim64
jan 27, 2015 1:31:15 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Driver Version: 10.18.10.3574
jan 27, 2015 1:31:15 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Vendor: Intel
jan 27, 2015 1:31:15 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: OpenGL Version: 4.2.0 - Build 10.18.10.3574
jan 27, 2015 1:31:15 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Renderer: Intel(R) HD Graphics 4600
jan 27, 2015 1:31:15 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: GLSL Ver: 4.20 - Build 10.18.10.3574
jan 27, 2015 1:31:15 PM com.jme3.renderer.opengl.TextureUtil initialize
INFO: Supported texture formats: 
    Alpha8 (Linear)
    Luminance8 (Linear/sRGB)
    Luminance16F (Linear)
    Luminance32F (Linear)
    Luminance8Alpha8 (Linear/sRGB)
    Luminance16FAlpha16F (Linear)
    BGR8 (Linear/sRGB)
    RGB8 (Linear/sRGB)
    RGB565 (Linear/sRGB)
    RGB5A1 (Linear/sRGB)
    RGBA8 (Linear/sRGB)
    ABGR8 (Linear/sRGB)
    ARGB8 (Linear/sRGB)
    BGRA8 (Linear/sRGB)
    DXT1 (Linear/sRGB)
    DXT1A (Linear/sRGB)
    DXT3 (Linear/sRGB)
    DXT5 (Linear/sRGB)
    Depth (Linear)
    Depth16 (Linear)
    Depth24 (Linear)
    Depth32F (Linear)
    RGB16F_to_RGB111110F (Linear)
    RGB111110F (Linear)
    RGB16F_to_RGB9E5 (Linear)
    RGB9E5 (Linear)
    RGB16F (Linear)
    RGBA16F (Linear)
    RGB32F (Linear)
    RGBA32F (Linear)
    Depth24Stencil8 (Linear)

jan 27, 2015 1:31:15 PM com.jme3.asset.AssetConfig loadText
WARNING: Cannot find loader com.jme3.scene.plugins.blender.BlenderModelLoader
jan 27, 2015 1:31:15 PM com.jme3.audio.openal.ALAudioRenderer initOpenAL
INFO: Audio Device: OpenAL Soft
jan 27, 2015 1:31:15 PM com.jme3.audio.openal.ALAudioRenderer initOpenAL
INFO: Audio Vendor: OpenAL Community
jan 27, 2015 1:31:15 PM com.jme3.audio.openal.ALAudioRenderer initOpenAL
INFO: Audio Renderer: OpenAL Soft
jan 27, 2015 1:31:15 PM com.jme3.audio.openal.ALAudioRenderer initOpenAL
INFO: Audio Version: 1.1 ALSOFT 1.15.1
jan 27, 2015 1:31:15 PM com.jme3.audio.openal.ALAudioRenderer initOpenAL
INFO: ALC extensions: ALC_ENUMERATE_ALL_EXT ALC_ENUMERATION_EXT ALC_EXT_CAPTURE ALC_EXT_DEDICATED ALC_EXT_disconnect ALC_EXT_EFX ALC_EXT_thread_local_context ALC_SOFT_loopback
jan 27, 2015 1:31:15 PM com.jme3.audio.openal.ALAudioRenderer initOpenAL
INFO: AL extensions: AL_EXT_ALAW AL_EXT_DOUBLE AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_MULAW AL_EXT_MULAW_MCFORMATS AL_EXT_OFFSET AL_EXT_source_distance_model AL_LOKI_quadriphonic AL_SOFT_buffer_samples AL_SOFT_buffer_sub_data AL_SOFTX_deferred_updates AL_SOFT_direct_channels AL_SOFT_loop_points AL_SOFT_source_latency
jan 27, 2015 1:31:15 PM com.jme3.audio.openal.ALAudioRenderer initOpenAL
INFO: AudioRenderer supports 64 channels
jan 27, 2015 1:31:15 PM com.jme3.audio.openal.ALAudioRenderer initOpenAL
WARNING: Pausing audio device not supported.
jan 27, 2015 1:31:15 PM com.jme3.audio.openal.ALAudioRenderer initOpenAL
INFO: Audio effect extension version: 1.0
jan 27, 2015 1:31:15 PM com.jme3.audio.openal.ALAudioRenderer initOpenAL
INFO: Audio max auxilary sends: 4
EyeRenderDesc(allocated@0x7810f0 (56 bytes) (shared from auto-allocated@0x7810f0 (112 bytes))) {
  int Eye@0=0
  FovPort Fov@4=FovPort(allocated@0x7810f4 (16 bytes) (shared from allocated@0x7810f0 (56 bytes) (shared from auto-allocated@0x7810f0 (112 bytes)))) {
    float UpTan@0=1.3292863
    float DownTan@4=1.3292863
    float LeftTan@8=1.0586576
    float RightTan@c=1.092368
  }
  OvrRecti DistortedViewport@14=OvrRecti(allocated@0x781104 (16 bytes) (shared from allocated@0x7810f0 (56 bytes) (shared from auto-allocated@0x7810f0 (112 bytes)))) {
    OvrVector2i Pos@0=OvrVector2i(allocated@0x781104 (8 bytes) (shared from allocated@0x781104 (16 bytes) (shared from allocated@0x7810f0 (56 bytes) (shared from auto-allocated@0x7810f0 (112 bytes))))) {
      int x@0=0
      int y@4=0
    }
    OvrSizei Size@8=OvrSizei(allocated@0x78110c (8 bytes) (shared from allocated@0x781104 (16 bytes) (shared from allocated@0x7810f0 (56 bytes) (shared from auto-allocated@0x7810f0 (112 bytes))))) {
      int w@0=3c0
      int h@4=438
    }
  }
  OvrVector2f PixelsPerTanAngleAtCenter@24=OvrVector2f(allocated@0x781114 (8 bytes) (shared from allocated@0x7810f0 (56 bytes) (shared from auto-allocated@0x7810f0 (112 bytes)))) {
    float x@0=549.6183
    float y@4=549.6183
  }
  OvrVector3f HmdToEyeViewOffset@2c=OvrVector3f(allocated@0x78111c (12 bytes) (shared from allocated@0x7810f0 (56 bytes) (shared from auto-allocated@0x7810f0 (112 bytes)))) {
    float x@0=0.032
    float y@4=0.0
    float z@8=0.0
  }
}
FovPort(native@0x54a25c) (16 bytes) {
  float UpTan@0=1.3292863
  float DownTan@4=1.3292863
  float LeftTan@8=1.0586576
  float RightTan@c=1.092368
}
AL lib: (EE) alc_cleanup: 1 device not closed
OVRCreateDXGIFactory2 result 0x0
OVRCreateDXGIFactory2 result 0x0
OVRCreateDXGIFactory2 result 0x0
Java Result: 1
BUILD SUCCESSFUL (total time: 1 second)