cancel
Showing results for 
Search instead for 
Did you mean: 

Oculus Go rebooting evertime I press the power button

Abhishek_300192
Honored Guest
Hi All,
I am getting a exception in PowerManager class if I press the power button when my application is in foreground.
The device reboots everytime I press the power button with my application in foreground.
Sharing the system logs below : 

 --------- beginning of system
2019-10-18 12:05:08.189 9301-9458/? I/PowerManagerService: Going to sleep due to power button (uid 1000)...
2019-10-18 12:05:08.192 9301-9301/? E/InputMethodManagerService: Ignoring updateSystemUiLocked due to an invalid token. uid:1000 token:null
2019-10-18 12:05:08.192 9301-9342/? I/PowerManagerService: Sleeping (uid 1000)...
2019-10-18 12:05:08.195 9560-9581/? D/VrKeyguardService: onStartedGoingToSleep() called with: reason = [2]
    
    --------- beginning of crash
2019-10-18 12:05:08.196 9301-9342/? E/AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: PowerManagerService
    java.lang.NullPointerException: Attempt to invoke virtual method 'void com.android.server.vr.VrManagerInternal.setVrModeImmediate(boolean, android.content.ComponentName, int, android.content.ComponentName)' on a null object reference
        at com.android.server.am.ActivityManagerService.applyVrMode(ActivityManagerService.java:3223)
        at com.android.server.am.ActivityManagerService.-wrap5(ActivityManagerService.java)
        at com.android.server.am.ActivityManagerService$LocalService.acquireSleepToken(ActivityManagerService.java:22436)
        at com.android.server.policy.PhoneWindowManager.updateScreenOffSleepToken(PhoneWindowManager.java:7424)
        at com.android.server.policy.PhoneWindowManager.screenTurnedOff(PhoneWindowManager.java:6677)
        at com.android.server.display.DisplayPowerController.setScreenState(DisplayPowerController.java:816)
        at com.android.server.display.DisplayPowerController.animateScreenStateChange(DisplayPowerController.java:938)
        at com.android.server.display.DisplayPowerController.updatePowerState(DisplayPowerController.java:608)
        at com.android.server.display.DisplayPowerController.-wrap5(DisplayPowerController.java)
        at com.android.server.display.DisplayPowerController$DisplayControllerHandler.handleMessage(DisplayPowerController.java:1234)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:154)
        at android.os.HandlerThread.run(HandlerThread.java:61)
        at com.android.server.ServiceThread.run(ServiceThread.java:46)

Thanks for the help..

0 REPLIES 0