Giter VIP home page Giter VIP logo

Comments (10)

smdol avatar smdol commented on August 20, 2024

Which version of Unity did you build with?

from gvr-unity-sdk.

josh-e avatar josh-e commented on August 20, 2024

5.0.1f1 Personal

from gvr-unity-sdk.

smdol avatar smdol commented on August 20, 2024

Confirmed. Just got it to happen. Digging into the logcat...

Edit: This happened when I touched the screen after a couple of minutes. Same for you, or did the ANR just pop up on its own?

Here's what I see in logcat:

I/WindowManager( 891): Input event dispatching timed out sending to com.google.vr.anrtest/com.google.vrtoolkit.cardboard.plugins.unity.UnityCardboardActivity. Reason: Waiting to send non-key event because the touched window has not finished processing certain input events that were delivered to it over 500.0ms ago. Wait queue length: 47. Wait queue head age: 15506.3ms.

Wait queue is 15 seconds deep!

First blush analysis is that this is caused by something in the custom Activity class that is used in the Cardboard SDK, which is how it hooks into the underlying Java SDK, or the problem is in the Java SDK itself. That, and something about the M8.

from gvr-unity-sdk.

smdol avatar smdol commented on August 20, 2024

Found the CPU usage message a bit further along:

E/ActivityManager( 891): ANR in com.google.vr.anrtest (com.google.vr.anrtest/com.google.vrtoolkit.cardboard.plugins.unity.UnityCardboardActivity), time=734614620
E/ActivityManager( 891): PID: 24417
E/ActivityManager( 891): Reason: Input dispatching timed out (Waiting to send non-key event because the touched window has not finished processing certain input events that were delivered to it over 500.0ms ago. Wait queue length: 47. Wait queue head age: 15506.3ms.)
E/ActivityManager( 891): Load: 13.62 / 51.3 / 93.85
E/ActivityManager( 891): CPU usage from 10495ms to 63ms ago:
E/ActivityManager( 891): 110% 24417/com.google.vr.anrtest: 95% user + 14% kernel / faults: 50866 minor
E/ActivityManager( 891): 14% 456/mediaserver: 14% user + 0% kernel
E/ActivityManager( 891): 7.9% 366/surfaceflinger: 3.7% user + 4.2% kernel

That's quite a CPU load there.

from gvr-unity-sdk.

josh-e avatar josh-e commented on August 20, 2024

That is exactly what I am seeing (I actually think I had one with 147%)

from gvr-unity-sdk.

smdol avatar smdol commented on August 20, 2024

What Android version is on your Galaxy S5?

I found a similar looking bug report for Chrome on Lollipop here:
https://code.google.com/p/chromium/issues/detail?id=445138

Edit: The ANR does not happen on my Nexus 5, which is also Lollipop (5.1).

from gvr-unity-sdk.

josh-e avatar josh-e commented on August 20, 2024

The s5 is running android 5.0 (also Verizon version)

from gvr-unity-sdk.

josh-e avatar josh-e commented on August 20, 2024

Is the source for the custom activity publicly available so I could debug a little further myself?

from gvr-unity-sdk.

smdol avatar smdol commented on August 20, 2024

from gvr-unity-sdk.

nathanmartz avatar nathanmartz commented on August 20, 2024

Closing old issues.

from gvr-unity-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.