Page 1 of 4

Problem

Posted: Mon Jul 09, 2012 7:55 pm
by tjeren
Game crush every 5min or frezz, in task manager app is running but nothing happened.
In error file is massage KERNEL MEMORY CHECKING IS **OFF**.
what to do?
win7 x64

thx

Re: Problem

Posted: Mon Jul 09, 2012 7:58 pm
by Rudankort
Game log is in a different folder: %My Documents%\My Games\Panzer Corps\Log

When you check the task manager, how much memory is used by the application?

Re: Problem

Posted: Tue Jul 10, 2012 6:42 am
by tjeren
Log file:
Version 1.10 beta1 (Jul 6 2012)
WINDOWS VERSION: 5.1.2600. Platform ID: 2. CSDVersion: Service Pack 3
mciSendString(play AttackSfx/ArtLight1) failed.
Error: 'Not enough memory available for this task.

Quit one or more applications to increase available memory, and then try again.' (code: 264)
mciSendString(play AttackSfx/ArtLight1) failed.
Error: 'Not enough memory available for this task.

Quit one or more applications to increase available memory, and then try again.' (code: 264)
mciSendString(play DamageGroundSmall2) failed.
Error: 'Not enough memory available for this task.

Quit one or more applications to increase available memory, and then try again.' (code: 264)
mciSendString(play DamageGroundSmall2) failed.
Error: 'Not enough memory available for this task.

Quit one or more applications to increase available memory, and then try again.' (code: 264)


App. use around 835MB and i have 2GB RAM...system use around 900MB so there is free memory for use cca 350MB.
I close some app. and free 150mb of ram but no change...so now there is 1.3Gb free for game

Re: Problem

Posted: Fri Jul 13, 2012 6:20 pm
by tjeren
I dowload beta2, uninstall old one and problem stays... in log same message, if helps when i start game it take around 480MB or ram and every second it take few kB of memory and when reach around 840MB it frezz or crash.
What to do?

Re: Problem

Posted: Fri Jul 13, 2012 6:52 pm
by Rudankort
Sorry, I forgot to reply on this. Data you've posted above proves that we have an out of memory condition. Even the error messages in the log state this:
Error: 'Not enough memory available for this task.

This is interesting because normally 2GB of RAM is enough under Win7. Maybe x64 version of Windows uses more memory, and so remaining RAM is not enough for the game?

To further clarify the issue, I have a few more questions.
- Does the base game (PzC 1.05) run on this machine without issues, or same issue happens there too?
- Will it help if you go to the game's installation folder and rename Audio folder to _Audio? (You may need to do this operation as an administrator.) This will effectively disable music/sounds and reduce the game's memory requirements. I wonder if this will help?
- 2All: does anybody else have a similar configuration (2GB RAM, Win7 x64)? If yes, does the same problem happen to you?

Thanks!

Re: Problem

Posted: Sun Jul 15, 2012 2:15 pm
by sgocart6298
Yes, it happened to me last night. The game crashed and had to delete everything as it would not restart. I never had the problem with 1.05. I have the latest Dell Computer that is well stacked.

Re: Problem

Posted: Sun Jul 15, 2012 5:01 pm
by Razz1
Do you have Norton Anti virus running in the back ground?

Re: Problem

Posted: Sun Jul 15, 2012 10:15 pm
by sgocart6298
Yes as w/all Panzer Corps games in the past and no problem. Almost finished the game when this occurred?. Downloaded again but won't respond or even open for that matter?

Re: Problem

Posted: Mon Jul 16, 2012 12:22 am
by VPaulus
Try to run is Windows Safe Mode just to see if something is blocking it.

Re: Problem

Posted: Wed Jul 18, 2012 11:42 am
by tjeren
My problem is solved after i renamed audio folder and after few hours app gets little slow and i takes about 1.3 GB of ram.... save-quit-run again.... and its fast again :)
I run my PzC 1.05 without any problem.

Re: Problem

Posted: Wed Jul 18, 2012 12:13 pm
by VPaulus
Will 1.10 use more memory, Rudankort?
I've just finished to adapt the sound mod to AK, I'll have to test.

@tjeren
Do you play more than one scenario, one after another, without exiting to Windows?
Panzer Corps only dumps off memory when you exit to Windows, not in the end of each scenario.

Re: Problem

Posted: Wed Jul 18, 2012 1:02 pm
by Rudankort
VPaulus wrote:Will 1.10 use more memory, Rudankort?
I've just finished to adapt the sound mod to AK, I'll have to test.
It might, because the tilesets have become much bigger, with all desert-related stuff added to them. But how much bigger, I still need to check. In theory, the difference should not be more than a few percent, but this topic suggests that the difference is bigger than I expected...

Re: Problem

Posted: Wed Jul 18, 2012 3:42 pm
by tjeren
VPaulus wrote:
@tjeren
Do you play more than one scenario, one after another, without exiting to Windows?
Panzer Corps only dumps off memory when you exit to Windows, not in the end of each scenario.

Yes, I play more that one scenario one after another, without exiting

Re: Problem

Posted: Wed Jul 18, 2012 4:13 pm
by VPaulus
tjeren wrote:
VPaulus wrote:
@tjeren
Do you play more than one scenario, one after another, without exiting to Windows?
Panzer Corps only dumps off memory when you exit to Windows, not in the end of each scenario.

Yes, I play more that one scenario one after another, without exiting
tjeren, could you please enable the audio, and try to play one or two games at most, exit Windows and run the game again.
Maybe this way you can play with audio enable. Please, report back.

Re: Problem

Posted: Wed Jul 18, 2012 5:26 pm
by Chris10
If PzC really freezes or crashes when reaching 1GB RAM usage (somebody told me so) then my guess would be a stack overflow
because Stack Data is set to default limit of 1GB no matter if 32bit or 64bit system...
Is this really appropiate nowadays ?
There are some more tools in the box...cmon...> Static allocated Data > Dynamic Data >
Various options now:
1. Fix this by reorganizing the code tu use a mix of memory allocation
Why are animations and sounds not loaded only when needed and/or not dumped after usage ?
The game certainly isnt a high poly First Person Shooter with tens of thousands of polygons on the screen and is not subject
to fps issues so it wouldnt really matter...The fact that a game like PzC runs out of memory is sort of unimaginable when looking at all the high poly super duper shooters and RPGs out there
2. Simply Increase stack size ?
In that case: > linker /stack option.
Properties - Configuration Properties - Linker - System - Stack Reserve Size

Anyway...
what really disturbs me is that the decompressed PzC folder is 485MB...
the graphics folder is 107MB and the Audio folder is 40,9MB...library 51MB
giving that the engine allocates about 380MB to create a 77.000 hex map (my PzC East map)
now loading the UI 80MB..all untis 100MB and all sounds 40MB and library makes aprox 650 MB
I neglect the data folder as this is just textdata..nothing to worry about
if the engine now would dragg all info from the RAM the sum of the map and all animations and sounds (as they are not compressed) would not be sufficient to create a stack overflow at 1GB nor would used memory go up during time...could it that the engine reloads the sounds and animations again and again instead of dragging from the system RAM and this way creates a memory build up ?...

One way to reduce RAM load may be loading the library only when accessing it and dumping this memory when exit library but that should not be
the only solution...

Whatever you think about, in any case the game at least should be able to adress the minimum of the usual 1,75 GB
for a 32bit application running in a 32bit OS...but of course it had to be made sure there is no memory build up and this indicates there might be indeed a problem withRAM building up:
tjeren wrote:My problem is solved after i renamed audio folder and after few hours app gets little slow and i takes about 1.3 GB of ram.... save-quit-run again.... and its fast again :)

Re: Problem

Posted: Wed Jul 18, 2012 7:02 pm
by Chris10
I just run a few tests and it seems that each time a unit moves the sound is not entirely reloaded but it always adds a few kb to the RAM which considering total amount of units on the map, unit variety, mapsize and turn count can lead to a considerable memory build up.
This test was only with movement sound. I suppose attack sound will add another few kb every time it is reproduced
In this test is was only a few kb were in a former attempt I did not recorded it was a bit more than 100kb
Screen 1
Turn start...all units moved before..sounds loaded...3 Units MC 202 Folgore
Image

Screen2
After moving units RAM usage goes up again despite the fact that the sound is already loaded and all three units are using same sound
Image

Re: Problem

Posted: Wed Jul 18, 2012 8:58 pm
by VPaulus
@chris
I don't know if you've made that test in the beginning of the scenario or not, but remember that you have the chance to hear up to 3 different air sounds. It's random. You can move the three and only for example hear one movement sound in all the three. So the game might not have load all of them in the first moves and it could have just loaded one of those when you've checked it again.
With the attack sound it can happen the same, because , generally, you have three random sounds to be played. Only it's more heavier because you have also an animation file associated to it.

Re: Problem

Posted: Wed Jul 18, 2012 9:43 pm
by sgocart6298
Perhaps since my computer is 64 bit could it be that PC beta 1.10 is a 32 bit program :?:

Re: Problem

Posted: Wed Jul 18, 2012 9:46 pm
by VPaulus
sgocart6298 wrote:Perhaps since my computer is 64 bit could it be that PC beta 1.10 is a 32 bit program :?:
That's not the problem. Most applications are still 32 bit.

Re: Problem

Posted: Wed Jul 18, 2012 9:52 pm
by Rudankort
sgocart6298 wrote:Perhaps since my computer is 64 bit could it be that PC beta 1.10 is a 32 bit program :?:
But to answer your question - yes, PzC is a 32-bit application.