Forums - Unable to take snapshot on oculus quest

5 posts / 0 new
Last post
Unable to take snapshot on oculus quest
peterthor79
Join Date: 19 Jun 19
Posts: 9
Posted: Wed, 2020-03-25 14:35

As the topic says, I am unable to take a snapshot on the Oculus Quest with snapdragon 2019.04.

Built with Unity 2019.3.6.

I have fiddeled with the permissions in the manifest (external storage read/write, internet acces) and been looking into manually changing the frame delimiters. Not much success. Here is a log.

Solution

Make sure you allow access to the external storage for your application. Then you should be able to take a snapshot. 

I am experiencing another problem that I can not view the rendered output, see further below.

  • Up0
  • Down0
peterthor79
Join Date: 19 Jun 19
Posts: 9
Posted: Thu, 2020-03-26 06:11

Some progress is that I've updated to Android Debug Bridge version 1.0.40 and no longer see the error

 

I, 03-25 22:20:24.484, 16058, 16058, , SDP, SDPCore: Metric 'OpenGL Snapshot' deactivated for PID 16395, 
I, 03-25 22:20:24.484, 16395, 16523, com.Vicator.OculusLocomotion, Adreno, Unhandled QGC token: 0x102000e, 
 
However it does not return a capture. 
 
I am using the auto delimiter.
  • Up0
  • Down0
peterthor79
Join Date: 19 Jun 19
Posts: 9
Posted: Thu, 2020-03-26 15:40

And here is a listing of the requested and actual permissions:

From reading other ppls posts on this topic, I guess since it does not get access to read/write external storage the actual capture fails? 

 

F:\Vicator\dev\Pixel_Graphics\Built>adb shell dumpsys package com.Vicator.OculusLocomotion
Activity Resolver Table:
  Non-Data Actions:
      android.intent.action.MAIN:
        c975b97 com.Vicator.OculusLocomotion/com.unity3d.player.UnityPlayerActivity filter 707aa7
          Action: "android.intent.action.MAIN"
          Category: "android.intent.category.INFO"
          AutoVerify=false
 
Key Set Manager:
  [com.Vicator.OculusLocomotion]
      Signing KeySets: 23
 
Packages:
  Package [com.Vicator.OculusLocomotion] (8a536a2):
    userId=10101
    pkg=Package{8243184 com.Vicator.OculusLocomotion}
    codePath=/data/app/com.Vicator.OculusLocomotion-1
    resourcePath=/data/app/com.Vicator.OculusLocomotion-1
    legacyNativeLibraryDir=/data/app/com.Vicator.OculusLocomotion-1/lib
    primaryCpuAbi=armeabi-v7a
    secondaryCpuAbi=null
    versionCode=1 minSdk=25 targetSdk=28
    versionName=1.1
    splits=[base]
    apkSigningVersion=2
    applicationInfo=ApplicationInfo{e977d6d com.Vicator.OculusLocomotion}
    flags=[ DEBUGGABLE HAS_CODE ALLOW_CLEAR_USER_DATA ALLOW_BACKUP ]
    privateFlags=[ RESIZEABLE_ACTIVITIES ]
    dataDir=/data/user/0/com.Vicator.OculusLocomotion
    supportsScreens=[small, medium, large, xlarge, resizeable, anyDensity]
    timeStamp=2020-03-26 23:11:20
    firstInstallTime=2019-06-25 13:19:04
    lastUpdateTime=2020-03-26 23:11:22
    signatures=PackageSignatures{50cc069 [4d426637]}
    installPermissionsFixed=true installStatus=1
    pkgFlags=[ DEBUGGABLE HAS_CODE ALLOW_CLEAR_USER_DATA ALLOW_BACKUP ]
    requested permissions:
      android.permission.INTERNET
      android.permission.CHANGE_WIFI_MULTICAST_STATE
      android.permission.RECORD_AUDIO
      android.permission.MODIFY_AUDIO_SETTINGS
      android.permission.BLUETOOTH
      android.permission.READ_EXTERNAL_STORAGE
      android.permission.WRITE_EXTERNAL_STORAGE
    install permissions:
      android.permission.MODIFY_AUDIO_SETTINGS: granted=true
      android.permission.BLUETOOTH: granted=true
      android.permission.CHANGE_WIFI_MULTICAST_STATE: granted=true
      android.permission.INTERNET: granted=true
    User 0: ceDataInode=294987 installed=true hidden=false suspended=false stopped=false notLaunched=false enabled=0
      gids=[3002, 3003]
      runtime permissions:
        android.permission.RECORD_AUDIO: granted=false, flags=[ USER_FIXED ]
 
 
Dexopt state:
  [com.Vicator.OculusLocomotion]
    Instruction Set: arm
      path: /data/app/com.Vicator.OculusLocomotion-1/base.apk
      status: /data/app/com.Vicator.OculusLocomotion-1/oat/arm/base.odex [compilation_filter=interpret-only, status=kOat
      UpToDate]
 
 
Compiler stats:
  [com.Vicator.OculusLocomotion]
     base.apk - 168
  • Up0
  • Down0
peterthor79
Join Date: 19 Jun 19
Posts: 9
Posted: Thu, 2020-03-26 16:15

And when enabling the read and write of the external storage I am able to take an initial snapshots of the build of the Oculus Quest app.

However, another problem emerges. When doubleclicking on a drawcall there is an error and the following is output to the log:

 

I, 03-27 00:13:29.667, 7319, 27411, com.Vicator.OculusLocomotion, VrApi, FPS=72,Prd=45ms,Tear=0,Early=72,Stale=0,VSnc=1,Lat=1,Fov=0,CPU4/GPU=2/2,1651/414MHz,OC=FF,TA=0/0/0,SP=N/N/N,Mem=1804MHz,Free=1129MB,PSM=0,PLS=0,Temp=32.0C/0.0C,TW=3.03ms,App=4.65ms,GD=1.36ms,CPU&GPU=6.70ms,LCnt=1,GPU%=0.48,CPU%=0.24(W0.33),DSF=1.00, 

I, 03-27 00:13:29.747, 3066, 3066, , SDP, SDPCore: GLES_DP: Got a replay request, 
I, 03-27 00:13:29.747, 3066, 3066, , SDP, SDPCore: GLES_DP: OpenGLESDataPlugin::OnStartReplay(CaptureID 3, ReplayID 43), 
I, 03-27 00:13:29.747, 3066, 3066, , SDP, SDPCore: PlaybackController::OnStartReplay(CaptureID 3, ReplayID 43), 
I, 03-27 00:13:29.747, 3066, 29855, , SDP, SDPCore: PlaybackController::PlaybackThreadFunc(ReplayID=43, DrawCallID=24), 
E, 03-27 00:13:30.523, 3066, 29855, , SDP, SDPCore: ScreenshotDataRequestToken::Error Capturing   Color:3, 
E, 03-27 00:13:30.523, 3066, 29855, , SDP, SDPCore: ScreenshotDataRequestToken::Error Capturing   Depth:4, 
E, 03-27 00:13:30.523, 3066, 29855, , SDP, SDPCore: ScreenshotDataRequestToken::Error Capturing   Stencil:4, 
E, 03-27 00:13:30.523, 3066, 29855, , SDP, SDPCore: ScreenshotDataRequestToken::Error Capturing  Thumbnail Color:3, 
E, 03-27 00:13:30.524, 3066, 29855, , SDP, SDPCore: ScreenshotDataRequestToken::Error Capturing  Thumbnail Depth:4, 
E, 03-27 00:13:30.524, 3066, 29855, , SDP, SDPCore: ScreenshotDataRequestToken::Error Capturing  Thumbnail Stencil:4, 
E, 03-27 00:13:30.526, 3066, 29855, , libEGL, validate_display:99 error 3008 (EGL_BAD_DISPLAY), 
E, 03-27 00:13:30.526, 3066, 29855, , libEGL, validate_display:99 error 3008 (EGL_BAD_DISPLAY), 
E, 03-27 00:13:30.526, 3066, 29855, , libEGL, validate_display:99 error 3008 (EGL_BAD_DISPLAY), 
E, 03-27 00:13:31.188, 3066, 29855, , SDP, SDPCore: ScreenshotDataRequestToken::Error Capturing Highlight  Color:3, 
E, 03-27 00:13:31.189, 3066, 29855, , SDP, SDPCore: ScreenshotDataRequestToken::Error Capturing Highlight Thumbnail Color:3, 
E, 03-27 00:13:31.190, 3066, 29855, , libEGL, validate_display:99 error 3008 (EGL_BAD_DISPLAY), 
E, 03-27 00:13:31.190, 3066, 29855, , libEGL, validate_display:99 error 3008 (EGL_BAD_DISPLAY), 
E, 03-27 00:13:31.190, 3066, 29855, , libEGL, validate_display:99 error 3008 (EGL_BAD_DISPLAY), 
E, 03-27 00:13:31.279, 3066, 29855, , SDP, SDPCore: Replay done, failure (43), 
 
  • Up0
  • Down0
GilesGoat
Join Date: 15 Jul 14
Posts: 5
Posted: Wed, 2020-12-02 09:58

Hi,

I am UNABLE to take snapshots on Quest using V2020.3.0.9242020 Sep 24 2020 02:13:26

Any time I try it seems to start launching the APP I want to take the snapshot but then immediately exits.

I am working on Oculus Quest, Native NDK CPP code, Vulkan.

I tried everything but to no avail.

Cheers.

 

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.