Bug 464 - Unhandled exception when using hantek-dso driver
Summary: Unhandled exception when using hantek-dso driver
Status: RESOLVED FIXED
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: 2014-10-27 12:24 CET by Bert Vermeulen
Modified: 2017-12-27 20:35 CET (History)
2 users (show)



Attachments
gdb log (15.26 KB, text/plain)
2016-11-04 23:41 CET, Uwe Hermann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bert Vermeulen 2014-10-27 12:24:19 CET
On selecting the device found by the hantek-dso driver in the dropdown:
Catchpoint 1 (exception thrown), 0x00007ffff523ba30 in __cxa_throw ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) bt
#0  0x00007ffff523ba30 in __cxa_throw ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1  0x00007ffff66a4af5 in sigrok::check (result=-6)
    at bindings/cxx/classes.cpp:32
#2  0x00007ffff66a67ce in sigrok::Configurable::config_list (this=0xa45ee0, 
    key=0x7ffff692b2c0 <sigrok::ConfigKey::_SAMPLERATE>)
    at bindings/cxx/classes.cpp:351
#3  0x0000000000468252 in pv::toolbars::SamplingBar::update_sample_rate_selector (this=this@entry=0xaa8320)
    at /home/bert/sigrok/pulseview/pv/toolbars/samplingbar.cpp:180
#4  0x0000000000468db1 in pv::toolbars::SamplingBar::update_device_config_widgets (this=this@entry=0xaa8320)
    at /home/bert/sigrok/pulseview/pv/toolbars/samplingbar.cpp:353
#5  0x0000000000469663 in pv::toolbars::SamplingBar::on_device_selected (
    this=0xaa8320)
    at /home/bert/sigrok/pulseview/pv/toolbars/samplingbar.cpp:426

When I do 'continue' in gdb and click the 'Run' button:
Catchpoint 1 (exception thrown), 0x00007ffff523ba30 in __cxa_throw ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) bt
#0  0x00007ffff523ba30 in __cxa_throw ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1  0x00007ffff66a4af5 in sigrok::check (result=-6)
    at bindings/cxx/classes.cpp:32
#2  0x00007ffff66a6704 in sigrok::Configurable::config_get (this=0xa45ee0, 
    key=0x7ffff692b2c0 <sigrok::ConfigKey::_SAMPLERATE>)
    at bindings/cxx/classes.cpp:335
#3  0x000000000044ae0e in pv::SigSession::read_sample_rate (this=this@entry=
    0x7fffffffe048, device=...)
    at /home/bert/sigrok/pulseview/pv/sigsession.cpp:402
#4  0x000000000044affe in pv::SigSession::sample_thread_proc(std::shared_ptr<sigrok::Device>, std::function<void (QString)>) (this=0x7fffffffe048, device=..., 
    error_handler=...) at /home/bert/sigrok/pulseview/pv/sigsession.cpp:418
#5  0x0000000000452bff in operator()<std::shared_ptr<sigrok::Device>, std::function<void(QString)>, void> (__object=<optimized out>, this=<optimized out>)
    at /usr/include/c++/4.8/functional:601
Comment 1 Soeren Apel 2016-11-04 23:03:48 CET
Is this still an issue?
Comment 2 Uwe Hermann 2016-11-04 23:41:38 CET
Created attachment 269 [details]
gdb log
Comment 3 Uwe Hermann 2016-11-04 23:42:09 CET
Yup, still reproducible with git HEAD as of today. Updated gdb log attached.
Comment 4 Uwe Hermann 2017-12-27 20:35:21 CET
OK, this one seems to have been "accidentally" fixed along the way, no longer reproducible on two different boxes, with or without the firmware being accessible by libsigrok.