[purejavacomm] Re: Version 0.0.17 released

  • From: iain macdonnell <dseven@xxxxxxxxxx>
  • To: purejavacomm@xxxxxxxxxxxxx
  • Date: Wed, 22 May 2013 20:33:10 -0700

On Mon, May 20, 2013 at 12:03 AM, Kustaa Nyholm
<feedback2@xxxxxxxxxxxxxxxxx> wrote:
> 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?

Hi Kusti,

Sorry for the delay ... shiny objects everywhere this week!

Yes, this version seems work fine so-far. I'll keep using it for a
while to make sure, but it looks good.

Thanks!

    ~iain

Other related posts: