<div>Hello All,</div><div>When I run my application for few minutes, I get the attached SIGABRT crash. I&#39;m aware that this bug has been widely discussed in Cairo community, and some of them have claimed of this being fixed already (see the following links).</div>

<div><br></div><div><a href="https://bugs.freedesktop.org//show_bug.cgi?id=19655">https://bugs.freedesktop.org//show_bug.cgi?id=19655</a></div><div><a href="http://lists.cairographics.org/archives/cairo-bugs/2009-January/002915.html">http://lists.cairographics.org/archives/cairo-bugs/2009-January/002915.html</a></div>

<div><br></div><div>I&#39;ve tried running the application with Mono 2.6 and 2.8 but I get the same crash every time I run it (the time duration is not fixed though - sometimes it crashes immediately and sometimes after running for a while). Today I downloaded Mono 2.10 hoping that the latest release might have it fixed but I&#39;m getting the same crash. Please note that this crash only occurs in Mac but not on Windows or Linux.</div>

<div><br></div><div>Do anyone have had seen this REFERENCE COUNT assertion fail error before and know a &#39;hack&#39; to fix it? I&#39;m ready to release the Mac version of our application but only held by this nasty bug.</div>

<div><br></div><div>Assertion failed: (CAIRO_REFERENCE_COUNT_HAS_REFERENCE (&amp;font_face-&gt;ref_count)), function cairo_font_face_destroy, file cairo-font-face.c, line 191.</div><div>Stacktrace:</div><div><br></div><div>

  at (wrapper managed-to-native) Cairo.NativeMethods.cairo_text_extents (intptr,string,Cairo.TextExtents&amp;) &lt;IL 0x00034, 0xffffffff&gt;</div><div>  at Cairo.Context.TextExtents (string) [0x00000] in /private/tmp/monobuild/build/BUILD/mono-2.10/mcs/class/Mono.Cairo/Mono.Cairo/Context.cs:885</div>

<div>  at GraphsExtension.View.TimeGraphView.DrawXLabels (Cairo.Context) [0x00096] in GraphsExtension\View\TimeGraphView.cs:229</div><div>  at GraphsExtension.View.TimeGraphView.DrawFramework (Cairo.Context) [0x0007e] in GraphsExtension\View\TimeGraphView.cs:155</div>

<div>  at GraphsExtension.View.TimeGraphView.OnExposeEvent (Gdk.EventExpose) [0x00015] in GraphsExtension\View\TimeGraphView.cs:102</div><div>  at Gtk.Widget.exposeevent_cb (intptr,intptr) &lt;IL 0x00014, 0x00061&gt;</div>

<div>  at (wrapper native-to-managed) Gtk.Widget.exposeevent_cb (intptr,intptr) &lt;IL 0x00020, 0xffffffff&gt;</div><div>  at (wrapper managed-to-native) Gtk.Application.gtk_main () &lt;IL 0x00022, 0xffffffff&gt;</div><div>

  at Gtk.Application.Run () &lt;IL 0x00000, 0x0000a&gt;</div><div>  at MetaGeek.NetworkManager.GtkView.View.MainView.Run () [0x00000] in NetworkManager.GtkView\View\MainView.cs:130</div><div>  at MetaGeek.inSSIDer.Controller.MainViewController.Run () [0x0004b] in MetaScanner\Controller\MainViewController.cs:184</div>

<div>  at MetaGeek.inSSIDer.Inssider..ctor () [0x00015] in MetaScanner\inSSIDer.cs:16</div><div>  at MetaGeek.inSSIDer.Inssider.Main (string[]) [0x00001] in MetaScanner\inSSIDer.cs:9</div><div>  at (wrapper runtime-invoke) &lt;Module&gt;.runtime_invoke_void_object (object,intptr,intptr,intptr) &lt;IL 0x00050, 0xffffffff&gt;</div>

<div><br></div><div>Native stacktrace:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>0   mono                                0x000b5829 mono_handle_native_sigsegv + 377</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>1   libSystem.B.dylib                   0x91ffe46b _sigtramp + 43</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>2   ???                                 0xffffffff 0x0 + 4294967295</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>3   libSystem.B.dylib                   0x9208b89d raise + 26</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>4   libSystem.B.dylib                   0x920a19bc abort + 93</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>5   libSystem.B.dylib                   0x9208e4fc __pthread_markcancel + 0</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>6   libcairo.2.dylib                    0x02776ed6 cairo_font_face_destroy + 150</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>7   libcairo.2.dylib                    0x0278d972 _cairo_scaled_font_fini_internal + 34</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>8   libcairo.2.dylib                    0x0278ddaa cairo_scaled_font_destroy + 154</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>9   libcairo.2.dylib                    0x0278e103 cairo_scaled_font_create + 643</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>10  libcairo.2.dylib                    0x02779f1f _cairo_gstate_ensure_scaled_font + 111</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>11  libcairo.2.dylib                    0x0277a01e _cairo_gstate_text_to_glyphs + 78</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>12  libcairo.2.dylib                    0x02775346 cairo_text_extents + 198</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>13  ???                                 0x196ea2e6 0x0 + 426681062</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>14  ???                                 0x196ea267 0x0 + 426680935</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>15  ???                                 0x196ed262 0x0 + 426693218</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>16  ???                                 0x196ebb72 0x0 + 426687346</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>17  ???                                 0x196eb7c8 0x0 + 426686408</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>18  ???                                 0x196eb74a 0x0 + 426686282</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>19  ???                                 0x180bd5ee 0x0 + 403428846</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>20  libgtk-quartz-2.0.0.dylib           0x02348bdb _gtk_marshal_BOOLEAN__BOXED + 107</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>21  libgobject-2.0.0.dylib              0x028f3e79 g_closure_invoke + 329</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>22  libgobject-2.0.0.dylib              0x02904158 signal_emit_unlocked_R + 2168</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>23  libgobject-2.0.0.dylib              0x0290535a g_signal_emit_valist + 1210</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>24  libgobject-2.0.0.dylib              0x02905929 g_signal_emit + 41</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>25  libgtk-quartz-2.0.0.dylib           0x02475986 gtk_widget_event_internal + 598</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>26  libgtk-quartz-2.0.0.dylib           0x023474ec gtk_main_do_event + 1740</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>27  libgdk-quartz-2.0.0.dylib           0x026b384f _gdk_window_process_updates_recurse + 559</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>28  libgdk-quartz-2.0.0.dylib           0x026b38af _gdk_window_process_updates_recurse + 655</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>29  libgdk-quartz-2.0.0.dylib           0x026c0f03 -[GdkQuartzView drawRect:] + 307</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>30  AppKit                              0x905198fd -[NSView _drawRect:clip:] + 3721</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>31  AppKit                              0x90516fc9 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 2217</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>32  AppKit                              0x90512ea2 -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 3309</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>33  AppKit                              0x90473a57 -[NSView displayIfNeeded] + 818</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>34  libgdk-quartz-2.0.0.dylib           0x026c49e6 _gdk_windowing_after_process_all_updates + 86</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>35  libgdk-quartz-2.0.0.dylib           0x026b4a0e gdk_window_process_all_updates + 302</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>36  libgtk-quartz-2.0.0.dylib           0x022be29f gtk_container_idle_sizer + 79</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>37  libgdk-quartz-2.0.0.dylib           0x0268a7db gdk_threads_dispatch + 91</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>38  libglib-2.0.0.dylib                 0x029615de g_main_context_dispatch + 558</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>39  libglib-2.0.0.dylib                 0x0296503b g_main_context_iterate + 1179</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>40  libglib-2.0.0.dylib                 0x02965327 g_main_loop_run + 455</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>41  libgtk-quartz-2.0.0.dylib           0x02346321 gtk_main + 177</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>42  ???                                 0x180d6b5b 0x0 + 403532635</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>43  ???                                 0x180d6b23 0x0 + 403532579</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>44  ???                                 0x180d6a63 0x0 + 403532387</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>45  ???                                 0x180d3cf7 0x0 + 403520759</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>46  ???                                 0x004a8e5f 0x0 + 4886111</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>47  ???                                 0x004a8d07 0x0 + 4885767</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>48  ???                                 0x004a8d8c 0x0 + 4885900</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>49  mono                                0x00010eb4 mono_jit_runtime_invoke + 164</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>50  mono                                0x001baeeb mono_runtime_invoke + 138</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>51  mono                                0x001bd4e5 mono_runtime_exec_main + 669</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>52  mono                                0x001bc8cf mono_runtime_run_main + 852</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>53  mono                                0x00087ca2 mono_main + 6930</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>54  mono                                0x00003826 start + 54</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>55  ???                                 0x00000003 0x0 + 3</div>

<div><br></div><div>Debug info from gdb:</div><div><br></div><div>/tmp/mono-gdb-commands.zgmuwk:1: Error in sourced command file:</div><div>unable to debug self</div><div><br></div><div>=================================================================</div>

<div>Got a SIGABRT while executing native code. This usually indicates</div><div>a fatal error in the mono runtime or one of the native libraries </div><div>used by your application.</div><div>=================================================================</div>

<div><br></div><div>Abort trap</div><div><br></div><div>Press any key to continue...</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>Thanks,</div><div>Ashok</div>