Bug 563

Summary: Multiple acquisitions in a row don't work in PulseView (on Windows)
Product: libserialport Reporter: Uwe Hermann <uwe>
Component: OtherAssignee: Nobody <nobody>
Status: RESOLVED DUPLICATE    
Severity: normal CC: jmat0, martin-sigrokbugs, sigrok, uffe
Priority: Normal    
Version: unreleased development snapshot   
Target Milestone: ---   
Hardware: All   
OS: Windows   

Description Uwe Hermann 2015-03-13 18:18:46 CET
Some issue in libserialport and/or libsigrok's ols driver causes multiple acquisitions using an OLS (on Windows) to fail.

The first scan + acquisition works fine (since bug #562 is fixed), but when pressing "Run" again (at least) the following errors occur:

[...]
sr: serial: Read error (995): Der E/A-Vorgang wurde wegen eines Threadendes oder einer Anwendungsanforderung abgebrochen.
sr: session: sr_session_start: could not start an acquisition (generic/unspecified error)
[...]

Multiple acquisitions in a row via sigrok-cli seem to work fine and/or not hit this issue (since sigrok-cli "starts fresh" every time, I guess).

The 995 error sounds familiar, I think I've seen this with other devices as well on Windows, might be an issue in libserialport itself (not sure yet, though).
Comment 1 Martin Ling 2015-03-13 22:41:29 CET
Could you post debug output with LIBSERIALPORT_DEBUG=1 please?
Comment 2 Martin Ling 2015-03-27 23:51:57 CET
Please try with this change:

https://github.com/martinling/libserialport/commit/65f89b81819e2834fe51d661952f6b5fcdd23171
Comment 3 Martin Ling 2015-03-29 21:56:24 CEST
This looks like a libserialport rather than libsigrok problem, and more specifically like a duplicate of the issues remaining in bug #341.

*** This bug has been marked as a duplicate of bug 341 ***