DrawText crashes Matlab (it's OS X 10.15.5 though ...)

Hi all,

First of all: I know I’m not using the right OS, but still wanted to let you know.

The DrawText command with default text renderer crashes Matlab (actually, it hangs). Running MacOSX Catalina 10.15.5 (19F101) on a MacBook Pro (15-inch, 2017) with Matlab 2019b or 2020a (crash confirmed in both versions) with PTB 3.0.16.
Code (it also crashes with full screen window):

    screens=Screen('Screens');
    screenNumber=max(screens);
    rect=[0 0 400 400];
    w=Screen('OpenWindow',screenNumber,[],rect);
    Screen('Preference','TextRenderer',1)
    Screen('DrawText', w, 'Hello World!', 100, 100, [0, 0, 255, 255]);
    Screen('Flip',w);
    KbWait;
    sca;

Workaround: use the legacy renderer: Screen('Preference','TextRenderer',0)

However, it works on OS X 10.14.6 (on a Mac Pro 2013), Matlab 2019b, PTB 3.0.16. So it seems specific to either the MacBook Pro or OS X 10.15.5 (or both).

Thanks,
Stefan

From what i’ve read the 10.15.5 trainwreck is even worse than the 10.15.4 one, which was bad and bricked various macs to the point of needing a trip to the repair shop. Therefore i’m holding off from updating and stick to 10.15.3 for the time being. Apple OS updates are now high risk activities, given their horrible software quality. So i can only speculate.

A hang is not a crash. How long did you wait before giving up?

Could be that the text renderer is rebuilding its fontconfig cache at first run after the macOS update, and that can take quite a while (seconds to > 1 minute) and look like a hang. So that’s worth trying.

Thanks for your answer … Matlab unfortunately really crashes, it doesn’t hang. I just thought it hangs because I couldn’t manage to exit when I was running it on a single screen.

Matlab received the crash reports and writes:

After analyzing the stack trace, it appears that the crash you are seeing originates from a MEX file in the Psychtoolbox, not MATLAB itself.

But I completely understand that you don’t want to update now :slight_smile:

Best,
Stefan

Can confirm it crashes on an iMac too (10.15.5+supplemental update)

Just retested on the 10.15.3 trainwreck with the latest 3.0.16 beta and R2019b and there it works fine. So it’s not a PTB or Matlab problem per se, but the usual suspect.

Maybe posting the stack trace helps, maybe not. Make also sure you followed troubleshooting instructions in “help DrawTextPlugin”.

Yes, that’s matching with my result, see above: it also works on OS X 10.14.6 (on my Mac Pro 2013), Matlab 2019b, PTB 3.0.16.

Since it crashes on iMac and MacBook Pro with 10.15.5, it’s an OS X problem. I checked the troubleshooting instructions in “help DrawTextPlugin”, installed the latest GStreamer (SimpleMovieDemo works), no change.

And here is the stack trace:

MATLAB crash file:/Users/sglasauer/matlab_crash_dump.20737-1:


--------------------------------------------------------------------------------
           abort() detected at Fr Jun 05 13:19:27 2020 +0200
--------------------------------------------------------------------------------

Configuration:
  Crash Decoding           : Disabled - No sandbox or build area path
  Crash Mode               : continue (default)
  Default Encoding         : UTF-8
  Deployed                 : false
  Graphics Driver          : ATI Technologies Inc. AMD Radeon Pro 560 OpenGL Engine Version 2.1 ATI-3.9.15
  Java Version             : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
  MATLAB Architecture      : maci64
  MATLAB Entitlement ID    : 2434304
  MATLAB Root              : /Applications/MATLAB_R2020a.app
  MATLAB Version           : 9.8.0.1380330 (R2020a) Update 2
  OpenGL                   : hardware
  Operating System         : Mac OS Version 10.15.5 (Build 19F101)
  Process ID               : 20737
  Processor ID             : x86 Family 6 Model 158 Stepping 9, GenuineIntel
  Session Key              : 4d41d1b1-ff2e-48d7-8d57-fdb43c74b65f
  Window System            : Quartz

Fault Count: 1


Abnormal termination:
abort()

Register State (from fault):
  RAX = 0000000002000209  RBX = 0000000000000000
  RCX = 000070000b382b78  RDX = 000070000b382fe0
  RSP = 000070000b382b78  RBP = 000070000b382bc0
  RSI = 0000000000000001  RDI = 0000000000000006

   R8 = 000070000b382be0   R9 = 0000000000000000
  R10 = 0000000000000086  R11 = 0000000000000246
  R12 = 0000000000000086  R13 = 000070000b382fe0
  R14 = 0000000000000001  R15 = 0000000000000006

  RIP = 0000000116fdfebe  RFL = 0000000000000246

   CS = 0000000000000007   FS = 0000000000000000   GS = 0000000000000000

Stack Trace (from fault):
[  0] 0x0000000112a57fc9 /Applications/MATLAB_R2020a.app/bin/maci64/libmwfl.dylib+00008137 _ZN10foundation4core4diag15stacktrace_base7captureERKNS1_14thread_contextEm+00000057
[  1] 0x0000000112a5d8c8 /Applications/MATLAB_R2020a.app/bin/maci64/libmwfl.dylib+00030920 _ZN10foundation4core4test17terminate_handledERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE+00011384
[  2] 0x0000000112a5a995 /Applications/MATLAB_R2020a.app/bin/maci64/libmwfl.dylib+00018837 _ZN10foundation4core4diag13terminate_logEPKcPK17__darwin_ucontext+00000149
[  3] 0x000000011654e9e7 /Applications/MATLAB_R2020a.app/bin/maci64/libmwmcr.dylib+00670183 _Z19mnPrintErrorMessageRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+00012727
[  4] 0x000000011654c3f4 /Applications/MATLAB_R2020a.app/bin/maci64/libmwmcr.dylib+00660468 _Z19mnPrintErrorMessageRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+00003012
[  5] 0x00000001165517f9 /Applications/MATLAB_R2020a.app/bin/maci64/libmwmcr.dylib+00681977 _Z19mnPrintErrorMessageRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+00024521
[  6] 0x000000011654b49c /Applications/MATLAB_R2020a.app/bin/maci64/libmwmcr.dylib+00656540 _Z22mnInstallCrashHandlersv+00000348
[  7] 0x00007fff69b2c5fd           /usr/lib/system/libsystem_platform.dylib+00013821 _sigtramp+00000029
[  8] 0xaaaaaaaaaaaaaaaa                                   <unknown-module>+00000000
[  9] 0x000000011700954f                                   <unknown-module>+00000000
[ 10] 0x0000000117006bd2                                   <unknown-module>+00000000
[ 11] 0x0000000116f9bdf5                                   <unknown-module>+00000000
[ 12] 0x0000000117006e0b                                   <unknown-module>+00000000
[ 13] 0x0000000117006bf7                                   <unknown-module>+00000000
[ 14] 0x0000000116f8c458                                   <unknown-module>+00000000
[ 15] 0x0000000116fb48ba                                   <unknown-module>+00000000
[ 16] 0x0000000116fc0f04                                   <unknown-module>+00000000
[ 17] 0x0000000116f8bfbc                                   <unknown-module>+00000000
[ 18] 0x0000000116f8fd3b                                   <unknown-module>+00000000
[ 19] 0x0000000116f99e58                                   <unknown-module>+00000000
[ 20] 0x00007fff6991ed8a                      /usr/lib/system/libdyld.dylib+00023946 dlopen+00000171
[ 21] 0x00000001a395445e /Applications/Psychtoolbox/PsychBasic/Screen.mexmaci64+00672862 PsychLoadTextRendererPlugin+00000350
[ 22] 0x00000001a3955024 /Applications/Psychtoolbox/PsychBasic/Screen.mexmaci64+00675876 PsychDrawUnicodeText+00000356
[ 23] 0x00000001a3955604 /Applications/Psychtoolbox/PsychBasic/Screen.mexmaci64+00677380 SCREENDrawText+00000484
[ 24] 0x00000001a3975a01 /Applications/Psychtoolbox/PsychBasic/Screen.mexmaci64+00809473 mexFunction+00000945
[ 25] 0x0000000118cb9216 /Applications/MATLAB_R2020a.app/bin/maci64/libmex.dylib+00291350 _ZNK18C_DispatchStrategy8dispatchEiPP11mxArray_tagiS2_+00000278
[ 26] 0x0000000118cb9150 /Applications/MATLAB_R2020a.app/bin/maci64/libmex.dylib+00291152 _ZNK18C_DispatchStrategy8dispatchEiPP11mxArray_tagiS2_+00000080
[ 27] 0x0000000118cb9b5d /Applications/MATLAB_R2020a.app/bin/maci64/libmex.dylib+00293725 _ZNK24SCCompatDispatchStrategy8dispatchEiPP11mxArray_tagiS2_+00000061
[ 28] 0x0000000118cb8f37 /Applications/MATLAB_R2020a.app/bin/maci64/libmex.dylib+00290615 _ZN7Mfh_mex30dispatch_file_with_protectionsEiPP11mxArray_tagiS2_+00000439
[ 29] 0x0000000118c9c40f /Applications/MATLAB_R2020a.app/bin/maci64/libmex.dylib+00173071 _ZN7Mfh_mex13dispatch_fileEiPP11mxArray_tagiS2_+00000159
[ 30] 0x00000001166c2a6e /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_dispatcher.dylib+00678510 _ZN8Mfh_file20dispatch_file_commonEMS_FviPP11mxArray_tagiS2_EiS2_iS2_+00000142
[ 31] 0x00000001166c3273 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_dispatcher.dylib+00680563 _ZN8Mfh_file8dispatchEiPNSt3__110unique_ptrI11mxArray_tagN6matrix6detail17mxDestroy_deleterEEEiPPS2_+00000387
[ 32] 0x00000001193493c1 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+06091713 _ZN9MathWorks3lxe17LxeDispatcherImpl12apply_handleEPNS0_29DispatcherFunctionHandleTokenEmPNS0_6xvalueEmPKS4_RKNS0_12LxeTypesBaseENS0_9ApplyTypeE+00001361
[ 33] 0x000000011946e2a2 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+07291554 _ZN9MathWorks3lxe16ans_apply_handleEPvNS_2ts4TypeEPKvS1_S1_+00000258
[ 34] 0x00000001193c1a7e /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+06584958 _ZN9MathWorks3lxe38cpp_primitive_template_fn_with_contextIXadL_ZNS0_16ans_apply_handleEPvNS_2ts4TypeEPKvS2_S2_EEEEbS2_S4_S6_S2_S2_+00000014
[ 35] 0x0000000118f04502 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+01615106 _ZN9MathWorks3lxe13IrInterpreter17ApplyCppPrimitiveEPN2ir4termES4_RKNS_2ts4TypeES8_+00000594
[ 36] 0x0000000118f03201 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+01610241 _ZN9MathWorks3lxe13IrInterpreter31process_application_of_constantEPN2ir4termE+00003937
[ 37] 0x0000000118f00d18 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+01600792 _ZN9MathWorks3lxe13IrInterpreter13applyConstantEPN2ir4termE+00000072
[ 38] 0x0000000118efbd06 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+01580294 _ZN9MathWorks3lxe12IRTreeWalker11getNextIRPCENS0_9irpc_typeE+00000214
[ 39] 0x0000000118f00a77 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+01600119 _ZN9MathWorks3lxe13IrInterpreter9tree_walkERKNS0_9irpc_typeES4_+00000215
[ 40] 0x0000000118f0094c /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+01599820 _ZN9MathWorks3lxe13IrInterpreter9InterpretEv+00000108
[ 41] 0x00000001190285d7 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+02811351 _ZN9MathWorks3lxe15ExecutionDriver9ThreadRunEv+00002375
[ 42] 0x000000011902e0f0 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+02834672 _ZN9MathWorks3lxe12IrEngineImpl5ApplyERKN2ir4termEPvS6_+00000304
[ 43] 0x00000001192533b9 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+05084089 _ZN9MathWorks3lxe17IrEngineDecorator5ApplyERKN2ir4termEPvS6_+00000153
[ 44] 0x000000011933e9a1 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+06048161 _ZN9MathWorks3lxe27FileBasedMatlabCodeFunction14DispatchScriptEiPP11mxArray_tagiS4_+00000433
[ 45] 0x000000011933ed31 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+06049073 _ZN9MathWorks3lxe27FileBasedMatlabCodeFunction12DispatchFileEiPP11mxArray_tagiS4_b+00000129
[ 46] 0x00000001166c2a6e /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_dispatcher.dylib+00678510 _ZN8Mfh_file20dispatch_file_commonEMS_FviPP11mxArray_tagiS2_EiS2_iS2_+00000142
[ 47] 0x00000001166c3273 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_dispatcher.dylib+00680563 _ZN8Mfh_file8dispatchEiPNSt3__110unique_ptrI11mxArray_tagN6matrix6detail17mxDestroy_deleterEEEiPPS2_+00000387
[ 48] 0x00000001193493c1 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+06091713 _ZN9MathWorks3lxe17LxeDispatcherImpl12apply_handleEPNS0_29DispatcherFunctionHandleTokenEmPNS0_6xvalueEmPKS4_RKNS0_12LxeTypesBaseENS0_9ApplyTypeE+00001361
[ 49] 0x000000011946e2a2 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+07291554 _ZN9MathWorks3lxe16ans_apply_handleEPvNS_2ts4TypeEPKvS1_S1_+00000258
[ 50] 0x00000001193c1a7e /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+06584958 _ZN9MathWorks3lxe38cpp_primitive_template_fn_with_contextIXadL_ZNS0_16ans_apply_handleEPvNS_2ts4TypeEPKvS2_S2_EEEEbS2_S4_S6_S2_S2_+00000014
[ 51] 0x0000000118f04502 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+01615106 _ZN9MathWorks3lxe13IrInterpreter17ApplyCppPrimitiveEPN2ir4termES4_RKNS_2ts4TypeES8_+00000594
[ 52] 0x0000000118f03201 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+01610241 _ZN9MathWorks3lxe13IrInterpreter31process_application_of_constantEPN2ir4termE+00003937
[ 53] 0x0000000118f00d18 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+01600792 _ZN9MathWorks3lxe13IrInterpreter13applyConstantEPN2ir4termE+00000072
[ 54] 0x0000000118efbd06 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+01580294 _ZN9MathWorks3lxe12IRTreeWalker11getNextIRPCENS0_9irpc_typeE+00000214
[ 55] 0x0000000118f00a77 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+01600119 _ZN9MathWorks3lxe13IrInterpreter9tree_walkERKNS0_9irpc_typeES4_+00000215
[ 56] 0x0000000118f0094c /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+01599820 _ZN9MathWorks3lxe13IrInterpreter9InterpretEv+00000108
[ 57] 0x00000001190285d7 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+02811351 _ZN9MathWorks3lxe15ExecutionDriver9ThreadRunEv+00002375
[ 58] 0x000000011902e0f0 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+02834672 _ZN9MathWorks3lxe12IrEngineImpl5ApplyERKN2ir4termEPvS6_+00000304
[ 59] 0x00000001192533b9 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+05084089 _ZN9MathWorks3lxe17IrEngineDecorator5ApplyERKN2ir4termEPvS6_+00000153
[ 60] 0x00000001191e90cf /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+04649167 _ZN9MathWorks3lxe9Evaluator15ApplyStatementsERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERKN2ir4termERNS0_18IEvaluationContextE+00000495
[ 61] 0x00000001191ed311 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+04666129 _ZN9MathWorks3lxe9Evaluator17EvalStatementImplERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERNS0_18IEvaluationContextE+00000353
[ 62] 0x00000001191ed3e4 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+04666340 _ZN9MathWorks3lxe9Evaluator13EvalStatementERKNSt3__112basic_stringIDsNS2_11char_traitsIDsEENS2_9allocatorIDsEEEERNS0_18IEvaluationContextE+00000116
[ 63] 0x000000011929c257 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+05382743 _ZN9MathWorks3lxe9LxeBridge7EvalCmdERKNSt3__112basic_stringIDsNS2_11char_traitsIDsEENS2_9allocatorIDsEEEEbNS0_10EvalSourceE+00000327
[ 64] 0x000000011929c0c5 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+05382341 _ZN9MathWorks3lxe9LxeBridge22EvalCmdWithLocalReturnERKNSt3__112basic_stringIDsNS2_11char_traitsIDsEENS2_9allocatorIDsEEEEPibNS0_10EvalSourceE+00000053
[ 65] 0x0000000118c2e0f0 /Applications/MATLAB_R2020a.app/bin/maci64/libmwbridge.dylib+00098544 _Z8mnParserv+00000624
[ 66] 0x00000001164f784f /Applications/MATLAB_R2020a.app/bin/maci64/libmwmcr.dylib+00313423 _ZN3mcr7runtime13initializeIqmERKN6mlutil10contextmgr5McrIDERN10foundation3usm10management7ContextINS7_5scope3MvmEEERK10mcrOptions+00003295
[ 67] 0x00000001164b79b5 /Applications/MATLAB_R2020a.app/bin/maci64/libmwmcr.dylib+00051637 _ZN14cmddistributor15PackagedTaskIIP13getTypeStringIvEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEv+00000853
[ 68] 0x00000001164b78eb /Applications/MATLAB_R2020a.app/bin/maci64/libmwmcr.dylib+00051435 _ZN14cmddistributor15PackagedTaskIIP13getTypeStringIvEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEv+00000651
[ 69] 0x00000001163d34ce /Applications/MATLAB_R2020a.app/bin/maci64/libmwiqm.dylib+00361678 _ZN7mwboost6detail8function21function_obj_invoker0INSt3__18functionIFNS_3anyEvEEES5_E6invokeERNS1_15function_bufferE+00000030
[ 70] 0x00000001163d3003 /Applications/MATLAB_R2020a.app/bin/maci64/libmwiqm.dylib+00360451 _ZN3iqm18PackagedTaskPlugin7executeEP15inWorkSpace_tag+00000243
[ 71] 0x00000001164f4de6 /Applications/MATLAB_R2020a.app/bin/maci64/libmwmcr.dylib+00302566 _Z15mcr_initialize0P11MfileReaderP11PfileReaderPKDsPS4_RKN7mwboost10shared_ptrIN10foundation7msg_svc8eventmgr8EventMgrEEEN6mlutil10contextmgr5MvmIDE+00021766
[ 72] 0x00000001163b3499 /Applications/MATLAB_R2020a.app/bin/maci64/libmwiqm.dylib+00230553 _ZNK3iqm17DefaultPacketInfo7executeEP15inWorkSpace_tag+00001241
[ 73] 0x0000000116395dff /Applications/MATLAB_R2020a.app/bin/maci64/libmwiqm.dylib+00110079 _ZN3iqm10DefaultIqm13dequeueHelperEN7mwboost8optionalImEERKNSt3__112basic_stringIDsNS4_11char_traitsIDsEENS4_9allocatorIDsEEEEN6mlutil14cmddistributor13WhenToDequeue13WhenToDequeueERKNS4_8functionIFbRKNS4_5tupleIJSG_NS1_10shared_ptrINS_22IntermediatePacketInfoEEESA_EEEEEE+00001023
[ 74] 0x000000011638a576 /Applications/MATLAB_R2020a.app/bin/maci64/libmwiqm.dylib+00062838 _ZN3iqm10DefaultIqm7dequeueEN6mlutil14cmddistributor13WhenToDequeue13WhenToDequeueEN7mwboost8optionalImEE+00000390
[ 75] 0x00000001164dd645 /Applications/MATLAB_R2020a.app/bin/maci64/libmwmcr.dylib+00206405 _ZN3mcr7runtime22InterpreterThreadMulti14process_eventsEv+00000197
[ 76] 0x00000001164dde27 /Applications/MATLAB_R2020a.app/bin/maci64/libmwmcr.dylib+00208423 _ZN3mcr7runtime22InterpreterThreadMulti10threadMainENSt3__113packaged_taskIFvvEEE+00000183
[ 77] 0x00000001164df340 /Applications/MATLAB_R2020a.app/bin/maci64/libmwmcr.dylib+00213824 _ZN3mcr7runtime22InterpreterThreadMulti10threadMainENSt3__113packaged_taskIFvvEEE+00005584
[ 78] 0x00000001106c29e8 /Applications/MATLAB_R2020a.app/bin/maci64/libmwboost_thread.dylib+00010728 _ZN7mwboost6thread21start_thread_noexceptEv+00000280
[ 79] 0x00007fff69b38109            /usr/lib/system/libsystem_pthread.dylib+00024841 _pthread_start+00000148
[ 80] 0x00007fff69b33b8b            /usr/lib/system/libsystem_pthread.dylib+00007051 thread_start+00000015


This error was detected while a MEX-file was running. If the MEX-file
is not an official MathWorks function, please examine its source code
for errors. Please consult the External Interfaces Guide for information
on debugging MEX-files.

That’s a new one. It abort()'s inside the dlopen() call that is supposed to load and link the plugin. It doesn’t even reach the point where known fontconfig problems or other problems could cause trouble. Other than that the stack trace doesn’t give me a clue, and a few Google searches also don’t show up anything, except some similar problem report on a forum where the problem starts to happen after an upgrade to 10.15.5.

So this is apparently a new bug in Apples pile of shit, this time in the dynamic loader+linker, i guess. What happens if you start Matlab from within a terminal window? No idea how to debug this further atm., and no time either.

Started from a terminal window, also crashed. Please don’t worry about it, I can live with the default text renderer, and perhaps it goes away with the next OS upgrade … I know, that’s a pretty optimistic view …

Stack trace:

MATLAB crash file:/Users/sglasauer/matlab_crash_dump.26336-1:


--------------------------------------------------------------------------------
               abort() detected at Fr Jun 05 18:00:32 2020 +0200
--------------------------------------------------------------------------------

Configuration:
  Crash Decoding           : Disabled - No sandbox or build area path
  Crash Mode               : continue (default)
  Default Encoding         : UTF-8
  Deployed                 : false
  Graphics Driver          : Unknown hardware 
  Java Version             : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
  MATLAB Architecture      : maci64
  MATLAB Entitlement ID    : 2434304
  MATLAB Root              : /Applications/MATLAB_R2020a.app
  MATLAB Version           : 9.8.0.1380330 (R2020a) Update 2
  OpenGL                   : hardware
  Operating System         : Mac OS Version 10.15.5 (Build 19F101)
  Process ID               : 26336
  Processor ID             : x86 Family 6 Model 158 Stepping 9, GenuineIntel
  Session Key              : 2c54cbdd-7c18-46a7-9117-ce94d365fe58
  Window System            : Quartz

Fault Count: 1


Abnormal termination:
abort()

Register State (from fault):
  RAX = 0000000002000209  RBX = 0000000000000000
  RCX = 0000700005e05cb8  RDX = 0000700005e06120
  RSP = 0000700005e05cb8  RBP = 0000700005e05d00
  RSI = 0000000000000001  RDI = 0000000000000006

   R8 = 0000700005e05d20   R9 = 0000000000000000
  R10 = 0000000000000086  R11 = 0000000000000246
  R12 = 0000000000000086  R13 = 0000700005e06120
  R14 = 0000000000000001  R15 = 0000000000000006

  RIP = 000000010ef1debe  RFL = 0000000000000246

   CS = 0000000000000007   FS = 0000000000000000   GS = 0000000000000000

Stack Trace (from fault):
[  0] 0x000000010b081fc9 /Applications/MATLAB_R2020a.app/bin/maci64/libmwfl.dylib+00008137 _ZN10foundation4core4diag15stacktrace_base7captureERKNS1_14thread_contextEm+00000057
[  1] 0x000000010b0878c8 /Applications/MATLAB_R2020a.app/bin/maci64/libmwfl.dylib+00030920 _ZN10foundation4core4test17terminate_handledERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE+00011384
[  2] 0x000000010b084995 /Applications/MATLAB_R2020a.app/bin/maci64/libmwfl.dylib+00018837 _ZN10foundation4core4diag13terminate_logEPKcPK17__darwin_ucontext+00000149
[  3] 0x000000010eb839e7 /Applications/MATLAB_R2020a.app/bin/maci64/libmwmcr.dylib+00670183 _Z19mnPrintErrorMessageRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+00012727
[  4] 0x000000010eb813f4 /Applications/MATLAB_R2020a.app/bin/maci64/libmwmcr.dylib+00660468 _Z19mnPrintErrorMessageRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+00003012
[  5] 0x000000010eb867f9 /Applications/MATLAB_R2020a.app/bin/maci64/libmwmcr.dylib+00681977 _Z19mnPrintErrorMessageRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+00024521
[  6] 0x000000010eb8049c /Applications/MATLAB_R2020a.app/bin/maci64/libmwmcr.dylib+00656540 _Z22mnInstallCrashHandlersv+00000348
[  7] 0x00007fff69b2c5fd           /usr/lib/system/libsystem_platform.dylib+00013821 _sigtramp+00000029
[  8] 0xaaaaaaaaaaaaaaaa                                   <unknown-module>+00000000
[  9] 0x000000010ef4754f                                   <unknown-module>+00000000
[ 10] 0x000000010ef44bd2                                   <unknown-module>+00000000
[ 11] 0x000000010eed9df5                                   <unknown-module>+00000000
[ 12] 0x000000010ef44e0b                                   <unknown-module>+00000000
[ 13] 0x000000010ef44bf7                                   <unknown-module>+00000000
[ 14] 0x000000010eeca458                                   <unknown-module>+00000000
[ 15] 0x000000010eef28ba                                   <unknown-module>+00000000
[ 16] 0x000000010eefef04                                   <unknown-module>+00000000
[ 17] 0x000000010eec9fbc                                   <unknown-module>+00000000
[ 18] 0x000000010eecdd3b                                   <unknown-module>+00000000
[ 19] 0x000000010eed7e58                                   <unknown-module>+00000000
[ 20] 0x00007fff6991ed8a                      /usr/lib/system/libdyld.dylib+00023946 dlopen+00000171
[ 21] 0x00000001a2a2c45e /Applications/Psychtoolbox/PsychBasic/Screen.mexmaci64+00672862 PsychLoadTextRendererPlugin+00000350
[ 22] 0x00000001a2a2d024 /Applications/Psychtoolbox/PsychBasic/Screen.mexmaci64+00675876 PsychDrawUnicodeText+00000356
[ 23] 0x00000001a2a2d604 /Applications/Psychtoolbox/PsychBasic/Screen.mexmaci64+00677380 SCREENDrawText+00000484
[ 24] 0x00000001a2a4da01 /Applications/Psychtoolbox/PsychBasic/Screen.mexmaci64+00809473 mexFunction+00000945
[ 25] 0x00000001122f8216 /Applications/MATLAB_R2020a.app/bin/maci64/libmex.dylib+00291350 _ZNK18C_DispatchStrategy8dispatchEiPP11mxArray_tagiS2_+00000278
[ 26] 0x00000001122f8150 /Applications/MATLAB_R2020a.app/bin/maci64/libmex.dylib+00291152 _ZNK18C_DispatchStrategy8dispatchEiPP11mxArray_tagiS2_+00000080
[ 27] 0x00000001122f8b5d /Applications/MATLAB_R2020a.app/bin/maci64/libmex.dylib+00293725 _ZNK24SCCompatDispatchStrategy8dispatchEiPP11mxArray_tagiS2_+00000061
[ 28] 0x00000001122f7f37 /Applications/MATLAB_R2020a.app/bin/maci64/libmex.dylib+00290615 _ZN7Mfh_mex30dispatch_file_with_protectionsEiPP11mxArray_tagiS2_+00000439
[ 29] 0x00000001122db40f /Applications/MATLAB_R2020a.app/bin/maci64/libmex.dylib+00173071 _ZN7Mfh_mex13dispatch_fileEiPP11mxArray_tagiS2_+00000159
[ 30] 0x000000010ecf7a6e /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_dispatcher.dylib+00678510 _ZN8Mfh_file20dispatch_file_commonEMS_FviPP11mxArray_tagiS2_EiS2_iS2_+00000142
[ 31] 0x000000010ecf8273 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_dispatcher.dylib+00680563 _ZN8Mfh_file8dispatchEiPNSt3__110unique_ptrI11mxArray_tagN6matrix6detail17mxDestroy_deleterEEEiPPS2_+00000387
[ 32] 0x000000011297f3c1 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+06091713 _ZN9MathWorks3lxe17LxeDispatcherImpl12apply_handleEPNS0_29DispatcherFunctionHandleTokenEmPNS0_6xvalueEmPKS4_RKNS0_12LxeTypesBaseENS0_9ApplyTypeE+00001361
[ 33] 0x0000000112aa42a2 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+07291554 _ZN9MathWorks3lxe16ans_apply_handleEPvNS_2ts4TypeEPKvS1_S1_+00000258
[ 34] 0x00000001129f7a7e /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+06584958 _ZN9MathWorks3lxe38cpp_primitive_template_fn_with_contextIXadL_ZNS0_16ans_apply_handleEPvNS_2ts4TypeEPKvS2_S2_EEEEbS2_S4_S6_S2_S2_+00000014
[ 35] 0x000000011253a502 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+01615106 _ZN9MathWorks3lxe13IrInterpreter17ApplyCppPrimitiveEPN2ir4termES4_RKNS_2ts4TypeES8_+00000594
[ 36] 0x0000000112539201 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+01610241 _ZN9MathWorks3lxe13IrInterpreter31process_application_of_constantEPN2ir4termE+00003937
[ 37] 0x0000000112536d18 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+01600792 _ZN9MathWorks3lxe13IrInterpreter13applyConstantEPN2ir4termE+00000072
[ 38] 0x0000000112531d06 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+01580294 _ZN9MathWorks3lxe12IRTreeWalker11getNextIRPCENS0_9irpc_typeE+00000214
[ 39] 0x0000000112536a77 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+01600119 _ZN9MathWorks3lxe13IrInterpreter9tree_walkERKNS0_9irpc_typeES4_+00000215
[ 40] 0x000000011253694c /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+01599820 _ZN9MathWorks3lxe13IrInterpreter9InterpretEv+00000108
[ 41] 0x000000011265e5d7 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+02811351 _ZN9MathWorks3lxe15ExecutionDriver9ThreadRunEv+00002375
[ 42] 0x00000001126640f0 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+02834672 _ZN9MathWorks3lxe12IrEngineImpl5ApplyERKN2ir4termEPvS6_+00000304
[ 43] 0x00000001128893b9 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+05084089 _ZN9MathWorks3lxe17IrEngineDecorator5ApplyERKN2ir4termEPvS6_+00000153
[ 44] 0x00000001129749a1 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+06048161 _ZN9MathWorks3lxe27FileBasedMatlabCodeFunction14DispatchScriptEiPP11mxArray_tagiS4_+00000433
[ 45] 0x0000000112974d31 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+06049073 _ZN9MathWorks3lxe27FileBasedMatlabCodeFunction12DispatchFileEiPP11mxArray_tagiS4_b+00000129
[ 46] 0x000000010ecf7a6e /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_dispatcher.dylib+00678510 _ZN8Mfh_file20dispatch_file_commonEMS_FviPP11mxArray_tagiS2_EiS2_iS2_+00000142
[ 47] 0x000000010ecf8273 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_dispatcher.dylib+00680563 _ZN8Mfh_file8dispatchEiPNSt3__110unique_ptrI11mxArray_tagN6matrix6detail17mxDestroy_deleterEEEiPPS2_+00000387
[ 48] 0x000000011297f3c1 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+06091713 _ZN9MathWorks3lxe17LxeDispatcherImpl12apply_handleEPNS0_29DispatcherFunctionHandleTokenEmPNS0_6xvalueEmPKS4_RKNS0_12LxeTypesBaseENS0_9ApplyTypeE+00001361
[ 49] 0x0000000112aa42a2 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+07291554 _ZN9MathWorks3lxe16ans_apply_handleEPvNS_2ts4TypeEPKvS1_S1_+00000258
[ 50] 0x00000001129f7a7e /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+06584958 _ZN9MathWorks3lxe38cpp_primitive_template_fn_with_contextIXadL_ZNS0_16ans_apply_handleEPvNS_2ts4TypeEPKvS2_S2_EEEEbS2_S4_S6_S2_S2_+00000014
[ 51] 0x000000011253a502 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+01615106 _ZN9MathWorks3lxe13IrInterpreter17ApplyCppPrimitiveEPN2ir4termES4_RKNS_2ts4TypeES8_+00000594
[ 52] 0x0000000112539201 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+01610241 _ZN9MathWorks3lxe13IrInterpreter31process_application_of_constantEPN2ir4termE+00003937
[ 53] 0x0000000112536d18 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+01600792 _ZN9MathWorks3lxe13IrInterpreter13applyConstantEPN2ir4termE+00000072
[ 54] 0x0000000112531d06 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+01580294 _ZN9MathWorks3lxe12IRTreeWalker11getNextIRPCENS0_9irpc_typeE+00000214
[ 55] 0x0000000112536a77 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+01600119 _ZN9MathWorks3lxe13IrInterpreter9tree_walkERKNS0_9irpc_typeES4_+00000215
[ 56] 0x000000011253694c /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+01599820 _ZN9MathWorks3lxe13IrInterpreter9InterpretEv+00000108
[ 57] 0x000000011265e5d7 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+02811351 _ZN9MathWorks3lxe15ExecutionDriver9ThreadRunEv+00002375
[ 58] 0x00000001126640f0 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+02834672 _ZN9MathWorks3lxe12IrEngineImpl5ApplyERKN2ir4termEPvS6_+00000304
[ 59] 0x00000001128893b9 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+05084089 _ZN9MathWorks3lxe17IrEngineDecorator5ApplyERKN2ir4termEPvS6_+00000153
[ 60] 0x000000011281f0cf /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+04649167 _ZN9MathWorks3lxe9Evaluator15ApplyStatementsERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERKN2ir4termERNS0_18IEvaluationContextE+00000495
[ 61] 0x0000000112823311 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+04666129 _ZN9MathWorks3lxe9Evaluator17EvalStatementImplERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERNS0_18IEvaluationContextE+00000353
[ 62] 0x00000001128233e4 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+04666340 _ZN9MathWorks3lxe9Evaluator13EvalStatementERKNSt3__112basic_stringIDsNS2_11char_traitsIDsEENS2_9allocatorIDsEEEERNS0_18IEvaluationContextE+00000116
[ 63] 0x00000001128d2257 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+05382743 _ZN9MathWorks3lxe9LxeBridge7EvalCmdERKNSt3__112basic_stringIDsNS2_11char_traitsIDsEENS2_9allocatorIDsEEEEbNS0_10EvalSourceE+00000327
[ 64] 0x00000001128d20c5 /Applications/MATLAB_R2020a.app/bin/maci64/libmwm_lxe.dylib+05382341 _ZN9MathWorks3lxe9LxeBridge22EvalCmdWithLocalReturnERKNSt3__112basic_stringIDsNS2_11char_traitsIDsEENS2_9allocatorIDsEEEEPibNS0_10EvalSourceE+00000053
[ 65] 0x000000011226d0f0 /Applications/MATLAB_R2020a.app/bin/maci64/libmwbridge.dylib+00098544 _Z8mnParserv+00000624
[ 66] 0x000000010eb2c84f /Applications/MATLAB_R2020a.app/bin/maci64/libmwmcr.dylib+00313423 _ZN3mcr7runtime13initializeIqmERKN6mlutil10contextmgr5McrIDERN10foundation3usm10management7ContextINS7_5scope3MvmEEERK10mcrOptions+00003295
[ 67] 0x000000010eaec9b5 /Applications/MATLAB_R2020a.app/bin/maci64/libmwmcr.dylib+00051637 _ZN14cmddistributor15PackagedTaskIIP13getTypeStringIvEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEv+00000853
[ 68] 0x000000010eaec8eb /Applications/MATLAB_R2020a.app/bin/maci64/libmwmcr.dylib+00051435 _ZN14cmddistributor15PackagedTaskIIP13getTypeStringIvEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEv+00000651
[ 69] 0x000000010ea084ce /Applications/MATLAB_R2020a.app/bin/maci64/libmwiqm.dylib+00361678 _ZN7mwboost6detail8function21function_obj_invoker0INSt3__18functionIFNS_3anyEvEEES5_E6invokeERNS1_15function_bufferE+00000030
[ 70] 0x000000010ea08003 /Applications/MATLAB_R2020a.app/bin/maci64/libmwiqm.dylib+00360451 _ZN3iqm18PackagedTaskPlugin7executeEP15inWorkSpace_tag+00000243
[ 71] 0x000000010eb29de6 /Applications/MATLAB_R2020a.app/bin/maci64/libmwmcr.dylib+00302566 _Z15mcr_initialize0P11MfileReaderP11PfileReaderPKDsPS4_RKN7mwboost10shared_ptrIN10foundation7msg_svc8eventmgr8EventMgrEEEN6mlutil10contextmgr5MvmIDE+00021766
[ 72] 0x000000010e9e8499 /Applications/MATLAB_R2020a.app/bin/maci64/libmwiqm.dylib+00230553 _ZNK3iqm17DefaultPacketInfo7executeEP15inWorkSpace_tag+00001241
[ 73] 0x000000010e9cadff /Applications/MATLAB_R2020a.app/bin/maci64/libmwiqm.dylib+00110079 _ZN3iqm10DefaultIqm13dequeueHelperEN7mwboost8optionalImEERKNSt3__112basic_stringIDsNS4_11char_traitsIDsEENS4_9allocatorIDsEEEEN6mlutil14cmddistributor13WhenToDequeue13WhenToDequeueERKNS4_8functionIFbRKNS4_5tupleIJSG_NS1_10shared_ptrINS_22IntermediatePacketInfoEEESA_EEEEEE+00001023
[ 74] 0x000000010e9bf576 /Applications/MATLAB_R2020a.app/bin/maci64/libmwiqm.dylib+00062838 _ZN3iqm10DefaultIqm7dequeueEN6mlutil14cmddistributor13WhenToDequeue13WhenToDequeueEN7mwboost8optionalImEE+00000390
[ 75] 0x000000010eb12645 /Applications/MATLAB_R2020a.app/bin/maci64/libmwmcr.dylib+00206405 _ZN3mcr7runtime22InterpreterThreadMulti14process_eventsEv+00000197
[ 76] 0x000000010eb12e27 /Applications/MATLAB_R2020a.app/bin/maci64/libmwmcr.dylib+00208423 _ZN3mcr7runtime22InterpreterThreadMulti10threadMainENSt3__113packaged_taskIFvvEEE+00000183
[ 77] 0x000000010eb14340 /Applications/MATLAB_R2020a.app/bin/maci64/libmwmcr.dylib+00213824 _ZN3mcr7runtime22InterpreterThreadMulti10threadMainENSt3__113packaged_taskIFvvEEE+00005584
[ 78] 0x0000000108ce99e8 /Applications/MATLAB_R2020a.app/bin/maci64/libmwboost_thread.dylib+00010728 _ZN7mwboost6thread21start_thread_noexceptEv+00000280
[ 79] 0x00007fff69b38109            /usr/lib/system/libsystem_pthread.dylib+00024841 _pthread_start+00000148
[ 80] 0x00007fff69b33b8b            /usr/lib/system/libsystem_pthread.dylib+00007051 thread_start+00000015


This error was detected while a MEX-file was running. If the MEX-file
is not an official MathWorks function, please examine its source code
for errors. Please consult the External Interfaces Guide for information
on debugging MEX-files.