baldurk / renderdoc

RenderDoc is a stand-alone graphics debugging tool.
https://renderdoc.org
MIT License
8.62k stars 1.3k forks source link

Renderdoc Support for embedded systems #3289

Closed P-S-Y-S-U closed 3 months ago

P-S-Y-S-U commented 3 months ago

Description

Hi,

I'm trying to use renderdoccmd tool to capture frames of our armv7e applications but it fails to connect to the program during initialisation stage. The host system is a TV board. The TV has a Wayland Compositor system, So I'm trying to capture frames of Wayland server and client applications.

All of these applications are using OpenGLES for rendering.

Renderdoc binaries built with the following configuration.

ENABLE_EGL=ON ENABLE_GL=OFF ENABLE_GLES=ON ENABLE_PYRENDERDOC=OFF ENABLE_QRENDERDOC=OFF ENABLE_RENDERDOCCMD=ON ENABLE_VULKAN=OFF ENABLE_XCB=OFF ENABLE_XLIB=OFF QRENDERDOC_ENABLE_PYSIDE2=OFF ENABLE_UNSUPPORTED_EXPERIMENTAL_POSSIBLY_BROKEN_WAYLAND=ON CMAKE_BUILD_TYPE=Debug

Below is toolkit used to build the binaries.

export C="arm-starfishmllib32-linux-gnueabi-gcc  -march=armv7ve -mthumb -mfpu=neon -mfloat-abi=softfp -mcpu=cortex-a7 -mtune=cortex-a7 -funwind-tables -rdynamic --sysroot=$SYSROOT"

export CXX="arm-starfishmllib32-linux-gnueabi-g++  -march=armv7ve -mthumb -mfpu=neon -mfloat-abi=softfp -mcpu=cortex-a7 -mtune=cortex-a7 -funwind-tables -rdynamic --sysroot=$SYSROOT"

export CPP="arm-starfishmllib32-linux-gnueabi-gcc -E  -march=armv7ve -mthumb -mfpu=neon -mfloat-abi=softfp -mcpu=cortex-a7 -mtune=cortex-a7 -funwind-tables -rdynamic --sysroot=$SYSROOT"

I'm wondering whether renderdoc can be made work in this particular system, please let me know if it's possible. it would be really helpful for our developing environment.

Steps to reproduce

When i tried launch for application for capture with following command ./renderdoccmd capture --opt-hook-children systemctl start <app_name>

It throws this error

Failed to create & inject: RenderDoc injection failed: Couldn't connect to target program. Check that it didn't crash or exit during early initialisation, e.g. due to an incorrectly configured working directory.

Environment

baldurk commented 3 months ago

RenderDoc does not support ARM linux nor does it support wayland as indicated by the name of the option you enabled.