GAPID: Graphics API Debugger

Overview

GAPID: Graphics API Debugger

GoDoc Linux Linux Build Status MacOS MacOS Build Status Windows Windows Build Status

Maintenance Mode

GAPID is not currently under active development. Issues filed against this repo might not be answered.

For Android GPU debugging and profiling, please use AGI which is based on GAPID.

Downloads

Download the latest version of GAPID here.

Unstable developer releases are here.

Documentation

User documentation can be found at gapid.dev

The developer documentation contains some hints for GAPID developers. See also the README files under some source directories.

About

GAPID is a collection of tools that allows you to inspect, tweak and replay calls from an application to a graphics driver.

GAPID can trace any Android debuggable application, or if you have root access to the device any application can be traced. GAPID can also trace any desktop Vulkan application.

Screenshot 1 Screenshot 2
Screenshot 3 Screenshot 4

Building

See Building GAPID.

Running the client

After building GAPID, you can run the client from /bazel-bin/pkg/gapid.

Command-Line Interface

GAPID exposes most of its functionality via a CLI gapit. You can find auto-generated documentation here.

Project Structure

GAPID consists of the following sub-components:

gapii: Graphics API Interceptor

A layer that sits between the application / game and the GPU driver, recording all the calls and memory accesses.

gapis: Graphics API Server

A process that analyses capture streams reporting incorrect API usage, processes the data for replay on various target devices, and provides an RPC interface to the client.

gapir: Graphics API Replay daemon

A stack-based VM used to playback capture files, imitating the original application’s / game's calls to the GPU driver. Supports read-back of any buffer / framebuffer, and provides profiling functionality.

gapic: Graphics API Client

The frontend user interface application. Provides visual inspection of the capture data, memory, resources, and frame-buffer content.

gapil: Graphics API Language

A new domain specific language to describe a graphics API in its entirety. Combined with our template system to generate huge parts of the interceptor, server and replay systems.

Issues
  • Oculus VR trace fails to replay with 1.3.1

    Oculus VR trace fails to replay with 1.3.1

    Release 1.3.1 is the first release which enabled capturing logs for Oculus Mobile VR. But replay keeps failing consistently. Where are debug logs saved for GAPID?

    @AWoloszyn Please let me know if I can provide some logs to resolve this.

    com.oculus.vrcubeworldsv_20190202_0550.gfxtrace.zip

    replay_fails

    opened by rishi-rranjan 47
  • App crash while tracing with gapid

    App crash while tracing with gapid

    Hi, I was tracing my app with gapid, My app crashed with this log: [./gapil/runtime/cc/slice.inc:182] Assert: <index < count()>: slice index out of bounds

    triaged 
    opened by thuyumeng 31
  • GVR library not found

    GVR library not found

    I use my laptop to run gapid and choose my own writing one app to debug,

    but just found on Graphics API Trace console:

    14:39:50.094 I: [gapidapk.EnsureInstalled] <gapit> Examining gapid.apk on host...
    14:39:50.100 I: [gapidapk.EnsureInstalled] <gapit> Looking for gapid.apk...
    14:39:50.500 I: [gapidapk.EnsureInstalled] <gapit> Found gapid package...
    14:39:51.586 I: <gapit> Adding new device
    14:39:51.586 I: <gapit> Device list:
    14:39:51.586 I: <gapit>   GWY0116909000001
    14:39:53.302 I: <gapit> Package is debuggable
    14:39:53.377 I: [start] <gapit> Turning device screen on
    14:39:53.422 I: [start] <gapit> Checking for lockscreen
    14:39:53.461 W: [start] <gapit> Couldn't determine lockscreen state: 
       Cause: Couldn't get lockscreen state
    14:39:53.461 I: [start] <gapit> Checking gapid.apk is installed
    14:39:53.461 I: [start] <gapit> Forwarding
    14:39:53.511 I: [start] <gapit> Starting activity in debug mode
    14:39:54.067 I: [start] <gapit> Forwarding TCP port 53170 -> JDWP pid 27149
    14:39:54.084 I: [start] <gapit> Connecting to JDWP
    14:39:55.092 I: [start] <gapit> Waiting for ApplicationLoaders.getClassLoader()
    14:39:56.959 I: [start] <gapit> Waiting for Application Creation
    14:39:56.966 I: [start] <gapit>    Waiting for Application.<init>()
    14:39:57.719 I: [start] <gapit>    Waiting for android.app.Application.onCreate()
    14:39:57.806 I: [start] <gapit> Installing interceptor libraries
    14:39:58.896 I: [start] <gapit> GVR library not found
    14:39:59.080 I: [start] <gapit> Waiting for connection to localhost:53159...
    14:40:00.357 I: <gapit> Creating file 'E:\debugconsole\testview_20171109_2239.gfxtrace'
    14:40:00.857 I: <gapit> Capturing: 9B in 0s
    14:40:00.931 I: <gapit> EOF: 9B
    

    and on device it says, sorry, TestView already stopped.

    the device is Huawei mate 9.

    bug P1 GAPII needs more information 
    opened by tangcenris 19
  • toolchain '@local_config_cc//:cc-compiler-x64_windows'

    toolchain '@local_config_cc//:cc-compiler-x64_windows'

    I'm following the Windows build directions ( https://github.com/google/gapid/blob/master/BUILDING.md ), and I get an error.

    ERROR: C:/users/pemgithub/_bazel_pemgithub/3mdmxsrc/external/io_bazel_rules_go/BUILD.bazel:62:1: Target '@io_bazel_rules_go//:go_context_data' depends on toolchain '@local_config_cc//:cc-compiler-x64_windows', which cannot be found: no such target '@local_config_cc//:cc-compiler-x64_windows': target 'cc-compiler-x64_windows' not declared in package '' defined by C:/users/pemgithub/_bazel_pemgithub/3mdmxsrc/external/local_config_cc/BUILD.bazel'
    

    I think maybe the Windows build directions are missing a step on how to install toolchain '@local_config_cc//:cc-compiler-x64_windows'. choco installed bazel version 0.27.1

    opened by pemgithub 18
  • Failed to read packet. Error: read tcp 127.0.0.1:58222->127.0.0.1:58219: use of closed network connection

    Failed to read packet. Error: read tcp 127.0.0.1:58222->127.0.0.1:58219: use of closed network connection

    Hi! I have two devices for android (android 21, 26 - mali-T760 and mali-T830) and I want to debug my own openGL es app. But when I try to do this, there is such an error on each of the devices. I read, the most amazing thing is that some time ago - six months or so, it all started and worked. But not now. I will be glad to any help. The answer did not find here

    :16.307 I: [start] Checking gapid.apk is installed 13:20:16.308 I: [start] Forwarding 13:20:16.320 I: [start] Starting activity in debug mode 13:20:17.011 I: [start] Forwarding TCP port 58219 -> JDWP pid 20448 13:20:17.020 I: [start] Connecting to JDWP 13:20:17.041 I: [start] Waiting for ApplicationLoaders.getClassLoader() 13:20:18.774 I: [start] Waiting for Application Creation 13:20:18.775 I: [start] Waiting for Application.() 13:20:19.292 I: [start] Waiting for android.app.Application.onCreate() 13:20:19.380 I: [start] Installing interceptor libraries 13:20:19.876 I: [start] GVR library not found 13:20:20.020 I: [start] Waiting for connection to localhost:58203... 13:20:20.975 W: [start] Failed to read packet. Error: read tcp 127.0.0.1:58222->127.0.0.1:58219: use of closed network connection

    System - osx 10.13.6

    triaged 
    opened by kaizer1 17
  • Failure tracing OpenGL ES application in gapid\gapii\cc\pool.cpp

    Failure tracing OpenGL ES application in gapid\gapii\cc\pool.cpp "Out of memory allocating 0x1f8000 bytes"

    I am trying to capture a trace of an OpenGL ES application using gapid on NVIDIA Shield Tablet K1 using GAPID v1.0.0 release and it is crashing trying to capture a trace. I'm unfortunately not able to provide a repro at this time, but perhaps some of the info here will help.

    This is the backtrace:

    01-17 09:05:30.375 25338 25338 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    01-17 09:05:30.375 25338 25338 F DEBUG   : Build fingerprint: 'nvidia/sb_na_wf/shieldtablet:7.0/NRD90M/1928188_904.2811:user/release-keys'
    01-17 09:05:30.375 25338 25338 F DEBUG   : Revision: '0'
    01-17 09:05:30.375 25338 25338 F DEBUG   : ABI: 'arm'
    01-17 09:05:30.376 25338 25338 F DEBUG   : pid: 25271, tid: 25335, name: RenderThread  >>> com.valvesoftware.rendersystemtest <<<
    01-17 09:05:30.376 25338 25338 F DEBUG   : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
    01-17 09:05:30.379 25338 25338 F DEBUG   : Abort message: '[T:\src\github\src\github.com\google\gapid\gapii\cc\pool.cpp:34] Out of memory allocating 0x1f8000 bytes'
    01-17 09:05:30.380 25338 25338 F DEBUG   :     r0 00000000  r1 000062f7  r2 00000006  r3 00000008
    01-17 09:05:30.380 25338 25338 F DEBUG   :     r4 89831978  r5 00000006  r6 89831920  r7 0000010c
    01-17 09:05:30.380 25338 25338 F DEBUG   :     r8 00000000  r9 001f8000  sl 000003c9  fp 00000001
    01-17 09:05:30.381 25338 25338 F DEBUG   :     ip 0000000c  sp 89831170  lr a7992af7  pc a7995360  cpsr 600f0010
    01-17 09:05:30.404 25338 25338 F DEBUG   : 
    01-17 09:05:30.404 25338 25338 F DEBUG   : backtrace:
    01-17 09:05:30.404 25338 25338 F DEBUG   :     #00 pc 0004a360  /system/lib/libc.so (tgkill+12)
    01-17 09:05:30.404 25338 25338 F DEBUG   :     #01 pc 00047af3  /system/lib/libc.so (pthread_kill+34)
    01-17 09:05:30.404 25338 25338 F DEBUG   :     #02 pc 0001db6d  /system/lib/libc.so (raise+10)
    01-17 09:05:30.405 25338 25338 F DEBUG   :     #03 pc 000196b9  /system/lib/libc.so (__libc_android_abort+34)
    01-17 09:05:30.405 25338 25338 F DEBUG   :     #04 pc 00017038  /system/lib/libc.so (abort+4)
    01-17 09:05:30.405 25338 25338 F DEBUG   :     #05 pc 00005803  /system/lib/liblog.so (__android_log_assert+114)
    01-17 09:05:30.405 25338 25338 F DEBUG   :     #06 pc 00220657  /data/app/com.google.android.gapid.armeabi-1/lib/arm/libgapii.so
    01-17 09:05:30.405 25338 25338 F DEBUG   :     #07 pc 002205eb  /data/app/com.google.android.gapid.armeabi-1/lib/arm/libgapii.so
    01-17 09:05:30.405 25338 25338 F DEBUG   :     #08 pc 0015b1b3  /data/app/com.google.android.gapid.armeabi-1/lib/arm/libgapii.so
    01-17 09:05:30.406 25338 25338 F DEBUG   :     #09 pc 000b9fcb  /data/app/com.google.android.gapid.armeabi-1/lib/arm/libgapii.so
    01-17 09:05:30.406 25338 25338 F DEBUG   :     #10 pc 0003d231  /system/lib/libhwui.so
    01-17 09:05:30.406 25338 25338 F DEBUG   :     #11 pc 0002d7ef  /system/lib/libhwui.so (_ZN7android10uirenderer10AssetAtlas4initENS_2spINS_13GraphicBufferEEEPxi+94)
    01-17 09:05:30.406 25338 25338 F DEBUG   :     #12 pc 000256c3  /system/lib/libhwui.so
    01-17 09:05:30.406 25338 25338 F DEBUG   :     #13 pc 000251cd  /system/lib/libhwui.so
    01-17 09:05:30.406 25338 25338 F DEBUG   :     #14 pc 000257d1  /system/lib/libhwui.so
    01-17 09:05:30.406 25338 25338 F DEBUG   :     #15 pc 00022b0f  /system/lib/libhwui.so
    01-17 09:05:30.406 25338 25338 F DEBUG   :     #16 pc 00026291  /system/lib/libhwui.so
    01-17 09:05:30.406 25338 25338 F DEBUG   :     #17 pc 00027153  /system/lib/libhwui.so
    01-17 09:05:30.407 25338 25338 F DEBUG   :     #18 pc 00028181  /system/lib/libhwui.so (_ZN7android10uirenderer12renderthread12RenderThread10threadLoopEv+80)
    01-17 09:05:30.407 25338 25338 F DEBUG   :     #19 pc 0000f155  /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+144)
    01-17 09:05:30.407 25338 25338 F DEBUG   :     #20 pc 0006681d  /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv+80)
    01-17 09:05:30.407 25338 25338 F DEBUG   :     #21 pc 000475c3  /system/lib/libc.so (_ZL15__pthread_startPv+22)
    01-17 09:05:30.407 25338 25338 F DEBUG   :     #22 pc 0001a115  /system/lib/libc.so (__start_thread+6)
    
    The full log is below:
    
    01-17 09:05:17.348 25271 25271 I GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\spy.cpp:61] JNI_OnLoad() was called. vm = 0xa5535000
    01-17 09:05:17.348 25271 25271 I GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\spy.cpp:125] Constructing spy...
    01-17 09:05:17.378 25271 25271 I GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\connection_stream.cpp:35] GAPII awaiting connection on pipe gapii (abstract)
    01-17 09:05:18.228 25271 25271 I GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\spy.cpp:159] Connection made
    01-17 09:05:18.229 25271 25271 I GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\spy.cpp:166] Connection header read
    01-17 09:05:18.230 25271 25271 E GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\spy.cpp:181] APIS 0000000a
    01-17 09:05:18.230 25271 25271 I GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\spy.cpp:182] GAPII connection established. Settings:
    01-17 09:05:18.230 25271 25271 I GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\spy.cpp:183] Observe framebuffer every 0 frames
    01-17 09:05:18.230 25271 25271 I GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\spy.cpp:184] Observe framebuffer every 0 draws
    01-17 09:05:18.230 25271 25271 I GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\spy.cpp:185] Disable precompiled shaders: true
    01-17 09:05:18.342 25271 25271 I GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:128] Installing GAPII hooks...
    01-17 09:05:18.349 25271 25271 I GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:150] Interceptor functions resolved
    01-17 09:05:18.349 25271 25271 I GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:152] Calling gInitializeInterceptor at 0x8ba0bdfd...
    01-17 09:05:18.350 25271 25271 I GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:157] Installing OpenGL ES hooks...
    01-17 09:05:18.399 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:120] Interceptor error: Intercepting function at 0xa5a805c4 failed: End of function reached after 4 byte when rewriting 8 bytes
    01-17 09:05:18.399 25271 25271 E GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:241] Couldn't intercept function glWeightPointerOESBounds at 0xa5a805c4
    01-17 09:05:18.553 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:120] Interceptor error: Intercepting function at 0xa5a7ff90 failed: End of function reached after 4 byte when rewriting 8 bytes
    01-17 09:05:18.553 25271 25271 E GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:241] Couldn't intercept function glVertexPointerBounds at 0xa5a7ff90
    01-17 09:05:18.975 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:120] Interceptor error: Intercepting function at 0xa5a7fe9c failed: End of function reached after 4 byte when rewriting 8 bytes
    01-17 09:05:18.975 25271 25271 E GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:241] Couldn't intercept function glTexCoordPointerBounds at 0xa5a7fe9c
    01-17 09:05:19.066 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:120] Interceptor error: Intercepting function at 0xa5a7f8a8 failed: End of function reached after 4 byte when rewriting 8 bytes
    01-17 09:05:19.067 25271 25271 E GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:241] Couldn't intercept function glColorPointerBounds at 0xa5a7f8a8
    01-17 09:05:19.525 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:120] Interceptor error: Intercepting function at 0xa5a7fd1c failed: End of function reached after 4 byte when rewriting 8 bytes
    01-17 09:05:19.525 25271 25271 E GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:241] Couldn't intercept function glNormalPointerBounds at 0xa5a7fd1c
    01-17 09:05:19.961 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:120] Interceptor error: Intercepting function at 0xa5a805ac failed: End of function reached after 4 byte when rewriting 8 bytes
    01-17 09:05:19.961 25271 25271 E GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:241] Couldn't intercept function glMatrixIndexPointerOESBounds at 0xa5a805ac
    01-17 09:05:20.075 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:120] Interceptor error: Intercepting function at 0xa5a805dc failed: End of function reached after 4 byte when rewriting 8 bytes
    01-17 09:05:20.075 25271 25271 E GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:241] Couldn't intercept function glPointSizePointerOESBounds at 0xa5a805dc
    01-17 09:05:20.397 25271 25271 I GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:163] OpenGL ES hooks successfully installed
    01-17 09:05:20.397 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] eglGetNativeClientBufferANDROID was requested, but cannot be traced.
    01-17 09:05:20.398 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glClearPixelLocalStorageuiEXT was requested, but cannot be traced.
    01-17 09:05:20.398 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glClearTexImageEXT was requested, but cannot be traced.
    01-17 09:05:20.398 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glClearTexSubImageEXT was requested, but cannot be traced.
    01-17 09:05:20.398 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glConservativeRasterParameteriNV was requested, but cannot be traced.
    01-17 09:05:20.398 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glDrawTransformFeedbackInstancedEXT was requested, but cannot be traced.
    01-17 09:05:20.398 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glFramebufferPixelLocalStorageSizeEXT was requested, but cannot be traced.
    01-17 09:05:20.398 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glFramebufferTexture2DDownsampleIMG was requested, but cannot be traced.
    01-17 09:05:20.398 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glFramebufferTextureLayerDownsampleIMG was requested, but cannot be traced.
    01-17 09:05:20.398 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glGetFramebufferPixelLocalStorageSizeEXT was requested, but cannot be traced.
    01-17 09:05:20.399 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glGetTextureHandleIMG was requested, but cannot be traced.
    01-17 09:05:20.399 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glGetTextureSamplerHandleIMG was requested, but cannot be traced.
    01-17 09:05:20.399 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glProgramUniformHandleui64IMG was requested, but cannot be traced.
    01-17 09:05:20.399 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glProgramUniformHandleui64vIMG was requested, but cannot be traced.
    01-17 09:05:20.399 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glUniformHandleui64IMG was requested, but cannot be traced.
    01-17 09:05:20.399 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glUniformHandleui64vIMG was requested, but cannot be traced.
    01-17 09:05:20.399 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glXCreateContext was requested, but cannot be traced.
    01-17 09:05:20.399 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glXCreateNewContext was requested, but cannot be traced.
    01-17 09:05:20.400 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glXMakeContextCurrent was requested, but cannot be traced.
    01-17 09:05:20.400 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glXMakeCurrent was requested, but cannot be traced.
    01-17 09:05:20.400 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glXSwapBuffers was requested, but cannot be traced.
    01-17 09:05:20.400 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glXQueryDrawable was requested, but cannot be traced.
    01-17 09:05:20.400 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] wglCreateContext was requested, but cannot be traced.
    01-17 09:05:20.400 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] wglCreateContextAttribsARB was requested, but cannot be traced.
    01-17 09:05:20.400 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] wglMakeCurrent was requested, but cannot be traced.
    01-17 09:05:20.400 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] wglSwapBuffers was requested, but cannot be traced.
    01-17 09:05:20.400 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] CGLCreateContext was requested, but cannot be traced.
    01-17 09:05:20.400 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] CGLSetCurrentContext was requested, but cannot be traced.
    01-17 09:05:20.400 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] CGLGetSurface was requested, but cannot be traced.
    01-17 09:05:20.400 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] CGSGetSurfaceBounds was requested, but cannot be traced.
    01-17 09:05:20.400 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] CGLFlushDrawable was requested, but cannot be traced.
    01-17 09:05:20.401 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glColorPointerBounds was requested, but cannot be traced.
    01-17 09:05:20.401 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glNormalPointerBounds was requested, but cannot be traced.
    01-17 09:05:20.401 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glTexCoordPointerBounds was requested, but cannot be traced.
    01-17 09:05:20.401 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glVertexPointerBounds was requested, but cannot be traced.
    01-17 09:05:20.401 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glPointSizePointerOESBounds was requested, but cannot be traced.
    01-17 09:05:20.401 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glMatrixIndexPointerOESBounds was requested, but cannot be traced.
    01-17 09:05:20.401 25271 25271 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glWeightPointerOESBounds was requested, but cannot be traced.
    01-17 09:05:20.401 25271 25271 I GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\spy.cpp:127] Registering spy symbols...
    01-17 09:05:30.198 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] eglGetNativeClientBufferANDROID was requested, but cannot be traced.
    01-17 09:05:30.199 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glClearPixelLocalStorageuiEXT was requested, but cannot be traced.
    01-17 09:05:30.199 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glClearTexImageEXT was requested, but cannot be traced.
    01-17 09:05:30.199 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glClearTexSubImageEXT was requested, but cannot be traced.
    01-17 09:05:30.199 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glConservativeRasterParameteriNV was requested, but cannot be traced.
    01-17 09:05:30.199 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glDrawTransformFeedbackInstancedEXT was requested, but cannot be traced.
    01-17 09:05:30.199 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glFramebufferPixelLocalStorageSizeEXT was requested, but cannot be traced.
    01-17 09:05:30.199 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glFramebufferTexture2DDownsampleIMG was requested, but cannot be traced.
    01-17 09:05:30.199 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glFramebufferTextureLayerDownsampleIMG was requested, but cannot be traced.
    01-17 09:05:30.199 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glGetFramebufferPixelLocalStorageSizeEXT was requested, but cannot be traced.
    01-17 09:05:30.199 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glGetTextureHandleIMG was requested, but cannot be traced.
    01-17 09:05:30.199 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glGetTextureSamplerHandleIMG was requested, but cannot be traced.
    01-17 09:05:30.199 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glProgramUniformHandleui64IMG was requested, but cannot be traced.
    01-17 09:05:30.200 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glProgramUniformHandleui64vIMG was requested, but cannot be traced.
    01-17 09:05:30.200 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glUniformHandleui64IMG was requested, but cannot be traced.
    01-17 09:05:30.200 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glUniformHandleui64vIMG was requested, but cannot be traced.
    01-17 09:05:30.200 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glXCreateContext was requested, but cannot be traced.
    01-17 09:05:30.200 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glXCreateNewContext was requested, but cannot be traced.
    01-17 09:05:30.200 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glXMakeContextCurrent was requested, but cannot be traced.
    01-17 09:05:30.200 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glXMakeCurrent was requested, but cannot be traced.
    01-17 09:05:30.200 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glXSwapBuffers was requested, but cannot be traced.
    01-17 09:05:30.200 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glXQueryDrawable was requested, but cannot be traced.
    01-17 09:05:30.200 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] wglCreateContext was requested, but cannot be traced.
    01-17 09:05:30.200 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] wglCreateContextAttribsARB was requested, but cannot be traced.
    01-17 09:05:30.200 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] wglMakeCurrent was requested, but cannot be traced.
    01-17 09:05:30.200 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] wglSwapBuffers was requested, but cannot be traced.
    01-17 09:05:30.200 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] CGLCreateContext was requested, but cannot be traced.
    01-17 09:05:30.200 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] CGLSetCurrentContext was requested, but cannot be traced.
    01-17 09:05:30.200 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] CGLGetSurface was requested, but cannot be traced.
    01-17 09:05:30.200 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] CGSGetSurfaceBounds was requested, but cannot be traced.
    01-17 09:05:30.201 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] CGLFlushDrawable was requested, but cannot be traced.
    01-17 09:05:30.201 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glColorPointerBounds was requested, but cannot be traced.
    01-17 09:05:30.201 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glNormalPointerBounds was requested, but cannot be traced.
    01-17 09:05:30.201 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glTexCoordPointerBounds was requested, but cannot be traced.
    01-17 09:05:30.201 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glVertexPointerBounds was requested, but cannot be traced.
    01-17 09:05:30.201 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glPointSizePointerOESBounds was requested, but cannot be traced.
    01-17 09:05:30.201 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glMatrixIndexPointerOESBounds was requested, but cannot be traced.
    01-17 09:05:30.201 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\android\installer.cpp:115] glWeightPointerOESBounds was requested, but cannot be traced.
    01-17 09:05:30.255 25271 25335 I GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\spy.cpp:290] eglCreateContext requested: GL 2.0, profile 0x0, flags 0x0 -> 0xa3fb27d0
    01-17 09:05:30.277 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\gles_context.cpp:294] glGetFloatv(GL_MULTISAMPLE_LINE_WIDTH_GRANULARITY) gave error 0x500
    01-17 09:05:30.277 25271 25335 W GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\gles_context.cpp:295] glGetFloatv(GL_MULTISAMPLE_LINE_WIDTH_RANGE) gave error 0x500
    01-17 09:05:30.279 25271 25335 I GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\spy.cpp:369] Active context ID: 1
    01-17 09:05:30.281 25271 25335 I GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\spy.cpp:380] Framebuffer config: R8 G8 B8 A8 D24 S8
    01-17 09:05:30.293 25271 25335 F GAPID   : [T:\src\github\src\github.com\google\gapid\gapii\cc\pool.cpp:34] Out of memory allocating 0x1f8000 bytes
    01-17 09:05:30.379 25338 25338 F DEBUG   : Abort message: '[T:\src\github\src\github.com\google\gapid\gapii\cc\pool.cpp:34] Out of memory allocating 0x1f8000 bytes'
    01-17 09:05:30.405 25338 25338 F DEBUG   :     #06 pc 00220657  /data/app/com.google.android.gapid.armeabi-1/lib/arm/libgapii.so
    01-17 09:05:30.405 25338 25338 F DEBUG   :     #07 pc 002205eb  /data/app/com.google.android.gapid.armeabi-1/lib/arm/libgapii.so
    01-17 09:05:30.405 25338 25338 F DEBUG   :     #08 pc 0015b1b3  /data/app/com.google.android.gapid.armeabi-1/lib/arm/libgapii.so
    01-17 09:05:30.406 25338 25338 F DEBUG   :     #09 pc 000b9fcb  /data/app/com.google.android.gapid.armeabi-1/lib/arm/libgapii.so
    
    opened by danginsburg 17
  • [Build Failure on Win] failed to find target with hash string 'android-21'

    [Build Failure on Win] failed to find target with hash string 'android-21'

    [778/834] Gradle: aarch64-gradle-gapid-apk FAILED: aarch64/gapid-apk/app/build/outputs/apk/app-debug.apk cmd.exe /C "cd /D C:\Users\zfk\gapid\release\aarch64\gapid-apk && "C:\Program Files\CMake\bin\cmake.exe" -DGRADLE_ENV=C:/Users/zfk/gapid/release/gradleenv.cmake -DGRADLE_ARGS="-Pfilehash=C:/Users/zfk/gapid/release/bin/filehash.exe -Pinputs=C:/Users/zfk/gapid/release/aarch64/gapid-apk/app/src/main/jniLibs/arm64-v8a//libgapir.so,C:/Users/zfk/gapid/release/aarch64/gapid-apk/app/src/main/jniLibs/arm64-v8a//libgapii.so,C:/Users/zfk/gapid/release/aarch64/gapid-apk/app/src/main/jniLibs/arm64-v8a//libinterceptor.so,C:/Users/zfk/gapid/release/aarch64/gapid-apk/app/src/main/jniLibs/arm64-v8a//libdeviceinfo.so,C:/Users/zfk/gapid/release/aarch64/gapid-apk/app/src/main/jniLibs/arm64-v8a//libVkLayerGraphicsSpy.so,C:/Users/zfk/gapid/release/aarch64/gapid-apk/app/src/main/jniLibs/arm64-v8a//libVkLayer_VirtualSwapchain.so,C:/Users/zfk/gapid/release/aarch64/gapid-apk/app/build.gradle,C:/Users/zfk/gapid/release/aarch64/gapid-apk/app/src/main/java/com/google/android/gapid/DeviceInfoService.java,C:/Users/zfk/gapid/release/aarch64/gapid-apk/app/src/main/java/com/google/android/gapid/PackageInfoService.java,C:/Users/zfk/gapid/release/aarch64/gapid-apk/app/src/main/java/com/google/android/gapid/SocketWriter.java,C:/Users/zfk/gapid/release/aarch64/gapid-apk/app/src/main/res/drawable-xxxhdpi/logo.png,C:/Users/zfk/gapid/release/aarch64/gapid-apk/build.gradle,C:/Users/zfk/gapid/release/aarch64/gapid-apk/gradle.properties,C:/Users/zfk/gapid/release/aarch64/gapid-apk/gradle/wrapper/gradle-wrapper.jar,C:/Users/zfk/gapid/release/aarch64/gapid-apk/gradle/wrapper/gradle-wrapper.properties,C:/Users/zfk/gapid/release/aarch64/gapid-apk/gradlew,C:/Users/zfk/gapid/release/aarch64/gapid-apk/gradlew.bat,C:/Users/zfk/gapid/release/aarch64/gapid-apk/settings.gradle,C:/Users/zfk/gapid/release/aarch64/gapid-apk/app/src/main/res/values/strings.xml,C:/Users/zfk/gapid/release/aarch64/gapid-apk/app/src/main/AndroidManifest.xml" -P D:/GoProjects/src/github.com/google/gapid/cmake/Modules/RunGradle.cmake"

    FAILURE: Build failed with an exception.

    • What went wrong: A problem occurred configuring project ':app'.

    failed to find target with hash string 'android-21' in: D:\Android\platforms\android-21

    • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

    BUILD FAILED

    Total time: 6.662 secs CMake Error at D:/GoProjects/src/github.com/google/gapid/cmake/Modules/RunGradle.cmake:32 (message): 1

    [781/834] Linking Go executable bin\gfxtrace.exe ninja: build stopped: subcommand failed. Error running D:\Downloads\ninja-win\ninja.exe [install]: Process returned error Cause: exit status 1 exit status 1

    bug P3 build triaged 
    opened by zfk0531 17
  • Add validation for Adreno GPU.

    Add validation for Adreno GPU.

    Create the basic framework of GPU profiling validation as well as a gapit command to run validation. When an Android device is connected, register a validator if the GPU is supported and the device has basic GPU profiling capabilities discovered.

    BUG: b/138717619 Test: bazel run gapit validate

    cla: yes 
    opened by lpy 15
  • Add overdraw as option to GAPID UI framebuffer view

    Add overdraw as option to GAPID UI framebuffer view

    Previously the feature was only accessible through gapit screenshot. Looks like: screenshot from 2018-07-18 17-49-12

    Two issues:

    1. The rescaling is somewhat hacky as currently done (specifically stencil images that set the normalized flag get rescaled), the goal is to take the stencil bytes and scale them from [0, max] to [0, 255], while also storing the original values of the data to show at the bottom when mousing over the overdraw image (so that the maximum overdrawn area of the screen is shown as white, but the actual value can be queried). @pmuetschard @ben-clayton @AWoloszyn What would be the best way to architect this in gapic? Thanks

    2. It's currently using the depth buffer icon, I would appreciate some guidance on how to generate a good icon for this.

    opened by iburinoc 15
  • Switch NDK compiler from gcc to clang

    Switch NDK compiler from gcc to clang

    GCC is deprecated in the NDK. Switch over to using the android.toolchain.cmake toolchain in the NDK instead of trying to roll our own. The --strip-all linker flag reduces the final apks by about half.

    opened by ben-clayton 15
  • [Try ABI: unknown⇒gapidapk.EnsureInstalled] Device does not support requested abi: unknown

    [Try ABI: unknown⇒gapidapk.EnsureInstalled] Device does not support requested abi: unknown

    When I click the refresh button in GAPID GUI, I get the following error in gapis.log:

    01:28:33.072 I: [Try ABI: unknown⇒gapidapk.EnsureInstalled] Device does not support requested abi: unknown 01:28:33.072 W: Couldn't find gapid.apk for device. Error: Unable to install GAPID

    opened by pemgithub 14
  • The gapis server has exited with an error code of: 2

    The gapis server has exited with an error code of: 2

    Environment information:

    • GAPID version: v1.7.0-dev-20200211 (lasted)
    • Host OS: Android If tracing on Android:
    • Device model: oppo r9s
    • Android Version: 11

    Bug description The application encountered an error

    Reproduction steps there is a error when try to capture my app in oppo r9s.

    Stacktrace panic: runtime error: invalid memory address or nil pointer dereference [recovered] panic: --- *initialcmds.InitialCmdsResolvable --- capture:<ID:<data:"f\374\320\260\254\034\375\212c}\220\250N\013\250\314\021tk\200" > > Store(): gapis/database/database.go:56 github.com/google/gapid/gapis/database.Build gapis/resolve/initialcmds/initial_commands.go:40 github.com/google/gapid/gapis/resolve/initialcmds.InitialCommands gapis/resolve/resources.go:58 github.com/google/gapid/gapis/resolve.(*ResourcesResolvable).Resolve gapis/database/memory.go:137 github.com/google/gapid/gapis/database.(*record).resolve gapis/database/memory.go:241 github.com/google/gapid/gapis/database.(*memory).resolveLocked.func1 core/app/crash/crash.go:65 github.com/google/gapid/core/app/crash.Go.func1

    Build() #0: gapis/database/database.go:60 github.com/google/gapid/gapis/database.Build gapis/resolve/initialcmds/initial_commands.go:40 github.com/google/gapid/gapis/resolve/initialcmds.InitialCommands gapis/resolve/resources.go:58 github.com/google/gapid/gapis/resolve.(*ResourcesResolvable).Resolve gapis/database/memory.go:137 github.com/google/gapid/gapis/database.(*record).resolve gapis/database/memory.go:241 github.com/google/gapid/gapis/database.(*memory).resolveLocked.func1 core/app/crash/crash.go:65 github.com/google/gapid/core/app/crash.Go.func1

    --- *resolve.ResourcesResolvable --- capture:<ID:<data:"f\374\320\260\254\034\375\212c}\220\250N\013\250\314\021tk\200" > > config:<replay_device:<ID:<data:"T\354\267unM1\340\[email protected];\251\354\301\252\352W\304\253" > > > Store(): gapis/database/database.go:56 github.com/google/gapid/gapis/database.Build gapis/resolve/resources.go:33 github.com/google/gapid/gapis/resolve.Resources gapis/resolve/resolve.go:353 github.com/google/gapid/gapis/resolve.ResolveInternal gapis/resolve/resolve.go:279 github.com/google/gapid/gapis/resolve.ResolveService gapis/resolve/get.go:33 github.com/google/gapid/gapis/resolve.(*GetResolvable).Resolve gapis/database/memory.go:137 github.com/google/gapid/gapis/database.(*record).resolve gapis/database/memory.go:241 github.com/google/gapid/gapis/database.(*memory).resolveLocked.func1 core/app/crash/crash.go:65 github.com/google/gapid/core/app/crash.Go.func1

    Build() #0: gapis/database/database.go:60 github.com/google/gapid/gapis/database.Build gapis/resolve/resources.go:33 github.com/google/gapid/gapis/resolve.Resources gapis/resolve/resolve.go:353 github.com/google/gapid/gapis/resolve.ResolveInternal gapis/resolve/resolve.go:279 github.com/google/gapid/gapis/resolve.ResolveService gapis/resolve/get.go:33 github.com/google/gapid/gapis/resolve.(*GetResolvable).Resolve gapis/database/memory.go:137 github.com/google/gapid/gapis/database.(*record).resolve gapis/database/memory.go:241 github.com/google/gapid/gapis/database.(*memory).resolveLocked.func1 core/app/crash/crash.go:65 github.com/google/gapid/core/app/crash.Go.func1

    --- *resolve.GetResolvable --- path:<resources:<capture:<ID:<data:"f\374\320\260\254\034\375\212c}\220\250N\013\250\314\021tk\200" > > > > config:<replay_device:<ID:<data:"T\354\267unM1\340\[email protected];\251\354\301\252\352W\304\253" > > > Store(): gapis/database/database.go:56 github.com/google/gapid/gapis/database.Build gapis/resolve/get.go:26 github.com/google/gapid/gapis/resolve.Get gapis/server/server.go:425 github.com/google/gapid/gapis/server.(*server).Get gapis/server/grpc.go:217 github.com/google/gapid/gapis/server.(*grpcServer).Get bazel-out/x64_windows-opt/bin/gapis/service/windows_amd64_stripped/service_go_proto%/github.com/google/gapid/gapis/service/service.pb.go:10177 github.com/google/gapid/gapis/service._Gapid_Get_Handler.func1 core/app/auth/auth.go:110 github.com/google/gapid/core/app/auth.ServerInterceptor.func1 bazel-out/x64_windows-opt/bin/gapis/service/windows_amd64_stripped/service_go_proto%/github.com/google/gapid/gapis/service/service.pb.go:10179 github.com/google/gapid/gapis/service._Gapid_Get_Handler external/org_golang_google_grpc/server.go:971 google.golang.org/grpc.(*Server).processUnaryRPC external/org_golang_google_grpc/server.go:1250 google.golang.org/grpc.(*Server).handleStream

    Build() #0: gapis/database/database.go:60 github.com/google/gapid/gapis/database.Build gapis/resolve/get.go:26 github.com/google/gapid/gapis/resolve.Get gapis/server/server.go:425 github.com/google/gapid/gapis/server.(*server).Get gapis/server/grpc.go:217 github.com/google/gapid/gapis/server.(*grpcServer).Get bazel-out/x64_windows-opt/bin/gapis/service/windows_amd64_stripped/service_go_proto%/github.com/google/gapid/gapis/service/service.pb.go:10177 github.com/google/gapid/gapis/service._Gapid_Get_Handler.func1 core/app/auth/auth.go:110 github.com/google/gapid/core/app/auth.ServerInterceptor.func1 bazel-out/x64_windows-opt/bin/gapis/service/windows_amd64_stripped/service_go_proto%/github.com/google/gapid/gapis/service/service.pb.go:10179 github.com/google/gapid/gapis/service._Gapid_Get_Handler external/org_golang_google_grpc/server.go:971 google.golang.org/grpc.(*Server).processUnaryRPC external/org_golang_google_grpc/server.go:1250 google.golang.org/grpc.(*Server).handleStream [recovered] panic: --- *initialcmds.InitialCmdsResolvable --- capture:<ID:<data:"f\374\320\260\254\034\375\212c}\220\250N\013\250\314\021tk\200" > > Store(): gapis/database/database.go:56 github.com/google/gapid/gapis/database.Build gapis/resolve/initialcmds/initial_commands.go:40 github.com/google/gapid/gapis/resolve/initialcmds.InitialCommands gapis/resolve/resources.go:58 github.com/google/gapid/gapis/resolve.(*ResourcesResolvable).Resolve gapis/database/memory.go:137 github.com/google/gapid/gapis/database.(*record).resolve gapis/database/memory.go:241 github.com/google/gapid/gapis/database.(*memory).resolveLocked.func1 core/app/crash/crash.go:65 github.com/google/gapid/core/app/crash.Go.func1

    Build() #0: gapis/database/database.go:60 github.com/google/gapid/gapis/database.Build gapis/resolve/initialcmds/initial_commands.go:40 github.com/google/gapid/gapis/resolve/initialcmds.InitialCommands gapis/resolve/resources.go:58 github.com/google/gapid/gapis/resolve.(*ResourcesResolvable).Resolve gapis/database/memory.go:137 github.com/google/gapid/gapis/database.(*record).resolve gapis/database/memory.go:241 github.com/google/gapid/gapis/database.(*memory).resolveLocked.func1 core/app/crash/crash.go:65 github.com/google/gapid/core/app/crash.Go.func1

    --- *resolve.ResourcesResolvable --- capture:<ID:<data:"f\374\320\260\254\034\375\212c}\220\250N\013\250\314\021tk\200" > > config:<replay_device:<ID:<data:"T\354\267unM1\340\[email protected];\251\354\301\252\352W\304\253" > > > Store(): gapis/database/database.go:56 github.com/google/gapid/gapis/database.Build gapis/resolve/resources.go:33 github.com/google/gapid/gapis/resolve.Resources gapis/resolve/resolve.go:353 github.com/google/gapid/gapis/resolve.ResolveInternal gapis/resolve/resolve.go:279 github.com/google/gapid/gapis/resolve.ResolveService gapis/resolve/get.go:33 github.com/google/gapid/gapis/resolve.(*GetResolvable).Resolve gapis/database/memory.go:137 github.com/google/gapid/gapis/database.(*record).resolve gapis/database/memory.go:241 github.com/google/gapid/gapis/database.(*memory).resolveLocked.func1 core/app/crash/crash.go:65 github.com/google/gapid/core/app/crash.Go.func1

    Build() #0: gapis/database/database.go:60 github.com/google/gapid/gapis/database.Build gapis/resolve/resources.go:33 github.com/google/gapid/gapis/resolve.Resources gapis/resolve/resolve.go:353 github.com/google/gapid/gapis/resolve.ResolveInternal gapis/resolve/resolve.go:279 github.com/google/gapid/gapis/resolve.ResolveService gapis/resolve/get.go:33 github.com/google/gapid/gapis/resolve.(*GetResolvable).Resolve gapis/database/memory.go:137 github.com/google/gapid/gapis/database.(*record).resolve gapis/database/memory.go:241 github.com/google/gapid/gapis/database.(*memory).resolveLocked.func1 core/app/crash/crash.go:65 github.com/google/gapid/core/app/crash.Go.func1

    --- *resolve.GetResolvable --- path:<resources:<capture:<ID:<data:"f\374\320\260\254\034\375\212c}\220\250N\013\250\314\021tk\200" > > > > config:<replay_device:<ID:<data:"T\354\267unM1\340\[email protected];\251\354\301\252\352W\304\253" > > > Store(): gapis/database/database.go:56 github.com/google/gapid/gapis/database.Build gapis/resolve/get.go:26 github.com/google/gapid/gapis/resolve.Get gapis/server/server.go:425 github.com/google/gapid/gapis/server.(*server).Get gapis/server/grpc.go:217 github.com/google/gapid/gapis/server.(*grpcServer).Get bazel-out/x64_windows-opt/bin/gapis/service/windows_amd64_stripped/service_go_proto%/github.com/google/gapid/gapis/service/service.pb.go:10177 github.com/google/gapid/gapis/service._Gapid_Get_Handler.func1 core/app/auth/auth.go:110 github.com/google/gapid/core/app/auth.ServerInterceptor.func1 bazel-out/x64_windows-opt/bin/gapis/service/windows_amd64_stripped/service_go_proto%/github.com/google/gapid/gapis/service/service.pb.go:10179 github.com/google/gapid/gapis/service._Gapid_Get_Handler external/org_golang_google_grpc/server.go:971 google.golang.org/grpc.(*Server).processUnaryRPC external/org_golang_google_grpc/server.go:1250 google.golang.org/grpc.(*Server).handleStream

    Build() #0: gapis/database/database.go:60 github.com/google/gapid/gapis/database.Build gapis/resolve/get.go:26 github.com/google/gapid/gapis/resolve.Get gapis/server/server.go:425 github.com/google/gapid/gapis/server.(*server).Get gapis/server/grpc.go:217 github.com/google/gapid/gapis/server.(*grpcServer).Get bazel-out/x64_windows-opt/bin/gapis/service/windows_amd64_stripped/service_go_proto%/github.com/google/gapid/gapis/service/service.pb.go:10177 github.com/google/gapid/gapis/service._Gapid_Get_Handler.func1 core/app/auth/auth.go:110 github.com/google/gapid/core/app/auth.ServerInterceptor.func1 bazel-out/x64_windows-opt/bin/gapis/service/windows_amd64_stripped/service_go_proto%/github.com/google/gapid/gapis/service/service.pb.go:10179 github.com/google/gapid/gapis/service._Gapid_Get_Handler external/org_golang_google_grpc/server.go:971 google.golang.org/grpc.(*Server).processUnaryRPC external/org_golang_google_grpc/server.go:1250 google.golang.org/grpc.(*Server).handleStream

    [signal 0xc0000005 code=0x0 addr=0x0 pc=0x1e2f685]

    goroutine 537 [running]: github.com/google/gapid/core/app/crash.Crash(0x5e4df00, 0xc0017b1160) core/app/crash/crash.go:89 +0xae github.com/google/gapid/core/app/crash.handler() core/app/crash/crash.go:56 +0x59 panic(0x5e4df00, 0xc0017b1160) GOROOT/src/runtime/panic.go:522 +0x1c3 github.com/google/gapid/gapis/database.(*memory).resolvePanicHandler(0xc0001ad180, 0x77c6c00, 0xc0007385a0) gapis/database/debug.go:106 +0x775 panic(0x6016660, 0x50ecc10) GOROOT/src/runtime/panic.go:522 +0x1c3 github.com/google/gapid/gapis/api/gles.TextureUnitʳ.ID(...) bazel-out/x64_windows-opt/bin/gapis/api/gles/api_amrp.go:23863 github.com/google/gapid/gapis/api/gles.(*stateBuilder).contextObjectPostEGLImage(0xc000026600, 0x77c6c00, 0xc000738690, 0x7f7d861180, 0xc005420000, 0x31ee) gapis/api/gles/state_builder.go:495 +0x10c5 github.com/google/gapid/gapis/api/gles.API.RebuildState(0x77c6c00, 0xc000738690, 0xc0006f2b60, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) gapis/api/gles/state_builder.go:102 +0x5d9 github.com/google/gapid/gapis/resolve/initialcmds.(*InitialCmdsResolvable).Resolve(0xc000738480, 0x77c6c00, 0xc000738690, 0xc000738690, 0xc0008adf00, 0x2, 0x2) gapis/resolve/initialcmds/initial_commands.go:62 +0x1e6 github.com/google/gapid/gapis/database.(*record).resolve(0xc0042f1f20, 0x77c6c00, 0xc000738690, 0x0, 0x0) gapis/database/memory.go:137 +0x229 github.com/google/gapid/gapis/database.(*memory).resolveLocked.func1() gapis/database/memory.go:241 +0x13b github.com/google/gapid/core/app/crash.Go.func1(0xc000738540) core/app/crash/crash.go:65 +0x4a created by github.com/google/gapid/core/app/crash.Go core/app/crash/crash.go:63 +0x46

    Screenshots image

    Additional debugging information logcat-full.txt

    opened by hilbertdu 0
  • The gapis server has exited with an error code of: -42

    The gapis server has exited with an error code of: -42

    GAPID Version: 1.6.1:338bb67b0fe291f56f31d69f11ea1a45ed7cfeb6 OS: mac os x x86_64

    Please provide detailed steps that led to the error and copy-paste the stack trace. Extra details from the logs and the trace file would be extra helpful.

    opened by AlphaHans 0
  • The gapis server has exited with an error code of: -42

    The gapis server has exited with an error code of: -42

    GAPID Version: 1.6.1:338bb67b0fe291f56f31d69f11ea1a45ed7cfeb6 OS: linux amd64

    Please provide detailed steps that led to the error and copy-paste the stack trace. Extra details from the logs and the trace file would be extra helpful.

    opened by CircleLee07007103 0
  • The gapis server has exited with an error code of: -42

    The gapis server has exited with an error code of: -42

    GAPID Version: 1.6.1:338bb67b0fe291f56f31d69f11ea1a45ed7cfeb6 OS: mac os x x86_64

    Please provide detailed steps that led to the error and copy-paste the stack trace. Extra details from the logs and the trace file would be extra helpful.

    opened by apotuyou 0
  • The gapis server has exited with an error code of: 2

    The gapis server has exited with an error code of: 2

    GAPID Version: 1.6.1:338bb67b0fe291f56f31d69f11ea1a45ed7cfeb6 OS: windows 10 amd64

    Please provide detailed steps that led to the error and copy-paste the stack trace. Extra details from the logs and the trace file would be extra helpful.

    opened by yufeilong92 0
Releases(v1.6.1)
Owner
Google
Google ❤️ Open Source
Google
A small tool that allows a process to ask a debugger to attach to it.

Client and server for a process to request attach by gdlv. These two packages allow a program to request that a debugger attach to it. The motivating

David Chase 0 Feb 1, 2022
Automatically generate RESTful API documentation with Swagger 2.0 for Go.

Automatically generate RESTful API documentation with Swagger 2.0 for Go.

Swaggo 6.3k Jun 24, 2022
Template project to get started with a simple API skeleton in Go and Docker

A template project to create a Docker image for a Go application. The example application exposes an HTTP endpoint through a REST API packaged as a static binary.

Harsh Mishra 11 Apr 4, 2022
Graphics-go - back for code.google.com/p/graphics-go

This is a Graphics library for the Go programming language. Unless otherwise noted, the graphics-go source files are distributed under the BSD-style

fish 0 Jan 1, 2022
Go Graphics - 2D rendering in Go with a simple API.

Go Graphics gg is a library for rendering 2D graphics in pure Go. Installation go get -u github.com/fogleman/gg Alternatively, you may use gopkg.in t

Michael Fogleman 3.5k Jul 1, 2022
Delve is a debugger for the Go programming language.

The GitHub issue tracker is for bugs only. Please use the developer mailing list for any feature proposals and discussions. About Delve Installation L

null 18.7k Jun 29, 2022
Rdebug — Real Debugger

RDebug - Real Debugger Translation 中文 1. Introduction Rdebug is an open source tool chain that focusing on efficiency of daily developing, testing and

DiDi 1.1k Jun 22, 2022
Interactive Go interpreter and debugger with REPL, Eval, generics and Lisp-like macros

gomacro - interactive Go interpreter and debugger with generics and macros gomacro is an almost complete Go interpreter, implemented in pure Go. It of

Massimiliano Ghilardi 1.9k Jun 25, 2022
ROFL eXtension Debugger - for League of Legends replay files

ROFLXD - ROFL eXtension Debugger This is an incomplete project. The original goal of this project was to convert GLR replays to a form that was playab

Fraxiinus 0 Apr 11, 2022
Delve is a debugger for the Go programming language.

The GitHub issue tracker is for bugs only. Please use the developer mailing list for any feature proposals and discussions. About Delve Installation L

Derek Parker 503 Jun 21, 2022
Edb - An eBPF program debugger

EDB (eBPF debugger) edb is a debugger(like gdb and dlv) for eBPF programs. Norma

null 121 Jun 8, 2022
A small tool that allows a process to ask a debugger to attach to it.

Client and server for a process to request attach by gdlv. These two packages allow a program to request that a debugger attach to it. The motivating

David Chase 0 Feb 1, 2022
Go binding for the cairo graphics library

go-cairo Go binding for the cairo graphics library Based on Dethe Elza's version https://bitbucket.org/dethe/gocairo but significantly extended and up

Erik Unger 118 Apr 18, 2022
This is old and unmaintained code, ignore it. starfish is a simple, SDL based, 2D graphics and user input library for Go. If you intend to work on it, please fork from the 'devel' branch, not 'master'. Current release: 0.12.0

What is starfish? What starfish is: starfish is a simple 2D graphics and user input library for Go built on SDL. What starfish is not: While it is bui

Gary Talent 12 Jun 4, 2019
A Grid based 2D Graphics library

gridder Built on top of Go Graphics github.com/fogleman/gg with the idea to simplify visualizing Grids using 2D Graphics. Dependencies gg github.com/f

Raed Shomali 53 Jun 21, 2022
A Go package for drawing basic graphics in a terminal

Tgraph Tgraph is a Go package for drawing basic graphics in a terminal. It was inspired by termgraph. Graph types supported: Bar Graphs Multi-variable

daoleno 51 Mar 3, 2022
a tool to output images as RGB ANSI graphics on the terminal

imgcat Tool to output images in the terminal. Built with bubbletea install homebrew brew install trashhalo/homebrew-brews/imgcat prebuilt packages Pr

Stephen Solka 458 Jun 15, 2022
Implementation of a popular graphics benchmark written on Ebiten.

Ebiten Bunny Mark This is an implementation of the popular graphics benchmark written on Ebiten. The initial benchmark was created by Ian Lobb (code)

Artem Sedykh 13 Jun 22, 2022
Simple tool for changing graphics in dbd

Config changer for Dead By Deaylight For now only for epic store version And if only installed under C:\ further updates will include support for vers

null 0 May 3, 2022
TCG - terminal cell graphics library

TCG - terminal cell graphics Go Graphics library for use in a text terminal. Only 1bit graphics can be used with two colors. Used unicode block symbol

Serhii Mudryk 88 May 29, 2022
cluster-api-state-metrics (CASM) is a service that listens to the Kubernetes API server and generates metrics about the state of custom resource objects related of Kubernetes Cluster API.

Overview cluster-api-state-metrics (CASM) is a service that listens to the Kubernetes API server and generates metrics about the state of custom resou

Daimler Group 56 Jun 20, 2022
Simple-Weather-API - Simple weather api app created using golang and Open Weather API key

Simple Weather API Simple weather api app created using golang and Open Weather

Siva Prakash 3 Feb 6, 2022
Go bindings for OpenCV / 2.x API in gocv / 1.x API in opencv

Go OpenCV binding A Golang binding for OpenCV. OpenCV 1.x C API bindings through CGO, and OpenCV 2+ C++ API (GoCV) through SWIG. Disclaimer This is a

go-opencv 1.3k Jun 28, 2022
Go library for accessing the MyAnimeList API: http://myanimelist.net/modules.php?go=api

go-myanimelist go-myanimelist is a Go client library for accessing the MyAnimeList API. Project Status The MyAnimeList API has been stable for years a

Stratos Neiros 31 May 10, 2022
Go client for the YNAB API. Unofficial. It covers 100% of the resources made available by the YNAB API.

YNAB API Go Library This is an UNOFFICIAL Go client for the YNAB API. It covers 100% of the resources made available by the YNAB API. Installation go

Bruno Souza 51 May 23, 2022
The Akita CLI for watching network traffic, automatically generating API specs, and diffing API specs.

Catch breaking changes faster Akita builds models of your APIs to help you: Catch breaking changes on every pull request, including added/removed endp

Akita Software 174 Jun 17, 2022
弹弹play 资源搜索节点 API 实现,基于 Cloudflare Workers 或 Golang 的两种实现。 || API implementations for "dandanplay" resource search service.

dandanplay-resource-service API implementations for "dandanplay" resource search service. 弹弹play 资源搜索节点的 API 实现。 提供基于 Cloudflare Workers 和 Golang 的两种实

Lussac 39 May 30, 2022
henrylee2cn 1.6k Jun 26, 2022
Feishu/Lark Open API Go Sdk, Support ALL Open API and Event Callback.

lark 中文版 README Feishu/Lark Open API Go Sdk, Support ALL Open API and Event Callback. Created By Code Generation. Install go get github.com/chyroc/lar

chyroc 180 Jun 29, 2022