WinCC(7.0 + SP3) reported exception with code: C0000005

ProTool, WinCC flexible, WinCC, PP/OP/TP/TD/MP
Post Reply
W1nn1ep00h
Posts: 1
Joined: Mon Aug 12, 2013 9:29 am

WinCC(7.0 + SP3) reported exception with code: C0000005

Post by W1nn1ep00h » Mon Aug 12, 2013 9:36 am

Generally encountered such a problem that sometimes seems to hang at the enterprise WinCC.
The logs have the following (excerpt) WinCC_Sys_01.log,SCRIPT.log,PMDiagnose.log :

"WinCC_Sys_01.log"
WinCC_Sys_01.log
Show

Code: Select all

255,02.07.2013,19:09:28:734,1007008,4,,SIMATIC,SCRIPT,EndAct Timeout
255,02.07.2013,19:09:28:906,0,4,,SIMATIC,ArchiveManager,CCCCSDataAgent::Stop called !
255,02.07.2013,19:09:29:687,0,4,,SIMATIC,ArchiveManager,CCCCSDataAgent::Stop called !
255,02.07.2013,19:09:29:734,1007008,4,,SIMATIC,SCRIPT,EndAct Timeout
255,02.07.2013,19:09:30:734,1007008,4,,SIMATIC,SCRIPT,EndAct Timeout
255,02.07.2013,19:09:31:734,1007008,4,,SIMATIC,SCRIPT,EndAct Timeout
255,02.07.2013,19:09:32:734,1007008,4,,SIMATIC,SCRIPT,EndAct Timeout
255,02.07.2013,19:09:42:578,0,4,,SIMATIC,ArchiveManager,Terminating CCArchiveManager ...
255,02.07.2013,19:09:42:906,1000203,4,,SIMATIC,DataManager Runtime,SIMATIC	Runtime deactivated on machine 'SIMATIC'
255,02.07.2013,19:11:43:718,0,4,SYSTEM,SIMATIC,CCProjectMgr,WinCC Project Manager : Deactivate Project - SCRIPT.EXE - Status = TIMEOUT 
255,02.07.2013,19:13:43:828,0,4,SYSTEM,SIMATIC,CCProjectMgr,WinCC Project Manager : Deactivate Project - SCRIPT.EXE - Status = TIMEOUT 
255,02.07.2013,19:15:43:921,0,4,SYSTEM,SIMATIC,CCProjectMgr,WinCC Project Manager : Deactivate Project - SCRIPT.EXE - Status = TIMEOUT 
255,15.07.2013,17:00:43:046,1007009,4,,SIMATIC,SCRIPT,Thread said good-bye
255,15.07.2013,17:00:44:750,0,4,,SIMATIC,ArchiveManager,CCCCSDataAgent::Stop called !
255,15.07.2013,17:00:45:578,0,4,,SIMATIC,ArchiveManager,CCCCSDataAgent::Stop called !
255,15.07.2013,17:00:58:140,0,4,,SIMATIC,ArchiveManager,Terminating CCArchiveManager ...
255,15.07.2013,17:00:58:484,1000203,4,,SIMATIC,DataManager Runtime,SIMATIC	Runtime deactivated on machine 'SIMATIC'
255,15.07.2013,17:02:59:406,0,4,SYSTEM,SIMATIC,CCProjectMgr,WinCC Project Manager : Deactivate Project - SCRIPT.EXE - Status = TIMEOUT 
255,15.07.2013,17:04:59:500,0,4,SYSTEM,SIMATIC,CCProjectMgr,WinCC Project Manager : Deactivate Project - SCRIPT.EXE - Status = TIMEOUT 
255,15.07.2013,17:06:59:609,0,4,SYSTEM,SIMATIC,CCProjectMgr,WinCC Project Manager : Deactivate Project - SCRIPT.EXE - Status = TIMEOUT 
255,15.07.2013,17:08:59:703,0,4,SYSTEM,SIMATIC,CCProjectMgr,WinCC Project Manager : Deactivate Project - SCRIPT.EXE - Status = TIMEOUT 
In SCRIPT.log
SCRIPT.log
Show

Code: Select all

//====================================================================
// WinCC reported exception with code: C0000005 ACCESS_VIOLATION
// Date: 2.7.2013 - Time: 19.16.47
// Caused at logical address 7C9109FB 01:0000F9FB
//====================================================================
// FAULTING MODULE: C:\windows\system32\ntdll.dll
//====================================================================
// Registers:
// ----------
// EAX:01A94978
// EBX:00480000
// ECX:00001000
// EDX:00072200
// ESI:01A94970
// EDI:01A948D0
// CS:EIP:001B:7C9109FB
// SS:ESP:0023:0012EF8C  EBP:0012EF98
// DS:0023  ES:0023  FS:003B  GS:0000
// Flags:00010246
//
// Call stack:
// -----------
// Address  | Frame    |
// ---------+----------+----------------------------------------------
// 7C9109FB | 0012EF98 | wcsncpy+49C
// 7C91082C | 0012F06C | wcsncpy+2CD
// 78583C1B | 0012F0B8 | free+CD
// 00354637 | 0012F0C8 | CissLoadModuleBuffer+1587
// 003545BE | 0012F0F0 | CissLoadModuleBuffer+150E
// 0035523F | 0012F0FC | CissDeleteModuleEx+68F
// 003574F9 | 0012F13C | CissUnloadAllDlls+3F9
// 00356D95 | 0012F19C | CissDeleteProgram+85
// 1000DB7A | 0012F1BC | CApSteu::RemoveWndOutput+47FA
// 10013C3F | 0012F1C8 | CApSteu::ProjFctLoad+4CBF
// 10005880 | 0012F788 | CApSteu::~CApSteu+3A0
// 100172B0 | 0012F794 | CApSteu::CApSteu+E10
// 00401141 | 0012F7CC | 0001:00000141 C:\Program Files\Siemens\WinCC\bin\SCRIPT.EXE
// 0040214F | 0012F7D8 | 0001:0000114F C:\Program Files\Siemens\WinCC\bin\SCRIPT.EXE
// 7865E696 | 0012F824 | Ordinal5580+B
// 7863BE80 | 0012F8C8 | Ordinal5497+410
// 7863BA49 | 0012F8E8 | Ordinal6780+24
// 7863A63D | 0012F950 | Ordinal1066+A3
// 7863A8C9 | 0012F974 | Ordinal1278+37
// 786385B3 | 0012F9BC | Ordinal606+196
// 7E418734 | 0012F9E8 | GetDC+6D
// 7E418816 | 0012FA50 | GetDC+14F
// 7E428EA0 | 0012FAA4 | DefWindowProcW+180
// 7E42B16F | 0012FAD4 | IsWindowInDestroy+49
// 7C90E453 | 0012FB20 | KiUserCallbackDispatcher+13
// 7866B444 | 0012FB30 | Ordinal1574+2A
// 7866C7DA | 0012FB40 | Ordinal1573+21
// 7864151E | 0012FB5C | Ordinal4656+72
// 7863BE80 | 0012FC00 | Ordinal5497+410
// 7863BA49 | 0012FC20 | Ordinal6780+24
// 7863A63D | 0012FC88 | Ordinal1066+A3
// 7863A8C9 | 0012FCAC | Ordinal1278+37
// 786385B3 | 0012FCF4 | Ordinal606+196
// 7E418734 | 0012FD20 | GetDC+6D
// 7E418816 | 0012FD88 | GetDC+14F
// 7E4189CD | 0012FDE8 | GetWindowLongW+127
// 7E4196C7 | 0012FDF8 | DispatchMessageA+F
// 7867A867 | 0012FE28 | Ordinal1161+40
// 00401FE8 | 0012FF1C | 0001:00000FE8 C:\Program Files\Siemens\WinCC\bin\SCRIPT.EXE
// 786471E8 | 0012FF30 | Ordinal1276+6A
// 0040782C | 0012FFC0 | 0001:0000682C C:\Program Files\Siemens\WinCC\bin\SCRIPT.EXE
// 7C817067 | 0012FFF0 | RegisterWaitForInputIdle+49
//==============================================
//====================================================================
// WinCC reported exception with code: C0000005 ACCESS_VIOLATION
// Date: 15.7.2013 - Time: 17. 0.43
// Caused at logical address 1004171D 01:0004071D
//====================================================================
// FAULTING MODULE: C:\Program Files\Siemens\WinCC\bin\AKTSTEU.dll
//====================================================================
// Registers:
// ----------
// EAX:00000048
// EBX:00000000
// ECX:0050005C
// EDX:02B4E928
// ESI:100052E1
// EDI:00000000
// CS:EIP:001B:1004171D
// SS:ESP:0023:035CFD68  EBP:035CFE8C
// DS:0023  ES:0023  FS:003B  GS:0000
// Flags:00010206
//
// Call stack:
// -----------
// Address  | Frame    |
// ---------+----------+----------------------------------------------
// 1004171D | 035CFE8C | 0001:0004071D C:\Program Files\Siemens\WinCC\bin\AKTSTEU.dll
// 1000537F | 035CFEE8 | GetValueBuffer+1EBF
// 7867A7C4 | 035CFF70 | Ordinal3180+10E
// 78543433 | 035CFFA8 | endthreadex+44
// 785434C7 | 035CFFB4 | endthreadex+D8
// 7C80B713 | 035CFFEC | GetModuleFileNameA+1B4
//====================================================================
In PMDiagnose
PMDiagnose
Show

Code: Select all

2013-07-02  19:09:27.687 - ccProjectMgr.exe   GetSecurityInfo failed with error 5: Access is denied.
2013-07-02  19:09:27.875 - ccProjectMgr.exe     *** Error: CRTApplication::StopWinCCApplication Process (CAReportMergerX.exe) is terminated already  
2013-07-02  19:09:28.656 - ccProjectMgr.exe     ControlService:No progress made within the wait hint failed for CCProfileServer with error 183: Cannot create a file when that file already exists.
2013-07-02  19:09:29.000 - ccProjectMgr.exe     ControlService:No progress made within the wait hint failed for CCTlgServer with error 183: Cannot create a file when that file already exists.
2013-07-02  19:09:42.890 - ccProjectMgr.exe     ControlService:No progress made within the wait hint failed for CCAlgRtServer with error 183: Cannot create a file when that file already exists.
2013-07-02  19:09:42.890 - ccProjectMgr.exe     *** Error: CRTApplication::StopWinCCApplication Process (gscrt.exe) is terminated already  
2013-07-02  19:09:43.625 - ccProjectMgr.exe     ControlService failed for CCTextServer with error 1062: The service has not been started.
2013-07-02  19:11:43.718 - ccProjectMgr.exe     *** Error: CRTApplication::StopWinCCApplication(SCRIPT.EXE) Status(TimeOut)
2013-07-02  19:13:43.828 - ccProjectMgr.exe     *** Error: CRTApplication::StopWinCCApplication(SCRIPT.EXE) Status(TimeOut)
2013-07-02  19:15:43.921 - ccProjectMgr.exe     *** Error: CRTApplication::StopWinCCApplication(SCRIPT.EXE) Status(TimeOut)
2013-07-02  19:16:47.843 - ccProjectMgr.exe   ControlService:No progress made within the wait hint failed for CCPackageMgr with error 183: Cannot create a file when that file already exists.
2013-07-02  19:16:47.843 - ccProjectMgr.exe   ControlService failed for CCPackageMgr with error 1062: The service has not been started.
2013-07-02  19:16:56.890 - ccProjectMgr.exe   CWinCCApplication::Stop(SCRIPT.EXE) Status(SUCCESS !) process terminated without setting events
2013-07-02  19:16:57.531 - ccProjectMgr.exe   ControlService:No progress made within the wait hint failed for CCNSInfo2Provider with error 6: The handle is invalid.
2013-07-02  19:16:57.546 - ccProjectMgr.exe   ControlService failed for CCNSInfo2Provider with error 1062: The service has not been started.
2013-07-02  19:16:57.640 - ccProjectMgr.exe   ControlService:No progress made within the wait hint failed for CCDeltaLoader with error 183: Cannot create a file when that file already exists.
2013-07-02  19:16:57.640 - ccProjectMgr.exe   ControlService failed for CCDeltaLoader with error 1062: The service has not been started.

2013-07-15  17:00:42.859 - ccProjectMgr.exe   GetSecurityInfo failed with error 5: Access is denied.
2013-07-15  17:00:43.078 - ccProjectMgr.exe     *** Error: CRTApplication::StopWinCCApplication Process (CAReportMergerX.exe) is terminated already  
2013-07-15  17:00:44.515 - ccProjectMgr.exe     ControlService:No progress made within the wait hint failed for CCProfileServer with error 183: Cannot create a file when that file already exists.
2013-07-15  17:00:44.859 - ccProjectMgr.exe     ControlService:No progress made within the wait hint failed for CCTlgServer with error 183: Cannot create a file when that file already exists.
2013-07-15  17:00:58.468 - ccProjectMgr.exe     ControlService:No progress made within the wait hint failed for CCAlgRtServer with error 183: Cannot create a file when that file already exists.
2013-07-15  17:00:58.468 - ccProjectMgr.exe     *** Error: CRTApplication::StopWinCCApplication Process (gscrt.exe) is terminated already  
2013-07-15  17:00:59.296 - ccProjectMgr.exe     ControlService failed for CCTextServer with error 1062: The service has not been started.
2013-07-15  17:02:59.406 - ccProjectMgr.exe     *** Error: CRTApplication::StopWinCCApplication(SCRIPT.EXE) Status(TimeOut)
2013-07-15  17:04:59.500 - ccProjectMgr.exe     *** Error: CRTApplication::StopWinCCApplication(SCRIPT.EXE) Status(TimeOut)
2013-07-15  17:06:59.609 - ccProjectMgr.exe     *** Error: CRTApplication::StopWinCCApplication(SCRIPT.EXE) Status(TimeOut)
2013-07-15  17:08:59.703 - ccProjectMgr.exe     *** Error: CRTApplication::StopWinCCApplication(SCRIPT.EXE) Status(TimeOut)
2013-07-17  17:05:55.531 - ccProjectMgr.exe GetSecurityInfo failed with error 5: Access is denied.
2013-07-17  17:06:46.984 - ccProjectMgr.exe       StartService:No progress made within the wait hint failed for CCTlgServer with error 0: The operation completed successfully.
2013-07-17  17:06:46.984 - ccProjectMgr.exe       StartService  ss.dwCurrentState != SERVICE_RUNNING failed for CCTlgServer with error 183: Cannot create a file when that file already exists.

There is a program halt script WINCC + off the computer:

Code: Select all

 int RetMsg;
RetMsg = MessageBox (NULL, "Вы действительно хотите закрыть программу и выключить компьютер?", "Системное сообщение", MB_SYSTEMMODAL | MB_OKCANCEL );
if (RetMsg == IDOK)
{
 SetTagBit("Start_Stop",FALSE);//Turn off the unit
 DMExitWinCCEx (DM_SDMODE_POWEROFF);
} 

Is it possible that the function DMExitWinCCEx - Trouble is this?
And help, if you set this function flag - DM_SDMODE_FORCE_POWEROFF?

Post Reply