Crash on Set Actor Rotation - 4.9 only
I'm making a bug report although this is a completely ridiculous problem that doesn't make any sense to me and I'm not sure if it will be reproduce-able because it's bizarre.
What I have is a single object made up of multiple components, attached to another object made up of multiple components. When I press E on either object, it rotates the parent object - essentially a door situation. This whole set up I had in place in 4.8 with no crash. Now, in 4.9, when I press E and start the rotation, it crashes inexplicably with no error message or anything.
I've used breakpoints and found it crashes as soon as the 'Set Actor Rotation' function is called. I tried replacing it with other methods of changing the rotation, like setting the actor's relative rotation or setting the root component's relative or absolute rotation, but the crash remains. I've tried printing the rotator, and there doesn't appear to be anything strange with it when it's printed.
The very strange thing is that there are circumstances where I can make this crash not occur. If the object I am rotating is located in different areas, it will crash or not crash. Most areas it crashes though. If it's just the one object (the hinge parent) it doesn't crash, but if there's a hinge child attached, it crashes. If that hinge child is made up of 1 component, it doesn't crash, but if it's made up of 2 or more, it crashes.
I've tried changing the rotator formula (I set the rotation to each of the rotator values used in the process, and it crashed for some and not for others - for example, it doesn't crash on 'Hinge Closed Rot' or on 'Rotator from Axis and Angle' but it does crash if the 'Combine Rotators' result is used. I still have my 4.8 version of UE4 and this code does not cause ANY crashes in that version, only in 4.9.
It's put me at a bit of a standstill because there's no way for me to do what I need to do without rotating the object, and no matter how much I mess with it the only consistent way to stop the crashing is to skip over the rotate function which is not possible for this to work right. I really hope this bug can be fixed because it doesn't make any sense to me that there's a crash occurring from something as basic as setting a rotation, although I don't get this crash anywhere else in my project that I know of and this isn't the only place that I set rotation for an object, so I don't know what that's about.
asked Sep 01 '15 at 06:01 AM in Bug Reports
I have written up a report (UE-20764) and I have submitted your project to the developers for further consideration. I did however find a workaround within the sample project that allowed the object to rotate without causing the crash. I added a scene component as the root component (making it the parent of "CrashTestRoot" ). This was the only change needed for the test project. I hope that this information will allow you to find a workaround in your actual project.
Make it a great day
answered Sep 03 '15 at 09:16 PM
Rudy Q ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here