You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SerialPort version: 3.1.2
Operating System and Hardware: Dell Latitude E5520, Win 7 Pro, Core i5-2520M 2.5GHZ, 4GB RAM.
Are you using Electron/Atom/NwJS?: NW.js version 0.15.0
Problem
After making some changes to our app code, everything would work perfectly fine on most of our PCs, but on the Dell Latitude referenced above the app would close almost immediately after opening. After investigating with the dev tools on that machine I discovered it was occurring when processing the result of the SerialPort.list function. Specifically, it occurrs on the following line, where I create a label based on the port comName and manufacturer if it exists.
It appears to occur whenever I attempt to do any kind of boolean operation on a port property that shows up with the mysterious hole type. The following is a screenshot from some tests I was doing in the developer console, where I stored a port object as a global variable temp1:
After executing the command !temp1.manufacturer, the program immediately exited.
No errors are ever printed to the console. And the process closes with an exit code of 0.
Steps and Code to Reproduce the Issue
I am unsure specifically what kind of system configuration causes this to occur. As I mentioned above, everything worked fine on almost all of our other Windows machines. It could have been due to the fact that the manufacturer property on that port object was a hole type. I saw the same behavior when trying to do operations on the other properties set to hole.
On such a machine, the following code should reproduce the issue:
And totally report back here! Making it easy for people to use SP with whatever ideas they have is important to us. I'm happy to help debug on a nwjs ticket too.
Yeah I was completely baffled when I saw that hole type. As you recommended, I just opened the issue on nwjs. My workaround for the time being is to avoid doing any kind of boolean operations on those properties. So I changed this line:
Browser serialport as suggested in that ticket will soon be merged with node-serialport with a chrome serialport backend. It's not as up to date with the api, but it does work well. I'm going to close this ticket as it's an issue with NW.js
SerialPort version: 3.1.2
Operating System and Hardware: Dell Latitude E5520, Win 7 Pro, Core i5-2520M 2.5GHZ, 4GB RAM.
Are you using Electron/Atom/NwJS?: NW.js version 0.15.0
Problem
After making some changes to our app code, everything would work perfectly fine on most of our PCs, but on the Dell Latitude referenced above the app would close almost immediately after opening. After investigating with the dev tools on that machine I discovered it was occurring when processing the result of the
SerialPort.list
function. Specifically, it occurrs on the following line, where I create a label based on the portcomName
andmanufacturer
if it exists.It appears to occur whenever I attempt to do any kind of boolean operation on a port property that shows up with the mysterious
hole
type. The following is a screenshot from some tests I was doing in the developer console, where I stored a port object as a global variabletemp1
:After executing the command
!temp1.manufacturer
, the program immediately exited.No errors are ever printed to the console. And the process closes with an exit code of 0.
Steps and Code to Reproduce the Issue
I am unsure specifically what kind of system configuration causes this to occur. As I mentioned above, everything worked fine on almost all of our other Windows machines. It could have been due to the fact that the
manufacturer
property on that port object was ahole
type. I saw the same behavior when trying to do operations on the other properties set tohole
.On such a machine, the following code should reproduce the issue:
The text was updated successfully, but these errors were encountered: