BMS Crashes after time spent in flight - Memory Usage warning appears moments before crash - Memory Leak issue?
-
-
Version and Build: 4.36.0
-
System:
-Lenovo ideapad S145
-Windows 10 Home
-Processor: Intel Core i5-8265U @ 1.60GHz (8 CPUs)
-Memory: 8192MB RAM
-GPU: GeForce MX110 2010MB -
Description:
It appears that 100% of the time I’m getting crashes after about 1:30 to 2:00 hours are spent in a multiplayer flight or “singleplayer” dogfight sessions without restarting BMS.
Seconds before the crash I get a popup message in BMS called “Memory Usage”, it shows how much of my RAM is being used (usually 90% or more), the pagefile in blue (usually 100%) and “texture” in blue followed by “apx 0 MB free”.
Moments after, I start getting small stutters followed by a complete freeze of BMS and a CTD.
My guess is that there’s a memory leak somewhere, slowly consuming all my memory and leading to a crash. I’ve not had this issue until 4.36, being able beforehand to complete 4 hour campaign flights without a crash or the memory usage message appearing.
Notes: I’ve not found a minimum RAM required to run BMS, and while 8GB is far for ideal for proper performance, I don’t think it’s less than enough for Falcon to run without crashes.
Also, I’m running a pretty large bandwidth, with 100000 kb/s for download and 50000 kb/s for upload - could that be a factor in RAM usage? -
Pictures
Falcon was frozen and a screenshot didn’t work. -
Crash Log:
https://drive.google.com/file/d/1OBW_eEihiq9TcnF71N33BnMsy_mQW1ap/view?usp=sharing
This is the crash.txt file. The dump (.dmp) file reads zero bytes and has no text in it.
-
-
Hi, you are running with 8GB on a laptop that probably has no dedicated VRAM. So your VRAM is being probably eaten from the main RAM and those same 8GB. As you can see in the message the texture/video memory has nothing free, and so the next load of a texture will be fatal.
4.36 may become “heavier” in terms of textures usage and so may be different than 4.35 or anything previous in that aspect.
In general, and to prepare yourself for the future, I’d suggest upgrading to at least 16GB of RAM. In the future 8GB won’t cut it anymore to eve run a campaign mission I’m afraid.
-
@ArcherAC3 As a first step to get more info … run TaskMgr during a long flight … go to ‘Details’ tab and right-click the column headers, to add/remove some columns.
The 2 most relevant, for starters, are “Memory (active private working set)” set)" and “Commit size”.
Set view/update-speed to “low” to avoid taxing your CPU … or you can just quit/restart taskmgr every 30 min or so, to take a snapshot.
On my rig (desktop w/ gpu) BMS uses about 1.2 gb of active working set … but commits about 6.5 gb total (I assume this includes texture data which is loaded onto graphics card ram).
Seems reasonably stable … but I haven’t tested long-haul flight yet, just short TE.
And I remember, trying to start 4.36 on a virt (server) I needed to allocate 16 gb of RAM to enter 3D. But that is doing software rendering, so expect to consume quite a bit more…
Your system seems to be leaking ~100-200 mb/min which I’m not seeing on my system…
-
@I-Hawk said in BMS Crashes after time spent in flight - Memory Usage warning appears moments before crash - Memory Leak issue?:
no dedicated VRAM
I think 2 Gb. But BMS looks like it uses about 3-3.5 Gb so your point stands … and for a leak rate of 100-200 Mb/min texture data is about the only thing I can think of, to achieve that.
-
@airtex2019 said in BMS Crashes after time spent in flight - Memory Usage warning appears moments before crash - Memory Leak issue?:
@I-Hawk said in BMS Crashes after time spent in flight - Memory Usage warning appears moments before crash - Memory Leak issue?:
no dedicated VRAM
I think 2 Gb. But BMS looks like it uses about 3-3.5 Gb so your point stands … and for a leak rate of 100-200 Mb/min texture data is about the only thing I can think of, to achieve that.
2GB may be the “announced VRAM”, it doesn’t mean that it’s not shared from the main RAM. I could be wrong though, it depends on this specific laptop and GPU model. I have a laptop with GTX-1050 and I know it has dedicated 4GB VRAM. To know how much video RAM you have overall, you may go to Nvidia driver panel --> Help --> System information and there you should see something like:
Dedicated video memory: <amount>
System video memory: <amount>
Shared video memory: <amount>Those 3 will help understanding how much total VRAM you have. On a normal system (dedicated GPU) the total video memory will be combined from the dedicated amount and half of the total RAM of the system. If you run dxdiag command you should see under Display tab the amount of “Approx Total Memory” which will be the amount of dedicated + shared, that basically will be the max amount of VRAM that your system can use (Example here with RTX-3060TI 8GB and 32GB RAM I have in that field ~24GB of VRAM total which is combined from 8 dedicated and 16 from the RAM)
I can clearly tell you though that BMS 4.36 doesn’t use 6GB of VRAM and not even close to it, at any moment… I bet that your 0 texture memory problem is the consequence of lack of RAM to cover both RAM and VRAM needs.
And regardless, if BMS was leaking 100MB VRAM per minute, it would crash for everyone all over the place with every long flight… I seriously doubt that.
-
I do think as well that your system is barely enough to sustain the needs of BMS…
-
I think the question is, does BMS min-require 4Gb of dedicated video ram … or should this work, and there’s a leak somewhere (eg. managing texture memory as it loads from system ram to video ram).
I don’t know enough about the DirectX programming model, to comment intelligently … is there even an opportunity for such a leak in BMS code – or does DX library manage all the texture-memory swapping between system ram and video ram?
-
A memory leak is always possible but we have chased a lot of them (especially @Seifer ) over the last 2 years…
Now, let’s be realistic:
MX110 has 2Gb of dedicated VRAM but this video card generation is quite old (Released in 2017) and is very dumbed down series GTX10XX series…
Now 8Gb of RAM for WIndows 10 is barely enough…
By design, Win10 will use around 4 to 6 Gb without doing muchBMS will use from 2 to 5 GB depending on the load.
Do the math, you’re barely make the cut from a memory perspective!
Tune down everything in BMS from GFX perspective and how it goes but I don’t have much hope
Cheers
PS: A pagefile at 100% isn’t good at all…
-
@airtex2019 said in BMS Crashes after time spent in flight - Memory Usage warning appears moments before crash - Memory Leak issue?:
I think the question is, does BMS min-require 4Gb of dedicated video ram … or should this work, and there’s a leak somewhere (eg. managing texture memory as it loads from system ram to video ram).
I don’t know enough about the DirectX programming model, to comment intelligently … is there even an opportunity for such a leak in BMS code – or does DX library manage all the texture-memory swapping between system ram and video ram?
BMS Engine doesn’t leak texture memory. If it would I believe we would know for sure (Our Dev version uses much more texture memory and it’s loading/unloading fine )
-
@MaxWaldorf Jesus , I’ve never seen pagefile at 100% and that 17GB’s… - that’s double the ram , even hiberfile would be, what, 8GB’s
What’s the load? OS and BMS only?? - not so sure
While he could do some “housekeeping” and disable backgroud apps/services before play … you know , make a batch “sc stop …” , “taskkill …”
… - maybe , just maybe -
@white_fang yeah who knows what is leaking … without seeing the working-set and commit-charge from FalconBMS.exe it’s hard to comment further.
Is there a way to reduce / constrain the GPU ram, for testing purposes? Surely there must be… but it seems a hard thing to google for.
-
There is a memory leak related to new refueling code, although it is not very serious (happens on aggregation of tanker flights). So unless you are experiencing this kind of situation (agging deagging tankers several times), either this is something new we have not detected or something wrong on your system. Hard to say.
In any case, this leak I mentioned is fixed for 4.36.1.
-
Depends… I was on a 4GB ram laptop on windows 10 for many years and working office apps and gfx like corel and photoshop for “light” gfx and even standart video editing…
I’m not saying 4GB is ok for BMS, just saying that you can strip down windows 10 to save resources and memory usage and avoid the 4-6GB eaten by OS on just running the OS.
It’s not that easy or straigth foreward but it’s doable if u invest the time and knowledge and experience on it. Small steps on it so not to get a non working OS. -
I’d say that this laptop - system doesn’t “quallify” for BMS running…
that simple. -
run TaskMgr during a long flight
Will do, thanks for the tips.
@I-Hawk said in BMS Crashes after time spent in flight - Memory Usage warning appears moments before crash - Memory Leak issue?:
2GB may be the “announced VRAM”
It shows Display Memory (VRAM): 2010 MB and Shared Memory: 4036 MB.
Now 2010MB VRAM is simply not enough for BMS anymore?@white_fang said in BMS Crashes after time spent in flight - Memory Usage warning appears moments before crash - Memory Leak issue?:
I’ve never seen pagefile at 100% and that 17GB’s
Any idea on what that means and why it’s using so much?
I’ll tune down everything I can graphics-wise and see if it helps. I’ve already closed every app running in the fore and background (even turning off the antivirus completely) besides anything essential for windows, but it didn’t seem to make any difference.@Arty said in BMS Crashes after time spent in flight - Memory Usage warning appears moments before crash - Memory Leak issue?:
this laptop - system doesn’t “quallify” for BMS running
Sad. Up until the last version of 4.35 I could comfortably run OBS and record at 1080p 60fps while flying 4 hour long flights without ever having a memory issue in this same system. Now suddenly it’s unplayable even with the minimal and only necessary apps running in the background, right after a complete restart?
-
@ArcherAC3 said in BMS Crashes after time spent in flight - Memory Usage warning appears moments before crash - Memory Leak issue?:
Now 2010MB VRAM is simply not enough for BMS anymore?
I must defer to BMS team to say what the minimum system requirements are. Both 4.35 and 4.36 seem to utilize about 3 Gb of video-ram. Add some padding for Windows and other apps … I’d say 4 Gb would probably be the “recommended” system requirement for dedicated video-ram.
With the added “shared” memory, it’s enough to run … it just becomes a performance drag (when the gpu has to pull textures from system memory, it’s much slower than the super-fast memory onboard the video card). Also it subtracts away from available system ram, which you need every bit of…
Any idea on what that means and why it’s using so much?
This is what a memory leak looks like, on a virtual memory operating system. It consumes all physical ram then spills over to fill up the pagefile.
But no idea who or what is responsible for the leak … which is why we need to see a little more data from TaskMgr to help solidify this. So far, nobody else is reporting this … and it could literally be anything … a buggy driver, a virus, some other software, whoknows.
I can believe you when you say 4.35 was ok and 4.36 is not … but I want to see the working-set and commit-charge numbers.
-
@ArcherAC3 said in [BMS Crashes after time spent in flight -
@white_fang said in BMS Crashes after time spent in flight - Memory Usage warning appears moments before crash - Memory Leak issue?:
I’ve never seen pagefile at 100% and that 17GB’s
Any idea on what that means and why it’s using so much?
I’ll tune down everything I can graphics-wise and see if it helps. I’ve already closed every app running in the fore and background (even turning off the antivirus completely) besides anything essential for windows, but it didn’t seem to make any difference.Last time I saw pagefile at 100% was in win98-xp era… Forgot how many years ago.
What it means is very possibly what @seifer said , memory leak.
Unless you don’t run photoshop with ultrahigh resolution image in the background., something is eating ram for breakfast.Eh, now , till today there is no easy way to see what is using pagefile. , you may see only overall usage. commit size under performance tab.
You may try “proces explorer” (sysinternals/microsoft) , need to enable some “memory” coulums (working set … etc)
See this:
https://techcommunity.microsoft.com/t5/windows-blog-archive/pushing-the-limits-of-windows-virtual-memory/ba-p/723750Process details
-
Again…
With no repro case, impossible to detect anything…
-
@airtex2019 said in BMS Crashes after time spent in flight - Memory Usage warning appears moments before crash - Memory Leak issue?:
So far, nobody else is reporting this
I remembered I have an older laptop with nvidia optimus graphics… 4th gen i7 cpu + GT 750 gpu, also 2gb vram. But 16gb system ram. I dusted it off, updated Win10 and installed BMS 4.36 to give it a try.
I only flew for about 10 minutes… TR#3, starting in air, just cruising slow over south korea. The jet-engine noise coming from my laptop was very realistic, but I couldn’t lower the volume.
FalconBMS.exe process working-set seemed very stable at ~1170 Mb … commit-charge grew slowly, from ~5200 to 5309 Mb. That’s about 10 mb/min, which seems reasonable for loading new textures while cruising over Kunsan and nearby cities. Far short of the ~100-200 mb/min your system was consuming.
Total commit-charge for the entire system was ~8.5 Gb … this was very clean Win10 with nothing else running, just TaskMgr. Total active memory in use was only ~4 Gb, so you could probably expect to get by with 8 Gb, enduring some occasional stutters due to hard-faults. But if it’s possible to buy a RAM upgrade for your laptop, to get 16 Gb, I’d recommend do it.
Don’t know if that will help or solve your leak though. I don’t know where to look next.
-
Thank you all for the replies again.
As soon as I fly again I’ll run the TaskMgr as suggested and update you here.@airtex2019 said in BMS Crashes after time spent in flight - Memory Usage warning appears moments before crash - Memory Leak issue?:
a buggy driver, a virus, some other software, whoknows.
On my last flights I made sure nothing else (but TeamSpeak) was running and memory usage was at the lowest possible. Ran a few antivirus complete scans but nothing was ever found. I might completely format my system and reinstall Falcon soon just to be sure - also, there’s an upgrade to Windows 11 available for me. Compared to Windows 10, does 11 tends to use less memory and be more stable overall for BMS?
@airtex2019 said in BMS Crashes after time spent in flight - Memory Usage warning appears moments before crash - Memory Leak issue?:
But if it’s possible to buy a RAM upgrade for your laptop, to get 16 Gb
I’m not completely sure yet it’s possible to upgrade the RAM on this laptop, but if so I’ll do it pretty soon. Not really in a position to build a proper rig now, but this Laptop seemed pretty stable to run BMS so far (albeit not at the best graphical settings and performance)
Thanks again!