Software:
version: 0.8.0.2
compiler: gcc 4.3.5
build time: Oct 12 2010 13:57:56 local
platform: Darwin-10.4.0;i386
OS: OS X 10.6.4
Description:
Inspecting a node with python, or accessing its properties via Python will crash K-3D. Perhaps these errors are because of my specific build? Has anyone else built the latest hg trunk on OS X?
How to reproduce:
1) Open K-3D 0.8.0.2
2) Open K-3D's Python Shell
3) Create a node, then try to access a property of the node, or just use the shell's autocompletion; e.g.:
>>> node = k3d.plugin.create("Test", context.document)
>>> node
<k3d.iunknown object at 0x11df00ec0>
>>> node.
[press the Tab key for autocompletion, and K-3D will crash]
Backtrace:
"""
$ make run-gdb/fast
GNU gdb 6.3.50-20050815 (Apple version gdb-1472) (Wed Jul 21 10:53:12 UTC 2010)
…
(gdb) run
Starting program: /opt/build/k3d/k3d-build/bin/k3d --color --log-level=debug --add-path=/opt/build/k3d/k3d-build/bin --locale=/opt/build/k3d/k3d-build/po --ui=ngui
Reading symbols for shared libraries .++++++++++++++++++++++.......................................................................................... done
INFO: package: k3d
INFO: version: 0.8.0.2
INFO: platform: Darwin-10.4.0;i386
INFO: compiler: 4.3.5
INFO: build time: Oct 13 2010 10:08:16 local
…
INFO: Loading plugin module /opt/build/k3d/k3d-build/bin/../lib/k3d/plugins/k3d-ngui-python-shell.module
Reading symbols for shared libraries + done
INFO: Loading plugin module /opt/build/k3d/k3d-build/bin/../lib/k3d/plugins/k3d-python.module
Program received signal SIGABRT, Aborted.
0x00007fff800ea3d6 in __kill ()
(gdb) bt
#0 0x00007fff800ea3d6 in __kill ()
#1 0x00007fff8018a972 in abort ()
#2 0x0000000101b51c2e in uw_init_context_1 ()
#3 0x0000000101b52048 in _Unwind_Resume ()
#4 0x000000011c099b4b in boost::python::detail::caller_arity<2u>::impl<boost::python::api::object (*)(k3d::python::instance_wrapper<k3d::iunknown>&, std::string const&), boost::python::default_call_policies, boost::mpl::vector3<boost::python::api::object, k3d::python::instance_wrapper<k3d::iunknown>&, std::string const&> >::operator() (this=0x119e6cfe8, args_=0x11df62440) at caller.hpp:225
#5 0x000000011c099b8d in boost::python::objects::caller_py_function_impl<boost::python::detail::caller<boost::python::api::object (*)(k3d::python::instance_wrapper<k3d::iunknown>&, std::string const&), boost::python::default_call_policies, boost::mpl::vector3<boost::python::api::object, k3d::python::instance_wrapper<k3d::iunknown>&, std::string const&> > >::operator() (this=0x119e6cfe0, args=0x11df62440, kw=0x0) at object/py_function.hpp:38
#6 0x000000011dbe0dba in boost::python::objects::function::call ()
#7 0x000000011dbe1150 in boost::detail::function::void_function_ref_invoker0<boost::python::objects::(anonymous namespace)::bind_return, void>::invoke ()
#8 0x000000011dbe8511 in boost::python::handle_exception_impl ()
#9 0x000000011dbdde0e in function_call ()
#10 0x000000011dc5fc22 in PyObject_Call ()
#11 0x000000011dc7213d in instancemethod_call ()
#12 0x000000011dc5fc22 in PyObject_Call ()
#13 0x000000011dc63a78 in PyObject_CallFunctionObjArgs ()
#14 0x000000011dcc8ff0 in slot_tp_getattr_hook ()
#15 0x000000011dcaa508 in merge_list_attr ()
#16 0x000000011dcaa8f6 in PyObject_Dir ()
#17 0x000000011dd0369b in builtin_dir ()
#18 0x000000011dd0d068 in PyEval_EvalFrameEx ()
#19 0x000000011dd0c20a in PyEval_EvalFrameEx ()
#20 0x000000011dd0de15 in PyEval_EvalCodeEx ()
#21 0x000000011dd0bdad in PyEval_EvalFrameEx ()
#22 0x000000011dd0de15 in PyEval_EvalCodeEx ()
#23 0x000000011dd0df36 in PyEval_EvalCode ()
#24 0x000000011dd33497 in PyRun_StringFlags ()
#25 0x000000011de8a550 in module::python::engine::execute (this=0x106a4aee0, ScriptName=@0x7fff5fbfd0d0, Script=@0x7fff5fbfd0b0, Context=@0x7fff5fbfd040, Stdout=0x0, Stderr=0x0) at /opt/source/k3d_trunk/k3d/modules/python/engine.cpp:138
#26 0x0000000106b64b72 in module::ngui::python_shell::dialog::on_complete_key_pressed (this=0x11ad07820, Command=@0x7fff5fbfd360) at /opt/source/k3d_trunk/k3d/modules/ngui_python_shell/dialog.cpp:153
#27 0x0000000106b58dfd in sigc::bound_mem_functor1<void, module::ngui::python_shell::dialog, std::string const&>::operator() (this=0x11e03aa88, _A_a1=@0x7fff5fbfd360) at functors/mem_fun.h:1851
#28 0x0000000106b58e21 in sigc::adaptor_functor<sigc::bound_mem_functor1<void, module::ngui::python_shell::dialog, std::string const&> >::operator()<std::string const&> (this=0x11e03aa80, _A_arg1=@0x7fff5fbfd360) at adaptors/adaptor_trait.h:84
#29 0x0000000106b58e4c in sigc::internal::slot_call1<sigc::bound_mem_functor1<void, module::ngui::python_shell::dialog, std::string const&>, void, std::string const&>::call_it (rep=0x11e03aa50, a_1=@0x7fff5fbfd360) at functors/slot.h:137
#30 0x00000001001afde1 in sigc::internal::signal_emit1<void, std::string const&, sigc::nil>::emit (impl=0x11e03b6d0, _A_a1=@0x7fff5fbfd360) at signal.h:1006
#31 0x00000001001afecf in sigc::signal1<void, std::string const&, sigc::nil>::emit (this=0x11e0331e8, _A_a1=@0x7fff5fbfd360) at signal.h:2773
#32 0x000000010285b6bd in k3d::ngui::console::control::implementation::on_key_press_event (this=0x11e0331b0, event=0x10207fc20) at /opt/source/k3d_trunk/k3d/k3dsdk/ngui/console.cpp:91
#33 0x00000001028563aa in sigc::bound_mem_functor1<bool, k3d::ngui::console::control::implementation, _GdkEventKey*>::operator() (this=0x11e039818, _A_a1=@0x7fff5fbfdf68) at functors/mem_fun.h:1851
#34 0x00000001028563cd in sigc::adaptor_functor<sigc::bound_mem_functor1<bool, k3d::ngui::console::control::implementation, _GdkEventKey*> >::operator()<_GdkEventKey* const&> (this=0x11e039810, _A_arg1=@0x7fff5fbfdf68) at adaptors/adaptor_trait.h:84
#35 0x00000001028563f8 in sigc::internal::slot_call1<sigc::bound_mem_functor1<bool, k3d::ngui::console::control::implementation, _GdkEventKey*>, bool, _GdkEventKey*>::call_it (rep=0x11e0397e0, a_1=@0x7fff5fbfdf68) at functors/slot.h:137
#36 0x0000000103f80166 in (anonymous namespace)::Widget_signal_key_press_event_callback ()
#37 0x000000010343c1df in _gtk_marshal_BOOLEAN__BOXED ()
#38 0x0000000101486d92 in g_closure_invoke ()
#39 0x000000010149c25b in signal_emit_unlocked_R ()
#40 0x000000010149d956 in g_signal_emit_valist ()
#41 0x000000010149e054 in g_signal_emit ()
#42 0x00000001035524be in gtk_widget_event_internal ()
#43 0x0000000103562efb in gtk_window_propagate_key_event ()
#44 0x000000010356626b in gtk_window_key_press_event ()
#45 0x0000000103f7cdb3 in Gtk::Widget::on_key_press_event ()
#46 0x000000010281d472 in k3d::ngui::application_window::on_key_press_event (this=0x11ad07820, event=0x10207fc20) at /opt/source/k3d_trunk/k3d/k3dsdk/ngui/application_window.cpp:55
#47 0x0000000103f7a234 in Gtk::Widget_Class::key_press_event_callback ()
#48 0x000000010343c1df in _gtk_marshal_BOOLEAN__BOXED ()
#49 0x0000000101486d92 in g_closure_invoke ()
#50 0x000000010149c3dc in signal_emit_unlocked_R ()
#51 0x000000010149d956 in g_signal_emit_valist ()
#52 0x000000010149e054 in g_signal_emit ()
#53 0x00000001035524be in gtk_widget_event_internal ()
#54 0x0000000103434e0d in gtk_propagate_event ()
#55 0x0000000103436006 in gtk_main_do_event ()
#56 0x0000000103848944 in gdk_event_dispatch ()
#57 0x000000010150b919 in g_main_context_dispatch ()
#58 0x000000010150efb1 in g_main_context_iterate ()
#59 0x000000010150f2c5 in g_main_loop_run ()
#60 0x00000001034363e0 in gtk_main ()
#61 0x0000000101e252db in module::ngui::user_interface::start_event_loop (this=0x101c11340) at /opt/source/k3d_trunk/k3d/modules/ngui/user_interface.cpp:412
#62 0x000000010000f3e8 in k3d_main (raw_arguments={<std::_Vector_base<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >> = {_M_impl = {<std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >> = {<__gnu_cxx::new_allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >> = {<No data fields>}, <No data fields>}, _M_start = 0x7fff5fbff6d0, _M_finish = 0x101a61cf8, _M_end_of_storage = 0x0}}, <No data fields>}) at /opt/source/k3d_trunk/k3d/application/k3d_main.cpp:840
#63 0x0000000100019d5c in main (argc=6, argv=0x7fff5fbff728) at /opt/source/k3d_trunk/k3d/application/main.cpp:35
"""
|