[4.2] Console "Show Collision" crash

With 4.2, in Standalone Game or Mobile Preview, the “Show Collision” console command crash. (4.1 is fine)

Crash report :

!Id:93862ca3dcd743a2f4f5789378ce761a

Unknown exception - code 00000001 (first/second chance not available)

Assertion failed: DefaultBrush != NULL [File:D:\BuildFarm\buildmachine_++depot+UE4-Releases+4.2\Engine\Source\R

KERNELBASE + 37901 bytes
UE4Editor_Core + 2998748 bytes
UE4Editor_Core + 1620298 bytes
UE4Editor_Core + 1561376 bytes
UE4Editor_Engine + 5046499 bytes
UE4Editor_Engine + 1726076 bytes
UE4Editor_Engine + 2043354 bytes
UE4Editor_Engine + 6094830 bytes
UE4Editor_Engine + 1877208 bytes
UE4Editor_Engine + 1965149 bytes
UE4Editor_Renderer + 1343093 bytes
UE4Editor_Engine + 1770952 bytes
UE4Editor_Engine + 1639237 bytes
UE4Editor_Engine + 5132103 bytes
UE4Editor_Engine + 5161378 bytes
UE4Editor_Engine + 3693351 bytes
UE4Editor!FEngineLoop::Tick() + 3555 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.2\engine\source\runtime\launch\private\launchengineloop.cpp:2091]
UE4Editor!GuardedMain() + 476 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.2\engine\source\runtime\launch\private\launch.cpp:132]
UE4Editor!GuardedMainWrapper() + 26 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.2\engine\source\runtime\launch\private\windows\launchwindows.cpp:125]
UE4Editor!WinMain() + 249 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.2\engine\source\runtime\launch\private\windows\launchwindows.cpp:207]
UE4Editor!__tmainCRTStartup() + 329 bytes [f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c:618]

Howdy Eddy71,

Just a couple further questions for you so we can better investigate the issue that you are seeing.

  • I can assume the project that is causing issues has been migrated over to 4.2. Was it from 4.1 or 4.1.1?
  • When you migrated the project over, a box should appear asking if you want to open a copy, convert in-place, skip conversion, or cancel. Which of these functions did you happen to choose?
  • Last question I have is when you create a new project in your editor, if you run standalone or mobile and enter Show Collision, does the game crash then?

Thanks for your patience!

Hi Sean,

  1. My project has been migrated from 4.1

  2. Convert in-place

  3. With a new blank project, Show Collision works fine in the 4 modes.

Test with your example projects :

  • SciFiHallway => Show Collision works fine in the 4 modes
  • VehicleGame => Show Collision crash in Standalone and Mobile, with the same assertion failed (DefaultBrush != NULL)

Hey Eddy71,

I tried this in VehicleGame and was successfully able to crash the Editor by entering the ‘Show Collision’ console command.

Before I enter this into our bug database, I wanted to ask you if this is happening on your own project or just in the marketplace downloads? I have found that the crash occurs in VehicleGame and StrategyGame. Just wanted to know if I need to add your project to that list.

Thanks!

Hi Sean,

Yes, it’s happen too in my project.

Have a nice day :slight_smile:

Eddy71,

What kind of project are you working on (ex. third person BP, no code, etc…)? Could you also include your log files for your project that is crashing?

Thanks!

Hi Sean,

actually on OS X (But same crash case with Windows 7).

But I don’t see logs files. How can I found the logs on OS X ?

Ok, found the log.

The game is BP only. I start from a blank project.

Hey Eddy71,

I went in and put your bug/issue into our database so that it may be looked into. I am going to go ahead and approved this answer for tracking purposes.

Thanks for your report and have a great day!

Ok Sean. Now waiting for updates to make tests.

Regards

Now it’s work. (4.4)

Sounds great Eddy71! Thanks for the update.

Have a great day!

i have the same problem in 4.7.6 - packaged project only, blueprint only, from blank project with some migrated assets from content examples such as the BP physics ufo. Would be nice for testers to be able to see collision…

Howdy sloppyjava,

Thank you for posting about your issue. I have attempted a quick reproduction of this issue and have been unsuccessful with seeing a crash. Would you be able to clarify if you would be packaging for Shipping or for Development? If the UFO asset is not in your project, are you seeing the same crash when using show collision?

If the crash does not occur when the assets are not in the project, would you be able to share the exact name of the assets that you have in your project that may be causing this error? Could you also attach your DXdiag?

Would you be getting any logs referencing this crash that you can share? You may be able to locate them using this pathing: >WindowsNoEditor>(Name of project)>Saved>Logs.

Any additional information would be greatly appreciated.

Thanks and have a great day!

DXDiag

showcollisiondbg_log

I believe i’ve isolated the problem. If i migrate SM_Cliff01 (from the Open World Demo Collection) to a blank Blueprint project and package, I’m able to reproduce with no other changes.

Howdy sloppyjava,

Thanks for the additional information. Would the crash be occurring once you enter the console command? I am getting a crash if I enter the console command, and the exit the packaged project. I just want to be sure before I write up a Jira ticket for this.

Thanks!

the crash is immediate when executing the console command.

Above I had indicated “No other changes” I did, however, place the cliff mesh into the scene, save, and select that map for game default, editor startup, and server default in maps and modes in project settings.

Hey Sloppyjava,

Thank you for all of the additional information. I have been able to replicate the exact issue that you have been seeing. I have also attempted to reproduce this issue on both the 4.8 preview 2 build and out latest internal build and have no been able to reproduce a crash. It seems the error has been fixed since 4.7.6 has been released.

If you would like, you could test this in our Preview 2 build and see that the error is not occurring. I would not fully convert any projects to this preview build as our preview builds can be unstable, but you could open a copy and confirm this is no longer happening.

Please let me know if you do test this and still see any errors occur on your side.

Thanks and have a great day!