Bug 563 - Multiple acquisitions in a row don't work in PulseView (on Windows)
Summary: Multiple acquisitions in a row don't work in PulseView (on Windows)
Status: RESOLVED DUPLICATE of bug 341
Alias: None
Product: libserialport
Classification: Unclassified
Component: Other (show other bugs)
Version: unreleased development snapshot
Hardware: All Windows
: Normal normal
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-13 18:18 CET by Uwe Hermann
Modified: 2015-03-29 21:56 CEST (History)
4 users (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***