Jose Almeida Posted January 1, 2017 Report Posted January 1, 2017 It happened while testing XP11 demo at KSEA, then Itried XP10 and I had a similar crash. I attach both log files and Metars. José Log.txt MAXX_METAR.rwx METAR.rwx Log.txt Quote
Kai Uwe Pel Posted January 1, 2017 Report Posted January 1, 2017 Same happened to me 20 Minutes ago for the first time... Cheers, Kai Quote
PeterR Posted January 1, 2017 Report Posted January 1, 2017 Mine just crashed a few minutes ago - X-Plane 10, SMP 4.0.1, RWC 1.1, X-Plane built-in weather. I wasn't looking in the sim, but when I was few minutes back everything was OK. Peter Log.txt METAR.rwx Quote
xplana Posted January 1, 2017 Report Posted January 1, 2017 same here, XP10, SMP4.01, RWC 1.1 absolutly crashing (CTD) every attempt to start XP10 (same with XP11beta3 as well) Log.txt METAR.rwx Quote
Robson Posted January 1, 2017 Report Posted January 1, 2017 I have a crach on X-plane 10 white SMP 4.0.1 Quote
sundog Posted January 1, 2017 Report Posted January 1, 2017 It seems there was one hour of METAR data from NOAA that contained some sort of invalid data. It seems to have cleared up on its own, so if you fly again things should be OK now. I'm looking into why that hour's data caused a crash. Quote
sundog Posted January 1, 2017 Report Posted January 1, 2017 To follow up, the culprit was whoever's reporting the weather at MMMT (in Veracruz, Mexico): MMMT 011510Z 00000KT 5SM VCFG FEW020 22/19 A2986 RMK 8/100 FG LYR SFC The code we use from NOAA to parse METAR data can't handle the case of SFC being the last thing in the METAR report. It doesn't make sense; SFC should be followed by VIS and a visibility distance (SFC VIS indicates surface visibility) I've coded up a fix so RWC will just ignore this case instead of crashing for our next release, in case it happens again. Quote
Kai Uwe Pel Posted January 1, 2017 Report Posted January 1, 2017 Confirmed! Its working again now. Before it crashed (XP10), when I arrived around 6NM at VHHH. Quote
Jose Almeida Posted January 1, 2017 Author Report Posted January 1, 2017 Frank, Instead of coding for every possible metar inconsistency couldn't just code something like "I can't figure this out, let's ignore these guys" Quote
PeterR Posted January 1, 2017 Report Posted January 1, 2017 Thank you Frank for quickly looking into it. I was enjoying my first flight with new version (SMP V4) and someone in Mexico has forced me to enjoy it again :-). 1 Quote
sundog Posted January 1, 2017 Report Posted January 1, 2017 2 hours ago, Jose Almeida said: Frank, Instead of coding for every possible metar inconsistency couldn't just code something like "I can't figure this out, let's ignore these guys" Afraid it doesn't work that way! Fundamentally they are bugs in NOAA's METAR parsing library that I'm fixing. Quote
Jose Almeida Posted January 1, 2017 Author Report Posted January 1, 2017 (edited) I understand that, Frank, but anything is better than a crash; wouldn't it be possible to have a global "On Error DO" that somehow avoided the crash, even if it meant switching to default clouds? Edited January 1, 2017 by Jose Almeida Quote
Cameron Posted January 1, 2017 Report Posted January 1, 2017 I understand that, Frank, but anything is better than a crash; wouldn't it be possible to have a global "On Error DO" that somehow avoided the crash, even if it meant switching to default clouds? No. Frank was quite clear as to why but I think your limited knowledge of programming is not allowing you to understand why his explanation actually makes sense as to why your request cannot be done. Quote
sundog Posted January 2, 2017 Report Posted January 2, 2017 Some languages do have the concept of exceptions that the application can "catch," but this METAR code is written in C where that's not an option. Quote
Ben Russell Posted January 2, 2017 Report Posted January 2, 2017 ...and we're inside X-Plane sharing what little options there are with everything else. Quote
Jose Almeida Posted January 2, 2017 Author Report Posted January 2, 2017 1 hour ago, sundog said: Some languages do have the concept of exceptions that the application can "catch," but this METAR code is written in C where that's not an option. In my mother tongue there's a saying that can be losely translated by "Trying to teach Our Father to the priest"; I guess that's what I was trying to do. I've done a little programming, never in C and mostly in interpreted languages. Quote
Jose Almeida Posted February 28, 2017 Author Report Posted February 28, 2017 (edited) Hi Frank, It's very frustrating but from time to time I keep having those crashes with metar parsing; I get so mad at times that I just want to ditch SMP. I never do, thoguh. José Log.txt METAR.rwx Edited February 28, 2017 by Jose Almeida Included attachments Quote
sundog Posted February 28, 2017 Report Posted February 28, 2017 The METAR.rwx file you provided doesn't look like a standard one. Are you using some third-party weather addon? I couldn't find an indication of one in your log, but that METAR came from someplace. If you're using NOAA, perhaps it's not the latest version or it's not installed properly. However, I was able to load that METAR.rwx in SMP/RWC just fine, so the problem's not the METAR file itself (assuming you're using SMP 4.0.1). As far as I know, you're the only person experiencing this sort of thing. Re-installing X-Plane from a clean installation might be a good idea, to rule out some unique quirk of how your many add-ons are installed. Quote
Jose Almeida Posted February 28, 2017 Author Report Posted February 28, 2017 Frank, Are you proposing that I make a clean install, without add-ons and fly for 1 or 2 months to check if it happens again? After that what? 2 more m,onths for each individual add-on? José Quote
sundog Posted March 1, 2017 Report Posted March 1, 2017 Even a clean install with clean installations of the add-ons you care about the most would be worth trying. It may just be some out of date software or something improperly installed. Quote
Jose Almeida Posted March 1, 2017 Author Report Posted March 1, 2017 Frank, I don't think I should post anymore on this subject; we are getting nowhere and I'm not sure I will always be able to control my words. I respect you very much and I would hate it to get to that point. Best regards, José Quote
Jose Almeida Posted March 1, 2017 Author Report Posted March 1, 2017 Frank, It was going to be the last post but then I decided to perform anothe experiment and I want to tell you about it. I analyzed the NOAA plugin scripts and found the lines that update the METAR.rwx file, so I disabled those lines. Apparently the plugin does not use them and seems to run fine, as a result I hav no METAR.rwx, only MAXMETAR.rwx. So far so good, José Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.