View topic - failed handling event



All times are UTC + 1 hour


Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: failed handling event
PostPosted: 20 May 2012, 22:34 

Joined: 09 Oct 2009, 07:08
Quote:
[f=0000000] Warning: AI for team 0 (ID: 0) failed handling event with topic 6, error: -5
[f=0000001] Warning: AI for team 0 (ID: 0) failed handling event with topic 3, error: -5


Seeing these errors a lot. What do they mean? And is there a place where I could look up what those error codes mean myself?


Attachments:
infolog.txt [157.38 KiB]
Downloaded 108 times
Top
 Offline Profile  
 
PostPosted: 21 May 2012, 08:19 
Spring Developer
User avatar

Joined: 22 Sep 2007, 08:51
the meaning of the topic numbers can be found here:
https://github.com/spring/spring/blob/d ... ISEvents.h

the meaning of the error is a harder thing. the error coudl happen in the native part of the ai interface (if AI is Java:, the java part, the OO wrapper) or the AI itsself.

most likely, you are throwing exceptions or other throwables in your event handling code. simply try to catch them.


Top
 Offline Profile  
 
PostPosted: 22 May 2012, 00:43 

Joined: 09 Oct 2009, 07:08
Thanks, that helped me narrow it down. Apparently every frame I was trying to access a List<Unit> that hadn't been initialized yet. I guess I was expecting a null reference exception.


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.