Ignition Client Crash When Opening Serial Port Post OS Upgrade

In our Ignition application, we read data from a weight scale via the serial port. Recently, our IT department upgraded the Ignition client’s operating system to Windows 11. After the upgrade, the client fails to open the serial port using the command in the startup script and crashes without logging any errors in the server log.

We are currently using Ignition version 7.9.17. Below is the script that worked on Windows 10 but no longer functions on Windows 11. If I disable the last command system.serial.openSerialPort(value), the client starts successfully.

if hostname == "XYZ":
system.serial.configureSerialPort(
port="COM3",
bitRate=system.serial.BIT_RATE_19200,
dataBits=system.serial.DATA_BITS_8,
handshake=system.serial.HANDSHAKE_NONE,
hardwareFlowControl=0,
parity=system.serial.PARITY_NONE,
stopBits=system.serial.STOP_BITS_2)
value = 'COM3'
system.serial.openSerialPort(value)

The old serial library we used in 7.9 had a tendency to crash on newer versions of Windows than existed when it was released.

You could try 7.9.21 and see if it works, but otherwise you'll need to upgrade to 8.x where we replaced that old library with a different one.

Tip: If you are going to run unsupported old production software, don't upgrade any of the software around it. Someone should have objected to IT's arbitrary OS upgrade, at least until testing could reveal this side effect.

3 Likes