CCD causes crash

After hours of trying to find out what’s causing the crashes in my minigolf game, I came to the conclusion that the game crashes when CCD is used and I teleport the ball via “Set World Transform” or similar nodes through objects. I hope this can be fixed.

Hi,

Does this happen on new blueprints using the same node setup or only the one blueprint? Also can you send me a screenshot of what your setup is so I can more accurately reproduce this issue? Thus far I have been unsuccessful in reproducing it. Thank you!

Now that you mention it, it appears it only happens with that specific blueprint. I have not been able to reproduce it as well, even on the same map. I found a work-around for it by disabling the collision before teleporting the component and enabling it back after.

This is my setup:

3700-1.jpg

The Sphere is the collision object, the ball is just decoration. The springarm is not attached to the sphere as following it via “OnTick” events results in smoother motion. The spring arm, camera and the club have no collision as well.

If it helps, I could send the whole project including instructions (I just don’t want to make it publically available) but I might be the only one who ran into this problem and as I wrote, I found a work-around.

I’d like to point out that I have other weird issues with this project as well. Such as the game crashing in 75% of the cases when the golf ball hits the terrain as well as “Draw Text” not working (it get’s triggered but no text appears (the fonts, positions and strings are correct)).

Hi,

Can you do me a favor here? Try to build a simple landscape in a brand new level with no content. Once you do this, take your ball blueprint and place it in the air with enable physics on. Then hit simulate. See if this causes the crash. On the same level, try a simple hello message with build text and see if this appears. Thank you!

The crash still appears after hitting the terrain with a certain minimum velocity. I suspect something being wrong with the layer information but I checked them and there is nothing wrong with them.

The text still doesn’t appear.

Hi,

I have thus far been unable to reproduce this. Do you have any test assets that you would feel comfortable sharing so I may have a look? If no, can you please detail your exact reproduction steps so I may create this on my side? Thank you and have a great day!

Here’s the light version of my project: https://dl.dropboxusercontent.com/s/c658y8rk6ahjbfu/CCD%20Causes%20Crash.rar?dl=1

Just hit play and press space. The “RegularBlueprints/MinigolfHUD” blueprint contains the “Draw Text” node. The “RegularBlueprints/Player” blueprint contains the sphere with CCD.

Thanks for looking at it!

Hi,

Thank you for allowing us access to this. However, even with these assets I was unable to reproduce the issues you described. The text did not show up on the screen at first, however I promoted the string to a variable, made this editable and afterwards the text showed on the screen fine. The ball never crashed the editor after hitting the landscape. Are there any other steps I can take to potentially find this issue? It could be that your map or project has been corrupted and you may have to move your contents to a new project.

Thank you for the report!

I tried moving the content into a new project - still crashes, still no text (the text is an editable variable now)

Then I tried reinstalling the engine - still crashes, still no text.

I thank you for your effort but I guess there is nothing anyone can do now.