Battlefield Bad Company 2 memory leak on 64 bit Windows

M4dn3ss

New member
Power User
Local time
1:58 PM
Messages
126
Location
Melbourne, Australia
I just reinstalled Windows 7, the 64 bit version (I was previously using 32 bit) and now when I play Bad Comapany 2, after a while (less than a minute) the game will just completely freeze up (sometimes the audio gets stuck and loops) and the whole computer is unresponsive for a minute or so... then it crashes without an error.
It's not Punkbuster, because I tested single player and the same thing happens. I heard it could be caused when people used cracked versions of Windows but mine is completely normal and legitimate. I've also heard it could sometimes be caused by Realtek onboard sound chips, but I still get the problem after disabling it. (Which is not a good solution anyway because I don't have any other sound card I could use)
I ran Task Manager and I found that after a little while after loading the level, everything would be normal and all of a sudden the memory usage would go up like crazy until BFBC2.exe was using over 2gbs of ram; the memory usage would go up to 99% and at that point it freezes.
bc2leak.png

I have no idea what's causing it; it worked fine when I ran the game on 32 bit last night before I reinstalled


Edit: After monitoring task manager more closely, the memory usage starts to jump after I reach certain parts in single player missions (multiplayer is too unpredictable to test properly). If I quit to the main menu before the RAM usage goes up to 99% it takes a long time, during this time the memory usage goes down before it settles, and then the menu appears. If I stay in one place at the start of a mission (tested on Airborne and Heavy Metal) the memory usage doesn't jump up (until of course I advance through the level a bit)

Edit 2: On another map, Sangre Del Toro, the memory usage goes up after taking a few steps forward
 

My Computer My Computer

At a glance

Windows 7 Professional x64Intel Core i5 4690KCorsair Vengeance 16GB DDR3-1600Sapphire Radeon R9 290 Tri-X OC
Computer type
PC/Desktop
OS
Windows 7 Professional x64
CPU
Intel Core i5 4690K
Motherboard
Gigabyte Z97X Gaming-3
Memory
Corsair Vengeance 16GB DDR3-1600
Graphics Card(s)
Sapphire Radeon R9 290 Tri-X OC
Sound Card
ONBOARD SOUND :D
Monitor(s) Displays
Samsung S24A450BW
Screen Resolution
1920x1200 (16:10 forever)
Hard Drives
250GB Samsung 840 EVO + 2TB Seagate Barracudea
PSU
Fractal Design Newton R3 1000W
Case
Corsair Graphite 230T
Cooling
Cooler Master Hyper 212X
Keyboard
Logitech G710+, CM Storm TK
Mouse
Steelseries Rival
Internet Speed
Australian
Antivirus
Avast, because I'm cheap
Browser
All the browsers!
M4dn3ss,

To check for freezing/crashing you need to do the following.

Event viewer.
Type eventvwr in search and go to the windows log > application AND System tabs.
Look for errors that have red in the left hand column that say app hang, or app crash, or anything relating to the CURRENT problem.
When you find any make a screenshot and upload them to us.

What information appears in event logs? (Event Viewer)
 

My Computer My Computer

At a glance

Win 7 Ultimate 64-bit. SP1.Intel i7 -720QM.[1.6GHz Turbo Boost 2.8GHz. 6...8 DDR 3 RAM. 1066MHZATI 1024 MB. DDR3. Radeon HD5650
Computer Manufacturer/Model Number
LAPTOP. HP Pavilion dv7-4010TX .
OS
Win 7 Ultimate 64-bit. SP1.
CPU
Intel i7 -720QM.[1.6GHz Turbo Boost 2.8GHz. 6MB Cache.]
Memory
8 DDR 3 RAM. 1066MHZ
Graphics Card(s)
ATI 1024 MB. DDR3. Radeon HD5650
Monitor(s) Displays
17.3" High Definition Brightview LCD. LED Backlit.
Screen Resolution
1600 x 900.
Hard Drives
640GB
Case
Laptop / notebook.
Mouse
Logitech Anywhere mouse. MX.
Internet Speed
ADSL [ but too slow ]
There aren't any errors or warnings, I only see "information" events
Note that the game, upon reaching 99% memory usage freezes the whole computer for a bit and then crashes without any error
 

My Computer My Computer

At a glance

Windows 7 Professional x64Intel Core i5 4690KCorsair Vengeance 16GB DDR3-1600Sapphire Radeon R9 290 Tri-X OC
Computer type
PC/Desktop
OS
Windows 7 Professional x64
CPU
Intel Core i5 4690K
Motherboard
Gigabyte Z97X Gaming-3
Memory
Corsair Vengeance 16GB DDR3-1600
Graphics Card(s)
Sapphire Radeon R9 290 Tri-X OC
Sound Card
ONBOARD SOUND :D
Monitor(s) Displays
Samsung S24A450BW
Screen Resolution
1920x1200 (16:10 forever)
Hard Drives
250GB Samsung 840 EVO + 2TB Seagate Barracudea
PSU
Fractal Design Newton R3 1000W
Case
Corsair Graphite 230T
Cooling
Cooler Master Hyper 212X
Keyboard
Logitech G710+, CM Storm TK
Mouse
Steelseries Rival
Internet Speed
Australian
Antivirus
Avast, because I'm cheap
Browser
All the browsers!
> Nothing indicating the "source" of your problems in Event Viewer......hum!

> Run SFC.{Option2}
Let us know the results at the end please.

http://www.sevenforums.com/tutorials/1538-sfc-scannow-command-system-file-checker.html

> Suggest you also run the System Update Readiness Tool.
Then update to SP-1

Ensure you install the correct 64 or 32 bit option for your system)
Download the System Update Readiness Tool (64bit)
Download the System Update Readiness Tool (32bit)

http://windows.microsoft.com/installwindows7sp1

 

My Computer My Computer

At a glance

Win 7 Ultimate 64-bit. SP1.Intel i7 -720QM.[1.6GHz Turbo Boost 2.8GHz. 6...8 DDR 3 RAM. 1066MHZATI 1024 MB. DDR3. Radeon HD5650
Computer Manufacturer/Model Number
LAPTOP. HP Pavilion dv7-4010TX .
OS
Win 7 Ultimate 64-bit. SP1.
CPU
Intel i7 -720QM.[1.6GHz Turbo Boost 2.8GHz. 6MB Cache.]
Memory
8 DDR 3 RAM. 1066MHZ
Graphics Card(s)
ATI 1024 MB. DDR3. Radeon HD5650
Monitor(s) Displays
17.3" High Definition Brightview LCD. LED Backlit.
Screen Resolution
1600 x 900.
Hard Drives
640GB
Case
Laptop / notebook.
Mouse
Logitech Anywhere mouse. MX.
Internet Speed
ADSL [ but too slow ]
Well I ran the SFC:
cmdfw.png


Extracted the contents of CBS.log into a text file (attached)
I have a modified explorer.exe because I have a modded start orb; SFC appears to have detected that but it didn't restore the original explorer.exe
No other system file seems to be modified so that appears normal

I already have SP1 and all the latest updates
 

Attachments

My Computer My Computer

At a glance

Windows 7 Professional x64Intel Core i5 4690KCorsair Vengeance 16GB DDR3-1600Sapphire Radeon R9 290 Tri-X OC
Computer type
PC/Desktop
OS
Windows 7 Professional x64
CPU
Intel Core i5 4690K
Motherboard
Gigabyte Z97X Gaming-3
Memory
Corsair Vengeance 16GB DDR3-1600
Graphics Card(s)
Sapphire Radeon R9 290 Tri-X OC
Sound Card
ONBOARD SOUND :D
Monitor(s) Displays
Samsung S24A450BW
Screen Resolution
1920x1200 (16:10 forever)
Hard Drives
250GB Samsung 840 EVO + 2TB Seagate Barracudea
PSU
Fractal Design Newton R3 1000W
Case
Corsair Graphite 230T
Cooling
Cooler Master Hyper 212X
Keyboard
Logitech G710+, CM Storm TK
Mouse
Steelseries Rival
Internet Speed
Australian
Antivirus
Avast, because I'm cheap
Browser
All the browsers!
Update: Some further explanation:
When BFBC2.exe's ram usage goes to about 2gb it stutters heavily (at the rate of about a frame every few seconds) - at this point the ram usage will start to decline until the game becomes normal again. Sometimes it will go over 2gb until the ram usage of the whole system is over 99% and at that point the whole computer will freeze and the game will crash before things return to normal. (At this point I also get a lot of HDD activity)
In multiplayer sometimes it will disconnect me from the server and return me to the main menu.
 

My Computer My Computer

At a glance

Windows 7 Professional x64Intel Core i5 4690KCorsair Vengeance 16GB DDR3-1600Sapphire Radeon R9 290 Tri-X OC
Computer type
PC/Desktop
OS
Windows 7 Professional x64
CPU
Intel Core i5 4690K
Motherboard
Gigabyte Z97X Gaming-3
Memory
Corsair Vengeance 16GB DDR3-1600
Graphics Card(s)
Sapphire Radeon R9 290 Tri-X OC
Sound Card
ONBOARD SOUND :D
Monitor(s) Displays
Samsung S24A450BW
Screen Resolution
1920x1200 (16:10 forever)
Hard Drives
250GB Samsung 840 EVO + 2TB Seagate Barracudea
PSU
Fractal Design Newton R3 1000W
Case
Corsair Graphite 230T
Cooling
Cooler Master Hyper 212X
Keyboard
Logitech G710+, CM Storm TK
Mouse
Steelseries Rival
Internet Speed
Australian
Antivirus
Avast, because I'm cheap
Browser
All the browsers!
Keep it under observation...
 

My Computer My Computer

At a glance

Win 7 Ultimate 64-bit. SP1.Intel i7 -720QM.[1.6GHz Turbo Boost 2.8GHz. 6...8 DDR 3 RAM. 1066MHZATI 1024 MB. DDR3. Radeon HD5650
Computer Manufacturer/Model Number
LAPTOP. HP Pavilion dv7-4010TX .
OS
Win 7 Ultimate 64-bit. SP1.
CPU
Intel i7 -720QM.[1.6GHz Turbo Boost 2.8GHz. 6MB Cache.]
Memory
8 DDR 3 RAM. 1066MHZ
Graphics Card(s)
ATI 1024 MB. DDR3. Radeon HD5650
Monitor(s) Displays
17.3" High Definition Brightview LCD. LED Backlit.
Screen Resolution
1600 x 900.
Hard Drives
640GB
Case
Laptop / notebook.
Mouse
Logitech Anywhere mouse. MX.
Internet Speed
ADSL [ but too slow ]

Attachments

My Computer My Computer

At a glance

Windows 7 Professional x64Intel Core i5 4690KCorsair Vengeance 16GB DDR3-1600Sapphire Radeon R9 290 Tri-X OC
Computer type
PC/Desktop
OS
Windows 7 Professional x64
CPU
Intel Core i5 4690K
Motherboard
Gigabyte Z97X Gaming-3
Memory
Corsair Vengeance 16GB DDR3-1600
Graphics Card(s)
Sapphire Radeon R9 290 Tri-X OC
Sound Card
ONBOARD SOUND :D
Monitor(s) Displays
Samsung S24A450BW
Screen Resolution
1920x1200 (16:10 forever)
Hard Drives
250GB Samsung 840 EVO + 2TB Seagate Barracudea
PSU
Fractal Design Newton R3 1000W
Case
Corsair Graphite 230T
Cooling
Cooler Master Hyper 212X
Keyboard
Logitech G710+, CM Storm TK
Mouse
Steelseries Rival
Internet Speed
Australian
Antivirus
Avast, because I'm cheap
Browser
All the browsers!
Well I reinstalled it and it works fine. Like WTF? o.0
Anyone know why it didn't work properly in the first place??
 

My Computer My Computer

At a glance

Windows 7 Professional x64Intel Core i5 4690KCorsair Vengeance 16GB DDR3-1600Sapphire Radeon R9 290 Tri-X OC
Computer type
PC/Desktop
OS
Windows 7 Professional x64
CPU
Intel Core i5 4690K
Motherboard
Gigabyte Z97X Gaming-3
Memory
Corsair Vengeance 16GB DDR3-1600
Graphics Card(s)
Sapphire Radeon R9 290 Tri-X OC
Sound Card
ONBOARD SOUND :D
Monitor(s) Displays
Samsung S24A450BW
Screen Resolution
1920x1200 (16:10 forever)
Hard Drives
250GB Samsung 840 EVO + 2TB Seagate Barracudea
PSU
Fractal Design Newton R3 1000W
Case
Corsair Graphite 230T
Cooling
Cooler Master Hyper 212X
Keyboard
Logitech G710+, CM Storm TK
Mouse
Steelseries Rival
Internet Speed
Australian
Antivirus
Avast, because I'm cheap
Browser
All the browsers!
Back
Top