Changing variable in GameInstance crashes editor

Basically doing anything, changing values of a game instance is literally a pain in *****. Can we have please have a bug free working game instance object in 4.9? Please!

Hi Azarus,

I wasn’t able to reproduce this in 4.8.3. Are you able to reproduce crash in a new project, or only your current project? Does it happen 100% of time in same way?

To test, I created a new project and a new Game Instance, then set Game Instance as default in Project Settings > Maps & Modes. Inside Game Instance BP, I added a few variables of different types, compiled and saved, and changed their values. Nothing causes a crash.

Am I missing any steps you took to get crash? Please find MachineID in Crash Report window next time this occurs and paste it here (make sure to hit Send!) so I can look it up here and see if this is similar to any others.

Thanks!

Hey ,

Thanks for your time.

It’s kind of hard to reproduce, but i can send over project where i get this problem. Just

Also here is machine ID:

MachineId:CC30923C42029A4B2724F79DE87BF977

EpicAccountId:40dd2988f279471f82aefa4031bd2e82

Hm, it doesn’t seem like we got anything from that MachineID. Did you hit Send?

Can you tell me if my reproduction steps were accurate? Should that have recreated crash?

You can upload project someplace like Dropbox or Google Drive and get me a download link, if you’d like, but if it’s specific to your project it’s going to take some time to dig into it and find a reproducible cause. Please let me know if you’re able to reproduce in a clean project. Thanks!

I did. It looks like something weird is happening on my end with crash reporter too. And yes you steps were correct, i tried it with a new project and it doesn’t causes any crash.

I have a feeling that accessing game instance variables in UMG causes crash. I am going to look into it next week. Until then, i can send over project files, but i can’t share them publicly, can you please provide an email where i can send download link? Thank you!

If you can upload it someplace like Google Drive or Dropbox, you can send me a download link privately via forums:

Thanks for your time! I’ve sent files in a private message.

Thanks for project. I opened up GameInstance and adjusted a few values in available variables, but didn’t get a crash. Can you give me some exact repro steps I can follow to get a crash to occur? Thanks!

There should be a struct, if i add a new field to struct, compile blueprint, and then press play project should crash.

Hi Azarus,

Thanks again for project. I was able to reproduce crash in 4.8.3 as well as 4.9.0 and our internal build, so I’ve created a bug report and attached your project for further investigation (UE-20750). I was unable to determine exact cause, but if I find anything out I will let you know.

Fix has been submitted and will be part of 4.11 release. Thank you so much for following up on this bug.

If you’d like you can pull this individual commit and build locally.