Texmacs crashes (Mac ARM Chip, Mac 15, External Monitor)

Hey,
Texmacs keeps crashing when I press the new document button (The white sheet with the green + in the upper left corner). I am on Mac 15, with the newest Macbook generation (M3 Chip Pro), and I have an external monitor connected (I saw in another thread that this seems to sometimes be relevant). This is the stacktrace

TeXmacs] With linked TrueType support
2024-11-05 09:37:15.240 TeXmacs[6578:159762] +[IMKClient subclass]: chose IMKClient_Legacy
Throwing segmentation fault
-------------------------------------------------
Error message:
  segmentation fault

System information:
  TeXmacs version  : 2.1.4
  Built by         : magix
  Building date    : Mon Mar 11 14:22:22 CET 2024
  Operating system : darwin20.2.0
  Vendor           : apple
  Processor        : @CONFIG_HOST_CPU@
  Crash date       : Tue  5 Nov 2024 09:37:21 GMT

Editor status:
  Root path          : [ 0 ]
  Current path       : [ 0, 0, 3 ]
  Shifted path       : [ 0, 0, 3 ]
  Physical selection : [ 0, 0, 3 ] -- [ 0, 0, 3 ]

Backtrace of C++ stack:
  1   TeXmacs                             0x0000000103b427a4 : get_crash_report(char const*) + 320
  2   TeXmacs                             0x0000000102ee731c : tm_throw(char const*) + 168
  3   libsystem_platform.dylib            0x0000000186bf8184 : _sigtramp() + 56
  4   TeXmacs                             0x00000001039eac00 : qt_tm_widget_rep::qt_tm_widget_rep(int, command) + 3556
  5   TeXmacs                             0x0000000103a17c44 : qt_tm_widget_rep* tm_new<qt_tm_widget_rep, int, command>(int&, command&) + 80
  6   TeXmacs                             0x0000000103a17bbc : texmacs_widget(int, command) + 100
  7   TeXmacs                             0x0000000103829cc8 : new_window(bool, tree) + 1884
  8   TeXmacs                             0x000000010382cd14 : new_buffer_in_new_window(url, tree, tree) + 272
  9   TeXmacs                             0x000000010382d114 : open_window(tree) + 112
  10  TeXmacs                             0x00000001035f0adc : tmg_open_window() + 128
  11  TeXmacs                             0x0000000104550708 : deval() + 10860
  12  TeXmacs                             0x0000000104554b80 : scm_dapply() + 1156
  13  TeXmacs                             0x0000000104553e60 : scm_apply() + 64
  14  TeXmacs                             0x0000000104553e18 : scm_call_0() + 20
  15  TeXmacs                             0x00000001045991e0 : scm_c_with_throw_handler() + 220
  16  TeXmacs                             0x00000001045992b0 : scm_internal_lazy_catch() + 16
  17  TeXmacs                             0x0000000104599004 : scm_c_catch() + 388
  18  TeXmacs                             0x00000001045990fc : scm_internal_catch() + 20
  19  TeXmacs                             0x0000000103668bbc : call_scheme(scm_unused_struct*) + 72
  20  TeXmacs                             0x000000010383794c : call(object) + 52
  21  TeXmacs                             0x0000000103838480 : protected_call(object) + 112
  22  TeXmacs                             0x0000000103597b14 : tmg_protected_call(scm_unused_struct*) + 80
  23  TeXmacs                             0x00000001045505b4 : deval() + 10520
  24  TeXmacs                             0x0000000104554b80 : scm_dapply() + 1156
  25  TeXmacs                             0x0000000104553e60 : scm_apply() + 64
  26  TeXmacs                             0x0000000104553e18 : scm_call_0() + 20
  27  TeXmacs                             0x00000001045991e0 : scm_c_with_throw_handler() + 220
  28  TeXmacs                             0x00000001045992b0 : scm_internal_lazy_catch() + 16
  29  TeXmacs                             0x0000000104599004 : scm_c_catch() + 388
  30  TeXmacs                             0x00000001045990fc : scm_internal_catch() + 20
  31  TeXmacs                             0x0000000103668bbc : call_scheme(scm_unused_struct*) + 72
  32  TeXmacs                             0x000000010383794c : call(object) + 52
  33  TeXmacs                             0x00000001039cd4ec : command_queue::exec_pending() + 564
  34  TeXmacs                             0x00000001039cc0b8 : qt_gui_rep::process_queued_events(int) + 880
  35  TeXmacs                             0x00000001039cba88 : qt_gui_rep::update() + 848
  36  TeXmacs                             0x0000000102de8970 : QTMGuiHelper::doUpdate() + 24
  37  TeXmacs                             0x00000001044a89a8 : QMetaObject::activate(QObject*, int, int, void**) + 2352
  38  TeXmacs                             0x00000001044ac7a4 : QTimer::timerEvent(QTimerEvent*) + 120
  39  TeXmacs                             0x00000001044a2b98 : QObject::event(QEvent*) + 80
  40  TeXmacs                             0x00000001040aaab8 : QApplicationPrivate::notify_helper(QObject*, QEvent*) + 292
  41  TeXmacs                             0x00000001040abdfc : QApplication::notify(QObject*, QEvent*) + 556
  42  TeXmacs                             0x00000001037d26a0 : QTMApplication::notify(QObject*, QEvent*) + 20
  43  TeXmacs                             0x000000010448c51c : QCoreApplication::notifyInternal2(QObject*, QEvent*) + 204
  44  TeXmacs                             0x00000001044c2174 : QTimerInfoList::activateTimers() + 932
  45  TeXmacs                             0x0000000103fe177c : QCocoaEventDispatcherPrivate::activateTimersSourceCallback(void*) + 24
  46  CoreFoundation                      0x0000000186caa414 : __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__() + 28
  47  CoreFoundation                      0x0000000186caa3a8 : __CFRunLoopDoSource0() + 176
  48  CoreFoundation                      0x0000000186caa10c : __CFRunLoopDoSources0() + 244
  49  CoreFoundation                      0x0000000186ca8cf8 : __CFRunLoopRun() + 840
  50  CoreFoundation                      0x0000000186ca8334 : CFRunLoopRunSpecific() + 572
  51  HIToolbox                           0x00000001920e10cc : RunCurrentEventLoopInMode() + 292
  52  HIToolbox                           0x00000001920e6ebc : ReceiveNextEventCommon() + 636
  53  HIToolbox                           0x00000001920e7020 : _BlockUntilNextEventMatchingListInModeWithFilter() + 76
  54  AppKit                              0x000000018a7eca70 : _DPSNextEvent() + 660
  55  AppKit                              0x000000018b1127b8 -[NSApplication(NSEventRouting) : _nextEventMatchingEventMask:untilDate:inMode:dequeue:]() + 688
  56  AppKit                              0x000000018a7dfb7c -[NSApplication : run]() + 480
  57  TeXmacs                             0x0000000103fe2070 : QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 1584
  58  TeXmacs                             0x00000001044881c8 : QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 528
  59  TeXmacs                             0x000000010448cb6c : QCoreApplication::exec() + 128
  60  TeXmacs                             0x0000000102d7b96c : TeXmacs_main(int, char**) + 16144
  61  TeXmacs                             0x00000001045668f4 : invoke_main_func() + 48
  62  TeXmacs                             0x000000010454334c : c_body() + 24
  63  TeXmacs                             0x0000000104599004 : scm_c_catch() + 388
  64  TeXmacs                             0x00000001045432c4 : scm_i_with_continuation_barrier() + 140
  65  TeXmacs                             0x0000000104543324 : scm_c_with_continuation_barrier() + 56
  66  TeXmacs                             0x0000000104596dd8 : scm_i_with_guile_and_parent() + 56
  67  TeXmacs                             0x0000000104596d98 : scm_with_guile() + 20
  68  TeXmacs                             0x00000001045668b0 : scm_boot_guile() + 40
  69  TeXmacs                             0x0000000102d80ec8 : main() + 2500
  70  dyld                                0x0000000186840274 : start() + 2840

-------------------------------------------------

Does anyone know what I could do to get it working?

It has been fixed in Mogan STEM Suite (a distribution of GNU TeXmacs)

For GNU TeXmacs, you may need to wait for a new release, see

This issue is resolved in several recent nightly build versions of TeXmacs, you could try it here. Please also refer to the recent announcement on the mailing list.