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

Remote Debugger does not work on Oculus Quest headsets #82630

Closed
dominiccooney opened this issue Oct 1, 2023 · 3 comments
Closed

Remote Debugger does not work on Oculus Quest headsets #82630

dominiccooney opened this issue Oct 1, 2023 · 3 comments

Comments

@dominiccooney
Copy link

Godot version

v4.1.1.stable.official [bd6af8e]

System information

Godot v4.1.1.stable - Windows 10.0.22621 - Vulkan (Mobile) - dedicated NVIDIA GeForce RTX 4070 Laptop GPU () - 13th Gen Intel(R) Core(TM) i9-13980HX (32 Threads)

Issue description

Related Discord thread.

Various users reported on 4.1.1 and 4.2dev5 that the debugger fails to connect when Remote Debugging Oculus Quest 2 and Quest Pro.

Godot logs contain:

0 param: --remote-debug
1 param: tcp://localhost:6007
...
--- Device API >= 21; debugging over USB ---
--- DEVICE API >= 21; DEBUGGING OVER USB ---

6007

Reverse result: 0
Starting: Intent { act=android.intent.action.MAIN cmp=org.godotengine.helloxr/com.godot.game.GodotApp }

Running the target with --verbose, logcat contains: I godot : Remote Debugger: Connected! but when hitting breakpoints, logs E godot : USER ERROR: Script Debugger failed to connect, but being used anyway.

There's a reverse tunnel on the device, ie adb reverse --list prints UsbFfs tcp:6007 tcp:6007.

Steps to reproduce

  1. Set up XR prerequisites an XR scene
  2. Set up Oculus Quest exporters
  3. Set a breakpoint at startup.
  4. Attach a headset, deploy with Remote Debugging.

Expect the breakpoint to be hit. The breakpoint is not hit.

Minimal reproduction project

N/A

@dominiccooney
Copy link
Author

Update: After restarting Windows, Godot, and reconnecting the headset, making some changes to the project and re-exporting debugging is now working, scene changes are reflected immediately, breakpoints hit, etc.

I suspect there's a race condition with setting up the debugger and when the deployment happens quickly, something goes wrong with attaching the debugger.

@decacis
Copy link
Contributor

decacis commented Oct 3, 2023

In my case, this is an issue in 4.2 but not in 4.1 or 4.1.1

@decacis
Copy link
Contributor

decacis commented Dec 11, 2023

I believe this was the same issue as #82764 so it can be closed.

@akien-mga akien-mga added this to the 4.2 milestone Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants