Where is my RAM? Unity app on Oculus GO non-deterministic crashing with < 1gb memory used!
Been at this for a couple weeks now, so I need help. I have a relatively large app with many features, and recently it started exhibiting crashes, mainly during a new scene load, which made it terrible to track down. I eventually figured out were due to out-of-memory issues. I had no logs saying this, but doing an adb bugreport eventually showed the culprit as lowmemorykiller ending the process abruptly. So using Unity's great profiling tools, I was able to get my RAM consumption down from about 2gb to under 1gb. Crashes seemingly abated. Then I went on with other optimizations, including switching from GLES2 to GLES3+Single Pass Rendering. Now the crashes are coming back! I'm not using any more memory, except possibly for GLES3 itself - the profiler shows 1.02gb in use, 0.76 for unity and 270mb for "GfxDriver". However, I was previously able to have 2gb in memory before crashes before, on GLES2, so why would I crash now at ~1gb on GLES3? Further, the crashes are not consistent - sometimes I can play everything fine with no crashes, other times not. Sometimes, simply connecting to the Unity profiler pushes me over the edge to a crash, further complicating my debugging process. If I'm interpreting things correctly, the profiler says (right before the crash) that I'm using 1.02gb out of "reserved" 1.05gb, and that 2.40gb "total system memory usage" - so what is using the extra 1.4gb? Is there any better way I can isolate the specific causes of the issue? I really can't do much more to manage my RAM usage. Half of it is out of my control - 270mb on the graphics driver, and 200mb for the eye render textures - and it just feels like every time I lower my memory usage a bit, the point where I get a crash becomes lower to compensate. If I can't get an answer I'll just have to go back to the inexplicably working GLES2, and lose single-pass rendering, but that will lead to degraded user experience, so please send any suggestions! Thanks2.2KViews2likes4CommentsDetecting and Switching Handedness
In our game, we're trying to detect and switch the handedness. I've found the basic information on the calls to get the information for which hand is set in the profile, but I can't find any more information on it. We're having an issue where I detect the handedness setting, and I can set the handedness (using the toolset OVRPlayerController) to the left hand by moving the "TrackedRemote" object to the right or left hand anchor. But, that's not working out. The switch doesn't seem to happen, even though it does in the editor (by manually setting the "lefthanded" bool. I'm not really looking for code assistance as much as I'm looking for more information. Does anyone have a good resource for good info on how this works or an idea of what we've missed? I've spent several hours searching. We're working on the Go, in Unity 2018.2, and using the code below: private void OnApplicationFocus(bool focus) { leftHanded = OVRInput.IsControllerConnected(OVRInput.Controller.LTrackedRemote); SetHandedness(leftHanded); } public void SetHandedness(bool isLeftHanded) { if(isLeftHanded) { trackedRemoteRef.parent = leftHandAnchorRef; } else { trackedRemoteRef.parent = rightHandAnchorRef; } }1.9KViews2likes3CommentsBUG in Oculus GO with Avatar SDK not showing OPENGL NATIVE PLUG-IN ERROR
Hello Oculus community, i just found out that in Unity 2018.2.14f there is a bug with Avatar SDK, when you open the cross platform sample scene in the oculus integration pack, in the oculus go you wont see the avatars, if you set the textures to ASTC they will appear shortly and then disappear , but the hands will be showing. In the logcat i get : OPENGL NATIVE PLUG-IN ERROR: GL_INVALID_VALUE: Numeric argument out of range and Graphics.CopyTexture with a region will not copy readable texture data for compressed formats (source texture format 50) I am going to test Unity 2018.3 beta to check if it works, if anyone has any idea whats happening ...2.1KViews2likes5CommentsOculus GO - unity version
Hi guys What's the latest recommended Unity version and oculus unity integration for Oculus GO ? Right now I tested 1.39 with 2019.2.2f1 and LWRP and can confirm that the integration isn't compatible and lwrp renders only to one eye. I'm dropping LWRP but I'd like to know which unity version is the best right now. 2018.4 lts?759Views1like1CommentRun / debug a build from Unity to Oculus Go live over USB?
I've gotten the procedure outlined in the docs working: make a build from Unity, install it using adb, open it on the Oculus Go headset. It works! However, that's a prohibitively slow workflow. I need a way to press Run in Unity and see the app launch in the headset, like I can using a non-mobile VR platform. If that's not currently possible, how is one supposed to develop apps for the Go? Is there some way to simulate the VR environment within Unity without using a headset? Or, should I develop using a full Oculus or Vive and then convert it for mobile as a final step? I don't feel it will be practical to have to make and transfer a build and navigate the menu system every time just to try my latest changes. Thanks in advance7.4KViews1like13CommentsEvent System and SDK
I literally have searched everywhere, but I couldn't fint any answer and frankly, all documentation available online is quite outdated. I am in the process of converting a game I made for Google Daydream to Oculus Go, and I'm having some pretty bad issues with this task, especially when it comes to interaction with objects. Daydream routed all controller events (movement and raycasting) through Unity's Event System, that meant that a click on the touchpad was enough to fire a OnPointerClick() event attached to an highlighted object. How do I route all Oculus Go interactions through Unity's built-in event system? I don't want to roll my own event system, I just want to know if the current scripts available in the Oculus Utilities package (current version 1.27) are enough to fire up event triggers on objects without writing a custom event system. PS: So far, I've tried putting a OVRCameraRig in the scene, attached a OVRPhysicsRaycaster to it, set the camera as the Ray transform and replaced GraphicRaycaster on a Canvas with OVRRaycaster.2.1KViews1like1CommentExpansion File Bundled Scene Not Loading Video (Go)
Hello, I recently used this tutorial from Gabor to attempt to get around size limitations for apks by creating an asset bundle and turning it into an expansion file. My app is essentially an interactive video player, with a 3.65GB video, in a single scene. I removed the scene from the build list, turned it into an asset bundle obb and created a new scene that loads the asset bundle and starts the loaded scene, it works in loading the scene and the interface, except the video doesn't play. Using Unity 2018.3.6f1 and Oculus SDK 1.34. Any help would be greatly appreciated, thanks!3.8KViews1like10Comments