
On 2007-November-30 , at 07:06 , Ted Gould wrote:
On Fri, 2007-11-30 at 01:56 +0100, jiho wrote:
** (inkscape:9060): CRITICAL **: const GSList* sp_document_get_resource_list(SPDocument*, const gchar*): assertion `document != NULL' failed
I'd suggest putting a break point here, and then doing the backtrace.
gdb> break sp_document_get_resource_list
<gdb will break>
gdb> bt gdb> continue
Done. Here it is the complete gdb log (gdb) break sp_document_get_resource_list Breakpoint 1 at 0x6498 (gdb) r Starting program: /Users/jiho/Software/inkscape/trunk_devel/Build/bin/ inkscape Reading symbols for shared libraries .++.... +.............................................................++++.+++ ++++++............++..+++++++++++.++.....++++++++ done Reading symbols for shared libraries . done Reading symbols for shared libraries . done
Breakpoint 1, 0x00006498 in sp_document_get_resource_list () (gdb) bt #0 0x00006498 in sp_document_get_resource_list () #1 0x001098c9 in Inkscape::LayerManager::_rebuild () #2 0x0010a3eb in Inkscape::LayerManager::_setDocument () #3 0x0010a88d in Inkscape::LayerManager::LayerManager () #4 0x000dd489 in SPDesktop::init () #5 0x00271272 in sp_desktop_widget_new () #6 0x0000bbb0 in sp_file_new () #7 0x0000c913 in sp_file_new_default () #8 0x0000400d in sp_main_gui () #9 0x00167234 in Inkscape::NSApplication::Application::run () #10 0x00002ef7 in main () (gdb) c Continuing.
Breakpoint 1, 0x00006498 in sp_document_get_resource_list () (gdb) bt #0 0x00006498 in sp_document_get_resource_list () #1 0x002a5cec in gr_vector_list () #2 0x002a6d1b in gr_change_widget () #3 0x002a7ed8 in sp_gradient_toolbox_new () #4 0x002a0965 in setup_aux_toolbox () #5 0x0029f156 in toolbox_set_desktop () #6 0x00271428 in sp_desktop_widget_new () #7 0x0000bbb0 in sp_file_new () #8 0x0000c913 in sp_file_new_default () #9 0x0000400d in sp_main_gui () #10 0x00167234 in Inkscape::NSApplication::Application::run () #11 0x00002ef7 in main () (gdb) c Continuing. Reading symbols for shared libraries . done Reading symbols for shared libraries . done Reading symbols for shared libraries . done
Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x0000003c 0x93360ce6 in _handleWindowNeedsDisplay () (gdb) bt #0 0x93360ce6 in _handleWindowNeedsDisplay () #1 0x9082dd0e in __CFRunLoopDoObservers () #2 0x9082cdb0 in CFRunLoopRunSpecific () #3 0x9082ca6e in CFRunLoopRunInMode () #4 0x92def878 in RunCurrentEventLoopInMode () #5 0x92deeeb9 in ReceiveNextEventCommon () #6 0x92deedd9 in BlockUntilNextEventMatchingListInMode () #7 0x93295485 in _DPSNextEvent () #8 0x93295076 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] () #9 0x00daadb6 in gdk_event_prepare () #10 0x02177de4 in g_main_context_prepare () #11 0x021784a6 in g_main_context_iterate () #12 0x02178bbd in g_main_loop_run () #13 0x01ca8a87 in gtk_main () #14 0x0184d888 in Gtk::Main::run () #15 0x00003ff1 in sp_main_gui () #16 0x00167234 in Inkscape::NSApplication::Application::run () #17 0x00002ef7 in main () (gdb)
But that's not very informative maybe.Should I recompile Inkscape with -g, would it be better?
BTW Inkview runs fine.
JiHO --- http://jo.irisson.free.fr/