Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[replay] Replay issue on Android when --dump-resources option is used #1968

Open
ramcn opened this issue Jan 18, 2025 · 1 comment
Open

[replay] Replay issue on Android when --dump-resources option is used #1968

ramcn opened this issue Jan 18, 2025 · 1 comment

Comments

@ramcn
Copy link

ramcn commented Jan 18, 2025

Describe the replay bug:
With --dump-resources option as expected the resource is dumped in bmp format, but the frame is not displayed, and only blank frame is seen. Without --dump-resource option the frame is displayed correctly.

Build Environment:
Latest build from the dev branch

Input files
resource-jan18.json
bloom-jan18.json
Capture from Vulkan bloom demo android application

To Reproduce

  • This works fine, and frame can be seen

python scripts\gfxrecon.py replay /sdcard/bloom-jan18.gfxr
adb logcat
01-18 21:51:34.399 14337 14370 I gfxrecon: Loading state for captured frame 50
01-18 21:51:34.408 14337 14370 I gfxrecon: Replay has removed the following layers from VkInstanceCreateInfo when calling vkCreateInstance:
01-18 21:51:34.408 14337 14370 I gfxrecon: VK_LAYER_LUNARG_gfxreconstruct
01-18 21:51:34.413 14337 14370 I gfxrecon: Extension VK_EXT_debug_marker, which is not supported by the replay device, will be ignored
01-18 21:51:34.449 14337 14370 W gfxrecon: Failed to map handle for object id 3381
01-18 21:51:34.866 14337 14370 I gfxrecon: Finished loading state for captured frame 50
01-18 21:51:34.897 14337 14370 V gfxrecon: Load time: 0.531464 seconds
01-18 21:51:34.897 14337 14370 V gfxrecon: Total time: 0.562854 seconds
01-18 21:51:34.897 14337 14370 V gfxrecon: Replay FPS: 31.858138 fps, 0.031389 seconds, 1 frame, framerange 50-50

  • The below command dumps the resource in .bmp format, but the frame is not seen in the display screen

python scripts\gfxrecon.py replay --dump-resources /sdcard/resource-jan18.json --dump-resources-dir /sdcard/resource-dir/ /sdcard/bloom-jan18.gfxr
adb logcat
01-18 21:52:02.226 14495 14532 I gfxrecon: Loading state for captured frame 50
01-18 21:52:02.242 14495 14532 I gfxrecon: Replay has removed the following layers from VkInstanceCreateInfo when calling vkCreateInstance:
01-18 21:52:02.242 14495 14532 I gfxrecon: VK_LAYER_LUNARG_gfxreconstruct
01-18 21:52:02.245 14495 14532 I gfxrecon: Extension VK_EXT_debug_marker, which is not supported by the replay device, will be ignored
01-18 21:52:19.740 14495 14532 W gfxrecon: Failed to map handle for object id 3381
01-18 21:52:20.148 14495 14532 I gfxrecon: Finished loading state for captured frame 50
01-18 21:52:20.177 14495 14532 I gfxrecon: Submitting CB/DC 0 of 1 (idx: 3652) for BeginCommandBuffer: 3644
01-18 21:52:20.187 14495 14532 I gfxrecon: WriteBmpImage(): Writing file "/sdcard/resource-dir/bloom-jan18_draw_3652_qs_7929_bcb_3644_att_0_aspect_color.bmp"
01-18 21:52:20.192 14495 14532 I gfxrecon: Done.
01-18 21:52:20.193 14495 14532 V gfxrecon: Load time: 17.980705 seconds
01-18 21:52:20.193 14495 14532 V gfxrecon: Total time: 18.025033 seconds
01-18 21:52:20.193 14495 14532 V gfxrecon: Replay FPS: 22.558831 fps, 0.044329 seconds, 1 frame, framerange 50-50

System environment:
Android mobile Vivo X90 with Android 14

@panos-lunarg
Copy link
Contributor

Initially when the vulkan dump resources feature was developed the idea was that replay will terminate after all resources are dumped and didn't focus on the correctness of the rest of the replay. This can probably be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants