Read Access Violation
During this sprint I was faced with an error that posed a problem while implementing UI elements. Occasionally during runtime the software would crash and the error getting reported was a "Read Access Violation". This kind of an error being released would make the build unstable and potentially unplayable for our users.
In response, I did extensive research into the error. My research involved reading online forums, asking other developers of their experiences with this error, and brute forcing my way through the error. I ended up coming to the conclusion one of my widgets was not getting saved properly through the Unreal Engine 5 editor. This was due to a widget missing a UPROPERTY macro. The UPROPERTY macro is used to expose variable to the unreal engine editor and to include the property in the engine's memory management system. After adding the appropriate macro to the widgets variable the error ceased to exist.
Author: Zachary Giffin
Comments
Post a Comment