[purejavacomm] Re: Version 0.0.17 released

  • From: Kustaa Nyholm <feedback2@xxxxxxxxxxxxxxxxx>
  • To: purejavacomm@xxxxxxxxxxxxx
  • Date: Mon, 20 May 2013 10:03:26 +0300

On 20/05/2013 02:45, iain macdonnell wrote:
Hi Kusti,

My application seems unhappy with 0.0.17. If I revert to 0.0.16, all
is well. I'm using notifyOnDataAvailable() and have a
SerialPortEventListener with a basic read() loop. It seems to read() a
just handful of bytes, then gets stuck at:

"COM1" daemon prio=6 tid=0x000000000a79e800 nid=0x37d4 waiting on
condition [0x000000000c1bf000]
    java.lang.Thread.State: TIMED_WAITING (sleeping)
         at java.lang.Thread.sleep(Native Method)
         at java.lang.Thread.sleep(Thread.java:302)
         at jtermios.windows.JTermiosImpl.nanoSleep(JTermiosImpl.java:326)
         at jtermios.windows.JTermiosImpl.select(JTermiosImpl.java:893)
         at jtermios.JTermios.select(JTermios.java:438)
         at purejavacomm.PureJavaSerialPort$2.read(PureJavaSerialPort.java:866)
         at purejavacomm.PureJavaSerialPort$2.read(PureJavaSerialPort.java:714)
         at 
org.dseven.mlelecraftutils.MLElecraftSerialClient$comPortReader.serialEvent(MLElecraftSerialClient.java:403)
         at 
purejavacomm.PureJavaSerialPort.sendDataEvents(PureJavaSerialPort.java:96)
         at 
purejavacomm.PureJavaSerialPort.access$28(PureJavaSerialPort.java:93)
         at purejavacomm.PureJavaSerialPort$3.run(PureJavaSerialPort.java:1221)
         at java.lang.Thread.run(Thread.java:662)


Problem occurs on both Windows Vista and Windows 7. Serial port is an
EdgePort USB/Serial.

Thanks,

     ~iain


I think this is related to the 'tail eating bug' fix.

Can you try the attached stab at a fix?


br Kusti

Attachment: purejavacomm-src.jar
Description: application/java-archive

Attachment: purejavacomm.jar
Description: application/java-archive

Other related posts: