Sign in to follow this  
Guest Bob I

Virtual memory leak - due to Landclass FS2004 scenery in FS2002?

Recommended Posts

Hi folks,I'm struggling a little here. I've had several attempts at a cross country flight terminate when FS2004 exhausted my system's virtual memory. It took a while - 30 minutes for one flight, nearly an hour for the re-run.When I look more closely with XP's performance monitor, what I find is that the FS9.exe process was chewing up more and more virtual memory the longer it ran. Around the 20Mb per minute mark. I stopped the next attempt as FS9 grew past 1.2Gb of virtual memory. When I looked even more closely, I discovered that this was only when I was flying with "landclass" scenery imported from FS2002. I discovered this by trial and error - turning off all my addon scenery, flying the default C172, and turning things on one at a time until the problem recurred.Interestingly, as soon as I headed off shore and left the landclass scenery behind, the virtual memory stopped growing. Came back to land and it resumed growing.Just to check that it wasn't the specific Landclass scenery I was using, I tried heading over to the Seattle area and using the Pacific Northwest landclass scenery. That did the same thing.I know other people are using Landclass scenery from FS2002. Is anybody else seeing this "memory leak" effect? (I'm sure there are other factors at work here, but I'm struggling with what to try next.)My system is a little low powered, but otherwise fairly normal: P-III/733, 512Mb RAM, 64Mb Geforce2 MX400, Windows XP ProNick.

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Nick,Have you made any changes to the FS9.cfg file in the area of extended_texture_radius, Levels=x etc.?It was reported by JohnC (orCi?) that when he raised the settings manualy in the config the result he saw on his machine was that it leaked as well so I wonder if there might be a connection.

Share this post


Link to post
Share on other sites

I had performance issues after installing landclass files into FS2004. After removing them, everything runs as well as FS2002.Dave

Share this post


Link to post
Share on other sites

No one else will be able to reproduce these "problems" with landclass if we do not have links to those files, where they were installed, and what changes were made to the sim ( as Paul points out ).We went through a "problem" with excludes a few weeks ago, only to find there actually was no problem... so it is really helpful to list all the info when making these statements to avoid busy people chasing the wild geese too long.Dick

Share this post


Link to post
Share on other sites

I have the same problem with FS Genesis' Beta landclass (available at http://portal.fsgenesis.net/).I have a short test flight from KTIW to KSEA. With landclass installed, FS9 will start to stutter badly a few minutes into the flight. On approach to KSEA, this gets unbearable. When exiting the sim, there is clearly a memeory issue because it takes several moments before things get cleared out and running smoothly again.Uncheck the landclass, and no stutters. No problems.I've reported this on the FS Genesis board but it didn't seem to be a problem for anyone else (and since it was a freeware beta I wasn't really expecting support).It's interesting to hear that someone else is having the same problem. I'd love to have landclass installed, and I would purchase the payware version of the FS Genesis stuff if I knew it didn't have this problem.I wonder if any of the people who are complaining of stutter issues have some sort of landclass update installed? I wonder if FS2004 does something different with the landclass that makes it somehow not optimized for the FS2002 landclass stuff?

Share this post


Link to post
Share on other sites

Hi Nick,I wrote yesterday about that on this forum (look for "out of memory").I suffer exactly the same problem with the memory allocation getting higher and higher (I have 2 Gigs) and then all my virtual memory (3 Gigs).It happens with every Landclass, independently where they come from and who made it.As soon as you are in an area covered by an active landclass file, you get the problem, even if the sim is paused and you stay on the tarmac, engines off...If you use the function "World-->GoTo Airport" and jump to another place covered by the same or another landclass file, the amount of memory eaten will double, the memory amount of the two locations are added!I wrote an E-mail to Burkhard Renk (the father of Landclass) about it this morning.I love Landclass, wait and see,...

Share this post


Link to post
Share on other sites

I have used the gsgenesis beta landclass installation previously. Is the beta bgl called " fsglc_us.bgl "?Not sure if any particular version is a problem.My file size is 2.06mb with a file date of 12/13/2002. Not sure if the date would be valid.Thanks. I will watch my VMBobG

Share this post


Link to post
Share on other sites

Hi Jean-Claude.Is this affected by the presence, or lack, of the virtual cockpit, or the gauges? Is this with and without using the no-cd crack?I can't force this memory loss on my system, yet.Dick

Share this post


Link to post
Share on other sites

The scenery that I was running when I encountered the problem was Ian Thatcher's landclass for Victoria: lcvic2.zip. It can be obtained from may places, including Avsim at http://library.avsim.net/sendfile.php?DLID=17075. My flight was from Moorabbin airport to Wilsons Promontory, heading for Flinders Island.The scenery I used as a cross-check was Pacific North West (USA)landclass: pnwlandclass.zip by Neil Hill. I got it from Avsim at http://library.avsim.net/sendfile.php?DLID=14641.I'm quite sure there's nothing wrong with either of these scenery files. I've been flying Ian Thatcher's scenery for some time in FS2002.All suggestions welcomed.Nick.ps. I installed them in their own folders and added them as distinct scenery areas. I was afraid that if I put them in the base scenery area I might never find the files again! I guess that's another variable I could try though. Thanks for the thought rhumbaflappy.

Share this post


Link to post
Share on other sites

I haven't made any changes in those areas, but I have tweaked a few other settings (no brake message, VC pan rate, that sort of thing.)If all else fails, I might try getting back to an unmodified FS9.cfg file. Thanks for the suggestion.Nick.

Share this post


Link to post
Share on other sites

Personally, I didn't notice any unusual stuttering - even when the virtual memory usage got above 1Gb. But I guess I would have eventually, especially if my disk had been at all fragmented.Beyond that I'm not sure I understand enough to guess at the nature of the problem. It's got *something* to do with adding landclass files that worked fine in the older sim, but how direct that link is I don't know yet.Nick.

Share this post


Link to post
Share on other sites

Hi Jean-ClaudeI saw that thread, but before you had got to the point where you knew it was Landclass BGL's. It sounds like we have exactly the same thing going on. That's very reassuring. I hate it when I'm the only one with a problem!Be sure to post any further news - I'll be watching.It would be interesting to positively confirm that there are people who are *not* seeing this runaway memory growth, then we could start looking to see what you and I have in common that the lucky ones do not.Nick.

Share this post


Link to post
Share on other sites

I dont notice that problem at all. I hardly fly over 1hr though.. but ill give it a try tonight.. see whats up..I would think a memory link would have been found in beta testing

Share this post


Link to post
Share on other sites

>I have a short test flight from KTIW to KSEA. With landclass>installed, FS9 will start to stutter badly a few minutes intoFly a faster acft and the flight will be over before the stutters start, as the flight should only last a few minutes at most even in slower acft. *grin*

Share this post


Link to post
Share on other sites

Dick,I've had this both with and without the no-cd crack. With Flight 1 C152 and with the default C172. With virtual cockpit and 2d cockpit.Here's my simplest scenario to date:- Install the Pacific Northwest Landclass- Stop and start FS9- Get FS9 into a window and start Task Manager alongside- Create a flight - C172 at Snohomish Co with fair weather- Take off and fly runway heading- Trim for level flight and just let her go- Watch the VM usage on Task ManagerWhat I see isn't quite steady growth, but sort of "bursts of steady growth." It starts at 200Mb +/- 10% and grows from there. Sometimes it's stable, sometimes it's growing, sometimes it even shrinks a little. But the overall effect is growth. To see that: - Put the aircraft in a shallow bank and trim so that it holds the turn. - Leave it circling in the area for a while.After 45 minutes, the VM usage was just approaching 400Mb. That's quite slow growth. When I'm actively flying - switching views - I've got to 1Gb in less than an hour.For the record, I've got traffic density set to 33% and weather evolution set to high. I've tryed turning them off, but it doesn't stop the memory growth.I'd be interested to know if you can confirm that you positively don't see this memory growth.Nick.

Share this post


Link to post
Share on other sites

Hi Nick.I have reproduced this effect with the FSGenesis Beta landclass. It is not a result of our methods of creating landclass. What I did was place the landclass BGL into a project's folder structure with twin sub-folders ( 'scenery' and 'texture' ). It goes into 'scenery'.Landclass BGLs should NOT be placed into this type of structure, as the twin 'texture' sub-folder causes problems. In FS2002, the sim will display huge solid colored squares when this is done. In FS2004, it will display the ground textures correctly, but the memory will be eaten up, and not returned until the sim is terminated.The problem is exaggerated when you force the sim to refresh the ground tiles. This can be easily done by changing the time of day by an hour and re-entering the flight. Do this several times, and the virtual memory space is used up. With the 'texture' sub-folder, the memory needs are increased dramatically, without that 'texture' sub-folder, the sim will return the memory. So the same rules apply for FS2004:NEVER have a twin 'texture' sub-folder paired with the 'scenery' sub-folder when using landclass BGLs.Dick

Share this post


Link to post
Share on other sites

OK, I confess I posted exactly the same question at both web sites. :) Yes, that seems to be working for me too. After putting the landclass BGL files directly into scenerybasescenery rather than creating an add-on folder for them, I flew for more than half an hour with no VM growth.Thanks Dave!Nick.

Share this post


Link to post
Share on other sites

Dick,Thanks for that! Getting rid of the empty "texture" folder does indeed get rid of the memory growth problem.That also explains why moving the BGL files into the base scenery worked, as there is no twin texture folder there.Excellent! Nick.

Share this post


Link to post
Share on other sites

Hi Nick."After putting the landclass BGL files directly into scenerybasescenery rather than creating an add-on folder for them, I flew for more than half an hour with no VM growth."Yes, because the sim then does not need to "look" for the textures. Here's a snip from the "scenery.cfg" file:[Area.001]Title=Default TerrainTexture_ID=1Layer=1Active=TRUERequired=TRUELocal=SceneryWorldRemote=The bolded line is what tells the sim to search the 'SceneryWorldtexture' folder first for textures.But if you have a local 'texture' sub-folder, it will search there first... that's what is causing the memory to not be returned. FS2004 was changed to allow landclass to be placed into any scenery folder and display properly, but the display engine was never told to let the memory go if a local 'texture' folder was present without the needed textures... it's a bug.Interestingly, if you copy the whole 'SceneryWorldtexture' as the local 'texture' folder, memory is fine.If a landclass contained only 5 ground texture classes, those texture sets could be in the local 'texture' folder with no memory loss. That allows the use of customised texture sets for small areas. But ALL the textures for the 5 classes used must be in the local 'texture' folder.It's all or none. I have used this in CFS2 to enlarge the "tropical" texture area of CFS2, which is too small in the default. Other than that example, I've never seen anyone take advantage of this possibility.Here's the link for CFS2Tropical:http://library.avsim.net/esearch.php?DLID=...wise&CatID=RootAreas as small as 4 LOD13 Areas can have a custom texture set for that one landclass. Why 4? Because a single landclass is assigned to groundtile vertices ( corners ) and are blended to the center of the groundtile at runtime... one vertex affects 4 groundtiles. But that's a different subject. Dick

Share this post


Link to post
Share on other sites

I confess I'm not entirely sure what you are talking about here. I'm talking about when you say "But if you have a local 'texture' sub-folder, it will search there first... that's what is causing the memory to not be returned." I don't have texture sub-folders where Landclass is installed because in fs2k2 I always heard that could cause black squares to be displayed. I also assume that others don't have texture sub folders either so how does that affect the memory leak? Not an attack on what you say I just don't understand. As to putting LC in the base scenery directory the only issue I can think of is if two LC files cover the same area. Which whould take priority? If I had them in sepparate folders I could arrange the priority with the scenery library. How could this be accomplished if they are all in the base directory?

Share this post


Link to post
Share on other sites

Hi Milamber,rhumbaflappy isn't saying that you have to put the landclass in the base scenery directory.He's saying that if you put them somewhere else, you shouldn't create a texture folder unless you also provide all the textures needed for the landclasses you use.In short, I think you are in agreement.I now have my landclass in add-on scenery folders without any memory leak, and I'm a happy camper again.Nick.

Share this post


Link to post
Share on other sites

Hello all,- How do I know which bgls belong to Land Class and which bgls belong to something else in my inflated FS2002 that I've been building up for 6 months? I installed many free custom areas and airports that have a twin structure inside (Scenery and Texture), how do I know which of those contain LC bgls and should be put in the main Scenery folder instead? What could be a proper maintanance in my situation to avoid Land Class bgls/texture related problems?- How do I know if all the necessary textures for LC bgls are present or only some are present and others are missing?- Can I just dump all the bgls that I find in FS2002 into FS2002scenery folder, or there may be overwrite problems?- From now on how to install Land Class add-ons into FS9? Should I just dump all the custom bgls into scenery/base/scenery? What if overwrite conflict occurs at some point when I have many custom land classes?Thanks.Dirk

Share this post


Link to post
Share on other sites

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
Sign in to follow this