failed handling event

failed handling event

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

Post Reply
msm8bball
Posts: 52
Joined: 09 Oct 2009, 08:08

failed handling event

Post by msm8bball »

[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 133 times
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: failed handling event

Post by hoijui »

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.
msm8bball
Posts: 52
Joined: 09 Oct 2009, 08:08

Re: failed handling event

Post by msm8bball »

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.
Post Reply

Return to “AI”