Cancel
Showing results for 
Search instead for 
Did you mean: 

PlantSimulation OPC UA endless lock

Legend
Legend

Hello,

 

I have a problem with plantsimulation 14.2 using OPC UA interface.

I setup it with read and write interval to 100 and I have more than 50 triggers on points that just set plantsimulation variable. 

 

I'm connected to simulated OPC point via softing OPC. The link works perfectly during a time and suddenly it stop.

 

I look for task manager and I see that 100% of my processor is used by plant simulation on all core.

Plantsimulation process is in status not response. I get the wait chain and a plant simulation thread is waiting for an other plant simulation thread. as you can see below

wait-chain.png

 

Does anyone else have the same bug ?

 

Regards,

 

rpinon

9 REPLIES 9

Re: PlantSimulation OPC UA endless lock

Siemens Phenom Siemens Phenom
Siemens Phenom

This is possibly a known bug that was discovered a couple of weeks ago.

To check if this is actually the same bug, please use the Process Explorer (by Mark Russinovich) that you can freely download from Microsoft.

Start the Process Explorer, look for the "PlantSimulation14_2.exe" process and select "Properties..." from the context menu. Activate the tab "Threads". Select the "PlantSimulation14_2!..." thread and then click the button "Stack". Please post a screenshot of the stack window.

 

For the known bug the call stack looks something like this:

...

KeWaitForMutexObject

...

EnterCriticalSection

OpcUa_SecureConnection_GetSecurityToken

OpcUa_Channel_InvokeService

OpcUa_ClientApi_Write

...

 

We are still trying to find the reason for the deadlock. The deadlock happens in the OPC UA Client Stack from the OPC Foundation. It is still unclear if the bug is in the Client Stack or is caused by Plant Simulation. We are currently working hard on finding the cause for the problem. More information could be helpful. Does the deadlock only happen when the 3D viewer is running, or does it also happen in a 2D-only model?

_________________________________________________________________
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution.

Re: PlantSimulation OPC UA endless lock

Legend
Legend

He, thanks for reply,

 

I have this :

 

ntdll.dll!ZwWaitForAlertByThreadId+0x14
ntdll.dll!RtlUnlockHeap+0x93f
ntdll.dll!RtlUnlockHeap+0x6bb
ntdll.dll!RtlEnterCriticalSection+0x129
ntdll.dll!RtlEnterCriticalSection+0x40
OpcUaStack.dll!OpcUa_SecureConnection_GetSecurityToken+0x1a45
OpcUaStack.dll!OpcUa_Channel_InvokeService+0x12a
OpcUaStack.dll!OpcUa_ClientApi_Write+0xc5
PlantSimCore.dll!eMPlantAPI::getMUInstance+0x11be5
PlantSimCore.dll!eMPlantAPI::getMUInstance+0xfcb3
USER32.dll!IsChild+0x2dc
USER32.dll!DispatchMessageW+0x2a0
PlantSimulation14_2.exe+0x1862f
mfc140u.dll+0x2daf97
PlantSimulation14_2.exe!GetViewerInterfaces+0x5deb
KERNEL32.DLL!BaseThreadInitThunk+0x14
ntdll.dll!RtlUserThreadStart+0x21

 

My model is a 2D only so I don't test it with 3D.

 

Re: PlantSimulation OPC UA endless lock

Legend
Legend

For informaition,

 

The bug seems to appear when I use debugger and triggered point change it value.

 

Regards,

 

rpinon

Re: PlantSimulation OPC UA endless lock

Legend
Legend

he,

 

Any feedback on this bug ? Did you fix it ?

 

If no, do you have a date of resolution ?

 

Regards,

 

rpinon

Highlighted

Re: PlantSimulation OPC UA endless lock

Siemens Valued Contributor Siemens Valued Contributor
Siemens Valued Contributor

Another customer has a very similar problem that we are looking into for quite a while now. We are now finally able to reproduce this issue in or environment, and we're working on isolating to issue and hopfully fixing the bug. It's likely that this fix will also resolve your issue. We'll keep you posted.

------------------------------------------------------------------------------------------------------
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution.

Re: PlantSimulation OPC UA endless lock

Legend
Legend
Thanks,

Good to know.

Re: PlantSimulation OPC UA endless lock

Siemens Phenom Siemens Phenom
Siemens Phenom

We finally fixed the bug. If you cannot wait for the next maintenance pack, you can get a hotfix. For this please contact your local support.

_________________________________________________________________
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution.

Re: PlantSimulation OPC UA endless lock

Legend
Legend

Thanks,

 

When will be th next maintenance pack ?

 

Regards,

Re: PlantSimulation OPC UA endless lock

Siemens Valued Contributor Siemens Valued Contributor
Siemens Valued Contributor

We plan to release the next maintenance packs by the end of April.

------------------------------------------------------------------------------------------------------
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution.