Empty application window on startup on OS X 10.3.9
Bug #185689 reported by
John Faith
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
High
|
JiHO |
Bug Description
In svn version 16780, when the application is started by double-clicking on Inkscape.app, only a small empty X11 window is displayed. There is no main application window with menus, etc.
It seems that there may be a path issue in packaging/
BASE="`echo "$0" | sed -e 's/\/Contents\
cd "$BASE"
-exec "$CWD/bin/inkscape" "$@"
+cd Contents/
+exec "./inkscape" "$@"
, but I'm not sure if this is an issue on other OS X versions, so this fix may not be generally applicable.
To post a comment you must log in.
Apparently this is a crash which happens when icons are loaded, which must be why messing up the path in the startup script allows the application to stay running (icon loading fails more gracefully).
The crash and backtrace from gdb: tree<char* , std::pair<char* const, int>, std::_Select1st <std::pair< char* const, int> >, ltstr, std::allocator< std::pair< char* const, int> > >::operator= (std::_ Rb_tree< char*, std::pair<char* const, int>, std::_Select1st <std::pair< char* const, int> >, ltstr, std::allocator< std::pair< char* const, int> > > const&) () at /opt/local/ include/ gtkmm-2. 4/gtkmm/ papersize. h:37 tree<char* , std::pair<char* const, int>, std::_Select1st <std::pair< char* const, int> >, ltstr, std::allocator< std::pair< char* const, int> > >::operator= (std::_ Rb_tree< char*, std::pair<char* const, int>, std::_Select1st <std::pair< char* const, int> >, ltstr, std::allocator< std::pair< char* const, int> > > const&) () at /opt/local/ include/ gtkmm-2. 4/gtkmm/ papersize. h:37 init(SPFilter* ) () at libnr/nr- point-matrix- ops.h:11 create_ instance () constructor () build(SPObject* , SPDocument*, Inkscape: :XML::Node* ) (object=0x78a6b78, document=0x3aefee0, repr=0x7ac9288) at sp-object.cpp:792 invoke_ build(SPObject* , SPDocument*, Inkscape: :XML::Node* , unsigned) (object=0x7a3ff70, document=0x78a6b78, repr=0x3aefee0, cloned=128750216) at sp-object.cpp:852 build(SPObject* , SPDocument*, Inkscape: :XML::Node* ) (object=0x15cd260, document=0x3aefee0, repr=0x78a6b78) at sp-object.cpp:795 build(SPObject* , SPDocument*, Inkscape: :XML::Node* ) () at libnr/nr-maybe.h:75 invoke_ build(SPObject* , SPDocument*, Inkscape: :XML::Node* , unsigned) (object=0x15cd260, document=0x3aefee0, repr=0x3aefee0, cloned=114630624) at sp-object.cpp:852 repr_build_ tree(SPDocument *, Inkscape: :XML::Node* ) () at libnr/nr-maybe.h:75 create( Inkscape: :XML::Document* , char const*, char const*, char const*, unsigned) (rdoc=<incomplete type>, uri=0x8153560 "Contents/ Resources/ icons/icons. svg", base=0x8153950 "Contents/ Resources/ icons/" , name=0x8154f20 "icons.svg", keepalive=0) at document.cpp:291 new(char const*, unsigned, bool) (uri=0x8153560 "Contents/ Resources/ icons/icons. svg", keepalive=0, make_new=false) at document.cpp:464 pixels( char const*, unsigned, unsigned) (name=0x8110100 "fill_and_stroke", lsize=0, psize=16) at widgets/ icon.cpp: 802 fetch_pixbuf( SPIcon* ) (icon=0x7003b88) at widgets/ icon.cpp: 867 create_ menu_item( _GtkAction* ) () at libnr/nr- object. h:118 create_ menu_item () create_ menu_.. .
Program received signal EXC_BAD_ACCESS, Could not access memory.
0x00586440 in std::_Rb_
37 const Glib::ustring PAPER_NAME_A3 = "iso_a3";
(gdb) bt
#0 0x00586440 in std::_Rb_
#1 0x00088584 in sp_filter_
#2 0x0147c998 in g_type_
#3 0x0146b044 in g_object_
#4 0x01466a60 in g_object_newv ()
#5 0x01466eb8 in g_object_new_valist ()
#6 0x01466784 in g_object_new ()
#7 0x00021928 in sp_object_
#8 0x00021cb8 in sp_object_
#9 0x00021974 in sp_object_
#10 0x00015b74 in sp_root_
#11 0x00021cb8 in sp_object_
#12 0x0001b484 in sp_object_
#13 0x0000c910 in sp_document_
#14 0x0000d210 in sp_document_
#15 0x0024e8f8 in load_svg_
#16 0x0024ca64 in sp_icon_
#17 0x0047c244 in ink_action_
#18 0x031f5c54 in gtk_action_
#19 0x031f4e4c in gtk_action_