Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SerialPort 7.1.4 crashing on Win64 when calling list() #1830

Closed
caffeinatedbits opened this issue Apr 4, 2019 · 3 comments
Closed

SerialPort 7.1.4 crashing on Win64 when calling list() #1830

caffeinatedbits opened this issue Apr 4, 2019 · 3 comments
Labels

Comments

@caffeinatedbits
Copy link
Contributor

caffeinatedbits commented Apr 4, 2019

Summary of Problem

My application gets a list of serial ports, and then makes a connection to a device to transfer data. At the point in which serialport .list() is called, the application is crashing with Crash reason: EXCEPTION_ACCESS_VIOLATION_READ in bindings.node (dumps attached). I've got this app installed on ~500 end user systems, but the error is only occurring on one, a laptop with Win10 Pro x64.

(Please answer all 3)
dump1.txt
dump2.txt
dump3.txt

  • What are you trying to do?
    List serial ports

  • What happens?
    Application crashes (dump generated)

  • What should have happened?
    Serial ports should be listed

Code to Reproduce the Issue

// Code
const SerialPort = nw.require('serialport');
SerialPort.list().then( (ports) => { ...code... }, (error) => { ...code... });

Versions, Operating System and Hardware

  • SerialPort@7.14
  • Node.js v? - 11.10.0 / NWJS 0.36.3
  • Windows? Linux? Mac? - Windows 10 x64
  • Hardware and chipset? (Prolific/FTDI/Other) - Unknown USB-to-RS232 Serial Adapter
@caffeinatedbits
Copy link
Contributor Author

Update: I've now discovered a total of 3 systems with this same issue, and they all have a Brother multifunction printer attached by USB. When the printer cable is disconnected, my app runs flawlessly. Why would a Brother printer connected via USB cause issues with serialport?

@reconbot
Copy link
Member

It would be the brother print drivers that don't like to be querried for device info. We use USB information to get more info on each serialport.

@reconbot
Copy link
Member

reconbot commented May 2, 2019

You can try the usb npm package to see if you can find your device in a way that wont mess up the printers. I'd also file a bug with Brother.

@reconbot reconbot closed this as completed May 2, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants