[Bug Report: UMG 4.4.3 BP Only] Editor crashes when you set an image with casting

Hello,

I’m experiencing an issue whith the UMG editor, I’m building up a button with an image that changes according to the image setted in another actor.

I’m currently using the 4.4.3 editor version, it’s all blueprinted.

The brushes made for this task are setted like this:

The texture is setted as 512x512, no alpha compression and grayscale.

STR:

  1. Create a new Widget Blueprint
  2. Create a Button
  3. In the Button layout section, set it to the center and offset it to this value: 0.0, 0.0, 64.0, 64.0
  4. Add an Image to this button
  5. In the Image layout section, set it to fill both horizontally and vertically and in the padding section put this value: 1.1
  6. Now let’s add a function to change this image during the game, click on the image widget and in the appearence section bind a new binding to the image
  7. Add a new local variable of the type SlateBrushAsset
  8. Copy this composition:

  1. Compile it and save, if you try to go back to the designer section the editor will crash, befor doing that try to run the game.

Note that if you run the game it will work as expected:

16117-iconchanged.jpg

I’m using this setup to run my inventory, it will acess the inventory items actor array and grab the information from that actor and set the image.

If the editor crashes when you go to the designer section it will be impossible to open this blueprint again.

Thank you for this wonderfull feature, I’m achieving amazing results with only blueprint scripting on my game.

I hope that you guys can fix this issue :slight_smile:

Thanks again,
Rogério Pacini

Edit: Adding the callstack:

!Id:ee2ecbd06b9b41d42921b5ed0d483a46

Access violation - code c0000005 (first/second chance not available)

Fatal error!

UE4Editor_SlateCore + 560325 bytes
UE4Editor_Slate + 2770853 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 609823 bytes
UE4Editor_Slate + 2759787 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_UMG + 478793 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 610383 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 609823 bytes
UE4Editor_UMG + 478970 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 612804 bytes
UE4Editor_SlateCore + 610684 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_Slate + 2760292 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 609823 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 610383 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 609823 bytes
UE4Editor_UMGEditor + 864800 bytes
UE4Editor_UMGEditor + 865024 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 609823 bytes
UE4Editor_Slate + 2759787 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 612804 bytes
UE4Editor_SlateCore + 610684 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 609823 bytes
UE4Editor_Slate + 2759787 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 610383 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 612804 bytes
UE4Editor_SlateCore + 610684 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 609823 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 612804 bytes
UE4Editor_Slate + 3439052 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 609823 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 612804 bytes
UE4Editor_Slate + 3439052 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 610383 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 609823 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 612804 bytes
UE4Editor_SlateCore + 610684 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 609823 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 609823 bytes
UE4Editor_Slate + 2759787 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 610383 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 612804 bytes
UE4Editor_SlateCore + 610684 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 609823 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 612804 bytes
UE4Editor_Slate + 3439052 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 610383 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 609823 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 612804 bytes
UE4Editor_SlateCore + 610684 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 612804 bytes
UE4Editor_SlateCore + 610684 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 610383 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 609823 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_Slate + 528273 bytes
UE4Editor_Slate + 782701 bytes
UE4Editor_Slate + 901368 bytes
UE4Editor!FEngineLoop::Tick() + 3397 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.4\engine\source\runtime\launch\private\launchengineloop.cpp:2115]
UE4Editor!GuardedMain() + 476 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.4\engine\source\runtime\launch\private\launch.cpp:133]
UE4Editor!GuardedMainWrapper() + 26 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.4\engine\source\runtime\launch\private\windows\launchwindows.cpp:125]
UE4Editor!WinMain() + 249 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.4\engine\source\runtime\launch\private\windows\launchwindows.cpp:201]
UE4Editor!__tmainCRTStartup() + 329 bytes [f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c:618]

Hi ,

Unfortunately I have not been able to reproduce this on my end thus far. What is BP_GS_Capsella? Additionally how do you have your array set?

Hello ,

The BP_GS_Capsella is the game state, as in my game the inventory is shared among 4 local players I’ve decided to put it there.

The array is setted like this:
![alt text][1]

And then to put an actor there i use this:
![alt text][2]

The item itself is an actor with different properties that when setted are used to retrieve not only the thumbnail image but the item values as well.

I’ve also made a few other tests, I’m able to set the button description like this (instead of casting for the image I’ve casted for a text) and it works just fine.

Please let me know if you need any other information.

Thank you,
Rogério

Hi ,

Can you reproduce this in a clean project with no additional content?

Hello ,

Yes, it reproduced succesfully.

I’ve uploaded it to the dropbox:

Please let me know if you need anything else,
Rogério

Hi ,

I was able to reproduce this with your assets. I am entering in TTP#347512 as a bug report to be assessed. Thank you!

Thank you very much for your attention :slight_smile: Hope it gets fixed!

Glad to hear that :slight_smile: Thank you all for the awesome work!

Good news!

We checked and this seems to have been fixed in 4.5. Keep an eye out for the release notes!