Mem leak?

If you find a bug within PR:BF2 (including PRSP), please report it here.
Locked
sniperNZSAS
Posts: 41
Joined: 2008-06-12 08:28

Mem leak?

Post by sniperNZSAS »

Hi I'm not 100% sure if this is a PR bug but im pretty sure. This has happened twise now.
I will be playing PR for a while, then my frame rate will take a shit, and things start getting ugly and pausing and jumping all the time, until i freeze for so long that pr will kick me for heart beat stopping. When this happened today, I checked my task manager and saw that I was using 3.7GB of ram ( Im only XP and can only utilise 3.25GB out of my 4GB ). After closing PR, I checked the ram usage again, and idling, my system was using 1.85GB of ram, with nothing showen in the processes tab using more than 30mb. after a restart, my systen idled at its normal 251mb.

I was wondering if perhaps instead of dumping the memory that PR is suppost to, instead it just uses more and more? I am to the understanding this is called a Memory Leak? correct?

Here the reason I blame PR. The only background program running was ventrilo, daemon tools, nvidia control pannel and my hd realtek drivers. This is pretty much a fresh install of xp, with no anti virus or firewall, or anything else that could posibly use such a large amount of ram.

Let me know if there is anything I can change to sort this out, or whether I can download something so that windows can recognise all 4gb of ram :)

Cheers
LithiumFox
Posts: 2334
Joined: 2007-07-08 18:25

Re: Mem leak?

Post by LithiumFox »

PR uses up to 4gb of memory at some moments.

there is a EXE fix for this... let me find it fast ^_^


https://www.realitymod.com/forum/f27-pr ... ost1055731

towards the bottom

the downloads are THIS for the CD version and THIS for the EA Downloader version > >

Just backup your old BF2.exe as bf2.exe.old and put that BF2.exe in your Battlefield 2 folder (don't worry, punkbuster accepts it... usually > >.. i haven't had any problems ^_^)

EDIT: Added the downloads AND redid the post XD sorry i linked to this post haha

A: The most common cause of this is that you are running out of memory (though there are other causes). BF2 was a memory intensive game, and PR only increases on that.

First, you can try lowering your video settings, in particular, Textures. If that doesn't help or fix your issue, you can try increasing your virtual memory.

If that STILL doesn't work, you can try patching your bf2.exe to allow it to use more than 2GB of memory. This is only useful if you indeed do have more than 2GB of memory. Firstly, you want to backup your current bf2.exe in your "C:\Program Files\EA Games\Battlefield 2" (default install location) folder. To do this, simply rename it from bf2.exe to bf2.exe.original. You should back it up incase you have any issues in the future. Now you need to download the patched bf2.exe. This can be found in THIS zip file (THIS one if your using the EA Downloader version) (If you get a virus warning, ignore it, just a false positive). Then simply extract it next to bf2.exe.original, and your good to go.
This might not make sense, but BF2 doesn't use more than 2gb of ram. =) These EXE patches allow it to use more than 2 gigs ^.^
Last edited by LithiumFox on 2009-06-23 01:41, edited 5 times in total.

[url=http://www.realitymod.com/forum/f112-pr-bf2-tales-front/91678-universal-teamwork-oriented-player-tag.html]
User avatar
bad_nade
Support Technician
Posts: 1499
Joined: 2008-04-06 18:26
Location: Finland

Re: Mem leak?

Post by bad_nade »

sniperNZSAS wrote:Hi I'm not 100% sure if this is a PR bug but im pretty sure. This has happened twise now.
I will be playing PR for a while, then my frame rate will take a shit, and things start getting ugly and pausing and jumping all the time, until i freeze for so long that pr will kick me for heart beat stoppings
That sounds more like overheating processor and/or graphics card than memory leak.
sniperNZSAS
Posts: 41
Joined: 2008-06-12 08:28

Re: Mem leak?

Post by sniperNZSAS »

temps are all fine, i use an 8800GT and run an amd 9950 quad Black Edition, which has a heatsink like a beast and never runs higher than 45C. also run 3 case fans. Im using windows xp 32bit
LithiumFox
Posts: 2334
Joined: 2007-07-08 18:25

Re: Mem leak?

Post by LithiumFox »

Read my post. It uses "largeaddressaware" bf2.exe (thus allows it to use more memory)

Also, change your affinity for bf2.exe in your Task Manager to only ONE CPU. =) Should help a little too

[url=http://www.realitymod.com/forum/f112-pr-bf2-tales-front/91678-universal-teamwork-oriented-player-tag.html]
LithiumFox
Posts: 2334
Joined: 2007-07-08 18:25

Re: Mem leak?

Post by LithiumFox »

Updated my first post. > > It should link to the FAQ's list... not back to this post XD

[url=http://www.realitymod.com/forum/f112-pr-bf2-tales-front/91678-universal-teamwork-oriented-player-tag.html]
sniperNZSAS
Posts: 41
Joined: 2008-06-12 08:28

Re: Mem leak?

Post by sniperNZSAS »

Cheers mate, ill let ya know if it solves the issue
LithiumFox
Posts: 2334
Joined: 2007-07-08 18:25

Re: Mem leak?

Post by LithiumFox »

=) alright, that was always my issue ^_^ also make sure you update your punkbuster. Reinstall it using the the PB installer (i forget what its called) like pbsv or something

and then update using PBSetup. =) sometimes Punkbuster can cause crashes ^_^

Gamebooster helps too. Turns off all useless applications and processes

If you can find out what's using 1.85 gigs that would help too =)

[url=http://www.realitymod.com/forum/f112-pr-bf2-tales-front/91678-universal-teamwork-oriented-player-tag.html]
Raptor007
Posts: 61
Joined: 2009-05-28 22:05

Re: Mem leak?

Post by Raptor007 »

Correct me if I'm wrong, but I don't think patching BF2.exe will change anything. PR 0.860 has its own executable, PR.exe, which runs instead of BF2.exe.

You might try installing the latest Nvidia drivers. I've heard that the Nvidia drivers like to allocate system memory to keep a copy of the textures that are loaded, which could explain why the wasted memory stayed around after quitting PR.
LithiumFox
Posts: 2334
Joined: 2007-07-08 18:25

Re: Mem leak?

Post by LithiumFox »

um... PR.exe only runs for it's own checks that they can't code into the game =/

;-) run the game, check your task manager. PR.exe only takes up like.. 7000kb of memory. BF2.exe will still be running, as that is the game.

:lol: PR.exe runs side by side with BF2, cause it's technically illegal for them to make major modifications to the BF2.exe. =/ Most we can do is come up with "legal" fixes, such as this memory fix.

[url=http://www.realitymod.com/forum/f112-pr-bf2-tales-front/91678-universal-teamwork-oriented-player-tag.html]
Twisted Helix
Retired PR Developer
Posts: 5145
Joined: 2008-11-03 04:18

Re: Mem leak?

Post by Twisted Helix »

LithiumFox wrote:um... PR.exe only runs for it's own checks that they can't code into the game =/
Yup, pr.exe is just a shell that runs bf2.exe.
:lol: PR.exe runs side by side with BF2, cause it's technically illegal for them to make major modifications to the BF2.exe.
Actually that would be 'technically impossible'. We don't have the source code.
LithiumFox
Posts: 2334
Joined: 2007-07-08 18:25

Re: Mem leak?

Post by LithiumFox »

[R-DEV]Twisted Helix wrote:Yup, pr.exe is just a shell that runs bf2.exe.



Actually that would be 'technically impossible'. We don't have the source code.
with NR2003 as my source..... reverse engineering ;)

[url=http://www.realitymod.com/forum/f112-pr-bf2-tales-front/91678-universal-teamwork-oriented-player-tag.html]
Dosedmonkey
Posts: 138
Joined: 2007-08-09 02:01

Re: Mem leak?

Post by Dosedmonkey »

Yes I have found PR has caused this memeory leak problem on my original BF2.exe thanks for the help! :)
Image
Image
Image
MrScruff
Posts: 73
Joined: 2009-03-24 18:40

Re: Mem leak?

Post by MrScruff »

I dont know why alot of people persist with problems when they have Computer more advanced than mine.

Im using a MacBook Pro (Laptop btw) 15 inch, 2.4GHz Intel Core 2 Duo, GeForce 8600M GT, 4GB RAM. Im running Mac, but Windows XP separately on Boot Camp 2.0 with 37GB of allocated HD space.

With this I can run PR flawlessly for 6 rounds before the occasional CTD.
strickt
Posts: 110
Joined: 2009-06-12 20:49

Re: Mem leak?

Post by strickt »

MrScruff wrote:I dont know why alot of people persist with problems when they have Computer more advanced than mine.

Im using a MacBook Pro (Laptop btw) 15 inch, 2.4GHz Intel Core 2 Duo, GeForce 8600M GT, 4GB RAM. Im running Mac, but Windows XP separately on Boot Camp 2.0 with 37GB of allocated HD space.

With this I can run PR flawlessly for 6 rounds before the occasional CTD.
And that helps him solve his memory leak problem HOW?
Menigmand
Posts: 128
Joined: 2008-11-09 13:13

Re: Mem leak?

Post by Menigmand »

I also often have the same problem. PR will run like a charm the first round, then a bit worse the second round - third round it crashes sometimes or might begin to run very choppily. A restart of the computer and rejoining the server fixes this problem - so I'm thinking it could be a memory leak!

I have 2 Gb of memory. And before you say thats too little, remember that the first round works perfectly. So should the subsequent ones, if the memory is recycled.
Killer2354
Posts: 407
Joined: 2008-11-19 02:48

Re: Mem leak?

Post by Killer2354 »

a tip already stated above- try using game booster. it closes/stops all of the useless processes. for me it clears around...56bmbs of ram... though i'm not sure because i'm back to school :/
Locked

Return to “PR:BF2 Bugs”