[Resolved] The "Error: Object reference not set instance of object" ruins another scenario (Full Version)

All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support



Message


stolypin -> [Resolved] The "Error: Object reference not set instance of object" ruins another scenario (3/14/2020 3:01:53 PM)

After, for the second time, spending nearly 8 hours playing a Mediterranean Fury scenario (and enjoying it immensely), I find I cannot continue because when I attempt to load a saved game, I get the message: "ERROR: Object reference not set to an instance of an object." That means that, after a major investment of time, I cannot finish the scenario. I get the message not only with the latest save, but with earlier saves as well (including every autosave).

Guys, I've been a major fan of Command for over 4 years but this pretty much kills it for me. With effectively no save function, the game is unplayable except for the tiniest scenarios.

This error has been reported repeatedly (including recently by me) and it definitely falls into the showstopper category. This has got to get fixed.

I'm using Version 1.01.11343. Save attached.




Dimitris -> RE: The "Error: Object reference not set instance of object" ruins another scenario (3/14/2020 3:14:44 PM)

We are sorry this issue seems to be persisting on you. I remember your original report and I was certain we had this one tamed. We'll investigate as priority.

Has anyone else experienced the same issue with the new version?




Dimitris -> RE: The "Error: Object reference not set instance of object" ruins another scenario (3/14/2020 3:58:32 PM)

Also: Is this happening to you only on this scenario specifically, or also with other scenarios?




stolypin -> RE: The "Error: Object reference not set instance of object" ruins another scenario (3/14/2020 4:37:02 PM)


quote:

ORIGINAL: Dimitris

Also: Is this happening to you only on this scenario specifically, or also with other scenarios?


This is the only scenario in which it has happened but this is the only scenario I have attempted to play using the last four or five builds. Note that the forum reports the issue existing previously (going back to November as I recall).

Is there any way to repair the save? I am not up for starting over.




Dimitris -> RE: The "Error: Object reference not set instance of object" ruins another scenario (3/14/2020 5:17:23 PM)

Yes, I've managed to repair the save and we'll also prepare a test build with a (hopefully permanent) fix.




crazydunc -> RE: The "Error: Object reference not set instance of object" ruins another scenario (3/14/2020 9:47:53 PM)

Dimitris,

In case it helps, I also have this issue, attached is my save. Seems to happen in large scenarios, after time elapsed. My Setup saves still work. This is with 1134.3

I would be very interested in a method to repair my save if possible as well!
Dunc




stolypin -> RE: The "Error: Object reference not set instance of object" ruins another scenario (3/14/2020 10:39:05 PM)


quote:

ORIGINAL: Dimitris

Yes, I've managed to repair the save and we'll also prepare a test build with a (hopefully permanent) fix.



Thank you! This is a great scenario that I'm looking forward to finishing.




gennyo -> RE: The "Error: Object reference not set instance of object" ruins another scenario (3/15/2020 2:27:17 AM)

Builds before 1134.3 kills my ultra-unrealistic scenario in auto save too.
But after I acquired 1134.3, I tried to rebuild my scenario using import units from inst files, not combining multiple scenarios with many presetup changes using "merge scenario" function.
It seems working well at this moment.
Hope this information helps in someway.

Addendum: Ok, just experienced my first OutOfMemory after update and ruined my 40+ hours IRL progress (my laptop is super slow).

FYI, some portion of this time is played without "Extra Memory Protection", I enable this option since C:MANO days, and it helps with memory management for my crazy scenarios. Before this, I counted for another 40+ hours without problem, unlike older builds.




Dimitris -> RE: The "Error: Object reference not set instance of object" ruins another scenario (3/15/2020 1:59:24 PM)

Okay, let's see.

The file problem_salvaged.zip contains a repaired copy of the save.




Dimitris -> RE: The "Error: Object reference not set instance of object" ruins another scenario (3/15/2020 2:01:40 PM)

And the file Command.zip has an experimental build which _should_ prevent this problem form re-appearing.

Please give it a try and let us know.




stolypin -> RE: The "Error: Object reference not set instance of object" ruins another scenario (3/15/2020 8:06:11 PM)


quote:

ORIGINAL: Dimitris

And the file Command.zip has an experimental build which _should_ prevent this problem form re-appearing.

Please give it a try and let us know.


Will do. Thank you so much!




stolypin -> RE: The "Error: Object reference not set instance of object" ruins another scenario (3/16/2020 2:39:50 PM)

So far so good. Saved scenario is working and a newly-created save opened without a problem.




gennyo -> RE: The "Error: Object reference not set instance of object" ruins another scenario (3/19/2020 10:10:12 AM)

this build seems fixed my problem too. thanks




Dimitris -> RE: The "Error: Object reference not set instance of object" ruins another scenario (3/19/2020 10:11:26 AM)

Thanks, that's a relief.




stolypin -> RE: The "Error: Object reference not set instance of object" ruins another scenario (3/19/2020 3:24:37 PM)


quote:

ORIGINAL: Dimitris

Thanks, that's a relief.


Not sure if it's related but I'm occasionally getting a message about autosave failing (with something about memory being insufficient). Once I get that message, I cannot do manual saves. Autosaves from before the message work but if I try to open an autosave generated after the message, I get the "Error: Object reference not set..." message.

My computer has 16 gig of RAM which I assume is sufficient.




gennyo -> RE: The "Error: Object reference not set instance of object" ruins another scenario (3/19/2020 10:15:58 PM)

Personal Time:

According to my observation, It may fail to save after an OutOfMemory Exception, if it comes continously, much progress would be lost.
The root of this is the main program is 32-bit, so the max memory for it is around 3GB.
I don't know whether migrating to 64-bit would help, at this moment, "Extra Memory Protection" helps in my experience (but I'm not sure about heavy Lua usage as my scenarios are only with events)
At this moment, using this experiment build, I still hit the 3GB memory wall and crash around 6~24 hours of continous running, max lost of progress in autosave is about 100s in game time, average is about 10~20s.
For me this is acceptable, as CMANO sometimes lost more than 5 min and older builds destroys autosaves outstraight.




stolypin -> RE: The "Error: Object reference not set instance of object" ruins another scenario (3/20/2020 3:49:17 AM)


quote:

ORIGINAL: gennyo

Personal Time:

According to my observation, It may fail to save after an OutOfMemory Exception, if it comes continously, much progress would be lost.
The root of this is the main program is 32-bit, so the max memory for it is around 3GB.
I don't know whether migrating to 64-bit would help, at this moment, "Extra Memory Protection" helps in my experience (but I'm not sure about heavy Lua usage as my scenarios are only with events)
At this moment, using this experiment build, I still hit the 3GB memory wall and crash around 6~24 hours of continous running, max lost of progress in autosave is about 100s in game time, average is about 10~20s.
For me this is acceptable, as CMANO sometimes lost more than 5 min and older builds destroys autosaves outstraight.


I have the "Extra Memory Protection" checked but am getting the OutofMemory Exception every 20 minutes or so. Again, once the error appears, saving the game is no longer possible. I have to exit the game and reload a save from before the error occurred.

Maybe the scenario I've been playing ("Mediterranean Fury 1, The Road to Byzantium") is simply too big for the game to handle.




gennyo -> RE: The "Error: Object reference not set instance of object" ruins another scenario (3/20/2020 10:06:37 AM)

Maybe you can try some "dirty trick"?
I also enable some compatible setting as followed.

[image]local://upfiles/63156/289402CCD63544F0930503D088773C27.jpg[/image]




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
1.890625