bugBattle for Wesnoth - Bugs: bug #19731, Spurious "Return value of AI...

Show feedback again

bug #19731: Spurious "Return value of AI ACTION was not checked" errors when quitting AI turns

Submitted by:  Ignacio R. Morelle <shadowmaster>
Submitted on:  Sat 12 May 2012 11:36:56 PM UTC  
Category: BugSeverity: 2 - Minor
Priority: 5 - NormalItem Group: Artificial Intelligence
Status: Ready For TestPrivacy: Public
Assigned to: Matthias Schoeck <mattsc>Open/Closed: Open
Release: 1.10.2+svn, 1.11.0-svnOperating System: Debian wheezy

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Sun 02 Oct 2016 02:58:15 AM UTC, comment #2:

These error messages have been converted to warnings and, at least for me, do not show up for the test case described any more. Can we consider this fixed?

First part of fix in commit 7185d6cc80.
Second part in commit aecf8ab7bc.

Matthias Schoeck <mattsc>
Project MemberIn charge of this item.
Sun 13 May 2012 07:40:50 AM UTC, comment #1:

I'll see if the code can be reworked to avoid those warnings in case we quit while discarding the game state.

Iurii Chernyi <crab>
Project Member
Sat 12 May 2012 11:36:56 PM UTC, original submission:

When the player quits the current AI turn in the middle of an AI recruitment action (either by using Ctrl+Q to go back to the titlescreen, or loading from a saved game), the game will emit a spurious error message in stderr every time this happens:

To reproduce, make sure the Accelerated speed and Skip AI moves options are disabled in Preferences, and start the first scenario of Heir to the Throne. End your turn, and just as a newly recruited AI unit is being animated fading into view, press Ctrl+Q or go to the main Menu -> Quit option to leave the game; the error will appear on stderr.

This problem occurs on 1.10.x and trunk at the time of this writing. I had been noticing it for a very long while already during 1.9.x but I never figured this connection with user interface actions until now.

Ignacio R. Morelle <shadowmaster>
Project Administrator


(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by mattsc (Posted a comment)
  • -unavailable- added by crab (Posted a comment)
  • -unavailable- added by shadowmaster (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Error: not logged in



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 02 Oct 2016 02:58:15 AM UTCmattscStatusNone=>Ready For Test
      Assigned tocrab=>mattsc
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup