I’ve created a small test Inventory with UMG, and added Drag and Drop Functionality, everything works fine way I want, line Traces check out fine, there is no errors or warnings, however a strange behaviour occurs in following circumstance:
If I move an Item between Slots and Item is inside a Slot it was in before (i.E move from Slot 0 to Slot 1 then back to slot 0) and then close out PIE Editor crashes.
If I move Item as such Slot 0 > Slot 1 > Slot 0 > Slot 2, it works fine…
I’d like to try to reproduce this crash, but I’ll need more details on your setup. If you provide some screenshots of your UMG and BP graphs, I might be able to do so with that. If you’re able to upload a test project with which this crash occurs and send me a download link, I can test with that.
Please also and attach crash log and dump file for your project after this crash occurs. Thanks!
crash log refers to BP_XiaProxy still being referenced. There isn’t enough information available in these screenshots to reproduce error on my end. Would it be possible to upload your project somewhere and send me a link? You can do so via PM on forums if you prefer.
Note that now referenced Actor causing PIE crash is Inventory Actor (In older crashlog I tried getting inventory via cast to Proxy hence it being referenced.
I reference Inventory Actor UMGWidget belongs to when it is created.
I’m not sure how else I would access it since casting to pawn and getting it from there caused a similar issue
Played around with diffrent ways of populating inventory Widget, but it still comes back to crash, have you been able to recreate it with last screenshot?
Unfortunately no, but you have a lot of different Blueprints being referenced and I can’t see how they all connect with each other. My guess is that you have some cyclical dependency issues going on here that crashes under a particular circumstance, but it’s hard to track those down.
Alright, I’ve tried isolating just inventory stuff to send to you and funny enough on it’s own it works perfectly fine, how something that must be unrelated causes crash is beyond me but I’ll keep looking for a cause and report back when I find it.
Thanks for test project! I saw bug you are describing, and I conferring with UMG developers to see what might be causing it. Right now we believe it may be a garbage collection issue. I will let you know what we find.
Sorry for really long delay! It took some time, but developers were able to isolate issue (UE-7234) and have fixed it internally. fix was deemed Critical, so it should make it into official 4.7 Release. Again, sorry for delay, but hopefully this will still be useful for you. Thanks for report!