Unity-Technologies/com.unity.perception

Perception camera RequestCapture throws Vulkan framebuffer attachment missing error when -runTest uses -batchmode

vikas-shah opened this issue · 0 comments

System details:
Unity 2022.3.4 LTS - 3D HDRP
Perception 1.0.0.preview
Function used: PerceptionCamera.RequestCapture

Ubuntu: 20.04
nvidia-smi output in case it helps:

Thu Jul 13 16:25:26 2023
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.54.03 Driver Version: 535.54.03 CUDA Version: 12.2 |
|-----------------------------------------+----------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+======================+======================|
| 0 Quadro T1000 Off | 00000000:01:00.0 Off | N/A |
| N/A 43C P0 6W / 50W | 10MiB / 4096MiB | 0% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+

+---------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 1876 G /usr/lib/xorg/Xorg 4MiB |
| 0 N/A N/A 3814 G /usr/lib/xorg/Xorg 4MiB |
+---------------------------------------------------------------------------------------+

Test passes when -runTests does not use -batchmode.

When runTest is using -batchmode, it throws this below error

Error:

Missing Vulkan framebuffer attachment image?
UnityEngine.StackTraceUtility:ExtractStackTrace () (at /home/bokken/build/output/unity/unity/Runtime/Export/Scripting/StackTrace.cs:37)
UnityEngine.Perception.GroundTruth.RenderUtilities:LoadPrewarmedShader (string) (at Library/PackageCache/com.unity.perception@1.0.0-preview.1/Runtime/GroundTruth/Utilities/RenderUtilities.cs:50)
UnityEngine.Perception.GroundTruth.Sensors.Channels.InstanceIdChannel:.cctor () (at Library/PackageCache/com.unity.perception@1.0.0-preview.1/Runtime/GroundTruth/Sensors/Channels/InstanceIdChannel.cs:21)
System.Reflection.RuntimeConstructorInfo:InternalInvoke (object,object[],bool)
System.RuntimeType:CreateInstanceMono (bool,bool)
System.RuntimeType:CreateInstanceSlow (bool,bool,bool,bool)
System.RuntimeType:CreateInstanceDefaultCtor (bool,bool,bool,bool,System.Threading.StackCrawlMark&)
System.Activator:CreateInstance<UnityEngine.Perception.GroundTruth.Sensors.Channels.InstanceIdChannel> ()
UnityEngine.Perception.GroundTruth.PerceptionCamera:EnableChannel<UnityEngine.Perception.GroundTruth.Sensors.Channels.InstanceIdChannel> () (at Library/PackageCache/com.unity.perception@1.0.0-preview.1/Runtime/GroundTruth/PerceptionCamera.cs:285)
UnityEngine.Perception.GroundTruth.Labelers.SemanticSegmentationLabeler:Setup () (at Library/PackageCache/com.unity.perception@1.0.0-preview.1/Runtime/GroundTruth/Labelers/SemanticSegmentation/SemanticSegmentationLabeler.cs:95)
UnityEngine.Perception.GroundTruth.CameraLabeler:Init (UnityEngine.Perception.GroundTruth.PerceptionCamera) (at Library/PackageCache/com.unity.perception@1.0.0-preview.1/Runtime/GroundTruth/Labelers/CameraLabeler.cs:117)
UnityEngine.Perception.GroundTruth.PerceptionCamera:LateUpdate () (at Library/PackageCache/com.unity.perception@1.0.0-preview.1/Runtime/GroundTruth/PerceptionCamera.cs:435)