When running a custom UE4 project for simulation, the Simulation 3D Camera output is displaying a black screen.

13 views (last 30 days)
"When I run the simulation in the UE4 environment I created for driving, the Simulation 3D Lidar block is outputting correctly, but the Simulation 3D Camera keeps displaying a black screen.
I'm not sure why this issue is occurring."
-------Below is the error identified in the UE4 output log--------
LogProperty: Error: UStructProperty::Serialize Loading: Property 'StructProperty /Game/roadtrafficlights/blueprints/BP_RoadTFLight_5type_Control.BP_RoadTFLight_5type_Control_C:Timeset'. Unknown structure.
LogClass: Warning: Property Timeset of Timeset has a struct type mismatch (tag STRUCT_REINST_STR_RoadTFLight_RMTime_102 != prop FallbackStruct) in package: ../../../../../../Users/User/Desktop/YS/AutoVrtlEnv/Content/roadtrafficlights/blueprints/BP_RoadTFLight_5type_Control.uasset. If that struct got renamed, add an entry to ActiveStructRedirects.
LogClass: Warning: Property Timeset of Timeset has a struct type mismatch (tag FallbackStruct != prop STR_RoadTFLight_RMTime) in package: FObjectReader. If that struct got renamed, add an entry to ActiveStructRedirects.
LogStaticMesh: Warning: Mesh Tree06_2 is recomputing physics on load. It must be resaved before it will cook deterministically. Please resave /Game/NaturePackage/Meshes/flora/Tree06_2.Tree06_2.
LogAssetEditorSubsystem: Opening Asset editor for World /Game/PG.PG
Cmd: MAP LOAD FILE="../../../../../../Users/User/Desktop/YS/AutoVrtlEnv/Content/PG.umap" TEMPLATE=0 SHOWPROGRESS=1 FEATURELEVEL=3
LightingResults: New page: 라이팅 빌드
LoadErrors: New page: 맵 로드 중: PG.umap
LogStats: FPlatformStackWalk::StackWalkAndDump - 0.021 s
LogOutputDevice: Error: === Handled ensure: ===
LogOutputDevice: Error: Ensure condition failed: Y != 0 [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformMath.cpp] [Line: 108]
LogOutputDevice: Error: FMath::FMod(X=0.000000, Y=0.000000) : Y is zero, this is invalid and would result in NaN!
LogOutputDevice: Error: Stack:
LogOutputDevice: Error: [Callstack] 0x00007ffec50b3e08 UE4Editor-Core.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffec4865a79 UE4Editor-Core.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffec2196257 UE4Editor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffec21c7c6d UE4Editor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffec21cd0f8 UE4Editor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffec214b58d UE4Editor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffec2188eeb UE4Editor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffeb393f2db UE4Editor-SlateRHIRenderer.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffeb393785a UE4Editor-SlateRHIRenderer.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffeb394c2ca UE4Editor-SlateRHIRenderer.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffec4822398 UE4Editor-Core.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffec48227ce UE4Editor-Core.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffec6029c67 UE4Editor-RenderCore.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffec6032f34 UE4Editor-RenderCore.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffec4dbff0b UE4Editor-Core.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffec4db7050 UE4Editor-Core.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007fff30b6257d KERNEL32.DLL!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007fff3178aa78 ntdll.dll!UnknownFunction []
LogStats: SubmitErrorReport - 0.000 s
LogWorld: UWorld::CleanupWorld for EmptyScene, bSessionEnded=true, bCleanupResources=true
LogSlate: InvalidateAllWidgets triggered. All widgets were invalidated
MapCheck: New page: 맵 체크
LightingResults: New page: 라이팅 빌드
LogAudio: Display: Audio Device unregistered from world 'None'.
LogStats: SendNewReport - 0.880 s
LogStats: FDebug::EnsureFailed - 0.900 s
LogUObjectHash: Compacting FUObjectHashTables data took 0.82ms
LogAudio: Display: Audio Device (ID: 1) registered with world 'PG'.
LogEditorServer: Finished looking for orphan Actors (0.000 secs)
LogAIModule: Creating AISystem for world PG
LogUObjectHash: Compacting FUObjectHashTables data took 0.48ms
Cmd: MAP CHECKDEP NOCLEARLOG
MapCheck: 맵 체크 완료: 오류 0 회, 경고 0 회, 소요 시간 0.103ms.
LogFileHelpers: Loading map 'PG' took 1.005
LogTemp: Repeating last play command: 선택된 뷰포트
LogPlayLevel: PlayLevel: No blueprints needed recompiling
PIE: New page: PIE 세션: PG (2023. 10. 20. 오전 11:32:03)
LogOnline: OSS: Creating online subsystem instance for: NULL
LogOnline: OSS: TryLoadSubsystemAndSetDefault: Loaded subsystem for module [NULL]
LogPlayLevel: Creating play world package: /Game/UEDPIE_0_PG
LogPlayLevel: PIE: StaticDuplicateObject took: (0.023838s)
LogAIModule: Creating AISystem for world PG
LogPlayLevel: PIE: World Init took: (0.000952s)
LogPlayLevel: PIE: Created PIE world by copying editor world from /Game/PG.PG to /Game/UEDPIE_0_PG.PG (0.024907s)
LogUObjectHash: Compacting FUObjectHashTables data took 0.63ms
LogAudio: Display: Creating Audio Device: Id: 2, Scope: Unique, Realtime: True
LogAudioMixer: Display: Audio Mixer Platform Settings:
LogAudioMixer: Display: Sample Rate: 48000
LogAudioMixer: Display: Callback Buffer Frame Size Requested: 1024
LogAudioMixer: Display: Callback Buffer Frame Size To Use: 1024
LogAudioMixer: Display: Number of buffers to queue: 2
LogAudioMixer: Display: Max Channels (voices): 32
LogAudioMixer: Display: Number of Async Source Workers: 0
LogAudio: Display: AudioDevice MaxSources: 32
LogAudio: Display: Audio Spatialization Plugin: None (built-in).
LogAudio: Display: Audio Reverb Plugin: None (built-in).
LogAudio: Display: Audio Occlusion Plugin: None (built-in).
LogAudioMixer: Display: Initializing audio mixer.
LogAudioMixer: Display: 0: FrontLeft
LogAudioMixer: Display: 1: FrontRight
LogAudioMixer: Display: 2: FrontCenter
LogAudioMixer: Display: 3: LowFrequency
LogAudioMixer: Display: 4: BackLeft
LogAudioMixer: Display: 5: BackRight
LogAudioMixer: Display: 6: SideLeft
LogAudioMixer: Display: 7: SideRight
LogAudioMixer: Display: Using Audio Device Realtek Digital Output(Realtek USB Audio)
LogAudioMixer: Display: Initializing Sound Submixes...
LogAudioMixer: Display: Creating Master Submix 'MasterSubmixDefault'
LogAudioMixer: Display: Creating Master Submix 'MasterReverbSubmixDefault'
LogAudioMixer: Display: Creating Master Submix 'MasterEQSubmixDefault'
LogAudioMixer: FMixerPlatformXAudio2::StartAudioStream() called
LogAudioMixer: Display: Output buffers initialized: Frames=1024, Channels=8, Samples=8192
LogAudioMixer: Display: Starting AudioMixerPlatformInterface::RunInternal()
LogAudioMixer: Display: FMixerPlatformXAudio2::SubmitBuffer() called for the first time
LogInit: FAudioDevice initialized.
LogAudio: Display: Audio Device (ID: 2) registered with world 'PG'.
LogLoad: Game class is 'GameModeBase'
LogWorld: Bringing World /Game/UEDPIE_0_PG.PG up for play (max tick rate 0) at 2023.10.20-02.32.03
Sim3dInterfaceLog: Display: An actor with the tag Sim3dLevelScriptActor registered with Sim3dInterface.
Sim3dInterfaceLog: Display: ASim3dLevelScriptActor::CreateActorsInScene - Received create message for the actor SimulinkVehicle1.
Sim3dInterfaceLog: Display: An actor with the tag SimulinkVehicle1 registered with Sim3dInterface.
Sim3dInterfaceLog: Display: ASim3dLevelScriptActor::CreateActorsInScene - Received create message for the actor SimulinkVehicle28.
Sim3dInterfaceLog: Display: An actor with the tag SimulinkVehicle28 registered with Sim3dInterface.
Sim3dInterfaceLog: Display: ASim3dLevelScriptActor::CreateActorsInScene - Received create message for the actor SimulinkVehicle23.
Sim3dInterfaceLog: Display: An actor with the tag SimulinkVehicle23 registered with Sim3dInterface.
Sim3dInterfaceLog: Display: ASim3dLevelScriptActor::CreateActorsInScene - Received create message for the actor MainCamera1.
Sim3dInterfaceLog: Display: An actor with the tag MainCamera1 registered with Sim3dInterface.
Sim3dInterfaceLog: Display: ASim3dLevelScriptActor::CreateActorsInScene - Received create message for the actor Camera2.
Sim3dInterfaceLog: Display: An actor with the tag Camera2 registered with Sim3dInterface.
Sim3dInterfaceLog: Display: ASim3dLevelScriptActor::CreateActorsInScene - Received create message for the actor Lidar3.
Sim3dInterfaceLog: Display: An actor with the tag Lidar3 registered with Sim3dInterface.
Sim3dInterfaceLog: Display: ASim3dLevelScriptActor::CreateActorsInScene - Creating actor SimulinkVehicle1 of the type Sim3dPassVeh.
Sim3dVehicleLightingLog: Display: Creating LightModule
Sim3dVehicleLightingLog: Display: Updating Lights From Config
Sim3dInterfaceLog: Display: ASim3dLevelScriptActor::CreateActorsInScene - Creating actor SimulinkVehicle28 of the type Sim3dPassVeh.
Sim3dVehicleLightingLog: Display: Creating LightModule
Sim3dVehicleLightingLog: Display: Updating Lights From Config
Sim3dInterfaceLog: Display: ASim3dLevelScriptActor::CreateActorsInScene - Creating actor SimulinkVehicle23 of the type Sim3dPassVeh.
Sim3dVehicleLightingLog: Display: Creating LightModule
Sim3dVehicleLightingLog: Display: Updating Lights From Config
Sim3dInterfaceLog: Display: ASim3dLevelScriptActor::CreateActorsInScene - Creating actor MainCamera1 of the type Sim3dMainCamera.
LogSkinnedMeshComp: Warning: GetSocketByName(BackCameraSocket): No SkeletalMesh for Component(AMathWorksPassengerVehicleMesh) Actor(Sim3dPassVeh_0)
Sim3dInterfaceLog: Error: ASim3dInput::AttachMainCameraAndUpdateSpringArm - A camera socket of the vehicle spring arm not found.
Sim3dInterfaceLog: Display: ASim3dLevelScriptActor::CreateActorsInScene - Parent of created actor: Sim3dPassVeh_0.
Sim3dInterfaceLog: Display: ASim3dLevelScriptActor::CreateActorsInScene - Creating actor Camera2 of the type Sim3dCamera.
Sim3dInterfaceLog: Display: ASim3dLevelScriptActor::CreateActorsInScene - Parent of created actor: Sim3dPassVeh_0.
Sim3dInterfaceLog: Display: ASim3dLevelScriptActor::CreateActorsInScene - Creating actor Lidar3 of the type Sim3dLidar.
Sim3dInterfaceLog: Display: ASim3dLevelScriptActor::CreateActorsInScene - Parent of created actor: Sim3dPassVeh_0.
LogWorld: Bringing up level for play took: 18.806528
LogOnline: OSS: Creating online subsystem instance for: :Context_2
LogNativeClassHierarchy: Verbose: Native class hierarchy updated for 'MovieSceneCapture' in 0.0002 seconds. Added 20 classes and 0 folders.
Sim3dInterfaceLog: Display: Color : /MathWorksSimulation/VehicleCommon/Materials/CarPaint/MI_CarPaint_05_White.MI_CarPaint_05_White
Sim3dVehicleLightingLog: Display: Building All Lights
Sim3dVehicleLightingLog: Display: Initializing Lights From Config
Sim3dVehicleLightingLog: Display: Clearing Light Components
Sim3dVehicleLightingLog: Display: Updating Light Groups
Sim3dInterfaceLog: Display: Color : /MathWorksSimulation/VehicleCommon/Materials/CarPaint/MI_CarPaint_11_Orange.MI_CarPaint_11_Orange
Sim3dVehicleLightingLog: Display: Building All Lights
Sim3dVehicleLightingLog: Display: Initializing Lights From Config
Sim3dVehicleLightingLog: Display: Clearing Light Components
Sim3dVehicleLightingLog: Display: Updating Light Groups
Sim3dInterfaceLog: Display: Color : /MathWorksSimulation/VehicleCommon/Materials/CarPaint/MI_CarPaint_13_Green.MI_CarPaint_13_Green
Sim3dVehicleLightingLog: Display: Building All Lights
Sim3dVehicleLightingLog: Display: Initializing Lights From Config
Sim3dVehicleLightingLog: Display: Clearing Light Components
Sim3dVehicleLightingLog: Display: Updating Light Groups
Sim3dInterfaceLog: Display: ASim3dLidar::ReadSettingsTopics - RenderTargetWidth: 2048, RenderTargetHeight: 1537.
Sim3dInterfaceLog: Display: ASim3dLidar::Sim3dSetup - Sector: 0, RotationYaw: 0.000000.
Sim3dInterfaceLog: Display: ASim3dLidar::Sim3dSetup - Sector: 1, RotationYaw: 120.000000.
Sim3dInterfaceLog: Display: ASim3dLidar::Sim3dSetup - Sector: 2, RotationYaw: -120.000000.
PIE: 서버가 로그인했습니다.
PIE: 에디터에서 플레이 총 시작 시간 19.245초입니다.
Sim3dInterfaceLog: Display: Sim3dInterface::readCommand - UE4 INITIALIZE, MATLAB RUN
LogRenderer: Reallocating scene render targets to support 2048x1540 Format 10 NumSamples 1 (Frame:1).
LogJson: Warning: Field states is of the wrong type.
LogJson: Error: Json Value of type 'Null' used as a 'Array'.
Sim3dVehicleLightingLog: Display: Updating States From Array
LogJson: Warning: Field states is of the wrong type.
LogJson: Error: Json Value of type 'Null' used as a 'Array'.
Sim3dVehicleLightingLog: Display: Updating States From Array
LogJson: Warning: Field states is of the wrong type.
LogJson: Error: Json Value of type 'Null' used as a 'Array'.
Sim3dVehicleLightingLog: Display: Updating States From Array
LogSlate: Updating window title bar state: overlay mode, drag disabled, window buttons hidden, title bar hidden
LogWorld: BeginTearingDown for /Game/UEDPIE_0_PG
Sim3dInterfaceLog: Display: An actor with the tag Sim3dLevelScriptActor unregistered with Sim3dInterface.
Sim3dInterfaceLog: Display: An actor with the tag SimulinkVehicle1 unregistered with Sim3dInterface.
Sim3dInterfaceLog: Display: An actor with the tag SimulinkVehicle28 unregistered with Sim3dInterface.
Sim3dInterfaceLog: Display: An actor with the tag SimulinkVehicle23 unregistered with Sim3dInterface.
Sim3dInterfaceLog: Display: An actor with the tag MainCamera1 unregistered with Sim3dInterface.
Sim3dInterfaceLog: Display: An actor with the tag Camera2 unregistered with Sim3dInterface.
Sim3dInterfaceLog: Display: An actor with the tag Lidar3 unregistered with Sim3dInterface.
Sim3dInterfaceLog: Display: Sim3dInterface is closed.
LogWorld: UWorld::CleanupWorld for PG, bSessionEnded=true, bCleanupResources=true
LogSlate: InvalidateAllWidgets triggered. All widgets were invalidated
LogPlayLevel: Display: Shutting down PIE online subsystems
LogSlate: InvalidateAllWidgets triggered. All widgets were invalidated
LogSlate: Updating window title bar state: overlay mode, drag disabled, window buttons hidden, title bar hidden
LogAudioMixer: FMixerPlatformXAudio2::StopAudioStream() called
LogAudioMixer: FMixerPlatformXAudio2::StopAudioStream() called
Sim3dVehicleLightingLog: Display: Destroying LightModule
Sim3dVehicleLightingLog: Display: Destroying LightModule
Sim3dVehicleLightingLog: Display: Destroying LightModule
LogUObjectHash: Compacting FUObjectHashTables data took 0.65ms
LogPlayLevel: Display: Destroying online subsystem :Context_2

Answers (1)

Yatharth
Yatharth on 6 Feb 2024
Hi,
I understand that your simulation 3D Camera keeps displaying a black screen.
According to the logs you shared there are a few errors indicated.
1. LogProperty: Error: UStructProperty::Serialize Loading: Property 'StructProperty /Game/roadtrafficlights/blueprints/BP_RoadTFLight_5type_Control.BP_RoadTFLight_5type_Control_C:Timeset'. Unknown structure."
This error suggests that there's a problem with loading a struct property called Timeset in the BP_RoadTFLight_5type_Control blueprint. It could be due to a missing or renamed struct.
2. LogOutputDevice: Error: FMath::FMod(X=0.000000, Y=0.000000) : Y is zero, this is invalid and would result in NaN!
This error is caused by an attempt to perform a floating-point modulo operation with a divisor of zero, which is undefined. Check the code or blueprint logic that leads to this operation and ensure that the divisor (Y) is never zero.
3. Sim3dInterfaceLog: Error: ASim3dInput::AttachMainCameraAndUpdateSpringArm - A camera socket of the vehicle spring arm not found.
This error suggests that the Simulation 3D Camera is having an issue because it cannot find the camera socket it's supposed to attach to.
Verify that the camera socket exists on the vehicle spring arm and that it's correctly named. If the socket is missing, create it and make sure it's correctly referenced by the camera setup.
I hope this helps!

Tags

Products


Release

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!