AgitoReiKen / ue-restyle

Restyle is a plugin for Unreal Engine v5.0, v5.1 that brings a brand new look for graph editors
14 stars 1 forks source link

Crash when trying to move the material result node #19

Open maualexanders opened 1 year ago

maualexanders commented 1 year ago

When I try to move a material result node the engine crashes, regardless of the material, whether it is an existing or a new one the problem occurs.

UnrealEditor_Restyle!SDefault_GraphNodeMaterialResult::MoveTo() [D:\build\U5M-Marketplace\Sync\LocalBuilds\PluginTemp\HostProject\Plugins\Restyle\Source\Restyle\Classes\Default\Nodes\Material\SDefault_GraphNodeMaterialResult.cpp:76]

AgitoReiKen commented 1 year ago

Other user reported the same issue on v5.1, but i can not reproduce it.
(I've been trying to cause it with different features on different materials)

Bugged code is the same with Unreal Engine's one, so i assume that RootNode->Material->MaterialGraph is getting invalidated somewhere on the background and it isn't so obvious why

Can you tell me more about the state of editor when crash happens?

maualexanders commented 1 year ago
  1. My unreal version is 5.1.1

  2. Any move I make with the result node the engine crashes.

  3. I believe I have, it's been a while since I changed anything related to the materials, So I'm not sure.

  4. This problem happens every time, there was no time that it didn't happen.

AgitoReiKen commented 1 year ago

At the current moment i can only recommend disabling this node, until i know more about this изображение

maualexanders commented 1 year ago

Ok, I tested it on a new project but the problem still happens, so if it is some configuration that is causing this problem, it can only be some engine configuration, because no project configuration causes this problem, if I know any relevant details I'll let you know, thanks for your attention.

WayneKoorts commented 1 year ago

I get this too, only just started using the plugin. I'm on 5.1.1 on Windows 11. Here's what my graph looks like (I've since disabled the plugin):

image

As soon as I click the result node I get a crash. It throws a null reference exception here:

image

The file is Restyle\Source\Restyle\Classes\Default\Nodes\Material\SDefault_GraphNodeMaterialResult.cpp