Thread Tools Display Modes
07/31/15, 04:59 AM   #1
CaptainBlagbird
 
CaptainBlagbird's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 53
Random UI Errors

Hi there

So after logging in or reloading UI, I sometimes get random UI Error messages like this:

Code:
17552056426385430174:3: attempt to index a nil value
stack traceback:
	17552056426385430174:3: in function '(main chunk)'
As you can see, it doesn't happen in a specific add-on file, but I still think it is caused by an add-on (and probably by one of mine ). Could that happen by using zo_callLater, or does anyone know how it happens?

As I said, I can't reproduce it because it happens randomly (as it seems). I'm trying to track it down to one add-on, but that takes some time (and maybe it isn't even caused by an add-on).

(Sorry if that has been answered already, I did a quick search and couldn't find anything related.)

Last edited by CaptainBlagbird : 07/31/15 at 05:16 AM.
  Reply With Quote
07/31/15, 05:29 AM   #2
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,586
Errors like this are usually produced by functions that are called from xml handlers.
Maybe one handler is called before the corresponding lua code is initialized?
  Reply With Quote
07/31/15, 05:34 AM   #3
QuadroTony
Banned
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 828
i meet it often

bug catcher can help you

it can catch only this obsolete errors and keep showing errors from addons, for example
  Reply With Quote
07/31/15, 05:41 AM   #4
CaptainBlagbird
 
CaptainBlagbird's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 53
Originally Posted by sirinsidiator View Post
Errors like this are usually produced by functions that are called from xml handlers.
Maybe one handler is called before the corresponding lua code is initialized?
Good hint, I'll check that.

Originally Posted by QuadroTony View Post
i meet it often

bug catcher can help you

it can catch only this obsolete errors and keep showing errors from addons, for example
Nice, I'll install it out right away
  Reply With Quote
07/31/15, 05:42 AM   #5
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by QuadroTony View Post
i meet it often

bug catcher can help you

it can catch only this obsolete errors and keep showing errors from addons, for example
I think hiding error is not a solution. Errors should be fixed not just ignored.

And as sirinsidiator said, this error comes from XML file. One of handlers calls function which is not defined yet because it is initialized after XML file is loaded or which doesn't exist at all (typo in name).
I'd start with all XML files with OnUpdate handler, most of the errors comes from this handler.
  Reply With Quote
07/31/15, 06:15 AM   #6
CaptainBlagbird
 
CaptainBlagbird's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 53
Originally Posted by Garkin View Post
I think hiding error is not a solution. Errors should be fixed not just ignored.
Yes, I realised that BugCatcher only suppresses the messages. I thought it'll give a hint about where the bug occurred. I'll go through all XMLs.

Last edited by CaptainBlagbird : 07/31/15 at 06:22 AM.
  Reply With Quote
07/31/15, 09:37 AM   #7
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
If it happens often enough, you can try this add-on I've just hacked http://www.esoui.com/downloads/info1...lsCatcher.html
Just wait for the error to pop up, then type: /undefs
With some luck, there'll be a familiar name with a typo at the bottom of the list.
  Reply With Quote
07/31/15, 10:15 AM   #8
CaptainBlagbird
 
CaptainBlagbird's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 53
Cool thanks, I'll give it a try
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Random UI Errors


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off