Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

[FIXED] Application crash

 
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 >> [FIXED] Application crash Page: [1]
Login
Message << Older Topic   Newer Topic >>
[FIXED] Application crash - 11/26/2017 9:39:52 PM   
jph

 

Posts: 27
Joined: 11/5/2006
Status: offline
Please see attached save. If you run the scenario for a few minutes (2-3) CMANO crashes. I reloaded the scenario three times after the initial crash and got a crash every time although the actual time until the crash differs slightly between tries.

Thank you.

Forgot: I am running B972.12.

Attachment (1)

< Message edited by Dimitris -- 12/21/2017 7:20:54 AM >
Post #: 1
RE: Application crash - 11/27/2017 2:55:27 PM   
mikmykWS

 

Posts: 11524
Joined: 3/22/2005
Status: offline
Welcome back!

Thanks for the report and file. Added to the list!

Mike

_____________________________


(in reply to jph)
Post #: 2
RE: Application crash - 11/28/2017 8:31:45 PM   
benefant

 

Posts: 93
Joined: 6/5/2015
From: Austria
Status: offline
also crash

screenshots and scen file


Attachment (1)

< Message edited by benefant -- 11/28/2017 8:32:15 PM >

(in reply to mikmykWS)
Post #: 3
RE: Application crash - 11/29/2017 2:09:13 PM   
mikmykWS

 

Posts: 11524
Joined: 3/22/2005
Status: offline
Thanks added to the list.

In the future please add to a separate string as the crash cause may not be the same and the dev team likes to track bug reports to make sure they get covered. Gets weird if the link back is some other bug.

Mike

_____________________________


(in reply to benefant)
Post #: 4
RE: Application crash - 11/29/2017 7:25:36 PM   
ComDev

 

Posts: 5735
Joined: 5/12/2006
Status: offline
I'm not able to reproduce the crash in the first post. Just press Play? What time compression are you using? And side?

The second save is a crash in the Lua code due to an incorrect OnStatusChange command.

_____________________________



Developer "Command: Modern Air/Naval Operations" project!

(in reply to mikmykWS)
Post #: 5
RE: Application crash - 11/30/2017 3:47:27 PM   
benefant

 

Posts: 93
Joined: 6/5/2015
From: Austria
Status: offline
Question to emsoy - error by the program or error by myself ??

(in reply to ComDev)
Post #: 6
RE: Application crash - 11/30/2017 9:52:05 PM   
jph

 

Posts: 27
Joined: 11/5/2006
Status: offline
Hi Emsoy,

Yes, just press play, Spanish side, at 1:1 compression. I just loaded the save game twice and it crashed both times after a short while but the elapsed time before the crash varies. Here are the details of the crash as reported by Windows:

Problem signature:
Problem Event Name: APPCRASH
Application Name: Command.exe
Application Version: 1.0.0.0
Application Timestamp: 5a19a6ce
Fault Module Name: lua52.DLL
Fault Module Version: 5.2.3.0
Fault Module Timestamp: 55dc8abc
Exception Code: c0000005
Exception Offset: 00019f38
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

And attached is a screen shot.

Edit: Tried again and this time I selected the "debug the application" option. Here is the error report that came up in Visual Studio:

System.AccessViolationException was unhandled
Message: An unhandled exception of type 'System.AccessViolationException' occurred in NLua.dll
Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Thank you for looking into this.


Attachment (1)

< Message edited by jph -- 11/30/2017 10:05:07 PM >

(in reply to ComDev)
Post #: 7
RE: Application crash - 11/30/2017 10:41:40 PM   
thewood1

 

Posts: 6529
Joined: 11/27/2005
Status: offline
Just for giggles and another data point, I ran the OP's save for an hour, three times. I didn't get a crash.

(in reply to jph)
Post #: 8
RE: Application crash - 12/1/2017 12:40:53 AM   
jph

 

Posts: 27
Joined: 11/5/2006
Status: offline
Yes, so command crashes on my machine but not on Emsoy's nor on yours apparently. It clearly points out to an issue with software running on my machine. And indeed, after rebooting and running command without any other concurrent applications it didn't crash. Given that I have not had any such issues with command for the four years I owned the game the culprit must be something I installed recently. I suspect "eM Client" but in any case, the issue appears to be confined to my particular setting rather than a problem with command. So please disregard my report and my apologies to Emsoy for wasting his time.

On the positive side, I am so glad it made you giggle. That was such a constructive contribution to the discussion. My heartfelt thanks. You made my day.

(in reply to thewood1)
Post #: 9
RE: Application crash - 12/1/2017 5:26:46 AM   
michaelm75au


Posts: 13500
Joined: 5/5/2001
From: Melbourne, Australia
Status: offline
can you supply your machine specs? This Lua crashing has been mentioned to me before, and I have only ever had it crash on the suspected error 2 times out of 100 tries. [ when it did crash, i couldn't get it to play up on retrying]
My PCs are are both Win7 and Win10 but only a couple of cores. Not really faster machines. This is why I am leaning to a timing issue; things happening before other things should.


_____________________________

Michael

(in reply to jph)
Post #: 10
RE: Application crash - 12/1/2017 6:53:57 PM   
jph

 

Posts: 27
Joined: 11/5/2006
Status: offline
Michael, sure, here you go:

Dell Precision M6800
Intel i7-4910MQ, 2.9GHz (quad core)
16 GB DDR3 Ram
AMD Radeon HD 8950, 2GB / Intel HD Graphics 4600
Primary drive: 500 GB SSD
Win 7 SP1

But please note that I haven't had any issue on this machine for the past three years until recently. It seems that when running command without any other concurrent applications the app does not crash. I installed a new e-mail client a couple of weeks ago, "eM Client". Very nice app but if it is running at the same time as command the crashes occur although I need a little bit more experiment to be sure that the combination command/eM Client is at fault.

[Edit] After experimenting with command this weekend I must take the above comment back. On my machine command will crash even after a clean reboot and no other application running (see my post below).

Thank you.


< Message edited by jph -- 12/3/2017 12:30:33 PM >

(in reply to michaelm75au)
Post #: 11
RE: Application crash - 12/3/2017 12:23:01 PM   
jph

 

Posts: 27
Joined: 11/5/2006
Status: offline
I hate to bring this up again but I experienced the application crash after I clean reboot and no application running but for command. The exception raised is the same as before, namely:

System.AccessViolationException was unhandled
Message: An unhandled exception of type 'System.AccessViolationException' occurred in NLua.dll
Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

And here is the call stack as reported by Visual Studio:

[Managed to Native Transition]
> NLua.dll!NLua.Lua.this[string].get(string fullPath)
Command.exe!Command_Core.Lua.CMANO..(Command_Core.ActiveUnit theUnit, object oldStatus)
Command.exe!Command_Core.Lua.CMANO..€()
Command.exe!Command_Core.ActiveUnit_DockingOps.()
Command.exe!Command_Core.Submarine.()
Command.exe!Command_Core.Submarine.Š()
Command.exe!Command_Core.GameGeneral.()
Command.exe!Command_Core.GameGeneral..()
mscorlib.dll!System.Threading.Tasks.Parallel.ForWorker<object>.AnonymousMethod__1()
mscorlib.dll!System.Threading.Tasks.Task.InnerInvoke()
mscorlib.dll!System.Threading.Tasks.Task.InnerInvokeWithArg(System.Threading.Tasks.Task childTask)
mscorlib.dll!System.Threading.Tasks.Task.ExecuteSelfReplicating.AnonymousMethod__0(object )
mscorlib.dll!System.Threading.Tasks.Task.InnerInvoke()
mscorlib.dll!System.Threading.Tasks.Task.Execute()
mscorlib.dll!System.Threading.Tasks.Task.ExecutionContextCallback(object obj)
mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx)
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx)
mscorlib.dll!System.Threading.Tasks.Task.ExecuteWithThreadLocal(ref System.Threading.Tasks.Task currentTaskSlot)
mscorlib.dll!System.Threading.Tasks.Task.ExecuteEntry(bool bPreventDoubleExecution)
mscorlib.dll!System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
mscorlib.dll!System.Threading.ThreadPoolWorkQueue.Dispatch()
mscorlib.dll!System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

I have attached another save for good measure. On my machine the crash occurs shortly after loading the save but the delay varies.

Thank you.

Attachment (1)

(in reply to jph)
Post #: 12
RE: Application crash - 12/3/2017 4:01:02 PM   
mikmykWS

 

Posts: 11524
Joined: 3/22/2005
Status: offline
Thanks JPH added to bug report

Mike

_____________________________


(in reply to jph)
Post #: 13
RE: Application crash - 12/3/2017 5:17:29 PM   
thewood1

 

Posts: 6529
Joined: 11/27/2005
Status: offline
I have tried running that last save on two machines, a Surface Book 2 and an HP Omen. Both i7s and nVidia GPUs. Tried on hi fi option on and off on both PCs. Let them run 1:1 and 1:5. They all ran an hour with no crashes on those set ups. Again, just data points.

(in reply to mikmykWS)
Post #: 14
RE: Application crash - 12/3/2017 6:05:08 PM   
Filitch


Posts: 423
Joined: 6/25/2016
From: St. Petersburg, Russia
Status: offline
I ran on speed 1:1 and 1:30 at HP ZBook, Windows 10 x64, Core i7, NVidia/Intel HD Graphics for 15 minutes with and without attached debugger. No crashes. Looks like it is necessary to run on the same environment that has jph. May be the issue is about lua dependencies or interoperability with unmanaged code (with lua52.dll).

< Message edited by Filitch -- 12/3/2017 6:08:51 PM >

(in reply to thewood1)
Post #: 15
RE: Application crash - 12/3/2017 8:54:59 PM   
mikmykWS

 

Posts: 11524
Joined: 3/22/2005
Status: offline
Thanks Filitch.

JPH have you tried a reinstall to see if it helps? Some of these oddities have occurred in the past due to old fields and people installing stuff over original installs etc. A new install might clean that up a bit.

Mike

_____________________________


(in reply to Filitch)
Post #: 16
RE: Application crash - 12/12/2017 4:24:42 PM   
jph

 

Posts: 27
Joined: 11/5/2006
Status: offline
Sorry for the delay in answering your question Mike, I have been away for a bit.

Yes, I did a fresh new install using the 1.13 setup release installer. I loaded the Canary's cage scenario and it played for a few hours of game time. However, it eventually crashed with exactly the same call stack I reported above.

I also noticed that gsalvar reported a similar type of crash in:

http://www.matrixgames.com/forums/tm.asp?m=4374382

In particular, his report also contains references to Lua and calls to the Command_Core.Submarine() function.

I will try to install 1.12 and see whether the crashes still occur. I have played for quite a few hours with the 1.12 versions without encountering any issues in the past so it will be interesting to see what happens now.

Thanks a lot.

(in reply to mikmykWS)
Post #: 17
RE: Application crash - 12/21/2017 7:20:38 AM   
Dimitris

 

Posts: 13282
Joined: 7/31/2005
Status: offline
Thanks! This should be resolved in the next public update.

_____________________________


(in reply to jph)
Post #: 18
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support >> [FIXED] Application crash 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

2.047