Jump to content
The simFlight Network Forums

Recommended Posts

Posted

HI,

I am getting this error when MSFS 2020 exits.  I am running Lua files which access HVARs and LVARs on the A32NX by FlyByWire.

I have attached the associated log file.

Thanks,

Peter

 

2021-06-16 16_48_18-FSUIPC7.exe - Application Error.png

 

Posted
  On 6/16/2021 at 6:53 AM, zap737 said:

I am getting this error when MSFS 2020 exits

Expand  

Could you show me your FSUIPC7.ini and your 4 lua files (FCU_Speed/Hdg/Alt/VS.lua) and I'll see if I can repeat here. If I can't reproduce, we can try adding extra logging to track down where this is occurring. Its nothing to worry about though, as FSUIPC7 will be exiting anyway.

Does it occur every time? Are you using the stable od dev version of the FBW A32NX?

Posted

You are not starting your luas from the [Auto] section - are you starting them from your ipcReady.lua file?
If so, can you please also show me that file as well.
Its probably better to start them from an[Auto] section, but it still should not give that error - although I don't know if this is related at the moment.

Also, can you try with the FBW stable (and maybe development) version, to see if that makes a difference.

Thanks.

Posted
  On 6/16/2021 at 10:01 AM, zap737 said:

Yes it does happen every time on exit but the Lua files work fine.

Expand  

Exiting from in a flight or from the MSFS main menu?
I have tested using your scripts with the FBW dev and stable and still cannot reproduce.

Are you updating lvars from the WASM (the default) or from the client? I'm updating from the client at the moment - I'll switch to using the internal WASM update mechanism (the default) to see if the issue lies there....

Posted
  On 6/16/2021 at 11:34 AM, John Dowson said:

I'll switch to using the internal WASM update mechanism (the default) to see if the issue lies there....

Expand  

No, still can't reproduce this error....
Could you activate logging for Extras on FSUIPC, and also activate Debug logging in the WAPI by adding this line to the [WAPI] section of your FSUIPC7.ini file:
    LogLevel=Debug

Could you also have the logging console open when you close down (Log -> Open Console), and let me know what the last message logged is when that error appears.
Send me the log and let me know when the error occured.

Once thats done, you couldalso try switching to updating lvars from the client (if not doing that already), by adding this line to the [WAPI] section of your FSUIPC7.ini file:
    LvarUpdateFrequency=6
(that is for 6 updates per second). You should also disable updates from the WASM by setting the following in your FSUIPC_WASM.ini - either in your Packages folder, if you have an FSUIPC_WASM.ini file there, or under the fsuipc-lvar-wasm folder (in your MSFS Community folder) if not):
    LvarUpdateFrequency=Off

This is just to help me track down where the issue lies. It could be a timing problem with SimConnect when closing down (and probably in the WAPI code). Thanks.
 

 

Posted

Hi John,

I changed the start of the lua files to [Auto] in the ini file.

Some interim findings.

For both the Dev and Stable versions of the A32NX, when I exit to the main menu then exit to desktop there is no error message.

However, when I exit a flight using Alt-F4 without going back to the main menu, then I get the error.

I am not au fait with the client side of things but I will attempt to do what you asked.

Also, when I install FSUIPC and ensure a tick is placed in the "Start with MSFS" box, I find that FSUIPC does not start with MSFS.  I have checked the Exe.xml (attached) and all seems ok there.  The only way I can get it to automatically start with MSFS is to edit out the comments in the bat file.

Any ideas on this one ?

EXE.xmlFetching info...

Posted
  On 6/16/2021 at 12:03 PM, John Dowson said:

Could you activate logging for Extras on FSUIPC, and also activate Debug logging in the WAPI by adding this line to the [WAPI] section of your FSUIPC7.ini file:
    LogLevel=Debug

Could you also have the logging console open when you close down (Log -> Open Console), and let me know what the last message logged is when that error appears.
Send me the log and let me know when the error occured.

Expand  

Ok so I did this part and I still get the error, but when I hit Alt-F4, the console window closed too quickly for me to catch the last message but I have attached the log file for you

FSUIPC7.logFetching info...

Posted
  On 6/16/2021 at 12:03 PM, John Dowson said:

Once thats done, you couldalso try switching to updating lvars from the client (if not doing that already), by adding this line to the [WAPI] section of your FSUIPC7.ini file:
    LvarUpdateFrequency=6
(that is for 6 updates per second). You should also disable updates from the WASM by setting the following in your FSUIPC_WASM.ini - either in your Packages folder, if you have an FSUIPC_WASM.ini file there, or under the fsuipc-lvar-wasm folder (in your MSFS Community folder) if not):
    LvarUpdateFrequency=Off

Expand  

So I did this part as well and I get the same error again when I hit Alt F4.   Log file attached.

 

FSUIPC7.logFetching info...

Posted
  On 6/16/2021 at 12:17 PM, zap737 said:

However, when I exit a flight using Alt-F4 without going back to the main menu, then I get the error.

Expand  

Ok - I haven't tried with Alt-F4, I'll do that, but presume its the same as closing by quiting thw MSFS main window. Does the same happen when quitting MSFS from FSUIPC (using the MSFS -> Exit oprion)?

  On 6/16/2021 at 12:31 PM, zap737 said:

Ok so I did this part but when I hit Alt-F4, the console window closed too quickly for me to catch the last message

Expand  

Doesn't the logging pause when the pop-up error is displayed? Is that displayed before or after the console log window closes?

  On 6/16/2021 at 12:17 PM, zap737 said:

Also, when I install FSUIPC and ensure a tick is placed in the "Start with MSFS" box, I find that FSUIPC does not start with MSFS.  I have checked the Exe.xml (attached) and all seems ok there. 

Expand  

The Exe.xml looks fine. From what folder is it located? Presume you have a MS Store version, and it is under C:\Users\Peter\AppData\Local\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalCache, no?
You could try switching to using the SimConnect document type rather than Launch (as I have seen that this is used quite often). Please change your EXE.xml file to the following:

  Quote

<?xml version="1.0" encoding="WINDOWS-1252"?>
<SimBase.Document version="1,0" Type="SimConnect">
  <Descr>SimConnect</Descr>
  <Filename>EXE.xml</Filename>
  <Disabled>False</Disabled>
  <Launch.ManualLoad>False</Launch.ManualLoad>
  <Launch.Addon>
        <Disabled>False</Disabled>
        <ManualLoad>False</ManualLoad>
        <Name>FSUIPC7</Name>
        <Path>C:\FSUIPC7\FSUIPC7.exe</Path>
        <CommandLine>-auto</CommandLine>
        <NewConsole>False</NewConsole>
  </Launch.Addon>

</SimBase.Document>

Expand  

If that doesn't work, I have no idea why MSFS is not picking this file up and auto-starting FSUIPC7, sorry.

  On 6/16/2021 at 12:49 PM, zap737 said:

So I did this part as well and I get the same error again when I hit Alt F4.   Log file attached.

Expand  

Ok, thanks. What about when exiting MSFS from FSUIPC7?

Also, can you let me know when this pop-up error occurs, and what happens when it does. Does the FSUIPC7 window/icon and console window disappear before this message is display, or after?

I'm going to try closing with Alt-F4 now to see if that makes a difference....

  • John Dowson changed the title to FSUIPC Application Error when MSFS exits
Posted
  On 6/16/2021 at 1:00 PM, John Dowson said:

The Exe.xml looks fine. From what folder is it located? Presume you have a MS Store version, and it is under C:\Users\Peter\AppData\Local\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalCache, no?
You could try switching to using the SimConnect document type rather than Launch (as I have seen that this is used quite often). Please change your EXE.xml file to the following:

Expand  

Yes it is in that path but I do have MSFS installed to a separate drive so the C:\Users\Peter\AppData\Local\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe part is on my C drive and then it puts a shortcut to localcache from the c drive to the separate hard drive, but yes the path is the same.

The simconnect version did not work.

Posted
  On 6/16/2021 at 1:00 PM, John Dowson said:

Does the same happen when quitting MSFS from FSUIPC (using the MSFS -> Exit oprion)?

Expand  

Yes.

  On 6/16/2021 at 1:00 PM, John Dowson said:

Doesn't the logging pause when the pop-up error is displayed? Is that displayed before or after the console log window closes?

Expand  

No.  MSFS disappears, then the logging closes, then the FSUIPC interface disappears, then the pop up error displays.

 

  On 6/16/2021 at 1:00 PM, John Dowson said:

What about when exiting MSFS from FSUIPC7?

Expand  

Same problem exactly.  Log attached....

  On 6/16/2021 at 1:00 PM, John Dowson said:

Also, can you let me know when this pop-up error occurs, and what happens when it does. Does the FSUIPC7 window/icon and console window disappear before this message is display, or after?

Expand  

MSFS disappears, then the logging closes, then the FSUIPC interface disappears, then the pop up error displays.

  On 6/16/2021 at 1:07 PM, John Dowson said:
  On 6/16/2021 at 1:00 PM, John Dowson said:

I'm going to try closing with Alt-F4 now to see if that makes a difference....

Expand  

Nope, still no error for me....very strange....

Expand  

Well I'm stumped !!

FSUIPC7.logFetching info...

Posted
  On 6/16/2021 at 1:37 PM, zap737 said:

Yes it is in that path but I do have MSFS installed to a separate drive so the C:\Users\Peter\AppData\Local\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe part is on my C drive and then it puts a shortcut to localcache from the c drive to the separate hard drive, but yes the path is the same.

Expand  

So the EXE.xml is in the linked folder? It should still work - it is quite a standard set-up, I have MSFS also installed on a separate drive.
I think you need to raise a support request for Asobo for this, sorry.

  On 6/16/2021 at 1:42 PM, zap737 said:

No.  MSFS disappears, then the logging closes, then the FSUIPC interface disappears, then the pop up error displays.

Expand  

Ok, thats helpful but also very strange as that means it occurring after everything else has closed down....

  On 6/16/2021 at 1:42 PM, zap737 said:

Well I'm stumped !!

Expand  

Me too!

Can you try disabling/unchecking  the 'Exit with FS' option. Then when MSFS closes FSUIPC should stay open. Once MSFS has closed, give it a few seconds and then exit FSUIPC.
If you do this, do you still get the error, and if so, when?

Posted
  On 6/16/2021 at 1:51 PM, John Dowson said:

Can you try disabling/unchecking  the 'Exit with FS' option. Then when MSFS closes FSUIPC should stay open. Once MSFS has closed, give it a few seconds and then exit FSUIPC.
If you do this, do you still get the error, and if so, when?

Expand  

OK I waited quite a while after MSFS shut down with Alt F4 - well after the cockpit noises stopped - then I exited FSUIPC from the tray icon.  Then after about 3 seconds the error popped up.

John it's close to midnight here in Australia so I will have to sign off.

Thanks for your help but I have work arounds for both problems.

I can try some more things if you want to tomorrow.

regards,

Peter

Posted
  On 6/16/2021 at 2:05 PM, zap737 said:

OK I waited quite a while after MSFS shut down with Alt F4 - well after the cockpit noises stopped - then I exited FSUIPC from the tray icon.  Then after about 3 seconds the error popped up.

Expand  

That is very strange....I've really no idea what is causing this....Does it also occur if you start FSUIPC7 (without MSFS) and then exit?

  On 6/16/2021 at 2:05 PM, zap737 said:

John it's close to midnight here in Australia so I will have to sign off.

Expand  

Yes, no problem!

  On 6/16/2021 at 2:05 PM, zap737 said:

Thanks for your help but I have work arounds for both problems.

Expand  

Yes, they are both quite minor. There is nothing I can do about the exe.xml file not working (as it is in the correct format and in the correct place), so you will need Asobo support for that one. This has also been reported before and I couldn't determine why for those cases, so advised to switch back to the old method (i.e. starting FSUIPC7 from the MSFS.bat file, as you now do).

  On 6/16/2021 at 2:05 PM, zap737 said:

I can try some more things if you want to tomorrow.

Expand  

I'm not sure what else you can try...I think I'll have to build a special version for you to try with more logging added to the shutdown sequence to see if I can determine where this error is coming from. I'll post an updated FSUIPC7.exe for you to try tomorrow.

Cheers - and good night!

John

Posted

I'm not sure any additional logging is going to help. There are quite a few reports of this error on google.
Some things to try:
   - if using an in-game overlay (e.g. GeForce experience, etc), then maybe try disabling that
   - check you are up-to-date with the latest windows updates
   - update your .Net framework
   - run the system file checker (run the command sfc /scannow from an admin command prompt)
   - check your windows Virtual Memory settings

Have you always had this error or is this something new? If new, do you know when it started (i.e. after a windows update, an MSFS update, or an FSUIPC7 update?)

Posted
  On 6/16/2021 at 2:53 PM, John Dowson said:

Does it also occur if you start FSUIPC7 (without MSFS) and then exit?

Expand  

No it does not occur.

  On 6/16/2021 at 3:39 PM, John Dowson said:

 - if using an in-game overlay (e.g. GeForce experience, etc), then maybe try disabling that

Expand  

I disabled it and no difference

  On 6/16/2021 at 3:39 PM, John Dowson said:

check you are up-to-date with the latest windows updates

Expand  

Yes up to date

  On 6/16/2021 at 3:39 PM, John Dowson said:

update your .Net framework

Expand  

I found I did not have .Net 3.5 installed but I did have 4.8 installed.  So I installed 3.5.  No difference.

  On 6/16/2021 at 3:39 PM, John Dowson said:

run the system file checker (run the command sfc /scannow from an admin command prompt)

Expand  

One of the first things i did.  No issues with resource integrity.

  On 6/16/2021 at 3:39 PM, John Dowson said:

check your windows Virtual Memory settings

Expand  

Mine is system managed on the C drive with 9.7 GB allocated (I have 64 GB of ram)

  On 6/16/2021 at 3:39 PM, John Dowson said:

Have you always had this error or is this something new?

Expand  

Version 7.1 seemed fine.  Just started with 7.2

Posted

Can you try with the attached version please. This will not solve your problem, but will provide additional logging so I can track down where/when this error occurs, although I suspect it may be happening outside of my control....

With this version, can toy please check the contents of the FSUIPC7.log file when you get the pop-up error, and before you acknowledge it. I would like to know what the last message you see in the log is, before you acknowledge the pop-up error message. Thanks.

FSUIPC7.exeFetching info...

Posted

Hi John,

Please note, I had already deleted the changes you had asked me to previously make below.

LogLevel=Debug
LvarUpdateFrequency=6

LvarUpdateFrequency=Off

So I used your new FSUIPC.exe without those entries above...

 

The console log showed as below before I acknowledged pop up......

Console Started ...

   216938  3616 === FSUIPC has been stopped
   216984  3616 === FSUIPC main window destroyed
   216984  3616 === FSUIPC window hooks removed
   216984  3616 === Critical sections deleted
   216984  3616 === Closing log file....Bye!
   216984 System time = 17/06/2021 21:01:49
   216984  3616 *** FSUIPC log file being closed
Minimum frame rate was 26.7 fps, Maximum was 117.2 fps
Average frame rate for running time of 157 secs = 65.9 fps
Maximum AI traffic for session was 47 aircraft
Traffic deletions 0 aircraft
Memory managed: 27 Allocs, 26 Freed
********* FSUIPC Log file closed ***********

 

FSUIPC log also attached

 

FSUIPC7.logFetching info...

Posted
  On 6/17/2021 at 11:10 AM, zap737 said:

Please note, I had already deleted the changes you had asked me to previously make below.

LogLevel=Debug
LvarUpdateFrequency=6

LvarUpdateFrequency=Off

So I used your new FSUIPC.exe without those entries above...

Expand  

No problem with that.

  On 6/17/2021 at 11:10 AM, zap737 said:

The console log showed as below before I acknowledged pop up......

Expand  

Ok, then as suspected the error is being displayed by windows after FSUIPC has exited but before the process has finally stopped. I'm afraid that there isn't anything I can do about this.

Posted
  On 6/17/2021 at 11:20 AM, John Dowson said:

Ok, then as suspected the error is being displayed by windows after FSUIPC has exited but before the process has finally stopped. I'm afraid that there isn't anything I can do about this.

Expand  

OK no problem.   It is probably something particular with my system.  Anyway, I have a good work around.  Thanks again.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.