AM 3.7 Possible Handle Leak

Discuss suspected bugs with other users and Sim Innovations Staff

Moderators: russ, Ralph

Post Reply
Message
Author
Sabre
Posts: 65
Joined: Tue May 24, 2016 10:51 pm

AM 3.7 Possible Handle Leak

#1 Post by Sabre »

I've been having an issue with P3D v5 where my fps would gradually go down and if I were to fly long enough I would get a crash of the GPU. At first I blamed V5 but decided to run some tests staring with no addons and no air manager. Everything seemed to be working fine as I added the addons one at a time. When I eventually started aire manager up every thing seemed fine too. After I while I noticed that the number of handles kept going up and never down. At one point they were up to more than 400k. When I exited AM the handles immediately dropped to about 68k and stayed there. So I started AM again and the number of handles started to go up and never down. At 200k I again exited AM and the number of handles dropped to around 68k. So it appears that AM has a handle leak and if so I hope it can be fixed quickly. AM is still very usable but eventually it will crash the gpu or the sim.

User avatar
Corjan
Posts: 2941
Joined: Thu Nov 19, 2015 9:04 am

Re: AM 3.7 Possible Handle Leak

#2 Post by Corjan »

Hi,


Hmz, that would be very bad.

What do you mean with handle exactly. This is mostly not GPU related, but instead can be file or socket handles.
In what tool do you measure the handles?


It might be instrument specific also, would you mind checking with different panels/instruments?

Corjan

Sabre
Posts: 65
Joined: Tue May 24, 2016 10:51 pm

Re: AM 3.7 Possible Handle Leak

#3 Post by Sabre »

Handles are what's displayed as a part of the performance tab in task manager. I use two panels for the particular aircraft and have attached a couple of screen captures below.


Image


Image


Image

User avatar
Keith Baxter
Posts: 4685
Joined: Wed Dec 20, 2017 11:00 am
Location: Botswana

Re: AM 3.7 Possible Handle Leak

#4 Post by Keith Baxter »

oops
duck.gif
duck.gif (254.43 KiB) Viewed 3118 times

Keith
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board,  32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card 

User avatar
Corjan
Posts: 2941
Joined: Thu Nov 19, 2015 9:04 am

Re: AM 3.7 Possible Handle Leak

#5 Post by Corjan »

Hi,


Please have a look at how many handles the AM process itself has:
am_handles.png
If that number increases, something is wrong.
Note that the number of handles has nothing to do with the GPU.


Corjan

Sabre
Posts: 65
Joined: Tue May 24, 2016 10:51 pm

Re: AM 3.7 Possible Handle Leak

#6 Post by Sabre »

So I ran a short test flight and here's what happened. The handles immediately start to climb and went over 100k in about 20 minutes. After that I started to remove one instrument at a time and the trend didn't change, they kept going up. It wasn't until I stopped displaying 1 of the panels that the number of handles dropped. Once they dropped they started to go up again as I was still displaying the 2nd panel. So on the remaining panel are started removing instruments one at a time and again no change to the trend. It was only when I closed the remaining panel did the numbers go down and remained steady at less than 1k. I kept AM open with no panels displayed and no changes to the number of handles. Hope this helps.


Start of flight. AM handles are already higher than P3D

Image



20 minutes into the flight and they've gone over 100k

Image

User avatar
Corjan
Posts: 2941
Joined: Thu Nov 19, 2015 9:04 am

Re: AM 3.7 Possible Handle Leak

#7 Post by Corjan »

Ai, that is no good.

Would you mind checking it there is any hint in the log file:
C:\Users\%user_name%\Air Manager\log.txt


Corjan

User avatar
Corjan
Posts: 2941
Joined: Thu Nov 19, 2015 9:04 am

Re: AM 3.7 Possible Handle Leak

#8 Post by Corjan »

Hi,


If you want to help me out and dive a bit deeper, would you mind installing Process Explorer and looking at what kind of handles are leaking:

Download Process Explorer here:
https://docs.microsoft.com/en-us/sysint ... s-explorer

Handle list looks like this:
image.png

Corjan

Sabre
Posts: 65
Joined: Tue May 24, 2016 10:51 pm

Re: AM 3.7 Possible Handle Leak

#9 Post by Sabre »

Here's what I found in the log file, see below. Not sure what these error messages mean as all of the instruments that I've placed in the panel display and work. Unfortunately I'm not going to be able to do anymore testing for a couple of weeks due to being out of town for work. If that wasn't the case I would certainly help more. I looked in one particular directory and it existed but it was empty except for a thumbs.db file. 2020-06-26 08:00:46 ERROR Library - Failed to load instrument from 'C:\Users\Mark/Air Manager/instruments/OPEN_DIRECTORY/da340c42-9583-4d63-ad26-e4de78729450.


2020-06-26 08:00:44 INFO EntityManager - Starting Air Manager Home Use 3.7 (Home Use, Activated) (JAVA=1.8.0_181-1-ojdkbuild)
2020-06-26 08:00:44 INFO AMBase - Initializing
2020-06-26 08:00:44 INFO AMBase - HW id = 63ca018d642073dd9129aedde41caf38
2020-06-26 08:00:45 ERROR SiFile - Failed to open path 'C:\Users\Mark/Air Manager/instruments/OPEN_DIRECTORY/2c6c2d83-f3ab-435c-aa5a-73632f989a71/info.xml' (No such file or directory)
2020-06-26 08:00:45 ERROR Library - Failed to load instrument from 'C:\Users\Mark/Air Manager/instruments/OPEN_DIRECTORY/2c6c2d83-f3ab-435c-aa5a-73632f989a71'
2020-06-26 08:00:45 ERROR SiFile - Failed to open path 'C:\Users\Mark/Air Manager/instruments/OPEN_DIRECTORY/3969afce-3761-407d-a220-12560b8f0ca0/info.xml' (No such file or directory)
2020-06-26 08:00:45 ERROR Library - Failed to load instrument from 'C:\Users\Mark/Air Manager/instruments/OPEN_DIRECTORY/3969afce-3761-407d-a220-12560b8f0ca0'
2020-06-26 08:00:45 ERROR SiFile - Failed to open path 'C:\Users\Mark/Air Manager/instruments/OPEN_DIRECTORY/4005dadf-9d35-476a-9acb-aef1731bdcfd/info.xml' (No such file or directory)
2020-06-26 08:00:45 ERROR Library - Failed to load instrument from 'C:\Users\Mark/Air Manager/instruments/OPEN_DIRECTORY/4005dadf-9d35-476a-9acb-aef1731bdcfd'
2020-06-26 08:00:45 ERROR SiFile - Failed to open path 'C:\Users\Mark/Air Manager/instruments/OPEN_DIRECTORY/5e7b7bee-4c29-4080-bfce-13a207c7b9e3/info.xml' (No such file or directory)
2020-06-26 08:00:45 ERROR Library - Failed to load instrument from 'C:\Users\Mark/Air Manager/instruments/OPEN_DIRECTORY/5e7b7bee-4c29-4080-bfce-13a207c7b9e3'
2020-06-26 08:00:45 ERROR SiFile - Failed to open path 'C:\Users\Mark/Air Manager/instruments/OPEN_DIRECTORY/823483c7-1c7c-4e02-8d9c-d24393ec177f/info.xml' (No such file or directory)
2020-06-26 08:00:45 ERROR Library - Failed to load instrument from 'C:\Users\Mark/Air Manager/instruments/OPEN_DIRECTORY/823483c7-1c7c-4e02-8d9c-d24393ec177f'
2020-06-26 08:00:46 ERROR SiFile - Failed to open path 'C:\Users\Mark/Air Manager/instruments/OPEN_DIRECTORY/d4952ecc-ffca-40d1-8b08-40d22854ca81/info.xml' (No such file or directory)
2020-06-26 08:00:46 ERROR Library - Failed to load instrument from 'C:\Users\Mark/Air Manager/instruments/OPEN_DIRECTORY/d4952ecc-ffca-40d1-8b08-40d22854ca81'
2020-06-26 08:00:46 ERROR SiFile - Failed to open path 'C:\Users\Mark/Air Manager/instruments/OPEN_DIRECTORY/da340c42-9583-4d63-ad26-e4de78729450/info.xml' (No such file or directory)
2020-06-26 08:00:46 ERROR Library - Failed to load instrument from 'C:\Users\Mark/Air Manager/instruments/OPEN_DIRECTORY/da340c42-9583-4d63-ad26-e4de78729450'
2020-06-26 08:00:48 INFO SimBusConnectionHandler - Discovered Prepar3D on 192.168.86.44:55559 (am_port=55558)
2020-06-26 08:00:48 INFO Project - Aircraft changed from '(null)' to 'RealAir Beech Duke Turbine V2 DNSYR'
2020-06-26 08:00:50 INFO SiRunner - Generic - Bendix/King KI525A HSI: logic.lua:249: Failed to bind hardware id's to connected hardware
2020-06-26 08:00:50 INFO SiRunner - Generic - Bendix/King KI525A HSI: logic.lua:251: Failed to bind hardware id's to connected hardware
2020-06-26 08:02:39 INFO Project - Aircraft changed from 'RealAir Beech Duke Turbine V2 DNSYR' to 'AC11 Commander 114 - Orange'
2020-06-26 08:02:39 INFO SiRunner - Generic - Bendix/King KI525A HSI: logic.lua:249: Failed to bind hardware id's to connected hardware
2020-06-26 08:02:39 INFO SiRunner - Generic - Bendix/King KI525A HSI: logic.lua:251: Failed to bind hardware id's to connected hardware
2020-06-26 08:26:21 INFO SiRunner - Generic - Bendix/King KI525A HSI: logic.lua:249: Failed to bind hardware id's to connected hardware
2020-06-26 08:26:21 INFO SiRunner - Generic - Bendix/King KI525A HSI: logic.lua:251: Failed to bind hardware id's to connected hardware
2020-06-26 08:28:26 INFO SiRunner - Generic - Bendix/King KI525A HSI: logic.lua:249: Failed to bind hardware id's to connected hardware
2020-06-26 08:28:26 INFO SiRunner - Generic - Bendix/King KI525A HSI: logic.lua:251: Failed to bind hardware id's to connected hardware

Post Reply