Board index FlightGear Development AI Traffic

ErrorLog cxx:268 exception updating AI model  Topic is solved

Intelligent, computer controlled vehicles that drive/fly over the planet!

ErrorLog cxx:268 exception updating AI model  

Postby BecOzIcan » Sun May 20, 2018 5:59 am

Hi all,

I noticed a new AI error entry in my FG Log :

Code: Select all
ai:4:C:\Jenkins\workspace\Windows-release\flightgear\src\AIModel\AIManager.cxx:268:caught exception updating AI model:, which will be killed.
   Error:bad AI flight plan


Anyone knows how to identy the faulty model (or traffic file)

Cheers
Ian
Current Projects: AI Traffic, Models & Liveries
User avatar
BecOzIcan
 
Posts: 1302
Joined: Tue Oct 04, 2011 11:43 pm
Location: Sydney, NSW, Australia
Version: 2020.4.0
OS: Win10

Re: ErrorLog cxx:268 exception updating AI model

Postby wkitty42 » Sun May 20, 2018 7:11 pm

that's not a new AI error... there have been several of them in the past...

anyway, yeah, to find the craft, fix the logging code...
Code: Select all
AIManager.cxx:268://            SG_LOG(SG_AI, SG_WARN, "caught exception updating AI model:" << base->_getName()<< ", which will be killed."
AIManager.cxx:269:            SG_LOG(SG_AI, SG_WARN, "FGAIManager::update: caught exception updating AI model '" << base->_getCallsign()<< "' which will be killed."


i can't help further because the updates in your GIT haven't been uploaded yet... my performancedb is back to showing 44 craft without performance data since i had to move mine out of the way to make way for yours... without the traffic files you have, my hands are tied...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: ErrorLog cxx:268 exception updating AI model

Postby wkitty42 » Mon May 21, 2018 6:19 pm

actually, i have found some entries after leaving the sim to run overnight while sitting at KRDU...

Code: Select all
myuser@mymachine:~/myflightgear$ tail -F runfgfsdebug-console.log | egrep -hin -e "will be killed"
tail: ‘runfgfsdebug-console.log’ has become inaccessible: No such file or directory
tail: ‘runfgfsdebug-console.log’ has appeared;  following end of new file
1280030:FGAIManager::update: caught exception updating AI model 'Eagle-Flight4324' which will be killed.
1287234:FGAIManager::update: caught exception updating AI model 'American1758' which will be killed.
1288989:FGAIManager::update: caught exception updating AI model 'Eagle-Flight3466' which will be killed.
1303826:FGAIManager::update: caught exception updating AI model 'UNITED3381' which will be killed.
1314472:FGAIManager::update: caught exception updating AI model 'Eagle-Flight4306' which will be killed.
1333879:FGAIManager::update: caught exception updating AI model 'Eagle-Flight4527' which will be killed.
1344018:FGAIManager::update: caught exception updating AI model 'Eagle-Flight4306' which will be killed.
1353860:FGAIManager::update: caught exception updating AI model 'American1772' which will be killed.
1367939:FGAIManager::update: caught exception updating AI model 'DELTA2148' which will be killed.
1368951:FGAIManager::update: caught exception updating AI model 'American533' which will be killed.
1379874:FGAIManager::update: caught exception updating AI model 'American2211' which will be killed.
1400590:FGAIManager::update: caught exception updating AI model 'Eagle-Flight3522' which will be killed.
1412183:FGAIManager::update: caught exception updating AI model 'UNITED6019' which will be killed.
1446610:FGAIManager::update: caught exception updating AI model 'American2059' which will be killed.
1449575:FGAIManager::update: caught exception updating AI model 'American1087' which will be killed.
1458687:FGAIManager::update: caught exception updating AI model 'UNITED6119' which will be killed.
1527515:FGAIManager::update: caught exception updating AI model 'American637' which will be killed.
1533969:FGAIManager::update: caught exception updating AI model 'UNITED6063' which will be killed.
1534905:FGAIManager::update: caught exception updating AI model 'American4168' which will be killed.
1544107:FGAIManager::update: caught exception updating AI model 'DELTA1080' which will be killed.
1544122:FGAIManager::update: caught exception updating AI model 'Eagle-Flight4469' which will be killed.
1544407:FGAIManager::update: caught exception updating AI model 'American2583' which will be killed.


the numbers at the beginning of each line are the line numbers for the lines in my log file...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: ErrorLog cxx:268 exception updating AI model

Postby gooneybird » Mon May 21, 2018 8:20 pm

That is usually a bad groundnet error. What airport was it at?
My Github repository (mostly AI stuff) https://github.com/gooneybird47
User avatar
gooneybird
 
Posts: 3046
Joined: Sat May 31, 2008 2:57 pm

Re: ErrorLog cxx:268 exception updating AI model

Postby BecOzIcan » Tue May 22, 2018 2:25 am

wkitty42 wrote in Sun May 20, 2018 7:11 pm:i can't help further because the updates in your GIT haven't been uploaded yet... my performancedb is back to showing 44 craft without performance data since i had to move mine out of the way to make way for yours... without the traffic files you have, my hands are tied...

Should now be resolved, Commit has been merged. Please advise of any remaining issue with PerfDB

wkitty42 wrote in Sun May 20, 2018 7:11 pm:yeah, to find the craft, fix the logging code...
Code: Select all
AIManager.cxx:268://            SG_LOG(SG_AI, SG_WARN, "caught exception updating AI model:" << base->_getName()<< ", which will be killed."
AIManager.cxx:269:            SG_LOG(SG_AI, SG_WARN, "FGAIManager::update: caught exception updating AI model '" << base->_getCallsign()<< "' which will be killed."

Thanks a lot for that. I have looked around but couldn't find any info on where the config for logging leaves. Which file are you adding the parameters to ?

Cheers
Ian
Current Projects: AI Traffic, Models & Liveries
User avatar
BecOzIcan
 
Posts: 1302
Joined: Tue Oct 04, 2011 11:43 pm
Location: Sydney, NSW, Australia
Version: 2020.4.0
OS: Win10

Re: ErrorLog cxx:268 exception updating AI model

Postby BecOzIcan » Tue May 22, 2018 2:32 am

wkitty42 wrote in Mon May 21, 2018 6:19 pm:actually, i have found some entries after leaving the sim to run overnight while sitting at KRDU...


Only had a quick look at it (at work, no access to my machines, just Web SourceForge).
All of the United issues are related to the Embraer Legacy aircraft, an AI model I am not familiar with but will look deeper into that tonight.

Cheers
Ian
Current Projects: AI Traffic, Models & Liveries
User avatar
BecOzIcan
 
Posts: 1302
Joined: Tue Oct 04, 2011 11:43 pm
Location: Sydney, NSW, Australia
Version: 2020.4.0
OS: Win10

Re: ErrorLog cxx:268 exception updating AI model

Postby wkitty42 » Tue May 22, 2018 4:03 am

BecOzIcan wrote in Tue May 22, 2018 2:25 am:
wkitty42 wrote in Sun May 20, 2018 7:11 pm:yeah, to find the craft, fix the logging code...
Code: Select all
AIManager.cxx:268://            SG_LOG(SG_AI, SG_WARN, "caught exception updating AI model:" << base->_getName()<< ", which will be killed."
AIManager.cxx:269:            SG_LOG(SG_AI, SG_WARN, "FGAIManager::update: caught exception updating AI model '" << base->_getCallsign()<< "' which will be killed."

Thanks a lot for that. I have looked around but couldn't find any info on where the config for logging leaves. Which file are you adding the parameters to ?

the filename is right there at the beginning of the quoted lines... you have to change the source code and compile a new FG binary... the first line is the existing one that i've commented out (//) and the second is a copy of that line that i've modified to add the actual code routine name and to (mainly) fix the bad "base->_getName()" call with the proper "base->_getCallsign()"... i'll try to request a patch to be applied to fix it but it won't be available until 2018.3 at the earliest...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: ErrorLog cxx:268 exception updating AI model

Postby wkitty42 » Tue May 22, 2018 4:14 am

BecOzIcan wrote in Tue May 22, 2018 2:25 am:
wkitty42 wrote in Sun May 20, 2018 7:11 pm:i can't help further because the updates in your GIT haven't been uploaded yet... my performancedb is back to showing 44 craft without performance data since i had to move mine out of the way to make way for yours... without the traffic files you have, my hands are tied...

Should now be resolved, Commit has been merged. Please advise of any remaining issue with PerfDB

i will do that but i will also say that if you had used the one i have available in the repo, there would be zero craft missing performance data... that's the whole reason i even did all the work i did as well as adding gooneybird's data...


in the mean time, here's some more bad AI flightplan stuffings...
Code: Select all
764367:FGAIManager::update: caught exception updating AI model 'Eagle-Flight4324' which will be killed.
769801:FGAIManager::update: caught exception updating AI model 'Eagle-Flight3466' which will be killed.
800918:FGAIManager::update: caught exception updating AI model 'American1599' which will be killed.
801849:FGAIManager::update: caught exception updating AI model 'American1337' which will be killed.
^C

2018 May 21  20:06:54 -0400
myuser@mymachine:~/myflightgear$ tail -F runfgfsdebug-console.log | egrep -hin -e "will be killed"
tail: ‘runfgfsdebug-console.log’ has become inaccessible: No such file or directory
tail: ‘runfgfsdebug-console.log’ has appeared;  following end of new file
1297143:FGAIManager::update: caught exception updating AI model 'UNITED3633' which will be killed.
1303529:FGAIManager::update: caught exception updating AI model 'American1269' which will be killed.
1311749:FGAIManager::update: caught exception updating AI model 'American2049' which will be killed.

this run has only been going for a few hours at this time...

and these are the last listing i have for craft missing performance data... yes, the first one is blank which i know i fixed in the traffic file and posted about... i'm not going to track the others much further since they were already fixed but the work was apparently not acceptable... all the discussion is in the other topic...
Code: Select all

175SR
717
Airbus_A310
An-140
An-148
An-24
An-26
BNI
Boeing_757-200
Boeing_767-300
c310
CitationBravo
CR1
CRJ7
CRJ9
D95
DH1
DH2
DH8
DHC-8
ERD
erj195
F172N
Mi-8
SU9
Sukhoi_SSJ95
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: ErrorLog cxx:268 exception updating AI model

Postby BecOzIcan » Tue May 22, 2018 10:29 am

wkitty42 wrote in Tue May 22, 2018 4:03 am:the filename is right there at the beginning of the quoted lines... you have to change the source code and compile a new FG binary... the first line is the existing one that i've commented out (//) and the second is a copy of that line that i've modified to add the actual code routine name and to (mainly) fix the bad "base->_getName()" call with the proper "base->_getCallsign()"... i'll try to request a patch to be applied to fix it but it won't be available until 2018.3 at the earliest...


Thanks for the explanation wkitty. I ll use your output for the killed aircraft investigation.

Cheers
Ian
Current Projects: AI Traffic, Models & Liveries
User avatar
BecOzIcan
 
Posts: 1302
Joined: Tue Oct 04, 2011 11:43 pm
Location: Sydney, NSW, Australia
Version: 2020.4.0
OS: Win10

Re: ErrorLog cxx:268 exception updating AI model

Postby BecOzIcan » Tue May 22, 2018 10:34 am

wkitty42 wrote in Tue May 22, 2018 4:14 am:these are the last listing i have for craft missing performance data... yes, the first one is blank which i know i fixed in the traffic file and posted about... i'm not going to track the others much further since they were already fixed but the work was apparently not acceptable... all the discussion is in the other topic...
Code: Select all
175SR
717
Airbus_A310
An-140
An-148
An-24
An-26
BNI
Boeing_757-200
Boeing_767-300
c310
CitationBravo
CR1
CRJ7
CRJ9
D95
DH1
DH2
DH8
DHC-8
ERD
erj195
F172N
Mi-8
SU9
Sukhoi_SSJ95


Corrections pushed to GIT. 175SR, F172N and D95 were (mis)used for single traffic file each so simply updated these (BEE, DAL and Wooning). I will also ask for deletion of Vostok Air file (VTK) as none of the flight data nor models are anywhere close to reality. Airbus_310 remains a mystery as I could not find it in any current traffic file but added it anyway.

Cheers
Ian
Current Projects: AI Traffic, Models & Liveries
User avatar
BecOzIcan
 
Posts: 1302
Joined: Tue Oct 04, 2011 11:43 pm
Location: Sydney, NSW, Australia
Version: 2020.4.0
OS: Win10

Re: ErrorLog cxx:268 exception updating AI model

Postby BecOzIcan » Tue May 22, 2018 11:48 am

gooneybird wrote in Mon May 21, 2018 8:20 pm:That is usually a bad groundnet error. What airport was it at?


EDITED

You may well be right. Issue is happening at LFPG, using my own groundnet. All of the aircrafts listed by wkitty -as generating the error- are from US carriers/traffic files so I removed DAL UAL and ALL from my machine but that didn't fix the issue.

I also put together a short test files with the aircrafts listed in the same output by wkitty and they show up nicely so doesn't look like an AI model issue to me.

Not a blocker at this point. Closing the topic
Cheeers
Ian
Current Projects: AI Traffic, Models & Liveries
User avatar
BecOzIcan
 
Posts: 1302
Joined: Tue Oct 04, 2011 11:43 pm
Location: Sydney, NSW, Australia
Version: 2020.4.0
OS: Win10

Re: ErrorLog cxx:268 exception updating AI model

Postby gooneybird » Tue May 22, 2018 2:46 pm

I agree, not model or traffic file issue.

Just done a quick check on most of the suspect flights and the only thing in common is that they all operate into airports with bad groundnets. The longer FG is running the more these errors will appear.

From a previous post a few years ago:

gooneybird wrote in Tue Oct 20, 2015 10:20 am:After a few hours of testing I have discovered the reason for the "caught exception updating AI model:, which will be killed etc" and it's not good news for AI lovers.

Any airport that has parking positions but no ground network will not display or allow outbound AI traffic with the exception of a few aircraft not allocated to a parking position.

Inbound AI aircraft will land and taxi to a parking position but when the next route is assigned to that aircraft it will trigger the "Gate doesn't seem to have routes associated with it." and "caught exception updating AI model" errors and be removed, it will disappear form the map a couple of minutes before it is removed on screen.

It seems that if you like to use AI traffic you are better off using full ground networks or none at all rather than just parking positions.
My Github repository (mostly AI stuff) https://github.com/gooneybird47
User avatar
gooneybird
 
Posts: 3046
Joined: Sat May 31, 2008 2:57 pm

Re: ErrorLog cxx:268 exception updating AI model

Postby bugman » Tue May 22, 2018 11:10 pm

How would you design the AI logic in this scenario?

Regards,
Edward
bugman
Moderator
 
Posts: 1808
Joined: Thu Mar 19, 2015 10:01 am
Version: next

Re: ErrorLog cxx:268 exception updating AI model

Postby wkitty42 » Wed May 23, 2018 12:00 am

BecOzIcan wrote in Tue May 22, 2018 10:34 am:Airbus_310 remains a mystery as I could not find it in any current traffic file but added it anyway.

might as well fix it properly with the IATA code...
Code: Select all
S/SBI.xml:513:    <actype>Airbus_A310</actype>

line 513 in the SBL.xml Traffic file...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: ErrorLog cxx:268 exception updating AI model

Postby BecOzIcan » Wed May 23, 2018 12:31 am

wkitty42 wrote in Wed May 23, 2018 12:00 am:
BecOzIcan wrote in Tue May 22, 2018 10:34 am:Airbus_310 remains a mystery as I could not find it in any current traffic file but added it anyway.

might as well fix it properly with the IATA code...
Code: Select all
S/SBI.xml:513:    <actype>Airbus_A310</actype>

line 513 in the SBL.xml Traffic file...

Awesome. Thanks for that. Will put on the list of future updates (S7 retired their A310)

Cheers
Ian
Current Projects: AI Traffic, Models & Liveries
User avatar
BecOzIcan
 
Posts: 1302
Joined: Tue Oct 04, 2011 11:43 pm
Location: Sydney, NSW, Australia
Version: 2020.4.0
OS: Win10

Next

Return to AI Traffic

Who is online

Users browsing this forum: No registered users and 5 guests