Bug 1310 - Crash when config_get of a driver returns SR_ERR_NA
Summary: Crash when config_get of a driver returns SR_ERR_NA
Status: RESOLVED DUPLICATE of bug 1035
Alias: None
Product: PulseView
Classification: Unclassified
Component: Other (show other bugs)
Version: unreleased development snapshot
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-13 23:03 CEST by Uwe Hermann
Modified: 2018-10-21 18:13 CEST (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Uwe Hermann 2018-10-13 23:03:42 CEST
Some drivers can return SR_ERR_NA upon some config_get() requests, either intentionally or due to bugs or incomplete features in the driver.

Currently PV crashes with:

  Caught exception of type N6sigrok5ErrorE (not applicable)

It should handle these cases more gracefully, though.

The specific ones I'm currently seeing are SR_CONF_AVG_SAMPLES and probably SR_CONF_AVERAGING, though I haven't fully investigated yet.
Comment 1 Soeren Apel 2018-10-21 18:13:22 CEST

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