[FIXED B1147.25] Out of memory exception

Post bug reports and ask for game support here.

Moderator: MOD_Command

morphin
Posts: 756
Joined: Fri Apr 26, 2002 6:51 pm
Location: Switzerland

[FIXED B1147.25] Out of memory exception

Post by morphin »

I really love this game but again out of memory messages and crashes, random course changes, arbitrarily sub deep and course changes.

I had the hope for over a year that you can fix theses things...
Maybe i have to stop playing CMO

Sad
Attachments
NorthernF..1994_3.zip
(2.6 MiB) Downloaded 10 times
morphin
Posts: 756
Joined: Fri Apr 26, 2002 6:51 pm
Location: Switzerland

RE: It's such a shame but i think i have to give up this game

Post by morphin »

Here the logs
Attachments
Logs.zip
(21.55 KiB) Downloaded 12 times
morphin
Posts: 756
Joined: Fri Apr 26, 2002 6:51 pm
Location: Switzerland

RE: It's such a shame but i think i have to give up this game

Post by morphin »

Here the save game bevor all the things happens.

Also it is a pitty that suddenly i see 5 enemy subs (because they surfaced suddenly)
So all the exciting to find the subs is lost....
Such a shame
Attachments
NorthernF..1994_4.zip
(2.47 MiB) Downloaded 10 times
thewood1
Posts: 10281
Joined: Sun Nov 27, 2005 6:24 pm
Location: Boston

RE: It's such a shame but i think i have to give up this game

Post by thewood1 »

Too bad. See you later.
thewood1
Posts: 10281
Joined: Sun Nov 27, 2005 6:24 pm
Location: Boston

RE: It's such a shame but i think i have to give up this game

Post by thewood1 »

So looked at the scenario and its still being developed. It might also be one of the most complex scenarios developed for CMO by anyone in the community. All I saw you do in that thread is demand other players provide you with tools they built and push the designer to go faster.

https://www.matrixgames.com/forums/tm.a ... 34&mpage=4

You were not very helpful in that long thread where gunner98 was working on the scenario. You were very demanding and not patient. And your response to the designer not moving fast enough for you is to throw a tantrum in the tech support thread. I don't find that cool or useful. You are basically calling out one of the hardest working community members because he can't finish one scenario to your liking.

How about letting the scenario builder time to finish the scenario, look at the issues, and not be so demanding? If you can't do that, stop playing unfinished scenarios. Or you can just do what your doing now and throw the baby out with the bath water.
BDukes
Posts: 2732
Joined: Wed Dec 27, 2017 12:59 pm

RE: It's such a shame but i think i have to give up this game

Post by BDukes »

Sorry to hear that Morphin.

I've noticed your troubles over the years. Is this the same computer and has it ever been reformatted?

If CMO provides you with a ton of fun it may be worth exploring so you can at least eliminate something at the Operating System or driver level is the issue. If this computer is old and you like to game this might be a great excuse to spring for a new one.

Mike
"Smart people just shrug and admit they're dazed and confused. The only ones left with any confidence at all are the New Dumb". HST
KnightHawk75
Posts: 1850
Joined: Thu Nov 15, 2018 7:24 pm

RE: It's such a shame but i think i have to give up this game

Post by KnightHawk75 »

Morphin,

Probably shouldn't judge the entire game by personal performance in one scene ( as mentioned it is one of the more challenging that exists).
I don't get the memory errors you do when I played it myself, nor when playing your saves forward in time (I've played forward hours and hours), nor did I have the surfacing sub issue - unless it just happens days later in game from when the save is - perhaps that happened due to other issues. Played on fresh game start and only bmng and borders layers on, some time ago I played that scene for about 3-4 days (real-time) straight without restarting the game without issue. Test was on 1147.16, played in editor-mode. I'm curious for how long you were playing the save before these things happened and what the meme usage was at when you ran into these things.

As BDukes mentions perhaps some the memory errors are more a system, drivers, or .net runtime issue on your end worth investigating. That said one thing you can do if you keep running into that issue, is watch command's memory usage over time for larger scenarios (3000+au) and if and when it starts getting to around > 2.7 gig sustained (not spikes), pause your game,clear the log if don't need it and it's excessive, save, and restart the game. The game can use more but around the mid to low 3's, you're likely to hit process limits, if you're getting out of memory errors below that, something else is likely wrong. One reason for a exe restart every so often is it'll clear some of the data that gets cached, some of which doesn't always get culled over time, for example it started about 1.4gig growing to 2.7 (after about 12 real hours playing doing a ton of stuff and loading up lots of tile\layer data), cleared log, saved,reloaded and it was back to 1.5gig.
guanotwozero
Posts: 651
Joined: Fri Dec 27, 2013 1:53 am

RE: It's such a shame but i think i have to give up this game

Post by guanotwozero »

If you love the game so much, please bear in mind it can be played on a relatively low-spec machine, hence a cheap replacement (e.g. second hand) should do the job. I currently play more on my laptop than my main PC as I don't feel I'm losing out on anything. Cyberpunk 2077 it ain't!
morphin
Posts: 756
Joined: Fri Apr 26, 2002 6:51 pm
Location: Switzerland

RE: It's such a shame but i think i have to give up this game

Post by morphin »

It has nothing to do with hardware

The developpers should knows how to handle this error

3/22/2021 5:30:33 AM -- B1147.18 -- Out of memory.
Exception: Out of memory.
Stack Trace: at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement)
at System.Drawing.Image.FromFile(String filename)
at Command.MainForm.—()
Call Stack & Error details:
Error at 200126, Out of memory.

->"Out of memory" message is misleading. Either files are corrupt or there is no proper file handling implemented (for example to many file handler opened, not closing file handler correctly, missing error handling. Maybe you have to use another file handling method)
I stronlgy suggest to check file handling and error handling.

So for a developper this error is well known

(But there are others error as well that the developpers need to deal with)

Regards
Andy
thewood1
Posts: 10281
Joined: Sun Nov 27, 2005 6:24 pm
Location: Boston

RE: It's such a shame but i think i have to give up this game

Post by thewood1 »

I thought you gave up.
BDukes
Posts: 2732
Joined: Wed Dec 27, 2017 12:59 pm

RE: It's such a shame but i think i have to give up this game

Post by BDukes »

ORIGINAL: thewood1

I thought you gave up.

Why is this helpful? Ever...

Don't answer. Thanks[:)]

Mike
"Smart people just shrug and admit they're dazed and confused. The only ones left with any confidence at all are the New Dumb". HST
BDukes
Posts: 2732
Joined: Wed Dec 27, 2017 12:59 pm

RE: It's such a shame but i think i have to give up this game

Post by BDukes »

ORIGINAL: morphin

It has nothing to do with hardware

The developpers should knows how to handle this error

3/22/2021 5:30:33 AM -- B1147.18 -- Out of memory.
Exception: Out of memory.
Stack Trace: at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement)
at System.Drawing.Image.FromFile(String filename)
at Command.MainForm.—()
Call Stack & Error details:
Error at 200126, Out of memory.

->"Out of memory" message is misleading. Either files are corrupt or there is no proper file handling implemented (for example to many file handler opened, not closing file handler correctly, missing error handling. Maybe you have to use another file handling method)
I stronlgy suggest to check file handling and error handling.

So for a developper this error is well known

(But there are others error as well that the developpers need to deal with)

Regards
Andy

This may be true but if this isn't happening to too many people. If so, there would be more posts. Believe me the normals don't hold back. The bigger issue is they don't have access to your system so don't have 100% visibility into what is going on. Windows logs are just ok for the purpose of troubleshooting but don't often tell the complete story. Any developer will say they're good start points but also has a tale or 100 where the logs didn't exactly nail it.

Now to the point, they're never going to be able to look or replicate your system exactly. If you're this upset and truly like the game, isn't worth wiping and reinstalling? It also may a great time for a new system. If it fixes it, even if what you think is true? Isn't it worth it? I mean end of the day who gives a toss if its something on their end if your game now works?

Mike
"Smart people just shrug and admit they're dazed and confused. The only ones left with any confidence at all are the New Dumb". HST
morphin
Posts: 756
Joined: Fri Apr 26, 2002 6:51 pm
Location: Switzerland

RE: It's such a shame but i think i have to give up this game

Post by morphin »

It is not windows logs. It is in the game log
You seee even where the error ocurs in the code

I told to every new developper in our company that a good logging is as important as writing "nice" working code....
So the logging here is sufficient (without seeing the source code and making a code review)

With good logging you must normally not have access to other system...

If you have this kind of error in your application log it is fine and should be fixed without a hassle.


Andy


thewood1
Posts: 10281
Joined: Sun Nov 27, 2005 6:24 pm
Location: Boston

RE: It's such a shame but i think i have to give up this game

Post by thewood1 »

"Why is this helpful?"

Numerous people, including devs and players alike, have tried to help you over the years. You have come across as impatient and rather impertinent in you any help that is offered. You issues are isolated to you. Again and again, your response to offered advice is to insist its not your problem. Maybe it is or maybe it isn't. But you seem to be the only one throwing a tantrum in public over it.

Lets see if this comment is helpful...

"Maybe i have to stop playing CMO"

Its call a martyr syndrome. Its people who feel persecuted for whatever reason. Do you really think threatening to stop playing is going to get any change in actions? I suspect it has the opposite effect.

Just look at your posts in the recent past. Always wanting someone to do something for you. Its never enough. I suspect no one will ever do enough for you.
morphin
Posts: 756
Joined: Fri Apr 26, 2002 6:51 pm
Location: Switzerland

RE: It's such a shame but i think i have to give up this game

Post by morphin »

I don't have to comment this reply but do you think your reply helped to improve the game and fix this error?

For the others that read this thread:

On multiple threads (also on this one) i gave hints and helped to fix multiple issues. I'm very thankful for all the help from others and developpers to my questions as also to help others.

Neverless. Every software has bugs and this one is no exceptions. Some bugs are more difficult to fix and some are easier to fix (like this out of memory errors should normaly be easier to fix).
So please help to fix errors but i fear that your comments doesn't help.

Thank's
Andy
thewood1
Posts: 10281
Joined: Sun Nov 27, 2005 6:24 pm
Location: Boston

RE: It's such a shame but i think i have to give up this game

Post by thewood1 »

So are you still playing it? Or was this just emotion talking?
BDukes
Posts: 2732
Joined: Wed Dec 27, 2017 12:59 pm

RE: It's such a shame but i think i have to give up this game

Post by BDukes »

ORIGINAL: morphin

It is not windows logs. It is in the game log
You seee even where the error ocurs in the code

I told to every new developper in our company that a good logging is as important as writing "nice" working code....
So the logging here is sufficient (without seeing the source code and making a code review)

With good logging you must normally not have access to other system...

If you have this kind of error in your application log it is fine and should be fixed without a hassle.

Andy

It bugs me your game isn't working because I know how long you've been at this. If you didn't like the game or the community, you would have said, F-this a long time ago. You're here and trying to get this fixed. That's commendable, and nobody can fault you for that. On the flip-side, there are lots of people who could have said f-that to your posts. They're not though, and seem to be giving you a common suggestion that might help. If you do it, and it doesn't fix the problem, people may give more support to your cause. Just do the thing, man. If it doesn't fix the issue and get you rolling it is at least a step forward.

Mike




"Smart people just shrug and admit they're dazed and confused. The only ones left with any confidence at all are the New Dumb". HST
Zanthra
Posts: 151
Joined: Wed Feb 06, 2019 3:23 am

RE: It's such a shame but i think i have to give up this game

Post by Zanthra »

How big is your page file? If go to the control panel, then system -> Advanced System Settings -> Advanced -> Performance (Settings) -> Advanced -> Virtual Memory (Change) How much page file is allocated? Small page files can cause strange memory errors by limiting the OS ability to shuffle memory around properly. Windows by default has a fairly generous page file allocation, and is not often changed from the default, so it if is the problem, it could explain why it is not reproducible by others. It's probably worth checking.
morphin
Posts: 756
Joined: Fri Apr 26, 2002 6:51 pm
Location: Switzerland

RE: It's such a shame but i think i have to give up this game

Post by morphin »

Hi Zanthra

Thank's for helping.

Month ago i did already an analysis about memory. I even recorded performance counters. There is no limitation on my system (32GB Memory and 8GB Pagefile).
CMO is only using small part of the memory (also if it crashes is only using about 2GB when it crashes. No raising of memory usage at the time it crashed). It only crashes rare now so new version fixed something.
I'm not the only one, but yes this behaviour is rare.

One thing are the limitations of a 32 BIT Programm (see https://www.matrixgames.com/forums/tm.a ... age=1&key=). I hope they are considering to go to 64 BIT

But good thing is that the application is logging this error and with the error descriptions and finding the locations in the code and with a little bit of research the developer should resolve this

Thank's
User avatar
ultradave
Posts: 1647
Joined: Tue Aug 20, 2013 7:01 pm
Location: Rhode Island, USA

RE: It's such a shame but i think i have to give up this game

Post by ultradave »

I downloaded both your saves. Can you provide a little more detail?

1. You mention random course changes, and arbitrary sub depth changes and course changes. Can you provide more detail, specifically what unit should I monitor and when does the change happen following loading your save?

2. Crashes and out of memory error. Does the out of memory error cause a crash? Also, what specifically were you doing when the game crashed or caused an out of memory error?
( I have loaded both, run forward and changed simulation speed from 1x to max a number of times. So far it is behaving well for me. My computer is not as high spec as yours. In fact, it's a MacBook Pro, running W10 in Parallels Desktop, which runs CMO quite well. I've never had CMO or C:MANO for that matter, crash on me. Not once.)

3. What revision of CMO are you running?

4. Do you have these issues with any other scenarios? For example, have you set up a simple test scenario for the changing courses/depth issue?

I'd be happy to poke around more if I have a more specific idea of what to watch for.

Dave
----------------
Dave A.
"When the Boogeyman goes to sleep he checks his closet for paratroopers"
Post Reply

Return to “Tech Support”