RT 5.1 MacOSX 10.12.5 crash when I edit an image

When I edit an image with double click on a thumbnail RT 5.1 crash, I am on MacOSX Sierra (10.12.5), RT 5.0 rc1- gtk3 work fine.

Here the begin of the log

Process:               rawtherapee-bin [2573]
Path:                  /Applications/RawTherapee.app/Contents/MacOS/rawtherapee-bin
Identifier:            com.rawtherapee.rawtherapee
Version:               5.1.0 (5.1.0)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           rawtherapee-bin [2573]
User ID:               501

Date/Time:             2017-05-30 12:23:45.883 +0200
OS Version:            Mac OS X 10.12.5 (16F73)
Report Version:        12
Anonymous UUID:        931D2B50-552D-3ECA-DDD8-AA3E7A9CAC22


Time Awake Since Boot: 12000 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
Assertion failed: (!scaled_font->cache_frozen), function _cairo_scaled_glyph_page_destroy, file cairo-scaled-font.c, line 459.
 

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	0x00007fffc4160d42 __pthread_kill + 10
1   libsystem_pthread.dylib       	0x00007fffc424e457 pthread_kill + 90
2   libsystem_c.dylib             	0x00007fffc40c6420 abort + 129
3   libsystem_c.dylib             	0x00007fffc408d893 __assert_rtn + 320
4   libcairo.2.dylib              	0x0000000104271dc7 _cairo_scaled_glyph_page_destroy + 155
5   libcairo.2.dylib              	0x00000001042743e4 _cairo_scaled_font_free_last_glyph + 146
6   libcairo.2.dylib              	0x0000000104273535 _cairo_scaled_glyph_lookup + 559
7   libcairo.2.dylib              	0x0000000104273bdb _cairo_scaled_font_glyph_path + 128
8   libcairo.2.dylib              	0x00000001042468d1 _cairo_gstate_glyph_path + 203
9   libcairo.2.dylib              	0x000000010423b4a7 cairo_glyph_path + 42
10  libpangocairo-1.0.0.dylib     	0x0000000104173426 pango_cairo_renderer_show_text_glyphs + 778
11  libpangocairo-1.0.0.dylib     	0x0000000104172b2e pango_cairo_renderer_draw_glyphs + 38
12  libpango-1.0.0.dylib          	0x00000001041a1daa pango_renderer_draw_glyphs + 66
13  libpango-1.0.0.dylib          	0x00000001041a17ce pango_renderer_draw_layout_line + 750
14  libpango-1.0.0.dylib          	0x00000001041a13e7 pango_renderer_draw_layout + 236
15  libpangocairo-1.0.0.dylib     	0x00000001041728e0 _pango_cairo_do_layout + 59
16  rawtherapee-bin               	0x000000010266a1c7 EditorPanel::info_toggled() + 3591
17  rawtherapee-bin               	0x000000010267b597 EditorPanel::open(Thumbnail*, rtengine::InitialImage*) + 4215
18  rawtherapee-bin               	0x00000001026ba0e8 FilePanel::imageLoaded(Thumbnail*, ProgressConnector<rtengine::InitialImage*>*) + 872
19  rawtherapee-bin               	0x0000000102670746 sigc::internal::signal_emit0<bool, sigc::nil>::emit(sigc::internal::signal_impl*) + 246
20  rawtherapee-bin               	0x00000001026badb3 ProgressConnector<rtengine::InitialImage*>::emitEndSignalUI(void*) + 19
21  libgdk-3.0.dylib              	0x00000001040e3931 gdk_threads_dispatch + 50
22  libglib-2.0.0.dylib           	0x00000001034d948e g_main_context_dispatch + 279
23  libglib-2.0.0.dylib           	0x00000001034d977d g_main_context_iterate + 413
24  libglib-2.0.0.dylib           	0x00000001034d99d3 g_main_loop_run + 207
25  libgtk-3.0.dylib              	0x0000000103bf697a gtk_main + 74
26  libgtkmm-3.0.1.dylib          	0x000000010362049a Gtk::Main::run(Gtk::Window&) + 156
27  rawtherapee-bin               	0x000000010270e2eb main + 8123
28  libdyld.dylib                 	0x00007fffc4032235 start + 1

Thank’s in advance

Upload the raw file, and try saving a different raw file, e.g. this one http://rawtherapee.com/shared/test_images/amsterdam.pef

I have not done the type of file in’t a raw file but a tif (tiff) file cause the crash

Upload the tiff file, and try saving this raw file http://rawtherapee.com/shared/test_images/amsterdam.pef

Looks like Cairo Font Bug, which I think @partha knows a lot about. :smile:

I experience the same crash with some computer generated images, here’s the backtrace info:

Hervé, I have built 5.1 with a bug fix that has worked for me. Let us know if this works for you: https://filebin.net/fpn3joegylydvr3x/RawTherapee_OSX_10.9_64_5.1.zip

This release work with my .tif files (produce withe astronomical software) very well,
but when I quit the application it produce a crash message

Process: rawtherapee-bin [3039]
Path: /Applications/RawTherapee.app/Contents/MacOS/rawtherapee-bin
Identifier: com.rawtherapee.rawtherapee
Version: 5.1.0 (5.1.0)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: rawtherapee-bin [3039]
User ID: 501

Date/Time: 2017-05-31 18:28:24.395 +0200
OS Version: Mac OS X 10.12.5 (16F73)
Report Version: 12
Anonymous UUID: 931D2B50-552D-3ECA-DDD8-AA3E7A9CAC22

Time Awake Since Boot: 29000 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: EXC_I386_GPFLT
Exception Note: EXC_CORPSE_NOTIFY

Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libomp.dylib 0x0000000103270c8c __kmp_dephash_free_entries + 21
1 libomp.dylib 0x0000000103270dea __kmp_dephash_free + 18
2 libomp.dylib 0x000000010324c265 __kmp_free_implicit_task + 30
3 libomp.dylib 0x0000000103244377 __kmp_reap_thread(kmp_info*, int) + 123
4 libomp.dylib 0x00000001032431f7 __kmp_internal_end_library + 493
5 dyld 0x000000010efe4d74 ImageLoaderMachO::doTermination(ImageLoader::LinkContext const&) + 262
6 dyld 0x000000010efd1529 dyld::runAllStaticTerminators(void*) + 67
7 libsystem_c.dylib 0x00007fffc50c4178 __cxa_finalize_ranges + 332
8 libsystem_c.dylib 0x00007fffc50c44b2 exit + 55
9 libdyld.dylib 0x00007fffc502f23c start + 8

Thank’s for your effort

@Herve_Choplin does your /tmp folder have any links that are called RawTherapee (or whatever it was named as) .app?
(type ls /tmp in Terminal to see)

if so, you can delete it/them and try and see if it still crashes on exit. We’ve noticed you have to do some adjustments to the image to have it crash on exit, too.

In my /tmp directory I have :

~ > ls /tmp
clamd.socket com.apple.launchd.idcw2shF4O
com.apple.launchd.PvmOs8CIh5 com.apple.launchd.pKMmEiqsOU
~ >

When I launch and load an image without adjustment it not crash, but when I adjust the image it crash on quit

Hervé CHOPLIN
3, rue de l’Abbaye de Gastines
37100 TOURS - France
e-mail: herve.choplin@gmail.com

Thanks, this looks like the known crash-on-quit issue in the second half of 5.1 crash in macOS 10.12.5 if .app renamed · Issue #3882 · Beep6581/RawTherapee · GitHub