Bug 1677 - Pulseview crashes with LHT00SU1
Summary: Pulseview crashes with LHT00SU1
Status: RESOLVED FIXED
Alias: None
Product: PulseView
Classification: Unclassified
Component: Acquisition (show other bugs)
Version: 0.4.0
Hardware: x86 Linux
: Normal major
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-26 15:01 CEST by andpet
Modified: 2021-04-27 10:41 CEST (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description andpet 2021-04-26 15:01:20 CEST
Using LHT00SU1 logic analyzer.
Setup with CWAV USBee AX
Ubuntu Linux.

I think I installed the latest sigrok-firmware-fx2lafw-bin-0.1.7 firmware, but I'm not sure. The pre-built sigrok-firmware-fx2lafw-bin-0.1.7.tar.gz did not come with instructions how to install it, but I copied the *.fw files to ~/.local/share/sigrok-firmware/

When I set "Pretrigger capture ratio" of CWAV USBee AX to a non-zero percentage (for example "5"), setup a trigger and start a capture, Pulseview crashes with this message:

pulseview: /build/pulseview-XIrLPh/pulseview-0.4.0/pv/data/logicsegment.cpp:141: void pv::data::LogicSegment::append_payload(std::shared_ptr<sigrok::Logic>): Assertion `unit_size_ == logic->unit_size()' failed.
Aborted (core dumped)

Capturing data without pretrigger capture ratio works.
Comment 1 Soeren Apel 2021-04-27 01:07:20 CEST
Can you still reproduce this with the current nightly build (or nightly AppImage)?

If not then I'd say that it's because you used an old version and the bug can be closed.
Comment 2 andpet 2021-04-27 10:41:13 CEST
Retesting with the nightly build works. No crash.
Before, I used the version available through APT:
Package: pulseview
Version: 0.4.0-2
APT-Sources: http://se.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages                                             

Clearly it's very old.

Marking as RESOLVED/FIXED.