Comments (7)
Before starting the application, tell gdb to catch the exception to get a more useful backtrace:
catch throw
Is the pool reasonably up-to-date?
from horizon.
Is the pool reasonably up-to-date?
I did a git pull on the horizon-pool repository just before running the project manager. But maybe i need to regenerate the pool db files?
from horizon.
That's very likely to be issue: open the pool in the pool manager and click 'update pool'.
from horizon.
Probably more useful backtrace:
(gdb) bt
#0 0x00007ffff331bb40 in __cxxabiv1::__cxa_throw(void*, std::type_info*, void (*)(void*)) (obj=obj@entry=0x555555b1e990, tinfo=0x55555583a1e0 <typeinfo for std::runtime_error>, dest=0x7ffff3331680 <std::runtime_error::~runtime_error()>) at /build/gcc-multilib/src/gcc/libstdc++-v3/libsupc++/eh_throw.cc:75
#1 0x00005555556c9596 in horizon::Pool::get_filename[abi:cxx11](horizon::ObjectType, horizon::UUID const&) (this=0x555555fbf7e0, type=horizon::ObjectType::PADSTACK, uu=...) at pool/pool.cpp:66
#2 0x00005555556cf47b in horizon::Pool::get_padstack(horizon::UUID const&) (this=this@entry=0x555555fbf7e0, uu=...) at pool/pool.cpp:167
#3 0x00005555556560ef in horizon::Pad::Pad(horizon::UUID const&, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer> const&, horizon::Pool&) (this=0x7fffffffbde0, uu=..., j=..., pool=...) at package/pad.cpp:7
#4 0x0000555555652b59 in horizon::Package::Package(horizon::UUID const&, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer> const&, horizon::Pool&) (this=0x7fffffffc6b0, uu=..., j=..., pool=...) at pool/package.cpp:154
#5 0x0000555555653ed6 in horizon::Package::new_from_file(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, horizon::Pool&) (filename="/home/roughl/proggen/projects/horizon-pool/packages/passive/smd/C0402/package.json", pool=...) at pool/package.cpp:181
#6 0x00005555556cf83a in horizon::Pool::get_package(horizon::UUID const&) (this=this@entry=0x555555fbf7e0, uu=...) at pool/pool.cpp:159
#7 0x00005555555be0d5 in horizon::Part::Part(horizon::UUID const&, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer> const&, horizon::Pool&) (this=0x7fffffffd000, uu=..., j=..., pool=...) at pool/part.cpp:29
#8 0x00005555555bfc00 in horizon::Part::new_from_file(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, horizon::Pool&) (filename="/home/roughl/proggen/projects/horizon-pool/parts/passive/capacitors/base-0402.json", pool=...) at pool/part.cpp:116
#9 0x00005555556ceebc in horizon::Pool::get_part(horizon::UUID const&) (this=this@entry=0x555555fbf7e0, uu=...) at pool/pool.cpp:177
#10 0x00005555557272cb in horizon::PartBrowserWindow::update_recents() (this=this@entry=0x555555fbf750)
at prj-mgr/part_browser/part_browser_window.cpp:132
#11 0x000055555572844f in horizon::PartBrowserWindow::placed_part(horizon::UUID const&) (this=0x555555fbf750, uu=...)
at prj-mgr/part_browser/part_browser_window.cpp:91
#12 0x0000555555715525 in horizon::ProjectManagerAppWindow::handle_req(nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer> const&) (this=0x555555c50970, j=...) at prj-mgr/prj-mgr-app_win.cpp:273
#13 0x0000555555716274 in horizon::ProjectManagerAppWindow::<lambda(Glib::IOCondition)>::operator()(Glib::IOCondition) const (__closure=0x555555e7f3e0, cond=<optimized out>) at prj-mgr/prj-mgr-app_win.cpp:254
#14 0x00007ffff6024bef in () at /usr/lib/libglibmm-2.4.so.1
#15 0x00007ffff390c0be in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#16 0x00007ffff390df69 in () at /usr/lib/libglib-2.0.so.0
#17 0x00007ffff390dfae in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#18 0x00007ffff47cd5ae in g_application_run () at /usr/lib/libgio-2.0.so.0
#19 0x000055555559bfc9 in main(int, char**) (argc=1, argv=0x7fffffffdba8) at prj-mgr/prj-mgr-main.cpp:13
from horizon.
That's very likely to be issue: open the pool in the pool manager and click 'update pool'.
When I try to open the pool in the pool manager now the pool manager seg-faults...
Thread 1 "horizon-pool-mg" received signal SIGSEGV, Segmentation fault.
0x00007ffff337b460 in ?? () from /usr/lib/libzmq.so.5
(gdb) bt
#0 0x00007ffff337b460 in () at /usr/lib/libzmq.so.5
#1 0x00007ffff339a490 in zmq_getsockopt () at /usr/lib/libzmq.so.5
#2 0x00005555557625e7 in zmq::socket_t::getsockopt(int, void*, unsigned long*) const (this=<optimized out>, optvallen_=0x7fffffffbee8, optval_=0x7fffffffbee4, option_=15) at /usr/include/zmq.hpp:564
#3 0x00005555557625e7 in zmq::socket_t::getsockopt<int>(int) const (option_=15, this=<optimized out>) at /usr/include/zmq.hpp:573
#4 0x00005555557625e7 in horizon::PoolNotebook::<lambda(Glib::IOCondition)>::operator() (cond=<optimized out>, __closure=0x555555e6fe40)
at pool-mgr/pool_notebook.cpp:173
#5 0x00005555557625e7 in sigc::adaptor_functor<horizon::PoolNotebook::PoolNotebook(const string&, horizon::PoolManagerAppWindow*)::<lambda(Glib::IOCondition)> >::operator()<const Glib::IOCondition&> (_A_arg1=<optimized out>, this=0x555555e6fe40)
at /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:89
#6 0x00005555557625e7 in sigc::internal::slot_call1<horizon::PoolNotebook::PoolNotebook(const string&, horizon::PoolManagerAppWindow*)::<lambda(Glib::IOCondition)>, bool, Glib::IOCondition>::call_it(sigc::internal::slot_rep *, sigc::type_trait_take_t) (rep=0x555555e6fe10, a_1=<optimized out>)
at /usr/include/sigc++-2.0/sigc++/functors/slot.h:148
#7 0x00007ffff6024bef in () at /usr/lib/libglibmm-2.4.so.1
#8 0x00007ffff390c0be in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#9 0x00007ffff390df69 in () at /usr/lib/libglib-2.0.so.0
#10 0x00007ffff390ef42 in g_main_loop_run () at /usr/lib/libglib-2.0.so.0
#11 0x00007ffff5913533 in gtk_native_dialog_run () at /usr/lib/libgtk-3.so.0
#12 0x0000555555760c3f in horizon::PoolManagerAppWindow::handle_open() (this=0x555555a94eb0) at pool-mgr/pool-mgr-app_win.cpp:96
#13 0x00007ffff602a2d9 in Glib::SignalProxyNormal::slot0_void_callback(_GObject*, void*) () at /usr/lib/libglibmm-2.4.so.1
#14 0x00007ffff3bdc6f5 in g_closure_invoke () at /usr/lib/libgobject-2.0.so.0
#15 0x00007ffff3befeff in () at /usr/lib/libgobject-2.0.so.0
#16 0x00007ffff3bf4696 in g_signal_emit_valist () at /usr/lib/libgobject-2.0.so.0
#17 0x00007ffff3bf5920 in g_signal_emit () at /usr/lib/libgobject-2.0.so.0
#18 0x00007ffff57db2ee in () at /usr/lib/libgtk-3.so.0
#19 0x00007ffff57db346 in () at /usr/lib/libgtk-3.so.0
#20 0x00007ffff6fc3b03 in Gtk::Button_Class::released_callback(_GtkButton*) () at /usr/lib/libgtkmm-3.0.so.1
#21 0x00007ffff3bdc6f5 in g_closure_invoke () at /usr/lib/libgobject-2.0.so.0
#22 0x00007ffff3bf0188 in () at /usr/lib/libgobject-2.0.so.0
#23 0x00007ffff3bf4696 in g_signal_emit_valist () at /usr/lib/libgobject-2.0.so.0
#24 0x00007ffff3bf5920 in g_signal_emit () at /usr/lib/libgobject-2.0.so.0
#25 0x00007ffff57d96a1 in () at /usr/lib/libgtk-3.so.0
#26 0x00007fffee3981c8 in ffi_call_unix64 () at /usr/lib/libffi.so.6
#27 0x00007fffee397c2a in ffi_call () at /usr/lib/libffi.so.6
#28 0x00007ffff3be627f in g_cclosure_marshal_generic_va () at /usr/lib/libgobject-2.0.so.0
#29 0x00007ffff3bf4c01 in g_signal_emit_valist () at /usr/lib/libgobject-2.0.so.0
#30 0x00007ffff3bf5920 in g_signal_emit () at /usr/lib/libgobject-2.0.so.0
#31 0x00007ffff589d024 in () at /usr/lib/libgtk-3.so.0
#32 0x00007ffff3be5f38 in g_cclosure_marshal_VOID__BOXEDv () at /usr/lib/libgobject-2.0.so.0
#33 0x00007ffff3bf4c01 in g_signal_emit_valist () at /usr/lib/libgobject-2.0.so.0
#34 0x00007ffff3bf5920 in g_signal_emit () at /usr/lib/libgobject-2.0.so.0
#35 0x00007ffff589a1cf in () at /usr/lib/libgtk-3.so.0
#36 0x00007ffff589b84b in () at /usr/lib/libgtk-3.so.0
#37 0x00007ffff589e5c7 in () at /usr/lib/libgtk-3.so.0
#38 0x00007ffff5869e34 in gtk_event_controller_handle_event () at /usr/lib/libgtk-3.so.0
#39 0x00007ffff5a39654 in () at /usr/lib/libgtk-3.so.0
---Type <return> to continue, or q <return> to quit---
#40 0x00007ffff707bee8 in Gtk::Widget::on_button_release_event(_GdkEventButton*) () at /usr/lib/libgtkmm-3.0.so.1
#41 0x00007ffff707e097 in Gtk::Widget_Class::button_release_event_callback(_GtkWidget*, _GdkEventButton*) () at /usr/lib/libgtkmm-3.0.so.1
#42 0x00007ffff58e8488 in () at /usr/lib/libgtk-3.so.0
#43 0x00007ffff3bf4c01 in g_signal_emit_valist () at /usr/lib/libgobject-2.0.so.0
#44 0x00007ffff3bf5920 in g_signal_emit () at /usr/lib/libgobject-2.0.so.0
#45 0x00007ffff5a3b9e5 in () at /usr/lib/libgtk-3.so.0
#46 0x00007ffff58e51eb in () at /usr/lib/libgtk-3.so.0
#47 0x00007ffff58e7443 in gtk_main_do_event () at /usr/lib/libgtk-3.so.0
#48 0x00007ffff53ef9f6 in () at /usr/lib/libgdk-3.so.0
#49 0x00007ffff5422375 in () at /usr/lib/libgdk-3.so.0
#50 0x00007ffff390c270 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#51 0x00007ffff390df69 in () at /usr/lib/libglib-2.0.so.0
#52 0x00007ffff390dfae in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#53 0x00007ffff47cd5ae in g_application_run () at /usr/lib/libgio-2.0.so.0
#54 0x00005555555e8549 in main(int, char**) (argc=1, argv=0x7fffffffdba8) at pool-mgr/pool-mgr-main.cpp:12
from horizon.
After deleting all the .db
files and running horizon-pool-mgr it seems to work now.
from horizon.
closing since we now have logging
from horizon.
Related Issues (20)
- Feature request: get-polygon, or, polygons as arguments to expand-polygon HOT 2
- Feature request: Schematic net label "in-line" rendering HOT 1
- "unknown error" when trying to generate fabrication output HOT 18
- Feature request: placing symbols without a part assigned HOT 1
- Feature request: add an option to make all 3D views use orthographic projection by default HOT 2
- Board Editor and Pool Manager crash, possible project pool corruption HOT 4
- Wrong usage of Board Editor CLI leads to SIGABRT instead of error message HOT 1
- Plane of a deleted Net will crash the Board Editor HOT 2
- Segfault while running checks after updating planes with 6 inner layers HOT 1
- Segfault while deleting things HOT 1
- Not all rules are checked on fab output HOT 3
- Footprint generator generates incorrect pitch HOT 4
- Feature request: Make selection in schematic somehow work with unplaced board components HOT 1
- Python module cannot open top schematic if `pool/*.db*` is missing
- Feature Request: Overriding metadata like `date` and `rev` using the Python module
- Bug: Change sheet while parameter change is incomplete HOT 1
- Unvendor some of the third party software
- License notices HOT 1
- custom value not available in silkscreen
- Feature request: Import enclosure for 3d view / board design HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from horizon.