Forum rules - please read before posting.

GUI Error everytime I close the Gather Text confirmation popup

edited October 2024 in Technical Q&A

Using Unity 6 + AC 1.81.7

Every time I close the confirmation popup after the speech text has been gathered, I get a (red) error message in the Editor console:

GUI Error: Invalid GUILayout state in view. Verify that all layout Begin/End calls match
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

I don't know if this is a Unity 6 related issue and if you can do anything about this, but maybe it helps to know about this?

Comments

  • Maybe this helps? https://discussions.unity.com/t/avoiding-you-getting-insane-because-of-invalid-guilayout-state-errors/916205

    not sure which script would need to be touched in this case though.

  • Thanks, I'll look into it.

    Is the gather text process affected in any way? It may be that the issue doesn't go beyond the Console error.

  • edited October 2024

    No, it doesn't seem to be affected by that. It's just that I like to have my projects as error free as possible to not overlook "real"/problematic errors that would be visible in the build.

    And of course it is a better user experience for any user of the AC toolkit when there are no errors that create a feeling of instability. So I hope such reports help, even though this may not be a high priority problem. :)

  • edited November 1

    Hi! Just wanted to say I have the same error:

    GUI Error: Invalid GUILayout state in ActionListEditorWindow view. Verify that all layout Begin/End calls match
    UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    

    Unity 2021.3.45f2
    AC 1.84.3

    I don't know if this is related or not, but this morning several of my variables were missing. They had disappeared (of course I had saved them yesterday, so there is no reason for them to be missing), which caused quite a mess in my action scripts that use these variables.
    I don't have any other error in the console. It just happened suddenly and I don't know why. Never happened in the past when using AC.

    Except for that, the above error doesn't seem to cause any issue.

  • The error message doesn't sound related to Variables, but the latter is the more pressing.

    What kind of Variables disappeared? Were they Local or Global, and were they all created yesterday or were any removed that were created from an earlier time?

  • Hi Chris,

    The variables that disappeared were global variables.

    I didn't do anything special in my project compared to when I used AC in the past. I simply created new global variables and used them with actions such as Variable/Check or Variable/Set. Nothing fancy.

    I created the variables 2 days ago and they had disappeared yesterday in the morning when I resumed work after the night.
    I lost between 5 and 10 variables (? I don't remember exactly).
    Any older variable created the days before were still here in my project.

    I know that I saved my work in Unity for sure, because all of my other changes were still here in the scene (including new actions lists, new assets, etc)

    I only noticed the missing variables when I opened my action lists yesterday to modify dialogues/cutscenes, and some of the actions that use variables had changed to the very first variable in the list (created several days before). So I had to create new variables and assign them again.
    It wasn't very difficult to fix in the current case happily, so I didn't want to bother you with this, particularly because I don't know what went wrong. It was just a bit time consuming to go through all the actions again and make sure that a variable is assigned properly.

    Anyway, I don't have any error message other than the one stated above (Invalid GUILayout...).

    I would like to help more and provide more details on what I did, but I don't see what was different, except that in the past (before this current project) I was using Unity 2020 with older versions of AC, and this issue never happened to me.

    You should know that I have an old computer (10 years old), and it's quite slow now with the latest Unity versions, so that might be the reason... That being said, the pc is stable and up to date, clean, and Windows is working perfectly (new install during Summer). It's still Windows 10 by the way (with such an old pc I can't transition to 11 yet).

    Something that could help maybe: I have noticed that Unity Hub asks me everytime permission to make changes on the computer (when I launch it and when I quit). I always make sure to run Unity and Unity Hub as an admin (I checked the option in the properties).

    Also yesterday I recreated the missing variables (and new ones), reassigned them to the actions, continued to work on my project, saved and turned off the pc. And this morning all the variables are still here.

    If I notice an issue again I will let you know.

    Sorry to bother you with this. I hope you can see why it happened, that it's not related to AC and that it's all my fault. Let me know if I can help.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.