> On 26 Jan 2015, at 22:32, Jürgen Eckert <juergen.eck...@fau.de> wrote: > > Hi guys, > > thanks for the support. I can confirm it is compiling and linking. On OSx I > switched back to clang and everything runs fine. > I tested everything with my Logic 8. On Ubuntu no problems what so ever. On > OSx pulseview crashes when I am trying to set a trigger by clicking on one of > the channel numbers: > > (process:29207): GLib-CRITICAL **: g_variant_type_is_subtype_of: assertion > 'g_variant_type_check (supertype)' failed > Caught exception: std::bad_cast > > For the Demo Device this works fine…
Same here. I started looking into it, cast_dynamic throws a std::bad_cast: http://sigrok.org/gitweb/?p=pulseview.git;a=blob;f=pv/view/logicsignal.cpp;h=18ca52007b89a5b92186a6446d1d5f614d80c59b;hb=HEAD#l326 I added code to evaluate gvar.is_of_type(Glib::Variant<vector<int32_t>>::variant_type()) and it returns false. (process:47219): GLib-CRITICAL **: g_variant_type_is_subtype_of: assertion 'g_variant_type_check (supertype)' failed Catchpoint 1 (exception thrown), 0x00007fff8a123abb in __cxa_throw () from /usr/lib/libc++abi.dylib (gdb) bt #0 0x00007fff8a123abb in __cxa_throw () from /usr/lib/libc++abi.dylib #1 0x000000010003f35d in Glib::Variant<std::__1::vector<int, std::__1::allocator<int> > > Glib::VariantBase::cast_dynamic<Glib::Variant<std::__1::vector<int, std::__1::allocator<int> > > >(Glib::VariantBase const&) () #2 0x000000010003de85 in pv::view::LogicSignal::get_trigger_types() const () #3 0x000000010003e8c5 in pv::view::LogicSignal::populate_popup_form(QWidget*, QFormLayout*) () #4 0x0000000100045d3a in pv::view::Trace::create_popup_form() () #5 0x0000000100045c7b in pv::view::Trace::create_popup(QWidget*) () #6 0x000000010003ceb2 in pv::view::MarginWidget::item_clicked(std::__1::shared_ptr<pv::view::ViewItem> const&) () #7 0x0000000100052962 in pv::view::ViewWidget::mouse_left_release_event(QMouseEvent*) () #8 0x0000000100052b04 in pv::view::ViewWidget::mouseReleaseEvent(QMouseEvent*) () #9 0x00000001002769d7 in QWidget::event(QEvent*) () from /usr/local/lib/QtGui.framework/Versions/4/QtGui #10 0x0000000100052a3b in pv::view::ViewWidget::event(QEvent*) () #11 0x0000000100238ed5 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/local/lib/QtGui.framework/Versions/4/QtGui #12 0x000000010023aab2 in QApplication::notify(QObject*, QEvent*) () from /usr/local/lib/QtGui.framework/Versions/4/QtGui #13 0x0000000100006a22 in Application::notify(QObject*, QEvent*) () #14 0x0000000100e04bb8 in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/local/lib/QtCore.framework/Versions/4/QtCore #15 0x00000001002397a6 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/local/lib/QtGui.framework/Versions/4/QtGui #16 0x00000001001f23af in qt_mac_handleMouseEvent(NSEvent*, QEvent::Type, Qt::MouseButton, QWidget*, bool) () from /usr/local/lib/QtGui.framework/Versions/4/QtGui #17 0x00007fff87753b5b in ?? () from /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit #18 0x00007fff5fbfee70 in ?? () #19 0x00007fff832d6dd4 in __mtx_droplock () from /usr/lib/system/libsystem_pthread.dylib #20 0x00007fff871dd16e in ?? () from /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit #21 0x0000000100a79f78 in OBJC_METACLASS_$_QCocoaView () from /usr/local/lib/QtGui.framework/Versions/4/QtGui #22 0x000000010af31f00 in ?? () #23 0x00007fff8de490c0 in cache_getImp () from /usr/lib/libobjc.A.dylib #24 0x00007fff74a62000 in ?? () #25 0x00000001020676f0 in ?? () #26 0x00007fff8de490c0 in cache_getImp () from /usr/lib/libobjc.A.dylib #27 0x00007fff5fbff0b0 in ?? () #28 0x00000001001eaaa1 in -[QCocoaWindow sendEvent:] () from /usr/local/lib/QtGui.framework/Versions/4/QtGui Backtrace stopped: frame did not save the PC ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ sigrok-devel mailing list sigrok-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sigrok-devel