Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Godot 4.0, godot xr-tools 4.0.0] Godot-XR-Tools not working on Pico #414

Closed
robherre opened this issue Mar 4, 2023 · 5 comments
Closed

Comments

@robherre
Copy link

robherre commented Mar 4, 2023

If I do a simple scene, like described in Bastiaan's video, works in Pico VR glasses.

If I try with godot-xr-tools demo or add it to my project it doesn't. After loading few seconds it crashes and shows this message in Output:
"Godot Engine v4.0.stable.official.92bee43ad - https://godotengine.org
OpenXR: Running on OpenXR runtime: Pico(XRT) by Pico et al 'c4eb070c' 3.0.1
OpenGL API OpenGL ES 3.2 V@0607.0 (GIT@4e19010, I576589ecdb, 1647422278) (Date:03/16/22) - Compatibility - Using Device: Qualcomm - Adreno (TM) 650

OpenXR: Requested OpenGL version exceeds the maximum version this runtime has been tested on and is known to support.

  • desired_version 3.3.0
  • minApiVersionSupported 2.0.0
  • maxApiVersionSupported 3.2.1023
    --- Debugging process stopped ---"

¿Problem with required OpenGL version?

@BastiaanOlij
Copy link
Member

That's just a standard warning that can be ignored. Most XR runtimes are a little weird about their demands for OpenGL versions.

@dizys
Copy link

dizys commented Mar 5, 2023

My own simple scene from scratch would work. But the godot-xr-tools-demo crashes on my quest 2 as well (godot 4.0 stable, godot-xr-tools 4.0.0), cannot seem to enter the loading screen. Here's the logs I captured using Android Studio Logcat:

2023-03-05 13:06:25.786 31791-31829 libc                    org.godotengine.godotxrtoolsdemo     A  Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x198 in tid 31829 (VkThread), pid 31791 (odotxrtoolsdemo)
2023-03-05 13:06:25.834 31861-31861 DEBUG                   pid-31861                            A  *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2023-03-05 13:06:25.834 31861-31861 DEBUG                   pid-31861                            A  Build fingerprint: 'oculus/hollywood/hollywood:10/QQ3A.200805.001/50163300234400150:user/release-keys'
2023-03-05 13:06:25.834 31861-31861 DEBUG                   pid-31861                            A  Revision: '0'
2023-03-05 13:06:25.834 31861-31861 DEBUG                   pid-31861                            A  ABI: 'arm64'
2023-03-05 13:06:25.834 31861-31861 DEBUG                   pid-31861                            A  Timestamp: 2023-03-05 16:06:25-0500
2023-03-05 13:06:25.834 31861-31861 DEBUG                   pid-31861                            A  pid: 31791, tid: 31829, name: VkThread  >>> org.godotengine.godotxrtoolsdemo <<<
2023-03-05 13:06:25.834 31861-31861 DEBUG                   pid-31861                            A  uid: 10122
2023-03-05 13:06:25.834 31861-31861 DEBUG                   pid-31861                            A  signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x198
2023-03-05 13:06:25.834 31861-31861 DEBUG                   pid-31861                            A  Cause: null pointer dereference
2023-03-05 13:06:25.834 31861-31861 DEBUG                   pid-31861                            A      x0  0000000000000000  x1  0000000000000000  x2  0000000000000030  x3  0000000000000003
2023-03-05 13:06:25.834 31861-31861 DEBUG                   pid-31861                            A      x4  0000000000000000  x5  0000000000000000  x6  1f3951576d646f4e  x7  7f7f7f7f7f7f7f7f
2023-03-05 13:06:25.834 31861-31861 DEBUG                   pid-31861                            A      x8  0000006f22d1dac8  x9  167df8a937a4bfde  x10 0000000000000000  x11 000000000177859a
2023-03-05 13:06:25.834 31861-31861 DEBUG                   pid-31861                            A      x12 0000006f0eb77000  x13 0000000000000030  x14 000000701c024230  x15 0000000000000078
2023-03-05 13:06:25.834 31861-31861 DEBUG                   pid-31861                            A      x16 000000701c0e2470  x17 000000701c0d7c24  x18 0000006f22b90000  x19 0000006f0ea87f10
2023-03-05 13:06:25.834 31861-31861 DEBUG                   pid-31861                            A      x20 0000000000000000  x21 0000006f22d1f018  x22 0000006f3122f938  x23 0000006f312f2f08
2023-03-05 13:06:25.834 31861-31861 DEBUG                   pid-31861                            A      x24 0000003fff6f0810  x25 0000006f0eb7dc10  x26 0000006f0eb7ed90  x27 0000000000000000
2023-03-05 13:06:25.834 31861-31861 DEBUG                   pid-31861                            A      x28 0000006f0eb7dc10  x29 0000006f22d1dba0
2023-03-05 13:06:25.834 31861-31861 DEBUG                   pid-31861                            A      sp  0000006f22d1daa0  lr  0000006f2ed8e268  pc  0000006f30c323ec
2023-03-05 13:06:26.205 31861-31861 DEBUG                   pid-31861                            A  
                                                                                                    backtrace:
2023-03-05 13:06:26.205 31861-31861 DEBUG                   pid-31861                            A        #00 pc 0000000002f213ec  /data/app/org.godotengine.godotxrtoolsdemo-Ch6alCse6j_U_sVdzxJnqg==/base.apk!libgodot_android.so (offset 0x254000)
2023-03-05 13:06:26.205 31861-31861 DEBUG                   pid-31861                            A        #01 pc 000000000107d264  /data/app/org.godotengine.godotxrtoolsdemo-Ch6alCse6j_U_sVdzxJnqg==/base.apk!libgodot_android.so (offset 0x254000)
2023-03-05 13:06:26.205 31861-31861 DEBUG                   pid-31861                            A        #02 pc 000000000107fdc0  /data/app/org.godotengine.godotxrtoolsdemo-Ch6alCse6j_U_sVdzxJnqg==/base.apk!libgodot_android.so (offset 0x254000)
2023-03-05 13:06:26.205 31861-31861 DEBUG                   pid-31861                            A        #03 pc 0000000001078cb8  /data/app/org.godotengine.godotxrtoolsdemo-Ch6alCse6j_U_sVdzxJnqg==/base.apk!libgodot_android.so (offset 0x254000)
2023-03-05 13:06:26.205 31861-31861 DEBUG                   pid-31861                            A        #04 pc 0000000000b969c8  /data/app/org.godotengine.godotxrtoolsdemo-Ch6alCse6j_U_sVdzxJnqg==/base.apk!libgodot_android.so (offset 0x254000)
2023-03-05 13:06:26.205 31861-31861 DEBUG                   pid-31861                            A        #05 pc 0000000000b8298c  /data/app/org.godotengine.godotxrtoolsdemo-Ch6alCse6j_U_sVdzxJnqg==/base.apk!libgodot_android.so (offset 0x254000)
2023-03-05 13:06:26.205 31861-31861 DEBUG                   pid-31861                            A        #06 pc 0000000000b5b890  /data/app/org.godotengine.godotxrtoolsdemo-Ch6alCse6j_U_sVdzxJnqg==/base.apk!libgodot_android.so (offset 0x254000) (Java_org_godotengine_godot_GodotLib_step+280)
2023-03-05 13:06:26.205 31861-31861 DEBUG                   pid-31861                            A        #07 pc 0000000000143950  /apex/com.android.runtime/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 13:06:26.205 31861-31861 DEBUG                   pid-31861                            A        #08 pc 000000000013abb8  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 13:06:26.205 31861-31861 DEBUG                   pid-31861                            A        #09 pc 0000000000149660  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+276) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 13:06:26.205 31861-31861 DEBUG                   pid-31861                            A        #10 pc 00000000002eb688  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+384) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 13:06:26.205 31861-31861 DEBUG                   pid-31861                            A        #11 pc 00000000002e648c  /apex/com.android.runtime/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+900) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 13:06:26.205 31861-31861 DEBUG                   pid-31861                            A        #12 pc 00000000005b22d0  /apex/com.android.runtime/lib64/libart.so (MterpInvokeStatic+552) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 13:06:26.205 31861-31861 DEBUG                   pid-31861                            A        #13 pc 0000000000134f94  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 13:06:26.205 31861-31861 DEBUG                   pid-31861                            A        #14 pc 0000000000194ee4  [anon:dalvik-classes.dex extracted in memory from /data/app/org.godotengine.godotxrtoolsdemo-Ch6alCse6j_U_sVdzxJnqg==/base.apk]
2023-03-05 13:06:26.205 31861-31861 DEBUG                   pid-31861                            A        #15 pc 00000000005af900  /apex/com.android.runtime/lib64/libart.so (MterpInvokeVirtual+1456) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 13:06:26.205 31861-31861 DEBUG                   pid-31861                            A        #16 pc 0000000000134e14  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 13:06:26.205 31861-31861 DEBUG                   pid-31861                            A        #17 pc 00000000001957c0  [anon:dalvik-classes.dex extracted in memory from /data/app/org.godotengine.godotxrtoolsdemo-Ch6alCse6j_U_sVdzxJnqg==/base.apk]
2023-03-05 13:06:26.205 31861-31861 DEBUG                   pid-31861                            A        #18 pc 00000000002ba334  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.15113868601603930265+264) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 13:06:26.205 31861-31861 DEBUG                   pid-31861                            A        #19 pc 00000000005a10b0  /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+964) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 13:06:26.205 31861-31861 DEBUG                   pid-31861                            A        #20 pc 0000000000143a68  /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 13:06:26.205 31861-31861 DEBUG                   pid-31861                            A        #21 pc 000000000013a934  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 13:06:26.205 31861-31861 DEBUG                   pid-31861                            A        #22 pc 0000000000149640  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+244) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 13:06:26.205 31861-31861 DEBUG                   pid-31861                            A        #23 pc 00000000004be7c4  /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 13:06:26.205 31861-31861 DEBUG                   pid-31861                            A        #24 pc 00000000004bf994  /apex/com.android.runtime/lib64/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+416) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 13:06:26.205 31861-31861 DEBUG                   pid-31861                            A        #25 pc 00000000004ffd14  /apex/com.android.runtime/lib64/libart.so (art::Thread::CreateCallback(void*)+1156) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 13:06:26.205 31861-31861 DEBUG                   pid-31861                            A        #26 pc 00000000000d5c44  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: 76160b7be02961a2e357c92bde57eb19)
2023-03-05 13:06:26.205 31861-31861 DEBUG                   pid-31861                            A        #27 pc 0000000000082fe4  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 76160b7be02961a2e357c92bde57eb19)

Here's when I switch to compatibility renderer:

2023-03-05 16:12:13.983  8722-8722  DEBUG                   pid-8722                             A  *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2023-03-05 16:12:13.984  8722-8722  DEBUG                   pid-8722                             A  Build fingerprint: 'oculus/hollywood/hollywood:10/QQ3A.200805.001/50163300234400150:user/release-keys'
2023-03-05 16:12:13.984  8722-8722  DEBUG                   pid-8722                             A  Revision: '0'
2023-03-05 16:12:13.984  8722-8722  DEBUG                   pid-8722                             A  ABI: 'arm64'
2023-03-05 16:12:13.984  8722-8722  DEBUG                   pid-8722                             A  Timestamp: 2023-03-05 19:12:13-0500
2023-03-05 16:12:13.984  8722-8722  DEBUG                   pid-8722                             A  pid: 8652, tid: 8692, name: GLThread 517  >>> org.godotengine.godotxrtoolsdemo <<<
2023-03-05 16:12:13.984  8722-8722  DEBUG                   pid-8722                             A  uid: 10122
2023-03-05 16:12:13.984  8722-8722  DEBUG                   pid-8722                             A  signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x198
2023-03-05 16:12:13.984  8722-8722  DEBUG                   pid-8722                             A  Cause: null pointer dereference
2023-03-05 16:12:13.984  8722-8722  DEBUG                   pid-8722                             A      x0  0000000000000000  x1  0000000000000000  x2  0000000000000030  x3  0000000000000003
2023-03-05 16:12:13.984  8722-8722  DEBUG                   pid-8722                             A      x4  0000000000000000  x5  0000000000000000  x6  1f3951576d646f4e  x7  7f7f7f7f7f7f7f7f
2023-03-05 16:12:13.984  8722-8722  DEBUG                   pid-8722                             A      x8  0000006f1ee218b8  x9  167df8a937a4bfde  x10 0000000000000000  x11 0000000002f57dc5
2023-03-05 16:12:13.984  8722-8722  DEBUG                   pid-8722                             A      x12 0000006f11e1e000  x13 0000000000000030  x14 000000701c024230  x15 0000000000000078
2023-03-05 16:12:13.984  8722-8722  DEBUG                   pid-8722                             A      x16 000000701c0e2470  x17 000000701c0d7c24  x18 0000006f1e2ae000  x19 0000006f11e14210
2023-03-05 16:12:13.984  8722-8722  DEBUG                   pid-8722                             A      x20 0000000000000000  x21 0000006f1ee23018  x22 0000006f31230938  x23 0000006f312f3f08
2023-03-05 16:12:13.984  8722-8722  DEBUG                   pid-8722                             A      x24 0000003fff6f0810  x25 0000006f11e3a090  x26 0000006f11e3b210  x27 0000000000000000
2023-03-05 16:12:13.984  8722-8722  DEBUG                   pid-8722                             A      x28 0000006f11e3a090  x29 0000006f1ee21990
2023-03-05 16:12:13.984  8722-8722  DEBUG                   pid-8722                             A      sp  0000006f1ee21890  lr  0000006f2ed8f268  pc  0000006f30c333ec
2023-03-05 16:12:14.279  8722-8722  DEBUG                   pid-8722                             A  
                                                                                                    backtrace:
2023-03-05 16:12:14.279  8722-8722  DEBUG                   pid-8722                             A        #00 pc 0000000002f213ec  /data/app/org.godotengine.godotxrtoolsdemo-y3zW7EnXTv6NNuB0OxaIEA==/base.apk!libgodot_android.so (offset 0x254000)
2023-03-05 16:12:14.279  8722-8722  DEBUG                   pid-8722                             A        #01 pc 000000000107d264  /data/app/org.godotengine.godotxrtoolsdemo-y3zW7EnXTv6NNuB0OxaIEA==/base.apk!libgodot_android.so (offset 0x254000)
2023-03-05 16:12:14.279  8722-8722  DEBUG                   pid-8722                             A        #02 pc 000000000107fdc0  /data/app/org.godotengine.godotxrtoolsdemo-y3zW7EnXTv6NNuB0OxaIEA==/base.apk!libgodot_android.so (offset 0x254000)
2023-03-05 16:12:14.279  8722-8722  DEBUG                   pid-8722                             A        #03 pc 0000000001078cb8  /data/app/org.godotengine.godotxrtoolsdemo-y3zW7EnXTv6NNuB0OxaIEA==/base.apk!libgodot_android.so (offset 0x254000)
2023-03-05 16:12:14.279  8722-8722  DEBUG                   pid-8722                             A        #04 pc 0000000000b969c8  /data/app/org.godotengine.godotxrtoolsdemo-y3zW7EnXTv6NNuB0OxaIEA==/base.apk!libgodot_android.so (offset 0x254000)
2023-03-05 16:12:14.279  8722-8722  DEBUG                   pid-8722                             A        #05 pc 0000000000b8298c  /data/app/org.godotengine.godotxrtoolsdemo-y3zW7EnXTv6NNuB0OxaIEA==/base.apk!libgodot_android.so (offset 0x254000)
2023-03-05 16:12:14.279  8722-8722  DEBUG                   pid-8722                             A        #06 pc 0000000000b5b890  /data/app/org.godotengine.godotxrtoolsdemo-y3zW7EnXTv6NNuB0OxaIEA==/base.apk!libgodot_android.so (offset 0x254000) (Java_org_godotengine_godot_GodotLib_step+280)
2023-03-05 16:12:14.279  8722-8722  DEBUG                   pid-8722                             A        #07 pc 0000000000143950  /apex/com.android.runtime/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 16:12:14.279  8722-8722  DEBUG                   pid-8722                             A        #08 pc 000000000013abb8  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 16:12:14.279  8722-8722  DEBUG                   pid-8722                             A        #09 pc 0000000000149660  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+276) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 16:12:14.279  8722-8722  DEBUG                   pid-8722                             A        #10 pc 00000000002eb688  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+384) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 16:12:14.279  8722-8722  DEBUG                   pid-8722                             A        #11 pc 00000000002e648c  /apex/com.android.runtime/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+900) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 16:12:14.279  8722-8722  DEBUG                   pid-8722                             A        #12 pc 00000000005b22d0  /apex/com.android.runtime/lib64/libart.so (MterpInvokeStatic+552) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 16:12:14.279  8722-8722  DEBUG                   pid-8722                             A        #13 pc 0000000000134f94  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 16:12:14.279  8722-8722  DEBUG                   pid-8722                             A        #14 pc 000000000018d100  [anon:dalvik-classes.dex extracted in memory from /data/app/org.godotengine.godotxrtoolsdemo-y3zW7EnXTv6NNuB0OxaIEA==/base.apk]
2023-03-05 16:12:14.280  8722-8722  DEBUG                   pid-8722                             A        #15 pc 00000000005b1174  /apex/com.android.runtime/lib64/libart.so (MterpInvokeInterface+1752) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 16:12:14.280  8722-8722  DEBUG                   pid-8722                             A        #16 pc 0000000000135014  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 16:12:14.280  8722-8722  DEBUG                   pid-8722                             A        #17 pc 000000000018c26a  [anon:dalvik-classes.dex extracted in memory from /data/app/org.godotengine.godotxrtoolsdemo-y3zW7EnXTv6NNuB0OxaIEA==/base.apk]
2023-03-05 16:12:14.280  8722-8722  DEBUG                   pid-8722                             A        #18 pc 00000000005b1d1c  /apex/com.android.runtime/lib64/libart.so (MterpInvokeDirect+1188) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 16:12:14.280  8722-8722  DEBUG                   pid-8722                             A        #19 pc 0000000000134f14  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_direct+20) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 16:12:14.280  8722-8722  DEBUG                   pid-8722                             A        #20 pc 000000000018c830  [anon:dalvik-classes.dex extracted in memory from /data/app/org.godotengine.godotxrtoolsdemo-y3zW7EnXTv6NNuB0OxaIEA==/base.apk]
2023-03-05 16:12:14.280  8722-8722  DEBUG                   pid-8722                             A        #21 pc 00000000002ba334  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.15113868601603930265+264) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 16:12:14.280  8722-8722  DEBUG                   pid-8722                             A        #22 pc 00000000005a10b0  /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+964) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 16:12:14.280  8722-8722  DEBUG                   pid-8722                             A        #23 pc 0000000000143a68  /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 16:12:14.280  8722-8722  DEBUG                   pid-8722                             A        #24 pc 000000000013a934  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 16:12:14.280  8722-8722  DEBUG                   pid-8722                             A        #25 pc 0000000000149640  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+244) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 16:12:14.280  8722-8722  DEBUG                   pid-8722                             A        #26 pc 00000000004be7c4  /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 16:12:14.280  8722-8722  DEBUG                   pid-8722                             A        #27 pc 00000000004bf994  /apex/com.android.runtime/lib64/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+416) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 16:12:14.280  8722-8722  DEBUG                   pid-8722                             A        #28 pc 00000000004ffd14  /apex/com.android.runtime/lib64/libart.so (art::Thread::CreateCallback(void*)+1156) (BuildId: 9688b729ffcfb067a33d92e3c7278f65)
2023-03-05 16:12:14.280  8722-8722  DEBUG                   pid-8722                             A        #29 pc 00000000000d5c44  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: 76160b7be02961a2e357c92bde57eb19)
2023-03-05 16:12:14.280  8722-8722  DEBUG                   pid-8722                             A        #30 pc 0000000000082fe4  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 76160b7be02961a2e357c92bde57eb19)

@Sch1nken
Copy link

Sch1nken commented Jun 2, 2023

I have a similiar problem. Complete projects loads and then crashes. But when I create a new scene with just the XRRig and the "StartXR" Node/Script, I can at least see something. The framerate is abyssmal and the scene doesn't seem to render correctly (I added some meshinstanced all around the player but couldn't see any in the HMD). Shortly after the app crashes.

Pico Neo 3 (China Import, flashed with Neo 3 Link Firmware 5.4.0). Self-compiled Godot 4.0.3 (from the actual 4.0.3 tag on Github).

logcat.log

What stands out to me is the following error:

23-06-03 00:18:13.352  4441-5519  APxrRuntime             org.godotengine.xrtemplate           E  gl_format_to_vk format 32849 is not supported

Followed by a

3-06-03 00:18:13.355  1772-3605  APxrRuntime             com.pico.xr.openxr_runtime           W  (sss) Push RESUME event to current app:= org.godotengine.xrtemplate state.resumed:1, state.visible:0
2023-06-03 00:18:13.389  1302-1963  XrAppIorapServer        system_server                        W  update appinfo: failed to query the AppInfo of app = org.godotengine.xrtemplate ret = 2
2023-06-03 00:18:13.429  4441-5519  godot                   org.godotengine.xrtemplate           E  USER ERROR: Interface not found.
2023-06-03 00:18:13.429  4441-5519  godot                   org.godotengine.xrtemplate           E     at: find_interface (servers/xr_server.cpp:227)
2023-06-03 00:18:13.433  4441-5519  godot                   org.godotengine.xrtemplate           I  OpenXR: Configuring interface
2023-06-03 00:18:13.433  4441-5519  godot                   org.godotengine.xrtemplate           E  USER WARNING: The requested V-Sync mode Disabled is not available. Falling back to V-Sync mode Enabled.
2023-06-03 00:18:13.433  4441-5519  godot                   org.godotengine.xrtemplate           E     at: _update_swap_chain (drivers/vulkan/vulkan_context.cpp:1899)
2023-06-03 00:18:13.437  4441-5519  xrt_session             org.godotengine.xrtemplate           W  org.godotengine.xrtemplate: client: oxr_session_handler_xrtCompositorEventResumeChange, receive RESUME changed event
2023-06-03 00:18:13.437  4441-5519  xrt_session             org.godotengine.xrtemplate           W  oxr_session_manage_state, client: org.godotengine.xrtemplate, action=2, state=XR_SESSION_STATE_IDLE
2023-06-03 00:18:13.437  4441-5519  xrt_session             org.godotengine.xrtemplate           W  oxr_session_change_state from 1 to 2

shortly after. Though a context seems to be created after that just fine?

2023-06-03 00:18:13.438  4441-5519  APxrRuntime             org.godotengine.xrtemplate           E  createInfo->format = 0x0000002b,c->info.formats[0] = 0x0000002b
2023-06-03 00:18:13.441  4441-5519  AdrenoVK-0              org.godotengine.xrtemplate           I  QUALCOMM build          : 4e19010, I576589ecdb
                                                                                                    Build Date              : 03/16/22
                                                                                                    Shader Compiler Version : EV031.36.06.01
                                                                                                    Local Branch            : Promotion602
                                                                                                    Remote Branch           : 
                                                                                                    Remote Branch           : 
                                                                                                    Reconstruct Branch      : 
2023-06-03 00:18:13.441  4441-5519  AdrenoVK-0              org.godotengine.xrtemplate           I  Build Config            : S P 8.0.12 AArch64
2023-06-03 00:18:13.441  4441-5519  AdrenoVK-0              org.godotengine.xrtemplate           I  Driver Path             : /vendor/lib64/hw/vulkan.kona.so
2023-06-03 00:18:13.441  4441-5519  AdrenoVK-0              org.godotengine.xrtemplate           I  Driver Version          : 0607.0
2023-06-03 00:18:13.441  4441-5519  AdrenoVK-0              org.godotengine.xrtemplate           I  PFP                     : 0x016dd104
2023-06-03 00:18:13.441  4441-5519  AdrenoVK-0              org.godotengine.xrtemplate           I  ME                      : 0x00000000
2023-06-03 00:18:13.441  4441-5519  AdrenoVK-0              org.godotengine.xrtemplate           I  Application Name    : oopc
                                                                                                    Application Version : 0x00400000
                                                                                                    Engine Name         : null
                                                                                                    Engine Version      : 0x00400000
                                                                                                    Api Version         : 0x00401000
2023-06-03 00:18:13.441  4441-5519  PxrRuntime:             org.godotengine.xrtemplate           I  vk_init:1,1,0
2023-06-03 00:18:13.441  4441-5519  PxrRuntime:             org.godotengine.xrtemplate           I  vk_init: g_vkInstance=0x780b0bade0, g_vkPhysicalDevice=0x780b0badd0, g_vkDevice=0x780b0badf0, g_vkQueue=0x780b0bae10
2023-06-03 00:18:13.441  4441-5519  PxrRuntime:             org.godotengine.xrtemplate           I  swapchain_create w:1440,h:1584,array = 2, format=0x2b, mipcount=1
2023-06-03 00:18:13.441  4441-5519  PxrRuntime:             org.godotengine.xrtemplate           I  **************************************************
2023-06-03 00:18:13.441  4441-5519  PxrRuntime:             org.godotengine.xrtemplate           I  Initializing Function: vkGetPhysicalDeviceImageFormatProperties2KHR
2023-06-03 00:18:13.441  4441-5519  PxrRuntime:             org.godotengine.xrtemplate           I  **************************************************
2023-06-03 00:18:13.441  4441-5519  ion                     org.godotengine.xrtemplate           E  ioctl c0044901 failed with code -1: Not a typewriter
2023-06-03 00:18:13.441  4441-5519  PxrRuntime:             org.godotengine.xrtemplate           I  swapchain_create vkDeviceMemory0: 0x78076dcf80, allocationSize: 18764620
2023-06-03 00:18:13.441  4441-5519  PxrRuntime:             org.godotengine.xrtemplate           I  **************************************************
2023-06-03 00:18:13.441  4441-5519  PxrRuntime:             org.godotengine.xrtemplate           I  Initializing Function: vkGetMemoryFdKHR
2023-06-03 00:18:13.441  4441-5519  PxrRuntime:             org.godotengine.xrtemplate           I  **************************************************
2023-06-03 00:18:13.441  4441-5519  PxrRuntime:             org.godotengine.xrtemplate           I  swapchain_create, out_images[0].handle: 97, image:0x7807566400, device_memory:0x78076dcf80, size:18764620, dedicated:1
2023-06-03 00:18:13.442  4441-5519  PxrRuntime:             org.godotengine.xrtemplate           I  swapchain_create vkDeviceMemory1: 0x78076dcd00, allocationSize: 18764620
2023-06-03 00:18:13.442  4441-5519  PxrRuntime:             org.godotengine.xrtemplate           I  swapchain_create, out_images[1].handle: 98, image:0x7807566400, device_memory:0x78076dcd00, size:18764620, dedicated:1
2023-06-03 00:18:13.442  4441-5519  PxrRuntime:             org.godotengine.xrtemplate           I  swapchain_create vkDeviceMemory2: 0x78076dcf80, allocationSize: 18764620
2023-06-03 00:18:13.442  4441-5519  PxrRuntime:             org.godotengine.xrtemplate           I  swapchain_create, out_images[2].handle: 99, image:0x7807566400, device_memory:0x78076dcf80, size:18764620, dedicated:1
2023-06-03 00:18:13.443  4441-5519  APxrRuntime             org.godotengine.xrtemplate           E  oxr_create_swapchain(), createInfo->width:1440, createInfo->height:1584, createInfo->arraySize:2
2023-06-03 00:18:13.443  4441-5519  godot                   org.godotengine.xrtemplate           I  OpenXR: Session begun
2023-06-03 00:18:13.444  4441-5519  godot                   org.godotengine.xrtemplate           I  OpenXR: Refresh rate reported as 72
2023-06-03 00:18:13.444  4441-5519  godot                   org.godotengine.xrtemplate           I  OpenXR: Target supports only one refresh rate
2023-06-03 00:18:13.444  4441-5519  godot                   org.godotengine.xrtemplate           I  Setting physics rate to 72
2023-06-03 00:18:13.455  4441-5519  xrt_session             org.godotengine.xrtemplate           W  oxr_session_manage_state, client: org.godotengine.xrtemplate, action=3, state=XR_SESSION_STATE_READY
2023-06-03 00:18:13.455  4441-5519  xrt_session             org.godotengine.xrtemplate           W  oxr_session_change_state from 2 to 3
2023-06-03 00:18:13.456  1772-2952  xrt_session             com.pico.xr.openxr_runtime           W  handle_focused_client_events:org.godotengine.xrtemplate1,1.0
2023-06-03 00:18:13.456  4441-5519  APxrRuntime             org.godotengine.xrtemplate           E  Call error '-15'!
2023-06-03 00:18:13.462  4441-5519  JNI_PART                org.godotengine.xrtemplate           I  [UpgradeAlg] config head file tools path: /system/etc/pvr/config/config_head.txt
2023-06-03 00:18:13.463  4441-5519  xrt_session             org.godotengine.xrtemplate           W  oxr_session_handler_xrtCompositorEventStateChange: client: org.godotengine.xrtemplate, 1,1:3
2023-06-03 00:18:13.463  4441-5519  xrt_session             org.godotengine.xrtemplate           W  oxr_session_manage_state, client: org.godotengine.xrtemplate, action=5, state=XR_SESSION_STATE_SYNCHRONIZED
2023-06-03 00:18:13.463  4441-5519  xrt_session             org.godotengine.xrtemplate           W  oxr_session_change_state from 3 to 4
2023-06-03 00:18:13.463  4441-5519  APxrRuntime             org.godotengine.xrtemplate           W  oxr_session_change_state------------0x7817df2c40    0x788aefb080
2023-06-03 00:18:13.463  4441-5519  APxrRuntime             org.godotengine.xrtemplate           W  ipc_instance_activity_focusable_changed------------0x788aefb080    0x788aefb1d0   0x788aefb228
2023-06-03 00:18:13.463  4441-5519  APxrRuntime             org.godotengine.xrtemplate           W  ipc_client_activity_focusable_changed------------0x781b8f99c0    0x781b8f99e0
2023-06-03 00:18:13.463  4441-5519  pico-ipc-client         org.godotengine.xrtemplate           I  activityFocusableChanged true
2023-06-03 00:18:13.464  4441-5519  pico-ipc-client         org.godotengine.xrtemplate           I  activityFocusableChanged insert setLocalFocus  true    1
2023-06-03 00:18:13.464  4441-5519  xrt_session             org.godotengine.xrtemplate           W  oxr_session_change_state from 4 to 5
2023-06-03 00:18:13.464  1772-2952  PxrBroadcastReceiver    com.pico.xr.openxr_runtime           I  last visible package = org.godotengine.xrtemplate
2023-06-03 00:18:13.464  4441-4441  PxrConfigServiceClient  org.godotengine.xrtemplate           W   open getConfigPropertyDirectAccess type:0 configName:key_et_enable token: 
2023-06-03 00:18:13.464  4441-5519  godot                   org.godotengine.xrtemplate           I  OpenXR: XR started (focused_state)
2023-06-03 00:18:13.464  4441-5519  DataBuffer              org.godotengine.xrtemplate           E  map fd(106) fdSize(36840) getSize(36840) address(0x787dd0a000)
2023-06-03 00:18:13.467  4441-4441  APxrRuntime             org.godotengine.xrtemplate           W  from config service, et  enable 0
2023-06-03 00:18:13.467  4441-4441  PxrConfigServiceClient  org.godotengine.xrtemplate           W   open getConfigPropertyDirectAccess type:0 configName:key_ft_enable token: 
2023-06-03 00:18:13.471  4441-4441  APxrRuntime             org.godotengine.xrtemplate           W  from config service, ft  enable 0
2023-06-03 00:18:13.471  4441-4441  APxrRuntime             org.godotengine.xrtemplate           E  session_on_foucus_changed 0 0 
2023-06-03 00:18:13.471  4441-4441  xrt_session             org.godotengine.xrtemplate           W  org.godotengine.xrtemplate, session_on_foucus_changed
2023-06-03 00:18:13.471  4441-4441  pico-ipc-client         org.godotengine.xrtemplate           I  activityFocusableChanged setLocalFocus  true

Update: I tried it with the 2.2.0 SDK but to no avail. I'm pretty confident that the SDK and games using it should run on a Pico 3, since many if not most store-games are also running on Pico3/Pico4 with just one APK/SDK Library. Also the official docs state that the current SDK works for both Pico3 and Pico4.

@Sch1nken
Copy link

An update: It seems that Pico 4 5.4.0.0 has a different features set than Pico Neo 3 (Link) 5.4.0.0. Updating to 5.6.3.0 resolved my issue and everything is working fine now!

@BastiaanOlij
Copy link
Member

There were various issues with PICO on their side, those have now been addressed.

Do note godotengine/godot#79570 which will be a minor breaking change for PICO in Godot 4.2

Closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants