[Bug] Modbus driver crash/hung type issues

8.0.0-beta0 (b2018121802) on Windows 10 Pro 1803 x64

Created Modbus TCP Device.
It worked but I wanted to make it NOT one-based, so I went to setup and unchecked “one based”.
When I hit save, I got a page saying internal error, the only option to return to GW web page. Trying to go back to OPCUA devices got the same error page.
Finally restarted OPC-UA and Modbus modules, then I could go to page where Modbus device was- it was not there. Refresh, etc- still gone.
I went to re-create it, and Modbus TCP is not in the list of device types I can pick. Modbus RTU over TCP is, but not Modbus TCP.
Reinstalled Modbus V2 module, no change.

Restarted machine, everything back to normal, and it appears that the Modbus device DID take the change to make it not one-based.

Can you gather the logs and attach or email them to us please.

Will do. Also, a little update…after doing a little more testing this morning (when I wrote the bug reports), I left the machine with just a few tags connected to Modbus TCP devices. Some were internal tags from the server (like IsConnected), a few were actual tags from actual PLCs.

Coming back to the PC just now, none of the tags are functioning. “Restart tag” takes it from stale to error. When I go to GW devices page, click on EDIT for one of the devices, I get the same error screen I had reported before. I will try to capture logs now, then try to solve this issue and capture again.

Here’s what is in the Designer console during today’s session. FYI the PC might have gone to sleep while I was gone too.

07:08:55.056 [Designer-Startup] INFO designer.main - Downloading… [+0]
07:08:55.072 [Designer-Startup] INFO designer.main - Cleanup… [+16]
07:08:55.072 [Designer-Startup] INFO designer.main - Initializing UI… [+16]
07:08:55.111 [DesignerExecEngine-1] INFO tags.subscriptions - Changing connected quality to ‘Good’
07:08:55.928 [Designer-Startup] INFO designer.main - Starting module: Vision [+872]
07:08:57.368 [Designer-Startup] INFO designer.main - Starting module: Reporting [+2312]
07:08:57.400 [Designer-Startup] INFO reporting.Designer - Starting up Reporting Module. Mode: Activated
07:08:57.515 [Designer-Startup] INFO designer.main - Starting module: Alarm Notification [+2459]
07:08:57.549 [Designer-Startup] INFO designer.main - Starting module: Symbol Factory [+2493]
07:08:57.552 [Designer-Startup] INFO designer.main - Starting module: SQL Bridge [+2496]
07:08:57.651 [Designer-Startup] INFO designer.main - Starting module: Perspective [+2595]
07:08:57.701 [Designer-Startup] INFO Perspective.Designer - Starting up Perspective module. Mode: Activated
07:08:57.792 [Designer-Startup] INFO Perspective.ViewWorkspace - The cache path for this browser context is ‘C:\Users\Administrator.ignition\cache\gwlocalhost_8088_main\C0\perspective’
07:08:58.162 [Designer-Startup] INFO Perspective.SessionProps - Session props debug url: http://localhost:9222/devtools/inspector.html?ws=localhost:9222/devtools/page/(DA7C499DE8148E6247CA47265021459F)
07:08:58.293 [Designer-Startup] INFO designer.main - Initializing Scripting… [+3237]
07:08:58.317 [Designer-Startup] INFO designer.main - Initializing UI… [+3261]
08:37:54.096 [AWT-EventQueue-0] INFO ViewResourceEditor - Perspective remote debugging port open at: http://localhost:9222/devtools/inspector.html?ws=localhost:9222/devtools/page/(A4D5BB4CE4FD7F2095220973241578C4)
12:13:26.566 [DesignerExecEngine-2] INFO com.inductiveautomation.ignition.client.gateway_interface.GatewayConnectionManager - Session no longer valid.
12:13:26.567 [DesignerExecEngine-2] INFO com.inductiveautomation.ignition.client.gateway_interface.GatewayConnectionManager - Starting reconnect thread.
12:13:26.590 [DesignerExecEngine-2] ERROR tags.subscriptions - Error managing tag subscriptions against the gateway. Will resubscribe.
com.inductiveautomation.ignition.client.gateway_interface.GatewayException: No session found. You must re-login. (TagProviderRpc.manageSubscriptions)
at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.newGatewayException(GatewayInterface.java:338)
at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.sendMessage(GatewayInterface.java:312)
at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.sendMessage(GatewayInterface.java:265)
at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.invoke(GatewayInterface.java:888)
at com.inductiveautomation.ignition.client.tags.impl.ClientTagSubscriptionManager$GatewaySubscribedPathManager$PathDiffTask.run(ClientTagSubscriptionManager.java:627)
at com.inductiveautomation.ignition.client.tags.impl.ClientTagSubscriptionManager$GatewaySubscribedPathManager.validatePaths(ClientTagSubscriptionManager.java:566)
at com.inductiveautomation.ignition.client.tags.impl.ClientTagSubscriptionManager$GatewaySubscribedPathManager.run(ClientTagSubscriptionManager.java:546)
at com.inductiveautomation.ignition.common.execution.impl.BasicExecutionEngine$TrackedTask.run(BasicExecutionEngine.java:565)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
12:13:26.599 [GatewayConnection-1] INFO com.inductiveautomation.ignition.client.gateway_interface.GatewayConnectionManager - Updated login state. Logged in? true, Username: northpoint, Roles: [Administrator], Security Zones: null
12:13:26.623 [GatewayConnection-1] INFO com.inductiveautomation.ignition.client.gateway_interface.GatewayConnectionManager - Stopping reconnect thread.
12:13:53.345 [Browser Events Thread] INFO Perspective.SessionProps - onerrorLogger: {“stack”:“TypeError: Cannot read property ‘path’ of undefined\n at SelectionStore.clearSelections (http://localhost:8088/res/perspective/js/PerspectiveDesigner.js:12143:58)\n at executeAction (http://localhost:8088/res/perspective/js/mobx.umd-3.3.1.js:917:19)\n at SelectionStore.res (http://localhost:8088/res/perspective/js/mobx.umd-3.3.1.js:1170:16)\n at Array.registerStateReaction (http://localhost:8088/res/perspective/js/PerspectiveDesigner.js:10689:28)\n at DesignerStore.onStateChange (http://localhost:8088/res/perspective/js/PerspectiveClient.js:26026:25)\n at executeAction (http://localhost:8088/res/perspective/js/mobx.umd-3.3.1.js:917:19)\n at res (http://localhost:8088/res/perspective/js/mobx.umd-3.3.1.js:908:16)\n at reactionRunner (http://localhost:8088/res/perspective/js/mobx.umd-3.3.1.js:1462:13)\n at Reaction.onInvalidate (http://localhost:8088/res/perspective/js/mobx.umd-3.3.1.js:1440:13)\n at Reaction.runReaction (http://localhost:8088/res/perspective/js/mobx.umd-3.3.1.js:3310:22)”,“message”:“Cannot read property ‘path’ of undefined”,“name”:“TypeError”,“logData”:{“msg”:“Uncaught Exception”,“errorMsg”:“Uncaught TypeError: Cannot read property ‘path’ of undefined”,“url”:“http://localhost:8088/res/perspective/js/PerspectiveDesigner.js","line number”:12143,“column”:58}}
12:13:53.345 [Browser Events Thread] INFO Perspective.SessionProps - Uncaught TypeError: Cannot read property ‘path’ of undefined

GW logs attached including yesterday’s events and today’s.
Ignition-BGMW-ALPHA_Ignition_logs_20181220-1225.idb (430 KB)

The stuck Modbus driver/tags were cleared by a gateway restart (using batch files). Here are the updated GW logs, just the last hour in this case. Also just FYI, the graphics in Perspective showed bad quality overlays even after the tags healed- had to close view and re-open for that to clear.
Ignition-BGMW-ALPHA_Ignition_logs_20181220-1231.idb (497 KB)

I had the same thing. Just made a post about it didn’t see this one…

Instead for me it was with a Modbus RTU to COM port device

Cover off… updating to a new release of the beta sorted this issue

Gonna consider this fixed until someone says otherwise with a new nightly build.