HeroEngine Forums
Welcome, Guest. Please login or Register for HeroCloud Account.

Author Topic: "GUI is disabled due to fatal error in GUIXML" - Red Screen  (Read 3166 times)

DaveKibourn

  • General Accounts
  • *
  • Posts: 1
    • View Profile

When logging a character into our server we get a Red Screen and a "GUI is disabled due to fatal error in GUIXML" error.

What is the best way to track down this issue?  I am afraid I am going in circles trying to track it down.

-Dave
Logged

Thazager

  • General Accounts
  • *
  • Posts: 1155
  • Never stop learning
    • View Profile
    • Heroes and Villains MMORPG
Re: "GUI is disabled due to fatal error in GUIXML" - Red Screen
« Reply #1 on: Jun 18, 13, 08:13:58 PM »

If you were previously able to log in, and that has been changed, I would look in the heroscript editor, and view the xml files. See which one is the last file to be edited by checking the last modified catagory. Check the history on that file, and try a restore to an older version. It might also be a script that is disabling the GUI, check the scripts for the last modified also.
Logged

StephenBrent

  • General Accounts
  • *
  • Posts: 5
    • View Profile
Re: "GUI is disabled due to fatal error in GUIXML" - Red Screen
« Reply #2 on: Jun 19, 13, 01:15:13 PM »

We have check modify dates and nothing has was done a full month before the June 5th update from hero,
once we logged in after the June 5th update  this issue hit 

It appears to be the e_statusbar script,
But i cannot find anything wrong in any of the listed scripts


Logged

StephenBrent

  • General Accounts
  • *
  • Posts: 5
    • View Profile
Re: "GUI is disabled due to fatal error in GUIXML" - Red Screen
« Reply #3 on: Jun 19, 13, 04:02:27 PM »

The tool-tip on the GUI window shows This
the area never fully loads
i have pulled out all the test script we have worked on to this point and still the same.

FYI we are a dead still and could use a phone call to get past this hump.
We also have not done any major changes to script at this point an a reload of script may not hurt.

thanks ahead for all help!

Logged

HE-Cooper

  • *****
  • Posts: 2221
    • View Profile
Re: "GUI is disabled due to fatal error in GUIXML" - Red Screen
« Reply #4 on: Jun 19, 13, 05:40:26 PM »

Keep in mind that frequently an update will provide new error checking for an old failure state, like an infinite loop in child parent, or a missing node, etc, so that after the update it appears as though some new error occurs, but is just the new "this is broken" messaging.

free support is currently backlogged, but if the community is unable to provide you any help, we'll find someone to log into your world and fix it for you in the coming days.
Logged

StephenBrent

  • General Accounts
  • *
  • Posts: 5
    • View Profile
Re: "GUI is disabled due to fatal error in GUIXML" - Red Screen
« Reply #5 on: Jun 19, 13, 05:43:38 PM »

Thanks Cooper!

Also I doped visibility on Gui's and now area will load but my characters is puting up up movement script errors whenever i go to move.

I am deleting character nodes to see if this helps.

Ill be back
Logged

HE-Cooper

  • *****
  • Posts: 2221
    • View Profile
Re: "GUI is disabled due to fatal error in GUIXML" - Red Screen
« Reply #6 on: Jun 19, 13, 05:52:00 PM »

We find that many development related errors get fixed by us informing the developers that we don't currently have the resources to fix it for them.  ;)
Logged

StephenBrent

  • General Accounts
  • *
  • Posts: 5
    • View Profile
Re: "GUI is disabled due to fatal error in GUIXML" - Red Screen
« Reply #7 on: Jun 19, 13, 05:57:24 PM »

Ha! i bet,
Thank you again Cooper! :)
Logged

Thazager

  • General Accounts
  • *
  • Posts: 1155
  • Never stop learning
    • View Profile
    • Heroes and Villains MMORPG
Re: "GUI is disabled due to fatal error in GUIXML" - Red Screen
« Reply #8 on: Jun 19, 13, 08:29:58 PM »

The red screen looks like a dockmode has been set to FILL on one of the GUI panels. When a error occurs in making a GUI, the engine will stop execution of the code and skip over any other GUIs. From the looks of it, its one of the first in the list.

The error list show line 19 of the statusbar. You can double click on the green lines of code in the error list and the script will open to those areas and point at that line. Once an error occurs, other errors can be created based on that 1st error. Sometimes when fixing the 1st one, it can fix a bunch.

If you still have the base code, these would be the lines for the error.

18  nameLabel as NodeRef of Class GUILabel = FindGUIControlByName(me,"nameLabel")
19  nameLabel.text = name

The node ID (0) not found means you have a bad pointer. Line 18 is setting up the pointer. A few things that might have caused it are: a changed class from guilabel, as only that class can have a text field to point at in line 19. A changed offset in the findGUI statement can also lead to an error. The actual value its looking for in quotes can also cause the error.
Logged

HE-CHRISTOPHER

  • HeroEngine
  • *****
  • Posts: 424
    • View Profile
Re: "GUI is disabled due to fatal error in GUIXML" - Red Screen
« Reply #9 on: Jun 20, 13, 08:38:52 AM »

From the console output in your world...

Code: [Select]
09:24:36: !ERROR!System:GUIXMLChomper::CreateControlType attempted to build a child control that inherits from one of its ancestor's prototypes
This tells us that you have a control A which is inherited by control B, but control A has control B as part of its xml (e.g. Circular dependency).

In this particular case, reviewing the controls you've edited...

Code: [Select]
<createControlType class='E_StatusBar' type='e_StatusBar' description='' treePath='' name="e_StatusBar" texture="\GUI\inventory_v3.dds" textureFilter="false" layer="game">
  <position x="2" y="3"/>
  <size x="179" y="58"/>
  <maximumSize x="2048" y="2048"/>
  <defaultStatePresentation>
    <size x="0" y="0"/>
  </defaultStatePresentation>
  <disabledStatePresentation>
    <size x="0" y="0"/>
  </disabledStatePresentation>
  <hoverStatePresentation>
    <position x="574" y="730"/>
    <size x="212" y="57"/>
  </hoverStatePresentation>
  <selectedStatePresentation>
    <position x="574" y="730"/>
    <size x="212" y="57"/>
  </selectedStatePresentation>
  <selectedDisabledStatePresentation>
    <position x="574" y="730"/>
    <size x="212" y="57"/>
  </selectedDisabledStatePresentation>
  <selectedHoverStatePresentation>
    <position x="574" y="730"/>
    <size x="212" y="57"/>
  </selectedHoverStatePresentation>
  <_label name="nameLabel" scale="1.299999952" text="Aplayername" textPadding="4" displayfont="GAMETEXT">
    <position y="-3.076923132"/>
    <size x="132.307693481" y="22.307693481"/>
    <defaultStatePresentation>
      <color r="1" g="1" b="1"/>
    </defaultStatePresentation>
  </_label>
  <_panel name="healthPanel">
    <position x="9.5" y="25"/>
    <size x="160" y="15"/>
    <defaultStatePresentation>
      <color r="0" g="0" b="0"/>
    </defaultStatePresentation>
    <autoCenter horizontal="true"/>
    <_panel name="healthSlider" dockMode="LEFT" texture="\GUI\status_bar_v3.dds">
      <size x="80" y="15"/>
      <defaultStatePresentation>
        <color g="0" b="0"/>
        <position x="34" y="323"/>
        <size x="156" y="9"/>
      </defaultStatePresentation>
    </_panel>
  </_panel>
  <E_targetStatusBar name="E_targetStatusBar">
    <position y="61"/>
  </E_targetStatusBar>
</createControlType>


We see that control A (E_StatusBar) has a child element within its xml of control B (E_targetStatusBar).  Reviewing E_targetStatusBar's xml, we see that it inherits from E_StatusBar.

Code: [Select]
<createControlType inheritFrom='e_StatusBar' class='E_targetStatusBar' layer='game' type='E_targetStatusBar' description='' treePath='' name="E_targetStatusBar" inheritDisabledState="false" inheritHoveringState="false" inheritSelectedState="false">
  <disabledStatePresentation>
    <position x="561" y="711"/>
    <size x="225" y="76"/>
  </disabledStatePresentation>
  <position x="227" y="62"/>
  <selectedStatePresentation>
    <position x="561" y="711"/>
    <size x="225" y="76"/>
  </selectedStatePresentation>
  <defaultStatePresentation>
    <position x="560.952331543" y="710.476135254"/>
    <size x="225" y="78.809524536"/>
  </defaultStatePresentation>
  <hoverStatePresentation>
    <position x="561" y="711"/>
    <size x="225" y="76"/>
  </hoverStatePresentation>
  <selectedHoverStatePresentation>
    <position x="561" y="711"/>
    <size x="225" y="76"/>
  </selectedHoverStatePresentation>
  <selectedDisabledStatePresentation>
    <position x="561" y="711"/>
    <size x="225" y="76"/>
  </selectedDisabledStatePresentation>
</createControlType>

Removing the child xml for E_targetStatusBar from the xml for E_StatusBar fixes the issue.
Logged
Christopher Larsen
CTO
HeroEngine

StephenBrent

  • General Accounts
  • *
  • Posts: 5
    • View Profile
Re: "GUI is disabled due to fatal error in GUIXML" - Red Screen
« Reply #10 on: Jun 20, 13, 10:51:14 AM »

 :) ;) :D
Thanks a million guys
Helped and Up back to work
Logged

Thazager

  • General Accounts
  • *
  • Posts: 1155
  • Never stop learning
    • View Profile
    • Heroes and Villains MMORPG
Re: "GUI is disabled due to fatal error in GUIXML" - Red Screen
« Reply #11 on: Aug 09, 13, 11:23:10 PM »

Just got this today also...

I tried making a new gui today. After saving and seeing the mesg below pop up on screen. I refreshed and opened the file to add some more.

21:50:07: SYSTEM:System:Got XML file /guixml/hav_itempanel.xml
21:50:07: SYSTEM:System:Added controlType HaV_ItemPanel.


An error popped up on screen.


This GUIXML is the file containing all the GUIs I made. Everthing was there, except the new GUI had capital letters in the file name.

...
tmp_portrait.xml
tmp_stealth.xml
tmp_teamdata.xml
tmp_testpanel.xml
HaV_ItemPanel.xml

and the errors I get are:
21:51:25: !ERROR!HeroScript::HeroMachine::ScriptError:modifier is 0
21:51:25: !ERROR!System:SCRIPT ERROR: modifier is 0
08/09/2013 21:50:29
Call trace:
  Script GUIeditor line 56 me[0]
  Script GUIeditor line 12 me[0]
  Script GUIeditor line 1710 me[0]


I shall look into this
(e.g. Circular dependency)
« Last Edit: Aug 09, 13, 11:25:04 PM by Thazager »
Logged

Thazager

  • General Accounts
  • *
  • Posts: 1155
  • Never stop learning
    • View Profile
    • Heroes and Villains MMORPG
Re: "GUI is disabled due to fatal error in GUIXML" - Red Screen
« Reply #12 on: Aug 10, 13, 02:34:47 PM »

I have narrowed it down to what is causing it. I can edit the script of the xml file, take out the object that was creating the error. The file can then be opened in the GUI editor just fine and displayed. I then add in the item that caused the bug in an attempt to isolate the exact part of it, save and close. Upon opening the GUI in the editor again, the bug hits. I then go back and remove that line from script again to fix it.

BUT, the editor can not recover from the bug that seems to have crashed the whole editor. I have to close the editor and restart it each time. So, I think there is another bug somewhere in that area (that is part of the editor).
Logged