Board index FlightGear Multiplayer events Air traffic control

error msg "/sim/terrasync/ai-data-update-now"

ATC systems, events and procedures.

error msg "/sim/terrasync/ai-data-update-now"

Postby rleibner » Fri Apr 26, 2019 6:00 pm

Hi,
I lost all the AI flights. Blame on me, cause I've modified some $FG-ROOT/AI/TRAFFIC/x/xxx.xml files :oops:
My FGFS.log reads lines as:
Code: Select all
...
[ALRT]:general    /build/simgear-zxf0L9/simgear-2019.2.0~5180+git114ddcff/simgear/structure/subsystem_mgr.cxx:818:caught exception processing subsystem:traffic-manager
message:Unknown property:/sim/terrasync/ai-data-update-now
...


Any idea to fix that?
Rodolfo
*************************
Non-shared knowledge is lost knowledge
User avatar
rleibner
 
Posts: 259
Joined: Fri May 19, 2017 7:17 pm
Location: Uruguay - SUMU
Callsign: CX-BEX
Version: next
OS: Ubuntu 18.04.4

Re: error msg "/sim/terrasync/ai-data-update-now"

Postby wkitty42 » Fri Apr 26, 2019 11:39 pm

more information is needed...
what version of FG are you running?
are those the only changes you made?

also, is this generic to FG or something to do with specific ATC software? i just noticed where you posted this...
"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: 6489
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: error msg "/sim/terrasync/ai-data-update-now"

Postby rleibner » Sat Apr 27, 2019 4:04 pm

I'm running FGFS 1219.2.0 ("next").
This failure is general, nothing to do with SpokenATC.
FWIW, I grep "ai-data-update-now" (into my personal folder and also into $FG_ROOT): The string appears only in fgfs.log and fgfs_0.log.

When the failure appeared I was working on 2 projects involving AI Traffic:
1.-
rleibner wrote in Thu Dec 27, 2018 9:34 pm:Following the suggestion made by RobAndrew, I'm debugging a new version that includes AI-Traffic/ATC voices.
...
The general idea is not only to hear the AI-Traffic comms, but also to refine the instruction that ATC gives to you, depending on the Traffic (if rwy is bussy, etc...).

2.-
rleibner wrote in Thu Jan 03, 2019 6:29 pm:I am developing a python tool to generate a ICAO.groundnet.xml from the earth.wed.xml
...


And all seemed to by OK, until the moment when ... puff !
Rodolfo
*************************
Non-shared knowledge is lost knowledge
User avatar
rleibner
 
Posts: 259
Joined: Fri May 19, 2017 7:17 pm
Location: Uruguay - SUMU
Callsign: CX-BEX
Version: next
OS: Ubuntu 18.04.4

Re: error msg "/sim/terrasync/ai-data-update-now"

Postby wkitty42 » Sat Apr 27, 2019 5:50 pm

i don't know how you missed it ;)

Code: Select all
~/flightgear-dev/fgdata-ng$ grep -inR -e "ai-data-update-now" *
gui/dialogs/terrasync.xml:198:          <property>/sim/terrasync/ai-data-update-now</property>

~/flightgear-dev/next/flightgear$ grep -inR -e "ai-data-update-now" *
src/Traffic/TrafficMgr.cxx:432:  aiDataUpdateNow("/sim/terrasync/ai-data-update-now")


FWIW: the above came from
Code: Select all
********** 2019-04-24 12:47:10 -0400 **********
********** Total elapsed update and compile time is 0 days 0 hours 5 minutes 9 seconds **********

PLib:    a542b8a03f8de1fe844af6ab4734b64d11e272e9
OSG 3.4: 1f89e6eb1087add6cd9c743ab07a5bce53b2f480
Simgear: 3a79b71e80242c23c51a1e97c7cb966ee4eb0397
FGFS:    b2bedfd485fcafb8c6d9cfc2a9e04c07f3d78d8c
FGData:  6d58c143c00d98ff142959047b1a64fcc22c51a2
FGAddon: r3897 | lbrenta | 2019-04-23 21:06:19 -0400 (Tue, 23 Apr 2019)


but i'm pulling and building the latest now...

[time passes]

i find no changes to the above... the code and lines are still the same as they were before i updated just now...

Code: Select all
********** 2019-04-27 14:00:38 -0400 **********
********** Total elapsed update and compile time is 0 days 0 hours 9 minutes 57 seconds **********

PLib:    a542b8a03f8de1fe844af6ab4734b64d11e272e9
OSG 3.4: 1f89e6eb1087add6cd9c743ab07a5bce53b2f480
Simgear: dd38e399ca2a6d60e5b6280b5f0f3ac4a2ab7238
FGFS:    bac5d6c713ff061e74873ac969840f04a03cc485
FGData:  6d58c143c00d98ff142959047b1a64fcc22c51a2
FGAddon: r3908 | rleibner | 2019-04-27 13:27:20 -0400 (Sat, 27 Apr 2019)
"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: 6489
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: error msg "/sim/terrasync/ai-data-update-now"

Postby rleibner » Sat Apr 27, 2019 6:10 pm

Weird ... my gui/dialogs/terrasync.xml has 3 "ai-data-enabled" but no "ai-data-update-now" at all !! :shock:
FWIW, my FGFS was installed via the saiarcot885's ppa.
Rodolfo
*************************
Non-shared knowledge is lost knowledge
User avatar
rleibner
 
Posts: 259
Joined: Fri May 19, 2017 7:17 pm
Location: Uruguay - SUMU
Callsign: CX-BEX
Version: next
OS: Ubuntu 18.04.4

Re: error msg "/sim/terrasync/ai-data-update-now"

Postby wkitty42 » Sat Apr 27, 2019 6:22 pm

that is weird... sounds like your fgdata is out of date or somehow modified/reverted to an old version...

[time passes]

ahhh! that's new code... here's the commit and the diff...

Code: Select all
~/flightgear-dev/fgdata-ng$ git log -S "/sim/terrasync/ai-data-update-now" --source --all
commit c44d39ec289aa41eca98b904430e72886dec86b2 refs/heads/next
Author: Richard Harrison <rjh@zaretto.com>
Date:   Mon Apr 8 14:16:34 2019 +0200

    Scenery Download (Terrasync) dialog
   
    Consolidate the two nasal sections into one (only one nasal section would be used).
   
    Make controls work properly and accurately reflect status.
   
    Remove OK and Apply as enable/disable takes effect immediately.
   
    Comment out unsupported "Download other data files" checkbox.
   
    Revised logic of AI Traffic to reflect status; added button to force update (normally AI Traffic update is only performed during startup)

diff --git a/gui/dialogs/terrasync.xml b/gui/dialogs/terrasync.xml
index 18425b9..2267e43 100644
--- a/gui/dialogs/terrasync.xml
+++ b/gui/dialogs/terrasync.xml
@@ -5,47 +5,63 @@
     
   <nasal>
       <open>
-         
-          var computeStatusText = func {
-              # first, check if the system is actually enabled
-              if (!getprop('/sim/terrasync/enabled'))
-                  return "Downloading disabled";
-           
-              # only happens if terrasync failed to activate, so
-             # indicates a problem
-              if (!getprop('/sim/terrasync/active'))
-                  return "unable to start downloading";
-                 
-              var errCount = getprop('/sim/terrasync/error-count');
-              if (errCount > 0)
-                  return "errors occurred during download";
-                 
-              # we need to suggest some remedial action here!
-              if (getprop('/sim/terrasync/stalled'))
-                  return "Downloading has stalled. Check yuor network connection and settings";
-                 
-              if (getprop('/sim/terrasync/busy')) {
-                  var kbytesSec = getprop('/sim/terrasync/transfer-rate-bytes-sec') / 1024;
-                  return sprintf('Downloading: %dKB/sec', int(kbytesSec));
-              }
-                 
-              # we are enabled but not busy, so idle
-              return "Idle";
-          }
-         
-          # timer function, update summary status string
-          var updateStatusText = func {
-         
-              var s = computeStatusText();
-              setprop("/sim/gui/dialogs/terrasync/status", s);
-          }
-         
-          # the TerraSync properties of interest are tied, so we can't use a
-          # listener. Let's poll while the dialog is open; not ideal but not
-          # a major problem.
-          var statusTimer = maketimer(0.4, updateStatusText);     
-          statusTimer.start();     
-          updateStatusText();
+          <![CDATA[
+
+var computeStatusText = func {
+# first, check if the system is actually enabled
+    if (!getprop('/sim/terrasync/enabled'))
+        return "Downloading disabled";
+
+# only happens if terrasync failed to activate, so
+# indicates a problem
+    if (!getprop('/sim/terrasync/active'))
+        return "Automatic download inactive";
+
+    var errCount = getprop('/sim/terrasync/error-count');
+    if (errCount > 0)
+        return "Errors occurred during download";
+
+# we need to suggest some remedial action here!
+    if (getprop('/sim/terrasync/stalled'))
+        return "Downloading has stalled. Check your network connection and settings";
+
+    if (getprop('/sim/terrasync/busy')) {
+        var kbytesSec = getprop('/sim/terrasync/transfer-rate-bytes-sec') / 1024;
+        return sprintf('Downloading: %dKB/sec', int(kbytesSec));
+    }
+
+# we are enabled but not busy, so idle
+    return "Ready";
+}
+
+# timer function, update summary status string
+var updateStatusText = func {
+    var s = computeStatusText();
+    setprop("/sim/gui/dialogs/terrasync/status", s);
+
+    var msg = "";
+    if (getprop("/sim/terrasync/available")) {
+        if (getprop("/sim/terrasync/enabled"))
+            msg = "Automatic download active; monitor your bandwidth on metered connection.";
+    } else {
+        if (getprop("/sim/terrasync/intialized"))
+            msg = "Automatic download not active.";
+        else
+            msg = "Automatic download not supported.";
+    }
+    setprop("/sim/terrasync/ui-message-node", msg);
+}
+
+# the TerraSync properties of interest are tied, so we can't use a
+# listener. Let's poll while the dialog is open; not ideal but not
+# a major problem.
+var statusTimer = maketimer(0.4, updateStatusText);     
+statusTimer.start();     
+updateStatusText();
+
+setprop("/sim/gui/dialogs/terrasync/display-mode", "0");
+
+    ]]>
       </open>
       
       <close>
@@ -64,7 +80,7 @@
     <empty><stretch>1</stretch></empty>
 
     <text>
-      <label>Automatic Download of Scenery and Data</label>
+      <label>Automatic Download of Scenery and Data (TerraSync)</label>
     </text>
 
     <empty><stretch>1</stretch></empty>
@@ -90,8 +106,9 @@
       <green>0.4</green>
       <blue>0.4</blue>
     </color>
-    <halign>center</halign>
-    <label></label>
+    <halign>left</halign>
+            <property>/sim/terrasync/ui-message-node</property>
+            <live>true</live>
   </text>
 
   <group>
@@ -117,7 +134,7 @@
         <col>1</col>
         <colspan>3</colspan>
         <property>/sim/terrasync/enabled</property>
-        <label>Enable automatic download/update</label>
+        <label>Enable automatic scenery download</label>
         <live>true</live>
         <binding>
           <command>dialog-apply</command>
@@ -148,18 +165,42 @@
         <colspan>2</colspan>
 -->
         <property>/sim/terrasync/ai-data-enabled</property>
-        <label>Download traffic and multi-player aircraft</label>
+        <label>Update AI Traffic during FG start</label>
         <live>true</live>
         <binding>
           <command>dialog-apply</command>
           <object-name>ai-data-enabled</object-name>
         </binding>
         <enable>
-          <property>/sim/terrasync/enabled</property>
+            <property>/sim/terrasync/enabled</property>
+            <property>/sim/traffic-manager/enabled</property>
         </enable>
       </checkbox>
 
-      <checkbox>
+      <button>
+        <row>1</row>
+        <col>3</col>
+        <legend>Update Now</legend>
+        <border>2</border>
+        <equal>true</equal>
+        <enable>
+            <property>/sim/terrasync/enabled</property>
+            <property>/sim/traffic-manager/enabled</property>
+            <property>/sim/terrasync/ai-data-enabled</property>
+        </enable>
+        <binding>
+          <command>property-assign</command>
+          <property>/sim/terrasync/ai-data-enabled</property>
+          <value>1</value>
+        </binding>
+        <binding>
+          <command>property-assign</command>
+          <property>/sim/terrasync/ai-data-update-now</property>
+          <value>1</value>
+        </binding>
+      </button>
+
+<!--      <checkbox>
         <name>other-data-enabled</name>
         <halign>left</halign>
         <row>2</row>
@@ -176,7 +217,7 @@
           <property>/sim/terrasync/enabled</property>
         </enable>
       </checkbox>
-
+-->
       <text>
         <name>warning_text</name>
         <row>3</row>
@@ -403,36 +444,7 @@
       <empty><stretch>true</stretch></empty>
 
       <button>
-        <legend>OK</legend>
-        <border>2</border>
-        <equal>true</equal>
-        <binding>
-          <command>dialog-apply</command>
-        </binding>
-        <binding>
-          <command>reinit</command>
-          <subsystem>terrasync</subsystem>
-        </binding>
-        <binding>
-          <command>dialog-close</command>
-        </binding>
-      </button>
-
-      <button>
-        <legend>  Apply  </legend>
-        <equal>true</equal>
-        <border>2</border>
-        <binding>
-          <command>dialog-apply</command>
-        </binding>
-        <binding>
-          <command>reinit</command>
-          <subsystem>terrasync</subsystem>
-        </binding>
-      </button>
-
-      <button>
-        <legend>Cancel</legend>
+        <legend>Close</legend>
         <border>2</border>
         <equal>true</equal>
         <key>Esc</key>
@@ -443,52 +455,6 @@
       <empty><stretch>true</stretch></empty>
     </group>
 
-    <visible>
-      <property>/sim/terrasync/built-in-svn-available</property>
-    </visible>
-
   </group>
 
-  <nasal>
-    <open><![CDATA[
-   
-      setprop("/sim/gui/dialogs/terrasync/display-mode", "0");
-   
-      var msg = "";
-      if (getprop("/sim/terrasync/built-in-svn-available"))
-      {
-          msg = "Monitor your bandwidth or use a flat-rate when using automatic download.";
-      }
-      else
-      {
-          msg = "Sorry, this binary was built without support to download scenery.";
-          setprop("/sim/terrasync/enabled", 0);
-      }
-      var msgLabel = gui.findElementByName(cmdarg(),"message");
-      msgLabel.getNode("label",1).setValue(msg);
-
-      var fg_scenery = props.globals.getNode("sim").getChildren("fg-scenery");
-      var fg_data = props.globals.getNode("sim").getChild("fg-root").getValue();
-      var combo = gui.findElementByName(cmdarg(),"scenery-dir");
-      var valid = 0;
-
-      for (var i = 0; i < size(fg_scenery); i = i + 1) {
-        var s = fg_scenery[i].getValue();
-        if ((s != fg_data ~ "/Scenery") and (s != fg_data ~ "\\Scenery")) {
-          # Do not allow Terrasync to run in the default directory.
-          combo.getNode("value[" ~ i ~ "]", 1).setValue(fg_scenery[i].getValue());
-          valid = 1;
-        }
-      }
-
-      # Add error text if the user only has fg-data/Scenery available and disable controls.
-      if (!valid) {
-        var warning = cmdarg().getChildren("group")[1].getChildren("text")[1];
-        var txt = "You must configure a separate FG_SCENERY directory for automatic scenery download";
-        warning.getNode("label").setValue(txt);
-      }
-    ]]></open>
-
-  </nasal>
-
 </PropertyList>
"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: 6489
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: error msg "/sim/terrasync/ai-data-update-now"

Postby rleibner » Sat Apr 27, 2019 8:20 pm

So, Should I update my terrasync.xml from SF ?
or force a FGFS reinstalation?
Rodolfo
*************************
Non-shared knowledge is lost knowledge
User avatar
rleibner
 
Posts: 259
Joined: Fri May 19, 2017 7:17 pm
Location: Uruguay - SUMU
Callsign: CX-BEX
Version: next
OS: Ubuntu 18.04.4

Re: error msg "/sim/terrasync/ai-data-update-now"

Postby wkitty42 » Sun Apr 28, 2019 5:17 pm

i'd check to see when saiarcot885's PPA is updated... the date of the above commit is 2019 Apr 8... if the PPA is updated after then, it should have everything needed and an update should be all that's needed... assuming that the PPA has also updated its fgdata...
"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: 6489
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: error msg "/sim/terrasync/ai-data-update-now"

Postby Richard » Sun Apr 28, 2019 9:59 pm

rleibner wrote in Fri Apr 26, 2019 6:00 pm:Hi,
I lost all the AI flights. Blame on me, cause I've modified some $FG-ROOT/AI/TRAFFIC/x/xxx.xml files :oops:
My FGFS.log reads lines as:
Code: Select all
...
[ALRT]:general    /build/simgear-zxf0L9/simgear-2019.2.0~5180+git114ddcff/simgear/structure/subsystem_mgr.cxx:818:caught exception processing subsystem:traffic-manager
message:Unknown property:/sim/terrasync/ai-data-update-now
...


Any idea to fix that?


I've just pushed a fix to fgdata that declares these; sorry I forgot to do this earlier.
Richard
 
Posts: 774
Joined: Sun Nov 02, 2014 10:17 pm
Version: Git
OS: Win10

Re: error msg "/sim/terrasync/ai-data-update-now"

Postby wkitty42 » Sun Apr 28, 2019 11:48 pm

that's interesting, richard... i had thought everything was already in place... thanks for the fix!
"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: 6489
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5


Return to Air traffic control

Who is online

Users browsing this forum: No registered users and 1 guest