Unity Game Mode - Slow To Stop If Dialogue Window Open

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
creativestorm
Posts: 10
Joined: Mon Mar 14, 2022 10:55 pm

Unity Game Mode - Slow To Stop If Dialogue Window Open

Post by creativestorm »

I searched the forums, but don't seem to see any precedent for this: but with one of my projects, if I have the Dialogue Database/Conversations window open and hit stop on the Game View, it hangs for two minutes or more before finally stopping. This also occurs if I attempt to close the Dialogue Database/Conversations window or tab as well; the entire program hangs for two minutes. If I do not have the Dialogue Database/Conversations window/tab open, the game runs fine - starting and stopping from Game view does so at normal speed with no hang.

I'm wondering if anyone else has run into this issue and if there is a solution for this. I would like to not have to remember to close the Dialogue System tab every time I start and stop the game for testing. Thanks.
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Unity Game Mode - Slow To Stop If Dialogue Window Open

Post by Tony Li »

Hi,

When you enter/exit play mode with the Dialogue Editor window open, are there any errors or warnings in the Console window?

What versions of Unity and the Dialogue System are you using?
creativestorm
Posts: 10
Joined: Mon Mar 14, 2022 10:55 pm

Re: Unity Game Mode - Slow To Stop If Dialogue Window Open

Post by creativestorm »

Hi Tony, I am currently using Unity 2021.1.13f1 for this project.

Unity isn't throwing any error messages.

Update: When I tested just a moment ago, it seems to stop fine now with the Dialogue tab open. I'll keep testing to see if I can reproduce what was happening yesterday.
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Unity Game Mode - Slow To Stop If Dialogue Window Open

Post by Tony Li »

Hi,

It's probably a Unity editor bug. There are still lots of little editor bugs in Unity 2020 and 2021. If it happens again and doesn't go away after restarting the editor, please feel free to send the Editor.log file to tony (at) pixelcrushers.com before restarting the editor again (which would wipe the Editor.log). It's probably an editor bug, but I don't mind looking at the Editor.log in the remote chance that it's a Dialogue System issue.
creativestorm
Posts: 10
Joined: Mon Mar 14, 2022 10:55 pm

Re: Unity Game Mode - Slow To Stop If Dialogue Window Open

Post by creativestorm »

Dang, seems to be doing it again now. I have no idea what causes this - the first few times, it worked fine, but now it's taking two minutes or more to stop when exiting play mode. No error messages. As soon as I close the Dialogue tab though, no problems at all. Strange.

Edit: Will do, I will send the editor log shortly. Thanks Tony.
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Unity Game Mode - Slow To Stop If Dialogue Window Open

Post by Tony Li »

Hi,

Thanks for sending the Editor.log. Let's try to get a clean version without this error:

There are 2 event systems in the scene. Please ensure there is always exactly one event system in the scene

To do that, inspect your dialogue UI and your quest log window. They both have an 'Add Event System If Needed' checkbox. Untick both checkboxes. Then exit and restart Unity to start a clean Editor.log file. When you can reproduce the issue, please send me another Editor.log file. Thanks!
creativestorm
Posts: 10
Joined: Mon Mar 14, 2022 10:55 pm

Re: Unity Game Mode - Slow To Stop If Dialogue Window Open

Post by creativestorm »

Affirmative, I have managed to uncheck both those boxes. Restarted Unity and it's working fine for now. Will send the editor log the moment it starts to act up again. It won't be a completely clean log file as it seems to work fine after I restart, but I will make sure to send something with as a little clutter as possible. Thanks.
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Unity Game Mode - Slow To Stop If Dialogue Window Open

Post by Tony Li »

Hi,

I replied to your email with a request to clean up another error. It should make it easier to identify the issue.
creativestorm
Posts: 10
Joined: Mon Mar 14, 2022 10:55 pm

Re: Unity Game Mode - Slow To Stop If Dialogue Window Open

Post by creativestorm »

Just a quick update, this seems to be fixed now with updating my Unity version. Thanks.
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Unity Game Mode - Slow To Stop If Dialogue Window Open

Post by Tony Li »

Great! Thanks for letting me know.
Post Reply