2.6.6 Crashes on Open on OS X 10.9.5

John Ralls jralls at ceridwen.us
Sat Jun 6 10:41:09 EDT 2015


> On Jun 5, 2015, at 1:00 PM, Brian Buchalter <bal711 at gmail.com> wrote:
> 
> Hello,
> 
> I've been using GnuCash for more than a year now and very pleased. I'm
> having a bit of trouble now though and not sure how to proceed. Everytime I
> open the application it crashes. I'm using the latest release 2.6.6 on OS X
> 10.9.5. Here's the crash report. I would greatly appreciate any
> troubleshooting steps that could be advised.
> 
> A bit more backstory too. I use Dropbox to sync my data GnuCash data files
> between my Ubuntu 15.04 desktop and the OS X laptop. After upgrading to
> 15.04 I had to also upgrade GnuCash and added the GetDeb PPA to run the latest
> version <http://www.getdeb.net/software/gnucash>, which seems to match the
> version number I have on OS X but I can see from the splash screens that
> they are slightly different revisions. After upgrading, I also had to
> take these
> steps <http://ubuntuforums.org/showthread.php?t=2269163> to get the
> application to behave on 15.04.
> 
> I'm now traveling with my laptop (OS X only) and cannot access my data.
> Please advise.
> 
> Thank you,
> 
> Brian
> 
> 
> Process:         Gnucash-bin [19437]
> Path:            /Applications/Gnucash.app/Contents/MacOS/Gnucash-bin
> Identifier:      org.gnucash.Gnucash
> Version:         2.6.6 (2.6.6)
> Code Type:       X86 (Native)
> Parent Process:  launchd [275]
> Responsible:     Gnucash-bin [19437]
> User ID:         501
> 
> Date/Time:       2015-06-05 15:52:58.438 -0400
> OS Version:      Mac OS X 10.9.5 (13F1077)
> Report Version:  11
> Anonymous UUID:  BDB8F707-631A-D1C6-0187-B9808A74E0B1
> 
> Sleep/Wake UUID: 92959741-B724-49E4-86B4-547B535F0EAC
> 
> Crashed Thread:  0  Dispatch queue: com.apple.main-thread
> 
> Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
> Exception Codes: KERN_INVALID_ADDRESS at 0x000000000e1dc000
> 
> VM Regions Near 0xe1dc000:
>    MALLOC_LARGE           000000000e02a000-000000000e1dc000 [ 1736K]
> rw-/rwx SM=PRV
> -->
>    __TEXT                 000000008fe92000-000000008fec5000 [  204K]
> r-x/rwx SM=COW  /usr/lib/dyld
> 
> Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
> 0   libcairo.2.dylib               0x028a2550
> _fill_xrgb32_lerp_opaque_spans + 144
> 1   libcairo.2.dylib               0x028e611f
> _cairo_tor_scan_converter_generate + 2639
> 2   libcairo.2.dylib               0x028d7ecd composite_polygon + 253
> 3   libcairo.2.dylib               0x028d8b14 clip_and_composite_polygon +
> 356
> 4   libcairo.2.dylib               0x028d7c73
> _cairo_spans_compositor_stroke + 499
> 5   libcairo.2.dylib               0x02896848 _cairo_compositor_stroke + 216
> 6   libcairo.2.dylib               0x028a8d8e _cairo_image_surface_stroke +
> 94
> 7   libcairo.2.dylib               0x028dc3de _cairo_surface_stroke + 190
> 8   libcairo.2.dylib               0x0289e704 _cairo_gstate_stroke + 484
> 9   libcairo.2.dylib               0x028995ef _cairo_default_context_stroke
> + 31
> 10  libcairo.2.dylib               0x028912dc cairo_stroke + 28
> 11  libwebkitgtk-1.0.0.dylib       0x00cb13c5
> WebCore::shadowAndStrokeCurrentCairoPath(WebCore::GraphicsContext*) + 69
> 12  libwebkitgtk-1.0.0.dylib       0x00cb2167
> WebCore::GraphicsContext::strokePath(WebCore::Path const&) + 55
> 13  libwebkitgtk-1.0.0.dylib       0x00637231
> WebCore::CanvasRenderingContext2D::stroke() + 193
> 14  libwebkitgtk-1.0.0.dylib       0x00a37583
> WebCore::jsCanvasRenderingContext2DPrototypeFunctionStroke(JSC::ExecState*)
> + 99
> 15  ???                           0x0da1ac09 0 + 228699145
> 16  libjavascriptcoregtk-1.0.0.dylib 0x02f3ce29
> JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*,
> JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) +
> 745
> 17  libjavascriptcoregtk-1.0.0.dylib 0x02fab1ec JSC::call(JSC::ExecState*,
> JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue,
> JSC::ArgList const&) + 76
> 18  libwebkitgtk-1.0.0.dylib       0x00483b5b
> WebCore::JSEventListener::handleEvent(WebCore::ScriptExecutionContext*,
> WebCore::Event*) + 891
> 19  libwebkitgtk-1.0.0.dylib       0x0058c76f
> WebCore::EventTarget::fireEventListeners(WebCore::Event*,
> WebCore::EventTargetData*, WTF::Vector<WebCore::RegisteredEventListener,
> 1ul>&) + 239
> 20  libwebkitgtk-1.0.0.dylib       0x0058c7f4
> WebCore::EventTarget::fireEventListeners(WebCore::Event*) + 68
> 21  libwebkitgtk-1.0.0.dylib       0x00597529
> WebCore::Node::handleLocalEvents(WebCore::Event*) + 73
> 22  libwebkitgtk-1.0.0.dylib       0x00587ff0
> WebCore::EventDispatcher::dispatchEvent(WTF::PassRefPtr<WebCore::Event>) +
> 592
> 23  libwebkitgtk-1.0.0.dylib       0x005875c9
> WebCore::EventDispatchMediator::dispatchEvent(WebCore::EventDispatcher*)
> const + 41
> 24  libwebkitgtk-1.0.0.dylib       0x00587afa
> WebCore::EventDispatcher::dispatchEvent(WebCore::Node*,
> WTF::PassRefPtr<WebCore::EventDispatchMediator>) + 42
> 25  libwebkitgtk-1.0.0.dylib       0x00594b5a
> WebCore::Node::dispatchEvent(WTF::PassRefPtr<WebCore::Event>) + 58
> 26  libwebkitgtk-1.0.0.dylib       0x0056ad1c
> WebCore::Document::finishedParsing() + 156
> 27  libwebkitgtk-1.0.0.dylib       0x0069d6bd
> WebCore::HTMLTreeBuilder::finished() + 29
> 28  libwebkitgtk-1.0.0.dylib       0x0068d52e
> WebCore::HTMLDocumentParser::attemptToRunDeferredScriptsAndEnd() + 46
> 29  libwebkitgtk-1.0.0.dylib       0x0068dcc3
> WebCore::HTMLDocumentParser::prepareToStopParsing() + 83
> 30  libwebkitgtk-1.0.0.dylib       0x0068d1d4
> WebCore::HTMLDocumentParser::endIfDelayed() + 52
> 31  libwebkitgtk-1.0.0.dylib       0x0068d9aa
> WebCore::HTMLDocumentParser::resumeParsingAfterScriptExecution() + 58
> 32  libwebkitgtk-1.0.0.dylib       0x0068da7c
> WebCore::HTMLDocumentParser::notifyFinished(WebCore::CachedResource*) + 76
> 33  libwebkitgtk-1.0.0.dylib       0x0068da2b non-virtual thunk to
> WebCore::HTMLDocumentParser::notifyFinished(WebCore::CachedResource*) + 27
> 34  libwebkitgtk-1.0.0.dylib       0x0070ce7c
> WebCore::CachedResource::checkNotify() + 76
> 35  libwebkitgtk-1.0.0.dylib       0x00712011
> WebCore::CachedScript::data(WTF::PassRefPtr<WebCore::SharedBuffer>, bool) +
> 97
> 36  libwebkitgtk-1.0.0.dylib       0x007115e2
> WebCore::CachedResourceRequest::didFinishLoading(WebCore::SubresourceLoader*,
> double) + 146
> 37  libwebkitgtk-1.0.0.dylib       0x00742d6b
> WebCore::SubresourceLoader::didFinishLoading(double) + 59
> 38  libwebkitgtk-1.0.0.dylib       0x0073e262
> WebCore::ResourceLoader::didFinishLoading(WebCore::ResourceHandle*, double)
> + 98
> 39  libwebkitgtk-1.0.0.dylib       0x007f832f
> WebCore::readCallback(_GObject*, _GAsyncResult*, void*) + 543
> 40  libgio-2.0.0.dylib             0x029c12cf async_ready_callback_wrapper
> + 47
> 41  libgio-2.0.0.dylib             0x029e7f98 g_task_return_now + 40
> 42  libgio-2.0.0.dylib             0x029e7fc1 complete_in_idle_cb + 17
> 43  libglib-2.0.0.dylib           0x02b8bf1b g_idle_dispatch + 27
> 44  libglib-2.0.0.dylib           0x02b8d9b5 g_main_context_dispatch + 261
> 45  libglib-2.0.0.dylib           0x02b8f945 g_main_context_iterate + 453
> 46  libglib-2.0.0.dylib           0x02b9095e g_main_loop_run + 286
> 47  libgtk-quartz-2.0.0.dylib     0x023eb579 gtk_main + 185
> 48  libgncmod-gnome-utils.dylib   0x002b3bda gnc_ui_start_event_loop + 74
> 49  Gnucash-bin                   0x0001470e inner_main + 1006
> 50  libguile-2.0.22.dylib         0x01fc2439 invoke_main_func + 57
> 51  libguile-2.0.22.dylib         0x01f974f2 c_body + 18
> 52  libguile-2.0.22.dylib         0x02021a33 apply_catch_closure + 35
> 53  libguile-2.0.22.dylib         0x01ffcbec apply_1 + 44
> 54  libguile-2.0.22.dylib         0x02028b0f vm_regular_engine + 8959
> 55  libguile-2.0.22.dylib         0x020267fb scm_c_vm_run + 123
> 56  libguile-2.0.22.dylib         0x01fa0861 scm_call_4 + 65
> 57  libguile-2.0.22.dylib         0x02022402 scm_c_catch + 258
> 58  libguile-2.0.22.dylib         0x01f97b4e
> scm_c_with_continuation_barrier + 158
> 59  libguile-2.0.22.dylib         0x02020f8b with_guile_and_parent + 75
> 60  libgc.1.dylib                 0x022c26fd GC_call_with_stack_base + 29
> 61  libguile-2.0.22.dylib         0x02021206 scm_with_guile + 54
> 62  libguile-2.0.22.dylib         0x01fc23d9 scm_boot_guile + 57
> 63  Gnucash-bin                   0x00013554 main + 772
> 64  Gnucash-bin                   0x00013216 start + 54


It looks like you’ve found a memory bug in Cairo, but knowing that doesn’t do you much good. The problem is in displaying a report, but it’s not possible to tell which one that might be. Since it’s crashing on open you must have closed GnuCash the last time with that report displayed.

So to get running again you need to stop that report from opening on when you open the file: In ~/Library/Application Support/Gnucash/books/ you’ll find a file named the same as your data file + a .gcm suffix. That contains the display state
of GnuCash for your data file: Window sizes, which registers and reports are open, and so on. Rename it, then restart GnuCash. That will stop GnuCash trying to open the misbehaving report.

Regards,
John Ralls
 


More information about the gnucash-user mailing list