bugBattle for Wesnoth - Bugs: bug #21252, "Mandatory WML child missing...

 
 
Show feedback again

bug #21252: "Mandatory WML child missing yet untested for. Please report." error

Submitted by:  Gregory Gauthier <rjaguar3>
Submitted on:  Tue 05 Nov 2013 01:32:41 AM UTC  
 
Category: BugSeverity: 4 - Important
Priority: 5 - NormalItem Group: WML
Status: FixedPrivacy: Public
Assigned to: B. Lipka <lipk>Open/Closed: Closed
Release: 1.11.6+dev (aeabe9b-Clean)Operating System: Linux Mint 14

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Tue 05 Nov 2013 09:01:24 AM UTC, comment #2:

Fixed by c87525b8584a, but apparently the "Fixes bug" thing works only on the summary line :/

Thanks for the report and the diagnosis.

B. Lipka <lipk>
Project MemberIn charge of this item.
Tue 05 Nov 2013 02:17:50 AM UTC, comment #1:

To make this a more useful report (a step-by-step process):

The error "Mandatory WML child missing yet untested for. Please report." occurs after clicking (from the main menu) "Multiplayer" -> "Local Game" -> "OK", then waiting for the loading bar to get most of the way across.

Some technical diagnosis:

I presume this is triggered when someone has no modifications: At some point mp::create::process_event() decides it needs to update_mod_button_label, which inspires it to query mp::depcheck::manager::is_modification_active(-1). That function then thinks it would be really cool to grab a "modification" child of a config without checking to see if such a child exists. Thus when trying to access the ["id"] attribute of said nonexistent child, we get the error.

Not sure if there should be a check for index being negative (something config::child() accepts), or if the obtained child should be checked for being valid before checking its id. Or maybe something else. Deferring to someone who knows multiplayer modifications.

J Tyne <jamit>
Project Member
Tue 05 Nov 2013 01:32:41 AM UTC, original submission:

I get the error "Mandatory WML child missing yet untested for. Please report." when starting a local game.

Gregory Gauthier <rjaguar3>

 

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

Attach File(s):
   
   
Comment:
   

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 shadowmaster (Updated the item)
  • -unavailable- added by lipk (Posted a comment)
  • -unavailable- added by jamit (Posted a comment)
  • -unavailable- added by rjaguar3 (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.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 17 Nov 2013 06:27:16 PM UTCshadowmasterOpen/ClosedOpen=>Closed
    Tue 05 Nov 2013 09:01:24 AM UTClipkStatusConfirmed=>Fixed
    Tue 05 Nov 2013 02:19:49 AM UTCjamitStatusNeed Info=>Confirmed
    Tue 05 Nov 2013 02:17:50 AM UTCjamitStatusNone=>Need Info
      Assigned toNone=>lipk
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup