Description

Hello,

 

A licensee has reported us a crash in DebugCameraController / DebugCameraHUD.

 It is due to a missing check in ADebugCameraHUD::PostRender() of SelectedActor set in ADebugCameraController::Select.

 

I have made a patch fixing the crash (replace the != NULL by a IsValidLowLevel() to ensure GC status). Please find attached. It is to be appliedin DebugCameraHUD.cpp

 

 

 

I think the same kind of crash might happen with the other variables set in ADebugCameraController::Select() :

SelectedComponent
GDebugSelectedActor
GDebugSelectedComponent

Steps to Reproduce

 

  • Open the template game First Person
  • Launch the game by pressing play in the editor
  • Open console command and input ToggleDebugCamera
  • Select an Actor by left clicking the mouse
  • Input DestroyTarget in the console command
  • Wait for the GC to come or input Obj GC in the console command

 

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-69912 in the post.

1
Login to Vote

Fixed
ComponentUE - Gameplay
Affects Versions4.21.2
Target Fix4.22
Fix Commit5048006
Main Commit5048008
Release Commit5048006
CreatedFeb 12, 2019
ResolvedFeb 18, 2019
UpdatedFeb 26, 2019