# system.serial.openPort() crashes Ignition

**URL:** <https://forum.inductiveautomation.com/t/system-serial-openport-crashes-ignition/21059>\
**Category:** Ignition\
**Created:** [November 26, 2018, 3:35am UTC](https://forum.inductiveautomation.com/t/system-serial-openport-crashes-ignition/21059 "2018-11-26T03:35:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhargava](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@abhargava](https://forum.inductiveautomation.com/u/abhargava)\
**Post date:** [November 26, 2018, 3:35am UTC](https://forum.inductiveautomation.com/t/system-serial-openport-crashes-ignition/21059/1 "2018-11-26T03:35:31Z")

</div>

We are using Windows Server 2016 and installed Ignition V7.9.9. we tried communication using serial moduel v4.9.9 and 4.9.10-rc1 But somehow running openPort() command crashes the designer and if we make a gateway script it crashes the gateway. The code we are trying to run is as follows:

system.serial.configureSerialPort(  
port=“COM3”,  
bitRate=system.serial.BIT\_RATE\_9600,  
dataBits=system.serial.DATA\_BITS\_7,  
handshake=system.serial.HANDSHAKE\_NONE,  
hardwareFlowControl=False,  
parity=system.serial.PARITY\_NONE,  
stopBits=system.serial.STOP\_BITS\_2)

system.serial.openSerialPort(“COM3”)

PS: When we try running the same from our laptop(Windows 10 Pro), it works fine.

Please suggest.

Regards

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [November 26, 2018, 3:44am UTC](https://forum.inductiveautomation.com/t/system-serial-openport-crashes-ignition/21059/2 "2018-11-26T03:44:16Z")

</div>

Thanks for reporting.

This is a known issue, the native serial library we use needs to be upgraded. I’ll come back to update if I can get a timeline for the fix…

---

<div class="post-metadata">

**Author:** ![ryanjmclaughlin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryanjmclaughlin/32/4318_2.png) [@ryanjmclaughlin](https://forum.inductiveautomation.com/u/ryanjmclaughlin)\
**Post date:** [November 26, 2018, 1:42pm UTC](https://forum.inductiveautomation.com/t/system-serial-openport-crashes-ignition/21059/3 "2018-11-26T13:42:05Z")

</div>

> [@Kevin.Herron](#):
>
> This is a known issue, the native serial library we use needs to be upgraded

We use serial module in a bunch of clients, please let me know if we should keep the module at a certain version to keep things stable until your fix.

---

<div class="post-metadata">

**Author:** ![jdrichards](https://avatars.discourse-cdn.com/v4/letter/j/839c29/32.png) [@jdrichards](https://forum.inductiveautomation.com/u/jdrichards)\
**Post date:** [November 26, 2018, 2:55pm UTC](https://forum.inductiveautomation.com/t/system-serial-openport-crashes-ignition/21059/4 "2018-11-26T14:55:30Z")

</div>

I had a similar issue many Ignition revs ago. I didn’t know I needed to manually update the serial client and gateway modules. I don’t know if that is your issue, but I would try it.

---

<div class="post-metadata">

**Author:** ![Dawid\_Fulczynski](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dawid_fulczynski/32/12308_2.png) [@Dawid\_Fulczynski](https://forum.inductiveautomation.com/u/Dawid_Fulczynski)\
**Post date:** [July 17, 2020, 1:30pm UTC](https://forum.inductiveautomation.com/t/system-serial-openport-crashes-ignition/21059/5 "2020-07-17T13:30:05Z")

</div>

Same here, Windows 2019, Igniton 7.9.14 - after install serial module gateway 4.9.14 gateway instantly shutdown. Probably script try to open serial port.
