google / google/agi

vkCmdEndRenderPass2KHR causes replay crash

Open
#1,221 3 comments 3 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.1k
Forks
169
PR merge metrics
No merged PRs in 30d

Description

**Environment information:**
- AGI version: 2022-3.0.1:d7f82c3dda2df3d81e7b67157da8668c4242511c
- Host OS: Windows 10 Enterprise
If tracing on Android:
- Device model: Google Pixel 5, and any other Android devices
- Android Version: 12

**Bug description**
AGI is unable to replay and profile Unity Vulkan applications when `vkCmdEndRenderPass2KHR` is used to end render passes. GAPID crashes during replay. Replay is working fine when `vkCmdEndRenderPass` is used instead of `vkCmdEndRenderPass2KHR`.

**Reproduction steps**
1. Capture frame profiler trace of the attached .apk "AGI_VulkanBug" or use attached .gfxtrace from Pixel 5
2. Open and replay the trace with AGI
3. AGI fails to replay because gapir crashes on device

```
09-28 12:30:38.600 12893 12919 E GAPID : gapir [gapir/cc/interpreter.cpp:146] --- CRASH DURING REPLAY ---
09-28 12:30:38.600 12893 12919 E GAPID : gapir [gapir/cc/interpreter.cpp:147] LAST COMMAND: 10980
09-28 12:30:38.600 12893 12919 E GAPID : gapir [gapir/cc/interpreter.cpp:148] LAST INSTRUCTION: 132442
```

**Stacktrace**

**Additional debugging information**
[logcat.txt](https://github.com/google/agi/files/9663743/logcat.txt)
[com.DefaultCompany.VulkanBug_20220928_1222.gfxtrace.zip](https://github.com/google/agi/files/9663762/com.DefaultCompany.VulkanBug_20220928_1222.gfxtrace.zip)
[AGI_VulkanBug.apk](https://drive.google.com/file/d/1vxOYLEK9qztFiPaXSzE8IO6M4zbLhpPz/view?usp=sharing)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.