Repository navigation
Conversation
Release 3.3.0
…e attach getControllerRayAsync and getControllerForwardAsync threw a NullPointerException on the main thread when the ViroController's scene had not reached the renderer, and never settled when the callback, which the renderer holds weakly, was collected before the answer. They now reject with E_CONTROLLER_NOT_READY, the bridge holds each request until it is answered, and a request the renderer never answers rejects with E_CONTROLLER_TIMEOUT after 2 seconds. Also for ViroController events: a verbose ViroInput trace of clicks through the bridge, and the event delegate goes back to a mounted ViroController when a newer one is torn down. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JoDeNibskBVXyR57tP3WdH
Under Fabric a parent re-render with a new but equal animation object applied the prop again, which logged 'Unable to play animation in state RUNNING' on the main thread each time (twice on a Viro3DObject) and restarted an interruptible animation. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JoDeNibskBVXyR57tP3WdH
Its React surface stays mounted until the activity is destroyed, with its ViroQuestEntryPoint still subscribed to intents and navigator ops. VRLauncher now reports a VRActivity that starts finishing, entry points stop listening, and launchVRScene waits for a finishing VRActivity to be destroyed. Also forwards onHandUpdate from ViroXRSceneNavigator through to the native view. Nothing native sends the event yet. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JoDeNibskBVXyR57tP3WdH
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JoDeNibskBVXyR57tP3WdH
…ase build A require()d sound is a resource name with no scheme in a release build. It was handed to the renderer as it came, which downloads anything that is not res:/<id> as a URL, so every preload failed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JoDeNibskBVXyR57tP3WdH
… dispatcher check Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JoDeNibskBVXyR57tP3WdH
…tializeCore Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JoDeNibskBVXyR57tP3WdH
This was referenced Nov 28, 2026
Draft
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes for the Quest bugs the XR Demos apps (Soak Squad and others) found on Quest 3 with 3.2.3, all re-checked as still present in 3.3.0. This PR is the
virohalf: the Android bridge and the Quest JavaScript. The renderer half is ReactVision/virocore#476.Not tested on a headset. No Quest was available. Nothing below has run on a device.
examples/quest-input-validationis a scene and a checklist for doing that.What changed
viroreact-controller-ray-before-attachviroreact-controller-ray-weak-callbackanimationprop set again re-plays a running animationViroController.onClickStatereceives nothing on Questviroreact-quest-controller-click-route(keep)onHandUpdatenot forwarded on Questviroreact-quest-hand-update(keep)2.1 and 2.3:
getControllerRayAsync/getControllerForwardAsyncVRTControllerno longer dereferences a null native controller. Both calls reject withE_CONTROLLER_NOT_READYbefore the scene is attached, after tear down, and when the tag is not a mountedViroController.ControllerModulenow holds every request until it is answered, and rejects withE_CONTROLLER_TIMEOUTafter 2 s if the renderer never answers. Every path settles the promise exactly once. This works with the current renderer; virocore#476 also fixes the reference itself.getControllerRayAsyncused to resolvenullwhen the tag was not aVRTController; it now rejects. A source with no ray of its own still resolvesnull.getRayAsyncresolvesniland the forward vector path has no equivalent dereference. No change.2.4: animation prop
VRTNode.setAnimationcomparesname,run,loop,delay,durationandinterruptiblewith the values last applied and returns when nothing changed. Before, every re-application calledplayAnimation(twice on aViro3DObject), which logged a warning on the main thread, and restarted aninterruptibleanimation. The message is now verbose.2.2: controller clicks
The break is not located. What the bridge can contribute is here:
ViroInputtrace (adb shell setprop log.tag.ViroInput VERBOSE) of each click reachingComponentEventDelegate.onClickandViroEventEmitter.emit, and of eachVRTControllerhaving its delegate set, clicks enabled and being torn down. virocore#476 traces the renderer's hops under the same tag. The example's README says how to read it.VRTControllerwas torn down (a pushed scene popped, a secondViroControllerunmounted) the survivor never got the delegate back. It now does, and a secondViroControllerunder one navigator logs a warning.2.6: VRActivity re-entry
VRLauncherModulewatches activity lifecycle and sendsViroVRActivityFinishingonce per VRActivity that starts finishing (the generated activity finishing itself, the system, orexitVRScene()). No change to the generatedVRActivity.kt, so no new prebuild is needed.exitVRScene(),VRQuestNavigatorBridge.retireEntryPoints()drops every mounted entry point's intent and op subscriptions. Ops were affected too: a stale listener tookpush/popmeant for the next view.launchVRSceneholds the launch while a VRActivity is finishing and not destroyed, untilonActivityDestroyedor 4 s. This is a wait, not a refusal, so the Enter button still works in that window.startActivitynow runs on the main thread.ViroXRSceneNavigatorunmounts. That is new behaviour, not a defect fix.2.7:
onHandUpdateForwarded from
ViroXRSceneNavigatorthrough the intent toViroVRSceneNavigator, which now passes it to the native view asonHandUpdateViro(it was declared in the props but never wired). The handler will still not be called.VRTVRSceneNavigatorManageronly registers the event name: nothing inviro_bridgesends it, andViroViewOpenXRhas no hand-joint listener to send it from. The brief's "its native manager emitsonHandUpdateViro" does not hold in 3.3.0. Adding the emitter is a per-frame data path that needs a design and a device; see virocore#476.2.10: sound preload
SoundModule.preloadSoundspassed the string straight tonew SoundData(path). In a release build a bundled sound is a resource name with no scheme, and the renderer downloads anything that is notres:/<id>as a URL, which is theIO error downloading file at URL [assets_audio_squirtstart]in the logs.preloadSoundsnow resolves the name throughHelper.parseUri, asVRTBaseSounddoes for aViroSound's ownsource. No renderer change is needed:VROModelIOUtil::retrieveResourceAsyncalready readsres:paths from the app's resources.Verification
npx jest: 1131 tests pass, 7 of them new (__test__/questSessionLifecycle.test.ts). 23 suites fail to load, the same 23 as ondevelop: they need the siblingviro-web-renderercheckout.tsc --noEmit: no errors outside the web files, which need the same checkout.javacagainst React Native 0.88.1'sreact-androidclasses, the shipped renderer classes and the shipped bridge classes. 7 JUnit tests pass for the two pure-Java pieces (android/viro_bridge/src/test), run with JUnit directly.dl.google.comis blocked in the environment this was written in, so there was no Android SDK or Android Gradle Plugin.:viro_bridge:assembleReleaseand the new tests under Gradle have not run.android/react_viro/react_viro-release.aaris not rebuilt, and neither isviro_renderer-release.aar. Untilprepare_release.shruns, none of the Android changes reach an app.To check on a Quest 3
Use
examples/quest-input-validation(its README has the full table). In short:NullPointerException; early ray requests reject withE_CONTROLLER_NOT_READY, later ones resolve.animation: one start, noUnable to play animationlines.ViroInputtrace to see where a click stops.ViroSound.preloadSoundsof bundled MP3s resolvesresult: truefor each, on first launch and after re-entering the headset view.Follow-up
🤖 Generated with Claude Code
https://claude.ai/code/session_01JoDeNibskBVXyR57tP3WdH