x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Setting box extent to a physics enabled box collision on runtime results in a crash.

Steps to reproduce:

1.Create a blueprint with a box collision as a root component and set the extents to 50x50x50.

2.Enable simulate physics for the box.

3.Place the blueprint in the level. (Disable gravity for the box so it doesn't fall or create a plane with simple collision and place the blueprint on top.)

4.Create a graph to call SetBoxExtent (event tick or on key press) with values other than the original.

5.Press play and the game crashes upon calling SetBoxExtent.

The game crashes only if the box is set to simulate physics.

Product Version: UE 4.15
Tags:
more ▼

asked May 09 '17 at 08:38 PM in Bug Reports

avatar image

hurt720
22 3 6 12

avatar image Doug E ♦♦ STAFF May 10 '17 at 03:56 PM

Hey hurt720-

I followed the steps provided and did not have a crash occur. I tried using an actor blueprint with the box collision. Can you provide the callstack and log files from the crash for additional information.

avatar image hurt720 May 12 '17 at 04:50 AM

I'm sorry doug, it seems I missed a step. You need to add a static mesh as a child of the box collision for the crash to occur. The error message is "Assertion failed: PShapes.Num() == 1 [File:D:\Build\++UE4+Release-4.15+Compile\Sync\Engine\Source\Runtime\Engine\Private\Components\ShapeComponent.cpp] [Line: 135]"link text

crashreport.zip (110.6 kB)
(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Thank you for the additional piece of information. I was able to reproduce the crash and have entered a report for it that you can follow here: https://issues.unrealengine.com/issue/UE-44957 . As a note, there is a warning when setting the box collision component to simulate physics that the Collision Enabled setting is incompatible. Changing this setting for the component to Physics Only or Collision Enabled (Query and Physics) will fix the warning / prevent the crash.

Cheers

Doug Wilson

more ▼

answered May 12 '17 at 02:17 PM

avatar image hurt720 May 12 '17 at 10:51 PM

Thank you for the quick response! Yes I forgot to set this for the repro project, but in my original project the crash still occurs with the settings you specified.

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question