Closed Abdul-AZ closed 3 months ago
If you've passed a wrong parameter to the function then this isn't a bug in RenderDoc. The documentation states that this parameter should be List[EnvironmentModification]
, None
is not a valid value to pass.
I know the parameter is wrong but I just thought it should fail more gracefully (instead of instantly crashing the whole application and possibly losing data)
Apologies for the inconvenience, just thought it was something worth pointing out.
Description
Reproducible crash happens when calling the function renderdoc.ExecuteAndInject with the env parameter set as None.
Steps to reproduce
python interactive shell -> run script
in latest buildrenderdoc.ExecuteAndInject('/bin/blender', '', '', None, '', renderdoc.GetDefaultCaptureOptions(), False)
Passing an empty list avoids the crash
renderdoc.ExecuteAndInject('/bin/blender', '', '', [], '', renderdoc.GetDefaultCaptureOptions(), False)
Reproducing with gdb produces the following output
Ran on the latest build (e249981)
Environment