AI error

Problems and solutions for installing or running FreeOrion, including discussion of bugs if needed before posting a bug report on GitHub. For problems building from source, post in Compile.

Moderator: Oberlus

Post Reply
Message
Author
BTA
Space Floater
Posts: 16
Joined: Mon Jan 01, 2018 6:30 pm

AI error

#1 Post by BTA »

Code: Select all

[18 Feb 20:27:17] AI_1: AI_Error: AI script error : _freeorion_tools.py:assertion_fails():373  - Assertion failed: Can't split last ship from fleet. Traceback (most recent call last):   File "/snap/freeorion/160/share/freeorion/default/python/AI/FreeOrionAI.py", line 70, in _error_handler
    res = func(*args, **kwargs)
  File "/snap/freeorion/160/share/freeorion/default/python/common/listeners.py", line 42, in wrapper
    res = funct(*args)
  File "/snap/freeorion/160/share/freeorion/default/python/AI/FreeOrionAI.py", line 348, in generateOrders
    action()
  File "/snap/freeorion/160/share/freeorion/default/python/AI/FleetUtilsAI.py", line 594, in issue_fleet_orders_for_fleet_missions
    mission.issue_fleet_orders()
  File "/snap/freeorion/160/share/freeorion/default/python/AI/AIFleetMission.py", line 546, in issue_fleet_orders
    new_fleet_id = FleetUtilsAI.split_ship_from_fleet(fleet_id, ship_id)
  File "/snap/freeorion/160/share/freeorion/default/python/AI/FleetUtilsAI.py", line 237, in split_ship_from_fleet
    if assertion_fails(fleet.numShips > 1, "Can't split last ship from fleet"):

[18 Feb 20:27:17] AI_1: AI_Error: AI script error : _freeorion_tools.py:assertion_fails():373  - Assertion failed! Traceback (most recent call last):   File "/snap/freeorion/160/share/freeorion/default/python/AI/FreeOrionAI.py", line 70, in _error_handler
    res = func(*args, **kwargs)
  File "/snap/freeorion/160/share/freeorion/default/python/common/listeners.py", line 42, in wrapper
    res = funct(*args)
  File "/snap/freeorion/160/share/freeorion/default/python/AI/FreeOrionAI.py", line 348, in generateOrders
    action()
  File "/snap/freeorion/160/share/freeorion/default/python/AI/FleetUtilsAI.py", line 594, in issue_fleet_orders_for_fleet_missions
    mission.issue_fleet_orders()
  File "/snap/freeorion/160/share/freeorion/default/python/AI/AIFleetMission.py", line 547, in issue_fleet_orders
    if assertion_fails(new_fleet_id and new_fleet_id != INVALID_ID):
I'm going to save, exit, rolad or start over
Wisdom is even more powerful than knowledge © Ari Gold

BTA
Space Floater
Posts: 16
Joined: Mon Jan 01, 2018 6:30 pm

Re: AI error

#2 Post by BTA »

I am playing v0.4.10+ weekly-test-builds (build 2021-02-01.996d1e6) CMake on Fedora 33 on a UX430U Zenbook
Wisdom is even more powerful than knowledge © Ari Gold

BTA
Space Floater
Posts: 16
Joined: Mon Jan 01, 2018 6:30 pm

Re: AI error

#3 Post by BTA »

oh well, reboot did not fix. restart & pray harder
Wisdom is even more powerful than knowledge © Ari Gold

Ophiuchus
Programmer
Posts: 3433
Joined: Tue Sep 30, 2014 10:01 am
Location: Wall IV

Re: AI error

#4 Post by Ophiuchus »

BTA wrote: Fri Feb 19, 2021 2:39 am I am playing v0.4.10+ weekly-test-builds (build 2021-02-01.996d1e6) CMake on Fedora 33 on a UX430U Zenbook
Are you sure? That error messages come from a snap.
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.

Look, ma... four combat bouts!

User avatar
LienRag
Cosmic Dragon
Posts: 2146
Joined: Fri May 17, 2019 5:03 pm

Re: AI error

#5 Post by LienRag »

Ophiuchus wrote: Fri Feb 19, 2021 7:29 am
BTA wrote: Fri Feb 19, 2021 2:39 am I am playing v0.4.10+ weekly-test-builds (build 2021-02-01.996d1e6) CMake on Fedora 33 on a UX430U Zenbook
Are you sure? That error messages come from a snap.
That version message is what latest Snap channel gives.

Ophiuchus
Programmer
Posts: 3433
Joined: Tue Sep 30, 2014 10:01 am
Location: Wall IV

Re: AI error

#6 Post by Ophiuchus »

The AI tries to split a fleet when it shouldnt (empty fleet or fleet with a single ship).
I think this should not be problem for your game but it might indicate an error in the logic which releases a part of the fleet. (AIFleetMission.py#542 - if ship_rating > allowance:)
BTA wrote: Fri Feb 19, 2021 2:39 am I am playing v0.4.10+ weekly-test-builds (build 2021-02-01.996d1e6) CMake on Fedora 33 on a UX430U Zenbook
Ok, so you are playing using the snap and not a building by yourself with CMake, right.

Please provide the complete AI log and if possible a save game. AI log level should be on debug.
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.

Look, ma... four combat bouts!

Post Reply