aws / aws-gamekit-unreal

The AWS GameKit Plugin for Unreal
https://docs.aws.amazon.com/gamekit/latest/DevGuide/getting-started.html
Apache License 2.0
69 stars 19 forks source link

Exception during editor shutdown #14

Open EAron1 opened 2 years ago

EAron1 commented 2 years ago

During closing editor GameKit throws exception (UE_DEBUG_BREAK()) on PureCallHandler() every time!

AMZN-kevomara commented 2 years ago

Hi EAron1, thanks for reporting this issue.

Would you mind providing the following information to help us reproduce the issue?

Development Environment

Logs If possible, any output logs leading up to the crash.

Steps to Reproduce

EAron1 commented 2 years ago

Sure. AWS GameKit version is 1.1. Unreal is 4.27.2 VS is 2019 v16.11.2 OS Windows 10

I'm attaching a Log cropped from the moment when the map is loaded (on startup) to shutting down. AWS GK log.txt

No specific steps, just open and close the editor with the GameKit plugin enabled and credentials submitted. With and without Project Settings opened crash happens. No, I haven't added GameKit sample objects, I coded my own logic in blueprints using GameKit functions. Yes. If credentials aren't submitted, the crash doesn't happen.

I've tried to reproduce with a new project but couldn't get crash. The crash happens on two separate projects already in development for a longer time and one prototype project created only for AWS features (GameLift & GameKit). I also tried reinstalling the plugin from the projects but crash still happens after reinstallation.

I found out in AwsGameKitRuntime.cpp under ShutdownModule() method comment " // Calling Shutdown() on this module gives exceptions after the editor is closed.", which might be what happens here and indicate you're already familiar with the issue?

Thank you for the quick answer and let me know if you need any more info, I'll be happy to provide it.

amzn-imdasor commented 2 years ago

Hi EAron1,

I have created a ticket to track the issue of unwanted exception. I wanted to get a better sense of the issue at hand. Are you experiencing a crash or you just see the exception. It is my understanding that the exception is benign but I would like to know your experience and the impact it is having on your work.

Thanks.

EAron1 commented 2 years ago

Okay. It's hard to tell because it's on shutdown, as from what I understand exception is thrown at UE_DEBUG_BREAK() which closes the editor in case of issues. It doesn't seem like a huge issue, but definitely, it's not normal behavior. Besides a mild annoyance during every shutdown, my only concern is it might not clean up everything it should during the shutdown. Currently, I didn't experience any issues with product development so it's not crucial for our future development. I just thought you should be aware of the issue.