BMS Crashes after time spent in flight - Memory Usage warning appears moments before crash - Memory Leak issue?
-
Update from my last multiplayer campaign flight.
Again, it crashed on the way back at approximately 01:40 hours from getting into the pit (3D). I can confirm the crash always happens when Page File gets to 100% (of my total 17.1GB available), showing 0MB left.
I was monitoring total RAM usage, page file (called “commited” in the Task Manager Performance tab), BMS memory commit size and GPU usage.
For reference then:
- Joining 3D: 6.5GB Total RAM | 5.7GB BMS Commit size (note, I did recon both Kunsan and the Target area prior to commiting, increasing RAM usage and Pagefile already)
- At EOR Kunsan (16:20 minutes elapsed): 6.9 Total RAM | 6.1 BMS Commit | 10.1 total Pagefile
- At Rejoin (24 minutes): 7.3 Total RAM | 6.8 BMS Commit (using 2.0 GB GPU)
- 45 minutes: 6.6 Total RAM (so, RAM usage decreased as soon as we left Kunsan, increasing to ~94% at most when GPU usage was way up there) | 8.2 BMS Commit | 13.4 total Pagefile)
- 1 Hour 10 minutes: 10.9 BMS Commit | 14.7 Pagefile
- 1 Hour 15 minutes: 15.2 Pagefile (GPU at 86%), total RAM 6.6
- Approach (01:36:30): 7.1 Total RAM | 13.4 BMS Commit size (didn’t get total pagefile, but was getting the blue message already)
- Crash (01:38:52): at 100% Pagefile (17.1GB)
So, while RAM would vary between 75 - 95% depending on the amount of units and objects nearby, just as GPU would go from ~85% to 100%, the Pagefile kept increasing non-stop (at a possible constant rate?) since I joined 3D.
Should my Pagefile be increasing like this? To be honest, I’m not even completely sure what Pagefile really is and it’s usage, but wouldn’t it be possible to unload whatever is loading it while I’m flying?Otherwise, we are always flying on limited time if it only goes up, being only a matter of time until it definitively crashes based on how much Page File you have available.Thanks again for all the help and suggestions!
Cheers, Archer -
@ertiyu said in BMS Crashes after time spent in flight - Memory Usage warning appears moments before crash - Memory Leak issue?:
The memory window appeared for a few seconds then Falcon crashed
Do you remember if it also showed 100% (or a ridiculously high number) of Pagefile usage?
Edit: Ah, nevermind, your crashlog does confirm it, showing 5MB of pagefile left, probably the same that’s happening to me.I’ll have to fire up 4.35 again and check how my Pagefile behaves. The only time I had a blue memory warning back then was in day 1 of a campaign, with ground units and air gorilla in the 3D bubble (even other members in the flight reported low FPS), but it DID NOT result in a crash even then.
-
@ArcherAC3 You are experiencing a memory leak … about 50 to 85 Mb / min, sounds like.
Not everybody is experiencing this, so… the next step is still to narrow down possible causes.
Yes, fly again on 4.35.3 with your same OS and software environment. (I realize it takes about 30 min to see the significant increase in FalconBMS.exe commit size.)
Maybe also try a long single-player mission on 4.36, to see if MP is a contributing factor…
At some point you mentioned OBS? That is probably the only other thing I can think of, that could possibly leak memory at 50-100 Mb/min. (Does it record at the system level, or does it inject itself into FalconBMS.exe to capture frames as they’re presented… I don’t know. But it’s on the shortlist of suspects in this case.)
-
@airtex2019 Hmm… where’s the biggest mem impact? = Graphics./ Textures
He has 2GB of chip vram , the rest of used vram is shared with system ram… so , it might happen that even some part of vram gets into pagefile ?? … streched/longshot… and crazy, but still maybe?
Long story short… So , the GPU driver/app part which controls sharing ram with system may be leaking … as all sort of crap is going on/…
In essence:
System ram is getting paged, … Vram is shared with system … then windows page that system portion of vram …But… beating a pretty much a dead horse. Needs more RAM , as conviced by Max and Hawk , case closed.
What can try , is max out pagefile , fixed , to eg 32GB or even 64GB … just for the test… once… see if it fills again then…
That will get us some time before crashing. -
@white_fang just to be clear, I’m not trying to convince Max and Hawk that they have a bug. I hope it’s not true … I wouldn’t know where to begin to tell them to look, if it is.
I’m just trying to help a fellow pilot enjoy BMS without crashing, and grinding away his hard drive for hours. And maybe we all learn something along the way.
Anyway, there is one other report now of similar experience, on a desktop w/ 16 Gb ram and 6 Gb video-ram. I’m hoping we discover it’s OBS or some third-party VR plugin or something that is common cause…
-
@airtex2019 There is no need to “convince us”
If there is indeed a memory leak of 50-85 MB/minute, I sure hope it would be a more well known effect among many. It’s really hard to tell from 1 report or 2 if there is indeed something real. I’ll anyway forward this report internally and will see, we do have ways to track memory leaks and usually serious ones are found if a coder take the time to inspect closely and use tools that help. I can also tell that in last years we use more and more less risky data structures - More std structures like vectors and less self-allocated arrays or whatever, and so I hope it should lower the chances for a leak.Cheers!
-
@I-Hawk Yeah AppVerifier alone would flag any orphaned allocations, at shut-down time. I get that. If there is a leak in BMS process I think it would likely be in a dependency (like audio codecs or networking or graphics drivers) rather than first-party code.
Or, something like stream-capture software, or those dodgy VR-adapter libraries, or even things like RivaTuner which seem to inject DLLs into processes making dx calls.
Will be interesting to see if there’s a diff 4.35 vs 4.36. And if so… I wouldn’t know any easy way to narrow down the culprit further, than to clean-reinstall Windows & BMS, and add in other software one by one.
-
@white_fang said in BMS Crashes after time spent in flight - Memory Usage warning appears moments before crash - Memory Leak issue?:
beating a pretty much a dead horse. Needs more RAM , as conviced by Max and Hawk , case closed.
I’m the one with, possibly, the less computing knowledge here in this aspect, but, how would increasing my RAM stop my pagefile from increasing until a crash? Of course, I have no clue on what’s the actual problem, but doubling my pagefile amount would - I’d think - only allow me to fly for twice as long before a crash, no?
Also, I did not have OBS or any external programs running on these 4.36 flights as possible memory leak causes. Only app running was TeamSpeak, but it didn’t consume any significant RAM and Pagefile size.
Thanks again!
-
@ArcherAC3 said in BMS Crashes after time spent in flight - Memory Usage warning appears moments before crash - Memory Leak issue?:
how would increasing my RAM stop my pagefile from increasing until a crash?
It probably would not. Kind of a separate question, about what is the real expected RAM footprint and minimum-system-reqs. On my system, BMS stabilizes at about 6.7 Gb commit size (but only about 1.4 Gb in active “working set” use at any time). The rest of Win10, with nothing else running, adds up to about 8.5 Gb total commit.
This means, BMS probably won’t run on a 8 Gb sytstem, without some sporadic disk I/O happening in the background, as pages are swapped in/out when various background processes wake up and try to do things. On a desktop it might be ok, but in a case like yours, laptop with only 2 Gb video-ram, some of that 8 Gb will be reserved for that purpose… so there might be quite a bit of disk thrashing and stuttering as you fly.
doubling my pagefile amount would - I’d think - only allow me to fly for twice as long before a crash, no?
Correct. And your HDD will be writing 1-2 Mb/sec to the pagefile, the whole time, as you fly.
-
@ArcherAC3 … We, no one here (probably with enough ram) don’t have your problem … no leaks …
Of course increasing ram won’t help plugging the leak itself, but it will avoid unnecessary paging and therefore could avoid “unstable transactions” between ram<>pagefile which seems are happening.
Is it a problem for getting some more ram for that pc? , last time I’ve checked , it wasn’t so much expensive…
-
@white_fang I have been using intelligent standby list cleaner on my laptop for various games and programmes which clears standby memory and can be set up to run automatically . I do not know if this would help with the crashes but it is worth a try.
-
Just to let you know that I’m having almost same problem while refueling in TE. I was curious to watch F-18 in refueling so I add a flight of four of them and timed to refuel when I was there with my flight of 2 F-16. I run an i7 w7 16GB ram. I try to attach a picture I’ve done.
Many thanks!!
No I can’t but blue line says:
RAM: 15,9 GB / 15,9 GB ( 100% ) - 45 MB free
Process: 30.0 GB / 8 TB ( 0% ) - 8 TB free
Pagefile: 21,6 GB / 31,9 GB ( 60% ) - 10,3 GB free
Texture: apx 0 MB free
No CTD, some light stuttering.
Hope can help -
@Paulg-0 I’ve had/have same thing in previous century - when I had a P3-300/1GB computer … just learned to do it manually,… no need for 3rd party app , you can do it with windows batch/script alone.
Like I’ve said in this post 14 days ago. (housekeeping)
https://forum.falcon-bms.com/post/347320@Gancio … have you miss a thread maybe my friend , what you want to say ?
-
@Gancio … have you miss a thread maybe my friend , what you want to say ?
Just that same happe to me but I have 16 GB ram and not just 8GB…. Maybe it’s not a problem related to a ram quantity……
-
@Gancio Hmmm… what happened to you exactly… , Blue-Screen crash ??
While looking, you also have “double the ram” pagefile … 16GB vs 32GB.
Process 30GB … are you using some hi-texture mods or models… eg JanHas ?What video-card / how much of Vram ?
I also have basket-refueling practice TE (in Balkans) with …48 planes in the air … F16/F18/Av8b… 3 carriers fleet , 5-6 tankers.
And no such thing happening … I have 32GB ram and 8GB Vram.
Pagefile is manually at fixed 4GB.Ok , I’ll try with diag window data… to see myself. Maybe your problem really lies in VRAM/RAM/Pagefile/Windows - minimum specs.
I’m not defending BMS as my house-kennel , but to me it is NOT happening… so that’s the difference… and is not easy to see from your perspective.Maybe the devs can try to force limit windows to 8GB or 16GB and see what is really going on … but if they say MINIMUM-SPECS then everything else is speculation and/or your ow responsibility… not that not gonna help , but just can’t do much.
Cheers
-
@white_fang
Hi, no, not having a CTD or blue screen, just a little, very little stuttering while those alarm appeared.
My system is W7Ultimate i7-4770K [email protected] GHz
3.50 GHz
RAM 16 GB
nVidia GeForce GTS 450 x 2 MFDs
nVidia GeForce GTX980 main screen
VRam paging 16326 MB ( never touched )
PS.: playing BMS in a full phisic cockpit -
@Gancio Here, can’t help it … really large image. 4k.
But you can see memory footprint , if zoom enough - inside “Red Square”
BMS/windows “reserves” (cache) 25GB total of windows virtual memory , stable … the number is NOT increasing … you can’t see on the picture obviously.
Process alone is ~6.5GB , 4GB of Vram.
I never saw that “blue-mem” screen … probably for the better
So even your 16GB is sufficient but on verge when windows decides to cache all the stuff… pagefile gets filled.
Maybe you should all try to force windows to somehow be more reserved with memory allocation … there are ways for sure… but that probably means (w)hacking the registry.
- Wait a mi…Texture (i guess vram) = 0 free ???
That’s your video ram , not system… Nvidia… come out to playieee
Could it be Nvidia’s driver leak?? (I have ati)
Again , did you import any other 3rd party other mods in 3ddb database, eg JanHas ultra-high-res … etc??
You have 16GB of Vram - it is impossible that it gets filled with default bms graphics …
- Wait a mi…Texture (i guess vram) = 0 free ???
-
Guys Gancio says it has a gtx980 which has 4GB of Vram.
Where does the 16GB Vram comes from? -
his post above. - but you’re right , that’s probably “shared” or ?? (never saw that crazy amount 12GB shared… something doesn’t add up)
https://forum.falcon-bms.com/post/348333
“VRam paging 16326 MB ( never touched )”
and his blue-mem screen says
Texture: apx 0 MB free
-
shared
The way this works, in a nutshell… Windows “soft reserves” 50% of system ram to use as supplemental video-ram.
So eg. for a system with 16 Gb system ram + 4 Gb video ram, Windows will “lie” and tell games that there is (4+16/2 == 12 Gb) of video-ram available.
That doesn’t mean your system ram is actually cut in half … if no games are apps are using any of that ram, it remains 100% available for programs.
Even when it is used by games, to load textures … it can still be used as normal system ram – but paging (swapping) will occur whenever the game needs to access those textures (or vice versa – when other programs need to access those ram pages)
I suppose this is a good caveat to my advice above, to get rid of pagefile. If on a laptop or system with limited video-ram… have enough pagefile to back 50% of your physical ram.
Although maybe prefer game to crash, vs thrashing the pagefile with every frame…