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

[capture] gfxreconstruct can't capture frame in vkcube or furmark with debian os #1970

Open
EthanZhang516 opened this issue Jan 20, 2025 · 4 comments

Comments

@EthanZhang516
Copy link

EthanZhang516 commented Jan 20, 2025

Describe the capture bug:
File did not contain any frames after capture in Debian GNU/Linux 12 (bookworm) ,Linux version 6.1.44

Build Environment:
try dev and v1.0.4

Capture Settings:
GFXRECON_MEMORY_TRACKING_MODE=page_guard VK_INSTANCE_LAYERS=VK_LAYER_LUNARG_gfxreconstruct VK_LAYER_PATH=/mnt/disk/gfxr_release/gfxreconstruct/build/layer GFXRECON_CAPTURE_FILE=/mnt/disk/gfxr/vkcube.gfxr GFXRECON_LOG_LEVEL=debug GFXRECON_CAPTURE_FRAMES=1-19 GFXRECON_LOG_DETAILED=true GFXRECON_CAPTURE_FILE_TIMESTAMP=false vkcube --c 100

Capture Log:
[gfxrecon] INFO | /mnt/disk/gfxr_release/gfxreconstruct/framework/encode/capture_settings.cpp,LoadSingleOptionEnvVar(372) - Settings Loader: Found option "GFXRECON_CAPTURE_FILE" with value "/mnt/disk/gfxr/vkcube.gfxr"
[gfxrecon] INFO | /mnt/disk/gfxr_release/gfxreconstruct/framework/encode/capture_settings.cpp,LoadSingleOptionEnvVar(372) - Settings Loader: Found option "GFXRECON_CAPTURE_FILE_TIMESTAMP" with value "false"
[gfxrecon] INFO | /mnt/disk/gfxr_release/gfxreconstruct/framework/encode/capture_settings.cpp,LoadSingleOptionEnvVar(372) - Settings Loader: Found option "GFXRECON_LOG_DETAILED" with value "true"
[gfxrecon] INFO | /mnt/disk/gfxr_release/gfxreconstruct/framework/encode/capture_settings.cpp,LoadSingleOptionEnvVar(372) - Settings Loader: Found option "GFXRECON_LOG_LEVEL" with value "debug"
[gfxrecon] INFO | /mnt/disk/gfxr_release/gfxreconstruct/framework/encode/capture_settings.cpp,LoadSingleOptionEnvVar(372) - Settings Loader: Found option "GFXRECON_MEMORY_TRACKING_MODE" with value "page_guard"
[gfxrecon] INFO | /mnt/disk/gfxr_release/gfxreconstruct/framework/encode/capture_settings.cpp,LoadSingleOptionEnvVar(372) - Settings Loader: Found option "GFXRECON_CAPTURE_FRAMES" with value "1-19"
[gfxrecon] DEBUG | /mnt/disk/gfxr_release/gfxreconstruct/framework/encode/capture_settings.cpp,FindOption(657) - Settings Loader: Found option "lunarg_gfxreconstruct.capture_file" with value "/mnt/disk/gfxr/vkcube.gfxr"
[gfxrecon] DEBUG | /mnt/disk/gfxr_release/gfxreconstruct/framework/encode/capture_settings.cpp,FindOption(657) - Settings Loader: Found option "lunarg_gfxreconstruct.capture_file_timestamp" with value "false"
[gfxrecon] DEBUG | /mnt/disk/gfxr_release/gfxreconstruct/framework/encode/capture_settings.cpp,FindOption(657) - Settings Loader: Found option "lunarg_gfxreconstruct.memory_tracking_mode" with value "page_guard"
[gfxrecon] DEBUG | /mnt/disk/gfxr_release/gfxreconstruct/framework/encode/capture_settings.cpp,FindOption(657) - Settings Loader: Found option "lunarg_gfxreconstruct.capture_frames" with value "1-19"
[gfxrecon] DEBUG | /mnt/disk/gfxr_release/gfxreconstruct/framework/encode/capture_settings.cpp,FindOption(657) - Settings Loader: Found option "lunarg_gfxreconstruct.log_detailed" with value "true"
[gfxrecon] DEBUG | /mnt/disk/gfxr_release/gfxreconstruct/framework/encode/capture_settings.cpp,FindOption(657) - Settings Loader: Found option "lunarg_gfxreconstruct.log_level" with value "debug"
[gfxrecon] INFO | /mnt/disk/gfxr_release/gfxreconstruct/framework/encode/capture_manager.cpp,LockedCreateInstance(161) - Initializing GFXReconstruct capture layer
[gfxrecon] INFO | /mnt/disk/gfxr_release/gfxreconstruct/framework/encode/capture_manager.cpp,LockedCreateInstance(162) - GFXReconstruct Version 1.0.4 (v1.0.4:cc72833) Debug
[gfxrecon] INFO | /mnt/disk/gfxr_release/gfxreconstruct/framework/encode/capture_manager.cpp,CreateCaptureFile(926) - Recording graphics API capture to /mnt/disk/gfxr/vkcube_frames_1_through_19.gfxr
[gfxrecon] DEBUG | /mnt/disk/gfxr_release/gfxreconstruct/framework/encode/capture_manager.cpp,LockedCreateInstance(202) - CommonCaptureManager::CreateInstance(): Current instance count is 1
[gfxrecon] INFO | /mnt/disk/gfxr_release/gfxreconstruct/framework/encode/vulkan_capture_manager.cpp,CreateInstance(66) - Vulkan Header Version 1.3.283
Selected GPU 0: Mali-G720-Immortalis, type: IntegratedGpu
[gfxrecon] DEBUG | /mnt/disk/gfxr_release/gfxreconstruct/framework/encode/capture_manager.cpp,DestroyInstance(228) - CommonCaptureManager::DestroyInstance(): Current instance count is 0

this is my info:
gfxrecon-info /mnt/disk/gfxr/vkcube_frames_1_through_19.gfxr
Exe info:
Application exe name: vkcube
Application version: 0.0.0.0
Application Company name:
Product name:

File info:
Compression format: LZ4
Total frames: 0

Vulkan application info:
Application name: vkcube
Application version: 0
Engine name: vkcube
Engine version: 0
Target API version: 4194304 (1.0.0)

Vulkan physical device info:
Device name: Mali-G720-Immortalis
Device ID: 0xc8700000
Vendor ID: 0x13b5
Driver version: 205520896 (0xc400000)
API version: 4206868 (1.3.276)

Vulkan device memory allocation info:
Total allocations: 10
Min allocation size: 4096
Max allocation size: 1024000

Vulkan pipeline info:
Total graphics pipelines: 1
Total compute pipelines: 0

File did not contain any frames

Annotations:
GFXR version: 1.0.4 (v1.0.4:cc72833) Debug
Capture timestamp: 2025-01-20T11:01:44Z
Vulkan version: 1.3.283

@EthanZhang516 EthanZhang516 changed the title [capture] Give one-line summary of issue here [capture] gfxreconstruct can't capture frame in vkcube or furmark with debian os Jan 20, 2025
@panos-lunarg
Copy link
Contributor

Can you upload the capture file?

@bradgrantham-lunarg
Copy link
Contributor

You can also try debug.gfxrecon.capture_file_flush true. In the case that you are exiting the program by killing it through the WM or with CTRL-C and not , the in-memory libc stdio buffers may be lost if atexit wasn't called. capture_file_flush flushes the capture file after writing every Vulkan command.

@EthanZhang516
Copy link
Author

EthanZhang516 commented Jan 21, 2025

Can you upload the capture file?
This is capture file from cmd "GFXRECON_MEMORY_TRACKING_MODE=page_guard VK_INSTANCE_LAYERS=VK_LAYER_LUNARG_gfxreconstruct VK_LAYER_PATH=/mnt/disk/gfxr_release/gfxreconstruct/build/layer GFXRECON_CAPTURE_FILE=/mnt/disk/gfxr/vkcube.gfxr GFXRECON_LOG_LEVEL=debug GFXRECON_CAPTURE_FRAMES=1-19 GFXRECON_LOG_DETAILED=true GFXRECON_CAPTURE_FILE_TIMESTAMP=false vkcube --c 100"
vkcube_frames_1_through_19.gfxr.tar.gz

@EthanZhang516
Copy link
Author

You can also try debug.gfxrecon.capture_file_flush true. In the case that you are exiting the program by killing it through the WM or with CTRL-C and not , the in-memory libc stdio buffers may be lost if atexit wasn't called. capture_file_flush flushes the capture file after writing every Vulkan command.

Thank you ,and I try this command with GFXRECON_CAPTURE_FILE_FLUSH=true, but there is no frame in capture file too.
my cmd is "GFXRECON_MEMORY_TRACKING_MODE=page_guard VK_INSTANCE_LAYERS=VK_LAYER_LUNARG_gfxreconstruct VK_LAYER_PATH=/mnt/disk/gfxr_release/gfxreconstruct/build/layer GFXRECON_CAPTURE_FILE=/mnt/disk/gfxr/vkcube_file_flush.gfxr GFXRECON_LOG_LEVEL=debug GFXRECON_CAPTURE_FRAMES=1-19 GFXRECON_CAPTURE_FILE_TIMESTAMP=false GFXRECON_CAPTURE_FILE_FLUSH=true vkcube --c 100"

And this is debug log
[gfxrecon] INFO - Settings Loader: Found option "GFXRECON_CAPTURE_FILE" with value "/mnt/disk/gfxr/vkcube_file_flush.gfxr"
[gfxrecon] INFO - Settings Loader: Found option "GFXRECON_CAPTURE_FILE_TIMESTAMP" with value "false"
[gfxrecon] INFO - Settings Loader: Found option "GFXRECON_CAPTURE_FILE_FLUSH" with value "true"
[gfxrecon] INFO - Settings Loader: Found option "GFXRECON_LOG_LEVEL" with value "debug"
[gfxrecon] INFO - Settings Loader: Found option "GFXRECON_MEMORY_TRACKING_MODE" with value "page_guard"
[gfxrecon] INFO - Settings Loader: Found option "GFXRECON_CAPTURE_FRAMES" with value "1-19"
[gfxrecon] INFO - Settings Loader: Found option "GFXRECON_PAGE_GUARD_ALIGN_BUFFER_SIZES" with value "true"
[gfxrecon] DEBUG - Settings Loader: Found option "lunarg_gfxreconstruct.capture_file" with value "/mnt/disk/gfxr/vkcube_file_flush.gfxr"
[gfxrecon] DEBUG - Settings Loader: Found option "lunarg_gfxreconstruct.capture_file_timestamp" with value "false"
[gfxrecon] DEBUG - Settings Loader: Found option "lunarg_gfxreconstruct.capture_file_flush" with value "true"
[gfxrecon] DEBUG - Settings Loader: Found option "lunarg_gfxreconstruct.memory_tracking_mode" with value "page_guard"
[gfxrecon] DEBUG - Settings Loader: Found option "lunarg_gfxreconstruct.capture_frames" with value "1-19"
[gfxrecon] DEBUG - Settings Loader: Found option "lunarg_gfxreconstruct.page_guard_align_buffer_sizes" with value "true"
[gfxrecon] DEBUG - Settings Loader: Found option "lunarg_gfxreconstruct.log_level" with value "debug"
[gfxrecon] INFO - Initializing GFXReconstruct capture layer
[gfxrecon] INFO - GFXReconstruct Version 1.0.4 (v1.0.4:cc72833) Debug
[gfxrecon] INFO - Recording graphics API capture to /mnt/disk/gfxr/vkcube_file_flush_frames_1_through_19.gfxr
[gfxrecon] DEBUG - CommonCaptureManager::CreateInstance(): Current instance count is 1
[gfxrecon] INFO - Vulkan Header Version 1.3.283
Selected GPU 0: Mali-G720-Immortalis, type: IntegratedGpu
[gfxrecon] DEBUG - CommonCaptureManager::DestroyInstance(): Current instance count is 0

attach the file :
vkcube_file_flush_frames_1_through_19.gfxr.tar.gz

file info is :
Exe info:
Application exe name: vkcube
Application version: 0.0.0.0
Application Company name:
Product name:

File info:
Compression format: LZ4
Total frames: 0

Vulkan application info:
Application name: vkcube
Application version: 0
Engine name: vkcube
Engine version: 0
Target API version: 4194304 (1.0.0)

Vulkan physical device info:
Device name: Mali-G720-Immortalis
Device ID: 0xc8700000
Vendor ID: 0x13b5
Driver version: 205520896 (0xc400000)
API version: 4206868 (1.3.276)

Vulkan device memory allocation info:
Total allocations: 10
Min allocation size: 4096
Max allocation size: 1024000

Vulkan pipeline info:
Total graphics pipelines: 1
Total compute pipelines: 0
Total raytracing pipelines: 0

File did not contain any frames

Annotations:
GFXR version: 1.0.4 (v1.0.4:cc72833) Debug
Capture timestamp: 2025-01-21T01:45:03Z
Vulkan version: 1.3.283
Non-default capture options:
{
"file-flush": true
}

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

3 participants