# Box/Capsule/etc Trace for Object Crashing Game

**URL:** <https://forums.unrealengine.com/t/box-capsule-etc-trace-for-object-crashing-game/321282>\
**Category:** World Creation\
**Tags:** Trace, crashes, unreal-engine, question, Blueprint\
**Created:** [June 10, 2015, 1:51pm UTC](https://forums.unrealengine.com/t/box-capsule-etc-trace-for-object-crashing-game/321282 "2015-06-10T13:51:50Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![purezy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@purezy](https://forums.unrealengine.com/u/purezy)\
**Post date:** [June 10, 2015, 1:51pm UTC](https://forums.unrealengine.com/t/box-capsule-etc-trace-for-object-crashing-game/321282/1 "2015-06-10T13:51:50Z")

</div>

Seeing this issue both in 4.7.6 and 4.8 Preview. I’m using a box trace for objects to find a physics object my character can pickup in the level. It works fine in editor window when I run a simulation but when I try to play stand alone it does not work, and if I package the game and try it there it completely crashes. Here is the log for the crash:

[2015.06.10-13.24.59:750][894]LogOutputDevice:Warning:

Script Stack:  
TheifCharacter\_C.ExecuteUbergraph\_TheifCharacter  
TheifCharacter\_C.InpActEvt\_Use\_UniqueObjectNameForCooking\_24

[2015.06.10-13.24.59:750][894]LogWindows:Error: Windows GetLastError: The operation completed successfully. (0)  
[2015.06.10-13.24.59:945][894]LogWindows: === Critical error: ===  
Assertion failed: Result [File:Runtime/CoreUObject/Public/UObject\Stack.h] [Line: 225]

KERNELBASE.dll {0x000007fefd8aaaad} + 0 bytes  
UE4Game.exe {0x00000001400f0337} + 0 bytes  
UE4Game.exe {0x000000014016ab38} + 0 bytes  
UE4Game.exe {0x00000001401324e8} + 0 bytes  
UE4Game.exe {0x00000001405da51b} + 0 bytes  
UE4Game.exe {0x00000001405f214d} + 0 bytes  
UE4Game.exe {0x00000001405d4494} + 0 bytes  
UE4Game.exe {0x00000001405d626d} + 0 bytes  
UE4Game.exe {0x00000001405a949e} + 0 bytes  
UE4Game.exe {0x00000001405d626d} + 0 bytes  
UE4Game.exe {0x00000001405547d1} + 0 bytes  
UE4Game.exe {0x00000001405d58a2} + 0 bytes  
UE4Game.exe {0x00000001412084e0} + 0 bytes  
UE4Game.exe {0x00000001410aa91b} + 0 bytes  
UE4Game.exe {0x00000001415e281b} + 0 bytes  
UE4Game.exe {0x00000001415f8b83} + 0 bytes  
UE4Game.exe {0x00000001415de4c4} + 0 bytes  
UE4Game.exe {0x00000001415f889d} + 0 bytes  
UE4Game.exe {0x00000001411f0341} + 0 bytes  
UE4Game.exe {0x00000001409aa9fb} + 0 bytes  
UE4Game.exe {0x00000001409bd620} + 0 bytes  
UE4Game.exe {0x000000014029c555} + 0 bytes  
UE4Game.exe {0x000000014029c76d} + 0 bytes  
UE4Game.exe {0x00000001402bdbe3} + 0 bytes  
UE4Game.exe {0x00000001401934f5} + 0 bytes  
UE4Game.exe {0x0000000140a083ad} + 0 bytes  
UE4Game.exe {0x0000000140a15cb6} + 0 bytes  
UE4Game.exe {0x00000001413faf61} + 0 bytes  
UE4Game.exe {0x000000014140058f} + 0 bytes  
UE4Game.exe {0x0000000140c9764e} + 0 bytes  
UE4Game.exe {0x00000001400a01f6} + 0 bytes  
UE4Game.exe {0x000000014008fe0c} + 0 bytes  
UE4Game.exe {0x000000014008fe5a} + 0 bytes  
UE4Game.exe {0x00000001400a1f19} + 0 bytes  
UE4Game.exe {0x00000001430e4b65} + 0 bytes  
kernel32.dll {0x00000000777159cd} + 0 bytes  
ntdll.dll {0x000000007784b891} + 0 bytes  
ntdll.dll {0x000000007784b891} + 0 bytes

[2015.06.10-13.25.00:121][894]LogExit: Executing StaticShutdownAfterError  
[2015.06.10-13.25.00:124][894]LogPhysics:Warning: PHYSX: …\PhysX\src\NpScene.cpp (2977) 8 : PxScene::unlockWrite() called without matching call to PxScene::lockWrite(), behaviour will be undefined.  
[2015.06.10-13.25.00:124][894]LogPhysics:Warning: PHYSX: …\PhysX\src\NpScene.cpp (2977) 8 : PxScene::unlockWrite() called without matching call to PxScene::lockWrite(), behaviour will be undefined.  
[2015.06.10-13.25.00:124][894]LogWindows: FPlatformMisc::RequestExit(1)  
[2015.06.10-13.25.00:124][894]Log file closed, 06/10/15 09:25:00

I have also attached a screenshot of my character blueprint.

 ![45840-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/1/6/5164cb0c5e810716d7986776e23e4ee9b83c4e07.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [June 10, 2015, 7:02pm UTC](https://forums.unrealengine.com/t/box-capsule-etc-trace-for-object-crashing-game/321282/2 "2015-06-10T19:02:52Z")

</div>

Hello ,

I was unable to reproduce this issue on our end. I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

1. Can you reproduce this issue in a clean project?
2. If so, could you provide a detailed list of steps to reproduce this issue on our end?
3. Could you provide a more extensive screen shot of the blueprints involved?

---

<div class="post-metadata">

**Author:** ![purezy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@purezy](https://forums.unrealengine.com/u/purezy)\
**Post date:** [June 10, 2015, 7:19pm UTC](https://forums.unrealengine.com/t/box-capsule-etc-trace-for-object-crashing-game/321282/3 "2015-06-10T19:19:21Z")

</div>

1. Yes, I created a new third person project and modified the third person character blueprint to add the box trace on key press, image is attached.
2. Launched engine version 4.7.6, create new their person template with no starter content, opened up third person blueprint and added box trace for objects node, see image.
3. 

 ![45876-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/5/2/052380056b3ca17cf76307e0df72db4f6dacddcc.png)

Log from crash when using basic third person template: [link text][2]

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [June 11, 2015, 2:10pm UTC](https://forums.unrealengine.com/t/box-capsule-etc-trace-for-object-crashing-game/321282/4 "2015-06-11T14:10:52Z")

</div>

Hello ,

I was still unable to reproduce this issue on our end. Would it be possible for you to provide a zipped down version of your project and/or a packaged version that you are seeing the crash with?

---

<div class="post-metadata">

**Author:** ![purezy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@purezy](https://forums.unrealengine.com/u/purezy)\
**Post date:** [June 11, 2015, 2:20pm UTC](https://forums.unrealengine.com/t/box-capsule-etc-trace-for-object-crashing-game/321282/5 "2015-06-11T14:20:59Z")

</div>

Suere, here ya go: [https://drive.google.com/file/d/0B8390trix2eOcUhla0RfVXYxTUE/view?usp=sharing](https://drive.google.com/file/d/0B8390trix2eOcUhla0RfVXYxTUE/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [June 11, 2015, 6:36pm UTC](https://forums.unrealengine.com/t/box-capsule-etc-trace-for-object-crashing-game/321282/6 "2015-06-11T18:36:50Z")

</div>

Hello ,

I was able to reproduce this issue on our end. I have written up a report (UE-16915) and I have submitted it to the developers for further consideration. I will provide updates with any pertinent information as it becomes available. Thank you for your time and information.

Possible workaround:

The issue derives from trying to get the location of the component of the character. I was able to avoid the crash by get the location of the actor. This may or may not be viable depending on your needs but I thought I would provide the information. I hope this helps.

Make it a great day

---

<div class="post-metadata">

**Author:** ![purezy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@purezy](https://forums.unrealengine.com/u/purezy)\
**Post date:** [June 11, 2015, 6:41pm UTC](https://forums.unrealengine.com/t/box-capsule-etc-trace-for-object-crashing-game/321282/7 "2015-06-11T18:41:21Z")

</div>

Yes, that workaround worked perfectly, thanks!!

---

<div class="post-metadata">

**Author:** ![spinav](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spinav](https://forums.unrealengine.com/u/spinav)\
**Post date:** [July 28, 2015, 2:03am UTC](https://forums.unrealengine.com/t/box-capsule-etc-trace-for-object-crashing-game/321282/8 "2015-07-28T02:03:17Z")

</div>

I figured it out on my end! I had traces using my arrow component, i switched it to the character capsule and it works! No crash

---

<div class="post-metadata">

**Author:** ![Anonymous\_e5d5c0bf7d300728867097ff79906dbe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_e5d5c0bf7d300728867097ff79906dbe](https://forums.unrealengine.com/u/Anonymous_e5d5c0bf7d300728867097ff79906dbe)\
**Post date:** [December 14, 2017, 11:37pm UTC](https://forums.unrealengine.com/t/box-capsule-etc-trace-for-object-crashing-game/321282/9 "2017-12-14T23:37:35Z")

</div>

I have the same issue on 4.16 ☹  
And I need to use a Component location for trace,  
may you help me to work this round ?
