[Solved] Memory error while loading large maps.

Help and support regarding PR:BF2 installation and in-game issues
Locked
liquidshocks
Posts: 7
Joined: 2012-01-12 00:38

[Solved] Memory error while loading large maps.

Post by liquidshocks »

Everytime I try to load up large maps such as Al Basrah, Muttrah City, or Fools Road (ones I tried) I get to the geometry part of the loading bar and the game gives me this message:

"memory.dll: sanity check: block size ######## (2019.97 MB) doesn't seem sane"

I am given three buttons but they all just close PR. I have tried increasing page fileing but it didn't change the result.

My computer specs (that seem relevant) are:

Windows Pro 64-bit
Intel Core i3-2100 CPU @ 3.10GHZ
2x4GB DDR3 RAM
MaSSive
Posts: 4502
Joined: 2011-02-19 15:02

Re: Memory error while loading large maps.

Post by MaSSive »

Interesting error, taking in consideration you are running 64bit system and have quite sufficient amount of RAM memory.
Muttrah and Fools Road should not be demanding on RAM that much, so I'm thinking you have this problem in random occasions.
Things to look at, are:

- Make sure you are running PR on account with admin privileges and while there make sure you run PR as administrator (do not use compatibility mode on Win7 for BF2 ever, it will cause horrible memory leaks)

- Try assigning BF2.exe process to one core on multicore system. To do this start PR as admin and ALT+TAB to desktop. Start task manager and find BF2.exe in processes tab. Right click on it and choose Affinity... Tick only one core. Get back to game and see if it helps.
liquidshocks
Posts: 7
Joined: 2012-01-12 00:38

Re: Memory error while loading large maps.

Post by liquidshocks »

I am running PR as an admininstrator, turned off compatibility mode for BF2, assigned the BF2.exe process to one core but I am still getting the same error message at the same part of the loading screen (geometry). I get this error EVERY time I try to load these maps, not just on occasion. There are probably more maps that cause this too but I haven't tested it. I have however been able to load up smaller maps and run them fine while in game with no issues.
Last edited by liquidshocks on 2012-01-12 01:32, edited 1 time in total.
Reason: Added details.
AFsoccer
Retired PR Developer
Posts: 4289
Joined: 2007-09-04 07:32

Re: Memory error while loading large maps.

Post by AFsoccer »

Can you load a vanilla BF2 map?
liquidshocks
Posts: 7
Joined: 2012-01-12 00:38

Re: Memory error while loading large maps.

Post by liquidshocks »

I just tryed loading Strike at Karkand both 64 and 16 player size with both resulting in the same error message as in PR.
MaSSive
Posts: 4502
Joined: 2011-02-19 15:02

Re: Memory error while loading large maps.

Post by MaSSive »

It might be that some of your RAM modules is faulty. Use memtest86 and check your RAM for errors. Best would be to check each stick individually. In most cases of this error its faulty RAM or swap file. If you havent already tried increasing page file size try it now. Change it from system managed size to some value but set it so both sizes ( initial and max ) are the same. This prevents it from increasing and decreasing dynamically and causing it to make fragments on hard drive.
liquidshocks
Posts: 7
Joined: 2012-01-12 00:38

Re: Memory error while loading large maps.

Post by liquidshocks »

'[R-COM wrote:MaSSive;1718447']It might be that some of your RAM modules is faulty. Use memtest86 and check your RAM for errors. Best would be to check each stick individually. In most cases of this error its faulty RAM or swap file. If you havent already tried increasing page file size try it now. Change it from system managed size to some value but set it so both sizes ( initial and max ) are the same. This prevents it from increasing and decreasing dynamically and causing it to make fragments on hard drive.
I have tried increasing my page file size to the recommended amount (12156 MB) with the initial and max both at that value. I am now going to check my RAM with memtest86.
liquidshocks
Posts: 7
Joined: 2012-01-12 00:38

Re: Memory error while loading large maps.

Post by liquidshocks »

Finished the memory test and it showed no faults. I think I am going to try to re-install Battlefield 2 seeing as before when I re-installed PR it had no effect on this issue.
LITOralis.nMd
Retired PR Developer
Posts: 5658
Joined: 2010-04-10 16:15

Re: Memory error while loading large maps.

Post by LITOralis.nMd »

Most likely you
1. have a corrupted, and/or highly fragmented pagefile.
2. Didn't update your DirctX9.0c when installing bf2
3. DIdn't install the latest C++ runtimes.

The foolproof and timeconsuming solution would be to uninstall BF2, PR PR mumble, and Directx9.0c, remove pagefile, reboot, defrag HDDs, install pagefile, reinstall BF2 with Ridectx9.0c, reinstall PR, update Punkbuster manually.


SO, for pagefile or fragmented hdd
1. remove pagefile,
2. reboot
3. defrag harddrive(s) you had pagefile and have BF2 and PR installed on
4. add pagefile
5. magic

Super Battlefield 2142 Fix
- Error on game load "Memory.dll : sanity check : block size 246157300 ( 234.75MB ) doesn't seem sane", or similar Memory sanity check insane error.
There are several steps to try to resolve this apart from checking your RAM isn't dodgy (see 13 above):
(a) Try clearing your page file on shutdown by following this M$ article here:
How to Clear the Windows Paging File at Shutdown
(b) Try resetting your Pagefile. The error can be due to a corruption of the Pagefile, although this should have been cleared by (a), it may be recurring due to fragmentation. Make a note of the original Windows Pagefile size, set it to 0, then reset it back to the original size.
Every so often GrmRprRG runs a little utility called PageDefrag to make sure there's no fragmentation of his PageFile. You can get it from MS at:
http://www.microsoft.com/technet/sys...ageDefrag.mspx
(c) Make sure you have the latest motherboard drivers for your SATA drive (used to be a major issue with BF2).
(d) Reinstall Windows and have a clean install of BF2142. Its quicker than extended troubleshooting if the above fixes didn't work.
If you have two harddrives, install Windows afresh onto your spare drive, and then copy the new BF2142 install back onto the other HD with the problem (you could use an external USB drive for copying the game over if you don't want to fiddle with master / slave jumpers on the drives). Also copy the BF2142 folder in My documents.
All should be ok now.

Resolves Memory sanity check doesn't seem sane error.
--------

for DirectX9
webinstall:
Download: DirectX End-User Runtime - Microsoft Download Center - Download Details
or donwload local install:
DirectX 9.0c Redistributable June 2010 Download - Freeware Files.com - Programming Category

-------
latest 2005 C++ SP1 runtimes.
Download: Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package ATL Security Update - Microsoft Download Center - Download Details
liquidshocks
Posts: 7
Joined: 2012-01-12 00:38

Re: Memory error while loading large maps.

Post by liquidshocks »

I already cleared my pagefile then restored it and defragmented my HDD (0%).
Installed DirectX9.0c (even thought I had 11) and still had the same error. Already have Microsoft Visual 2010 C++ and the SP1 associated with it. Punkbuster is up to date.

I guess it may be worth mentioning that when I installed BF2 it gave me a bunch of MD5 errors in different parts on the installation.
Last edited by liquidshocks on 2012-01-12 04:33, edited 1 time in total.
Reason: Typo
LITOralis.nMd
Retired PR Developer
Posts: 5658
Joined: 2010-04-10 16:15

Re: Memory error while loading large maps.

Post by LITOralis.nMd »

what type of BF2 installation are you using? Steam, Origin, CD copy, etc...

uninstall, check to see all the files were removed because the uninstaller might miss corrupted files, reboot, reinstall BF2 PR etc.

EDIT: follow the directions for the registry entry removals, do NOT download anything from this website...

Fully uninstall Battlefield 2 – Quickly and Easily Uninstall Battlefield 2_Uninstaller Download
liquidshocks
Posts: 7
Joined: 2012-01-12 00:38

Re: Memory error while loading large maps.

Post by liquidshocks »

A fresh installation of BF2 worked. Problem solved.
MaSSive
Posts: 4502
Joined: 2011-02-19 15:02

Re: [Solved] Memory error while loading large maps.

Post by MaSSive »

Sorry delete this.
Locked

Return to “PR:BF2 Support”