Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Unspecified Error when loading scenarios (1147.39)

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support >> Unspecified Error when loading scenarios (1147.39) Page: [1]
Login
Message << Older Topic   Newer Topic >>
Unspecified Error when loading scenarios (1147.39) - 1/21/2022 5:09:52 AM   
musurca

 

Posts: 128
Joined: 7/16/2020
Status: offline
Hi -- every once in a while, when loading a new scenario from the main menu in 1147.39, the game will throw an "Error: Unspecified Error" message before reaching the briefing. The scenario will then completely fail to load, leaving me at the main menu, and at that point I'll have to restart the game. The error happens intermittently and occurs across a range of scenarios. Most of the time the same scenarios load without any issues whatsoever, so I'm not sure what's triggering it.

When the error is thrown, the following messages appear in the exception log:

1/20/2022 2:10:18 PM -- B1147.39 -- Error: Unspecified error
Exception: Error: Unspecified error
Stack Trace: at Command_Core.Scenario.(XmlDocument XMLDoc, String& ErrorFeedback, Double& PercentageComplete, Boolean ForceDeepRebuild, Boolean CheckForDBTampering)
Call Stack & Error details:
Error at 101023,

1/20/2022 2:10:18 PM -- B1147.39 -- Error: Unspecified error
Exception: Error: Unspecified error
Stack Trace: at Command_Core.Scenario.(XmlDocument XMLDoc, String& ErrorFeedback, Double& PercentageComplete, Boolean ForceDeepRebuild, Boolean CheckForDBTampering)
at Command_Core.Scenario.(String theXMLText, String& ErrorFeedback, Double& PercentageComplete, Boolean ForceDeepRebuild, Boolean CheckForDBTampering)
Call Stack & Error details:
Error at 101023,
Error at 101024,

Thanks!
Post #: 1
RE: Unspecified Error when loading scenarios (1147.39) - 1/21/2022 11:24:05 AM   
boogabooga

 

Posts: 457
Joined: 7/18/2018
Status: offline
I've had this too.

(in reply to musurca)
Post #: 2
RE: Unspecified Error when loading scenarios (1147.39) - 1/21/2022 12:12:58 PM   
thewood1

 

Posts: 6529
Joined: 11/27/2005
Status: offline
I haven't seen this. Are there particular scenarios you see it with?

I just went through and loaded 12 random scenarios without any errors. I'll try a few more and see if I can get it or not.

< Message edited by thewood1 -- 1/21/2022 12:17:36 PM >


_____________________________

You are like puss filled boil on nice of ass of bikini model. You are nasty to everybody but then try to sweeten things up with a nice post somewhere else. That's nice but you're still a boil on a beautiful thing! - BDukes

(in reply to boogabooga)
Post #: 3
RE: Unspecified Error when loading scenarios (1147.39) - 1/21/2022 9:14:37 PM   
DWReese

 

Posts: 1824
Joined: 3/21/2014
From: Miami, Florida
Status: offline
I get it about once out of 10 times when starting the game. As the world spins, a message will come on and say that an Unspecified error occur, and the start up is being aborted. Restarting the game fixes it. I've never had it twice in a row.

(in reply to thewood1)
Post #: 4
RE: Unspecified Error when loading scenarios (1147.39) - 1/22/2022 3:13:34 AM   
boogabooga

 

Posts: 457
Joined: 7/18/2018
Status: offline
musurca, by any chance are you running any other programs in the background?

(in reply to DWReese)
Post #: 5
RE: Unspecified Error when loading scenarios (1147.39) - 1/22/2022 4:01:25 AM   
musurca

 

Posts: 128
Joined: 7/16/2020
Status: offline
Firefox and VS Code usually. But I think it's also happened when I haven't been running anything else in the background.

(in reply to boogabooga)
Post #: 6
RE: Unspecified Error when loading scenarios (1147.39) - 1/22/2022 9:55:37 AM   
KnightHawk75

 

Posts: 1450
Joined: 11/15/2018
Status: offline
I think I've tracked this down. Stay tuned, it's worse than you think. ;)


(in reply to musurca)
Post #: 7
RE: Unspecified Error when loading scenarios (1147.39) - 1/22/2022 12:59:22 PM   
KnightHawk75

 

Posts: 1450
Joined: 11/15/2018
Status: offline
Hear me out.
I think there is a larger problem at play that causes this sporadically (pure timing related) in 1147.39, and not in prior builds.

101023 - There is a lot that goes on during that call that could be throwing that error which is an overall catch-all during parsing the xml data back into the system. The stack there leads me to think this is a manual throw prior to the 101023 catch-all for the parsing process. If I had to bet 5$ it relates to something going wrong during the DB hash matching and validity\file check, where the dbrecord returned is null and "error: " + dbfilecheckresult text (which in that case will be 'Unspecified error') is thrown, the cause being an exception trapped with-in the lower call but not specifically recorded.

Why that would happen is unclear at first, as not having the database file, or having one but it being unauthorized should throw other different errors that are not thrown prior. The same is true when DBUsed hash can't initially be parsed - you'll get a different error message. That would leave me to believe during the DBOps record checking (We'll call this DBOps.CheckAndGetValidRecord() for lack of knowing what it's actually called) an exception occurs, result gets set to UnspecifiedError (9999) and null is returned. 9999 is later converted to the text 'Unspecified error' during a manual throw that is invoked when the record is seen to be null. As to what might cause that exception in DBOps.CheckAndGetValidRecord(hash,ref record,checkexists,checkhash)..idk. A null hash would do it, during the dictionary-contains call, or during the else record assignment (but that should have caused earlier and different errors i think). A lower io-exception in the if-file-exists call could throw it, or an io-exception in the call to generate a hash and compare to authorized records for said file could also trigger it.

*shugs*
- I can't find (doesn't mean it doesn't exist), a reason for hash to be null\empty where it would not have caused an exception or logged errors prior. I could see it being a valid string not found in the observable database, but that (in non-pro) should expand out to a DBISUnregistered message and return. So that suggests the contain succeeded and a record set prior to the next two thing happening.
- Assuming that record existed, next is the simple file-exists check, and I can't think of a decent reason it would throw (outside of PathTooLong or fatal ones like outofmemory).
- That leaves the hashgen and compare with the record entry.
That process involves obtaining read\write access to open said entry's linked filename and compute the resulting hash and compare it.
It is possible a timing issue exists with the read\write access requested during the hash generation on the database file? Where perhaps access gets rejected due to 'file in use by another process', and throws? This would be because of the case if two calls are made to the same hashcheck function at roughly the same time with same file as it opens them with FileAccess:ReadWrite, the first call to do so can blocks a second.

Now what would be tying it up to cause that case to happen all of a sudden?
Well there is during startup a low prio thread that kicks off now to go validate each of the db files, including hashchecks.
However in .39 this check appears to be running CONSTANTLY in the background, such that all files are repeatedly checked. If that's the case and the timing is right then a 'process cannot access the file - because it's in use' exception can occur when it and the user action of loading a scene both involve the same database file.


For more detail on the constantly running background check new in 1147.39 see: [post removed by mods perhaps rightfully for TMI, but the right people are aware.]

For those that can at least sporadically generate the error - I'll bet you can't generate the problem at all in 1147.38, unless you force lock it first.

One way to force repo the exception in .39 or .38:
1. Load CMO to mainmenu, open Generic_FileLockTesting.exe .net4 winforms app, insert full path to your installs DB3K_491.db3 file, click "Lock RW", DO NOT close the pop-up message that is generated yet, as the file is release upon clicking ok.
2. Flip back into CMO, enter the editor, load the attached sample scene that uses DB3K_491.
3. Observe the unspecified exception error dialog and loading stop.
4. Now press 'ok' on the dialog from my locking app, exit CMO (order here does not matter).

att:Repo_Unspecifiederror_post5132408.zip

Attachment (1)

< Message edited by KnightHawk75 -- 1/22/2022 3:49:45 PM >

(in reply to KnightHawk75)
Post #: 8
RE: Unspecified Error when loading scenarios (1147.39) - 1/22/2022 1:32:30 PM   
DWReese

 

Posts: 1824
Joined: 3/21/2014
From: Miami, Florida
Status: offline
FYI, I've never had it happen other than in 39

(in reply to KnightHawk75)
Post #: 9
RE: Unspecified Error when loading scenarios (1147.39) - 1/22/2022 9:57:48 PM   
stww2

 

Posts: 219
Joined: 5/23/2017
Status: offline
I just got a similar unspecified error when launching the game. I was able to start it on the second attempt, so just a minor nuisance. Here was the entry in the exception log file:

1/22/2022 17:45:11 -- B1147.39 -- Unspecified error
Exception: Unspecified error
Stack Trace: at Command.Client.(Scenario , Boolean )
Call Stack & Error details:
Error at 200516, Unspecified error

(in reply to DWReese)
Post #: 10
RE: Unspecified Error when loading scenarios (1147.39) - 1/23/2022 1:17:41 AM   
thewood1

 

Posts: 6529
Joined: 11/27/2005
Status: offline
Just a data point...I've now opened 30 various scenarios plus the 12 I did before without any errors. I've tried standalone, LIVE, DLC, community, and custom using databases from 496 to 491. None of them have 492. I'll try a few of those.

_____________________________

You are like puss filled boil on nice of ass of bikini model. You are nasty to everybody but then try to sweeten things up with a nice post somewhere else. That's nice but you're still a boil on a beautiful thing! - BDukes

(in reply to stww2)
Post #: 11
RE: Unspecified Error when loading scenarios (1147.39) - 1/23/2022 10:47:05 AM   
Dimitris

 

Posts: 13282
Joined: 7/31/2005
Status: offline
This issue should be fixed on the next update release.

_____________________________


(in reply to thewood1)
Post #: 12
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support >> Unspecified Error when loading scenarios (1147.39) Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.613