Matlab Crash on Sonoma(macOS 14.0)

420 visualizzazioni (ultimi 30 giorni)
Matlab2023b works fine on my computer with macOS 13.6. I find that the matlab 2023b is supported on Sonoma, so I update the system to it. However, after the update matlab crashs each time I launch it. And I find similar report on stack overflow.
The crash report:
--------------------------------------------------------------------------------
Segmentation violation detected at 2023-10-02 08:03:40 +0800
--------------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled - No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : UTF-8
Deployed : false
Graphics Driver : Uninitialized hardware
Java Version : Java 1.8.0_382-b05 with Amazon.com Inc. OpenJDK 64-Bit Server VM mixed mode
MATLAB Architecture : maca64
MATLAB Entitlement ID : [FILTERED]
MATLAB Root : /Applications/MATLAB_R2023b.app
MATLAB Version : 23.2.0.2365128 (R2023b)
OpenGL : hardware
Operating System : Mac OS 版本14.0(版号23A344)
Process ID : 5522
Processor ID : ABI64 ARM ARM64E FIRESTORM_ICESTORM HG
Session Key : [FILTERED]
Window System : Quartz
Fault Count: 1
Abnormal termination:
Segmentation violation
Current Thread: '' id 0x294e2b000
Register State (from fault):
X0 = 0000000000000012 X1 = 0000000000000000
X2 = 0000000000000001 X3 = 0000000000000000
X4 = 00000001d9ae8630 X5 = 0000000000000000
X6 = 0000000000000000 X7 = 0000000000000403
X8 = 1194967f20a30012 X9 = 0000000000000000
X10 = 0000000000000001 X11 = 0000000000000000
X12 = 0000000010800000 X13 = 0000000000000001
X14 = 0000000000000000 X15 = 0000000084004000
X16 = 0000000182884e00 X17 = 0000000237fd36d0
X18 = 0000000000000000 X19 = 0000000236d00a60
X20 = 0000000000000000 X21 = 0000000000000000
X22 = 0000000294e2a670 X23 = 000000000000001a
X24 = 0000000000000000 X25 = 0000000000000000
X26 = 0000000294e290e0 X27 = 0000000000000000
X28 = 0000600065e36520
FP = 0000000294e27ae0 LR = 5154800182884e38
SP = 0000000294e27ae0 PC = 00000001829cd6f0
CPSR = 60001000
Stack Trace (from fault):
[ 0] 0x0000000104904d90 /Applications/MATLAB_R2023b.app/bin/maca64/libmwfl.dylib+00019856 _ZN10foundation4core4diag15stacktrace_base7captureERKNS1_14thread_contextEm+00000064
[ 1] 0x0000000104907c58 /Applications/MATLAB_R2023b.app/bin/maca64/libmwfl.dylib+00031832 _ZN10foundation4core4test17terminate_handledERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE+00002144
[ 2] 0x0000000104907118 /Applications/MATLAB_R2023b.app/bin/maca64/libmwfl.dylib+00028952 _ZN10foundation4core4diag13terminate_logEPKcPK17__darwin_ucontext+00000140
[ 3] 0x000000010b0653b0 /Applications/MATLAB_R2023b.app/bin/maca64/libmwmcr.dylib+00529328 _Z19mnPrintErrorMessageRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+00011892
[ 4] 0x000000010b063250 /Applications/MATLAB_R2023b.app/bin/maca64/libmwmcr.dylib+00520784 _Z19mnPrintErrorMessageRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+00003348
[ 5] 0x000000010b060cf0 /Applications/MATLAB_R2023b.app/bin/maca64/libmwmcr.dylib+00511216 mnFatalSignalHandler+00000140
[ 6] 0x000000018284da24 /usr/lib/system/libsystem_platform.dylib+00014884 _sigtramp+00000056
[ 7] 0x0000000182884e38 /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation+00028216 CFDictionaryGetValue+00000056
[ 8] 0x0000000182884e38 /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation+00028216 CFDictionaryGetValue+00000056
[ 9] 0x0000000204c93578 /System/Library/PrivateFrameworks/IO80211.framework/Versions/A/IO80211+00017784 Apple80211Scan+00000584
[ 10] 0x00000001361d5994 /Applications/MATLAB_R2023b.app/bin/maca64/matlab_startup_plugins/lmgrimpl/libmwlmgrimpl.dylib+01923476 FqTtUQGnylG+00000356
[ 11] 0x00000001361d5da4 /Applications/MATLAB_R2023b.app/bin/maca64/matlab_startup_plugins/lmgrimpl/libmwlmgrimpl.dylib+01924516 AjEdeqBE+00000564
[ 12] 0x00000001361e4e00 /Applications/MATLAB_R2023b.app/bin/maca64/matlab_startup_plugins/lmgrimpl/libmwlmgrimpl.dylib+01986048 GxnmPknfylG+00000176
[ 13] 0x00000001361e42cc /Applications/MATLAB_R2023b.app/bin/maca64/matlab_startup_plugins/lmgrimpl/libmwlmgrimpl.dylib+01983180 OexMpdMAylG+00000332
[ 14] 0x00000001361e4628 /Applications/MATLAB_R2023b.app/bin/maca64/matlab_startup_plugins/lmgrimpl/libmwlmgrimpl.dylib+01984040 tQpdOundylG+00000052
[ 15] 0x000000018281f034 /usr/lib/system/libsystem_pthread.dylib+00028724 _pthread_start+00000136
[ 16] 0x0000000182819e3c /usr/lib/system/libsystem_pthread.dylib+00007740 thread_start+00000008
PS: when I run matlab on terminal, there are two warnings as:
CodeCache is full. Compiler has been disabled.
Try increasing the code cache size using -XX:ReservedCodeCacheSize=
objc[16042]: Class WebSwapCGLLayer is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/Frameworks/libANGLE-shared.dylib (0x2325b2888) and /Applications/MATLAB_R2023b.app/bin/maca64/Frameworks/Chromium Embedded Framework.framework/Libraries/libGLESv2.dylib (0x10bc41e70).
One of the two will be used. Which one is undefined.
  56 Commenti
Alessandro
Alessandro il 27 Mar 2024
Hi
Sonoma 14.4.1 here, R2023b crashes at "close all"
Very frustrating!
A
Ali Shahdoost
Ali Shahdoost il 29 Apr 2024
I'm not happy about this issue caused from "SIGBUS" error.

Accedi per commentare.

Risposta accettata

MathWorks Support Team
MathWorks Support Team il 27 Ott 2023
Modificato: MathWorks Support Team il 4 Dic 2023
Thank you all for reporting this issue. MathWorks is aware of this issue and several others related to macOS Sonoma. We are actively investigating each of them.
Please refer to this additional support article for more details on the following known issues and support for macOS Sonoma: https://www.mathworks.com/matlabcentral/answers/2044833-is-matlab-compatible-with-macos-sonoma
1. MATLAB crashes when using an Individual or Designated Computer license
Due to a bug, MATLAB crashes after a minute or two. For more information, see this article.
2. MATLAB crashes when using Oracle Java on Apple Silicon
When launching the Apple Silicon version of MATLAB, MATLAB defaults to a previously installed Oracle Java and crashes. For instructions on how to point MATLAB to Amazon Corretto 8, see this article.
3. The Intel version of MATLAB crashes when generating a C++ MEX file.
This crash occurs after MEX is invoked. For more information and a workaround, see this this article.
4. Chinese characters in MATLAB UI
When the Chinese language is present as a secondary language on the machine, portions of the MATLAB UI display Chinese characters even when preferred locale is set to English. For more information, see this article.
If you are experiencing a different issue than those described, please Contact MathWorks Support.
  18 Commenti
Walter Roberson
Walter Roberson il 9 Dic 2023
A Mac Pro Tower with display cost 17200 USD
Apple Pro Display XDR (32 inch, 6K resolution): $US5000
Apple Mac Pro Tower: base price $US7800
So you are doing 17200 - 5000 - 7800 = 4400 worth of upgrades to the model. To get there you have to go for the 76 core GPU (M2 Ultra) upgrade (instead of regular 60 core GPU), 192 GB of unified memory, 8 TB of storage, and add the upgrade to have wheels on the frame.
In other words, to get to that price, you have to choose the most expensive version of everything that Apple offers on that device (but supply your own keyboard.)
Note that the Mac Pro is a standard commercial computer while your list has special gaming computers
Be honest: a Mac Pro with those specifications is custom-built, and effectively is a gaming computer.
And since the display is independent of the computer, merely offered by the same manufacturer, you cannot reasonably include it in saying that the computer is the most expensive. The Mac Pro is not even marketted as a PC: it is a workstation.
For the same specifications that added up to $US12200 above, you can get the Mac Studio for $US8800. The difference, according to tech journalists, is that the Mac Pro has several PCIe expansion slots, and that the SSD in the Mac Pro can in theory be upgraded. And, of course, that you cannot get the wheels for the Mac Studio.
Walter Roberson
Walter Roberson il 9 Dic 2023
You can put together Dell towers with much higher prices. For example about $US11500 for a graphics card upgrade on a Dell 7920 Tower.

Accedi per commentare.

Più risposte (20)

Ahmed Harbi
Ahmed Harbi il 29 Ott 2023
Hello, the issue is not with the JAVA JDK, it's with the XCode version 15.0 with macOS Sonoma.
You can find in apple silicon requirements MATLAB is supported with XCode 14.0 with macOS Ventura. https://www.mathworks.com/support/requirements/apple-silicon.html
From the call stack the system is calling dylib files from /usr/lib/system "libsystem_platform, and libsystem_pthread". which are not comaptiable with the requirements for MATLAB.
Nothing can be done for now, either MATLAB get an update for XCode 15, and macOS Sonoma. Or you can downgrade your macOS version.
  7 Commenti
Jinbo Zhang
Jinbo Zhang il 2 Nov 2023
Modificato: Jinbo Zhang il 2 Nov 2023
In that page, seem Xcode only related to compilers. Why it will have influence on gui usage? I compile spm c code, it is working just fine with Xcode 15. Besides, call stack report here is not a typical bug faced in Sonoma. Most of the bug reported in these coments is about matlab hangs when press X to a simple figure. And if you just open matlab in terminal with -nodesktop option, it can be solve temporally, Seem jdk should be part of the source of this bug. Interestingly, on one of my mac air which never install matlab, I fresh install matlab on it, it work smoothly.... no hang, no crash, just weird...
David
David il 6 Feb 2024
Modificato: David il 6 Feb 2024
It's intriguing how different environments can impact software behavior. While Xcode's influence on GUI usage might not be immediately apparent, its role in handling compilers could indirectly affect performance. It's worth exploring potential interactions with JDK and other dependencies to troubleshoot issues like MATLAB hangs which seem to vary across setups.

Accedi per commentare.


geofo
geofo il 24 Gen 2024
Modificato: the cyclist il 24 Gen 2024
Apple released today (24 Jan 2024) a new vesion of Sonoma (14.3) and with this new version I can close plots in Matlab without problems. I tested this on 4 Mac computers, all work.
  2 Commenti
the cyclist
the cyclist il 24 Gen 2024
In limited testing, this Sonoma update has fixed the problem for me, too. Fingers crossed!
Zhenhao Zhou
Zhenhao Zhou il 24 Gen 2024
Same here! 14.3 solved all the figure-related issues!

Accedi per commentare.


Alfarizy
Alfarizy il 25 Ott 2023
I think i figured it out how to fix this problem. It seems like there is a crashed happen on the java. It can be because you have multiple JDK/JRE installed on your mac.
What I did to fix this, I uninstalled all of my JDK/JRE according to this following instruction https://www.java.com/en/download/help/mac_uninstall_java.html and also do the following after you did the instruction on the link I provided.
Uninstalling the JDK on macOS
To uninstall the JDK on macOS, you must have Administrator privileges.
Note: Do not attempt to uninstall Java by removing the Java tools from /usr/bin. This directory is part of the system software and any changes will be reset by Apple the next time that you perform an update of the OS.
  1. Go to /Library/Java/JavaVirtualMachines.
  2. Remove the directory where the JDK is installed by running the rm command as a root user or by using the sudo tool:$ rm -rf jdk-1.8.jdk
After you have done both two steps above, restart your mac, and download then install Amazon Corretto 8 from Matlab website. Restart your mac, and open your MATLAB_R2023B
  11 Commenti
Pengyu Chen
Pengyu Chen il 28 Ott 2023
@Aceson The default path is
/Applications/MATLAB_R2023b.app
Aceson
Aceson il 28 Ott 2023
@Pengyu Chen Oh I meant <matlabroot>/bin/matlab_jenv this path. Where do I find this matlab_jenv

Accedi per commentare.


Jinbo Zhang
Jinbo Zhang il 28 Ott 2023
Seem reinstall or reset Open-JRE have not solve all problem. Matlab also hang up, when ploting, editing, add external display, open gui or appdesign in SOMETIME, hard to predict. Both of my mac mini, mac air, and mac studio is in such condition. Maybe it is not a right time to use MATLAB2023b with Sonoma. This is a prerelease state not release state!

Matteo Savoia
Matteo Savoia il 1 Nov 2023
Both R2023a and R2023b crash on my Intel MacBook Pro (late 2009) with Sonoma. With previous macOS version it worked fine.
I have also installed Amazon Corretto 8 but nothing changed.
I do not think it is related to the processors architecture (since I am on an Intel i9 and have the same issue).
I have to stick with the Windows 11 version for the time being..
  3 Commenti
john
john il 6 Nov 2023
@Weizhe Chen Unfortunately no. Let's hope Update 4 or Matlab 2024a fixes the issue.
Kristofer
Kristofer il 6 Nov 2023
I was able to get it work on my M2 Macbook Pro on Sonoma by uninstalling the Oracle JRE and then installing Amazon Coretto 8

Accedi per commentare.


Hans Scharler
Hans Scharler il 4 Dic 2023
MathWorks is currently aware of the following issues when running MATLAB on macOS Sonoma:
1. MATLAB crashes when using an Individual or Designated Computer license
Due to a bug, MATLAB crashes after a minute or two. For more information, see this article.
2. MATLAB crashes when using Oracle Java on Apple Silicon
When launching the Apple Silicon version of MATLAB, MATLAB defaults to a previously installed Oracle Java and crashes. For instructions on how to point MATLAB to Amazon Corretto 8, see this article.
3. The Intel version of MATLAB crashes when generating a C++ MEX file.
This crash occurs after MEX is invoked. For more information and a workaround, see this this article.
4. Chinese characters in MATLAB UI
When the Chinese language is present as a secondary language on the machine, portions of the MATLAB UI display Chinese characters even when preferred locale is set to English. For more information, see this article.
  3 Commenti
David Fedida
David Fedida il 13 Dic 2023
MATLAB crashes after a few program runs for me 2023a or 2023b using OS Sonoma, it was fine using Big Sur. I have an Intel I7 MacPro 2019. Interestingly, it only crashes if I try and close a figure that the program plots. It will close one or two plots and the next time it locks up. So, I can use MATLAB if I don't close any figures unitl I have finished my programming, Any ideas how to fix this?
Rodrigo
Rodrigo il 14 Gen 2024
i found a way to close it without crashing, instead of closing with the red x try closing it with cmd + w which is the fast way to close a window, it worked for me :)

Accedi per commentare.


geofo
geofo il 23 Gen 2024
Hi Simone! I am not working at Matlab, I am just a user like you. Sorry to tell you that this problem persisted for a very long time now (some years), so it is unlikely Matlab and Apple will fix this in the following days. You need to find some other solution to fix your project. I know two solutions: (1) write in the startup.m file the two lines from the post above or (2) buy a Linux / Windows computer and install Matlab on it. Good luck!
  2 Commenti
xinhui li
xinhui li il 23 Gen 2024
Could you please show me the path of startup.m? There are 3 startup.m in my laptop.
geofo
geofo il 23 Gen 2024
In Mac computers it should be under Documents/MATLAB/. You can check in Matlab "Home" tab, click on "Set Path" icon and check the first path in the list, this is it. If there is no startup file under the directory, make one. If you are still unsure which startup file is Matlab using among those you have, add a line to each of the three files like disp("This is number 1"), disp("This is number 2"), etc.

Accedi per commentare.


Pengyu Chen
Pengyu Chen il 26 Ott 2023
When you installed MATLAB R2023b for Apple silicon, it may have inherited Java settings from a previous release that are not compatible with native MATLAB for Apple silicon. Amazon Corretto Java 8 is the only officially supported JRE for MATLAB on Apple silicon. For further information, you can check the following link:
  5 Commenti
超恒
超恒 il 18 Nov 2023
This solution did not work for me either :(
Pengyu Chen
Pengyu Chen il 18 Nov 2023
So wierd :(

Accedi per commentare.


Jinbo Zhang
Jinbo Zhang il 28 Ott 2023
I found if you use apple remote desktop to access your Desktop, and MATLAB is just on your screen. MATLAB will be hang up.................

greg wurtz
greg wurtz il 2 Nov 2023
Modificato: greg wurtz il 3 Nov 2023
Hello,
I installed 2023b under Sonoma on a Mac with an Intel chip and it has not crashed yet. However, I also am also running the same config on a Mac with an M2 chip (this is another install of 2023b for Apple Silicon). This one launches and processes code but eventually freezes.
addition on 11/3 12:07 EST: Marlab 2023b freezes using the M2 platform only when plotting as far as I can tell.
  5 Commenti
the cyclist
the cyclist il 8 Nov 2023
@greg wurtz, I learned from MW support that if you have the focus on a different window (i.e. click on literally any other window), you can successfully manually close a MATLAB figure window.
It's a pretty annoying work-around, but it does seem to work for me.
greg wurtz
greg wurtz il 8 Nov 2023
this works indeed. Thanks!

Accedi per commentare.


junyi
junyi il 8 Nov 2023
hey bro,i had the same question .My macos system is 14.1,i unload matlab firstly.Then check https://www.mathworks.com/support/requirements/apple-silicon.html you will find you need download java 8 and Amazon Corretto 8. And you should know that some of products are not suitable for macos ,so just download Matlab ,and click on the matlab icon,you will find you can open it .Good luck!!!
  2 Commenti
greg wurtz
greg wurtz il 8 Nov 2023
that is not solving the problem.
junyi
junyi il 9 Dic 2023
check whether u download right version of java or Amazo Corretto.Then try again.
Sometimes ,maybe the file was damaged when downloading, but the chance is tiny.

Accedi per commentare.


PD
PD il 8 Nov 2023
I just found out that Turning off the Display contrast in Accessibility -> Display may solve this problem, just set the Display contrast to normal and restart the mac, and then the Matlab will no more freeze after turning off the figure.
  4 Commenti
灵通 仲
灵通 仲 il 4 Dic 2023
how to set?
the cyclist
the cyclist il 11 Dic 2023
Just as another data point on this, MathWorks support team worked a lot with me on "It's an Accessibility issue", and that route never solved the problem for me.

Accedi per commentare.


David
David il 26 Nov 2023
Oh, that's quite a rollercoaster! It's awesome that Matlab 2023b was running smoothly on your macOS 13.6. The decision to update to Sonoma, however, seems to have introduced a hiccup with Matlab crashing on launch. It's always frustrating when an upgrade leads to unexpected issues. The silver lining is that you're not alone in this, with similar reports on Stack Overflow. Here's hoping the community can pool its expertise to find a solution, and you'll soon have Matlab running seamlessly on Sonoma. Fingers crossed for a quick resolution!
  2 Commenti
john
john il 26 Nov 2023
Dear @David,
No matter how expert the community is, only MathWorks has the source code and can give the proper patch for this bug.
However, the community has its solutions :D and you can find a fix for this bug somewhere on the internet. I hope that MW finds it soon and releases it in their 5th update. fingers crossed!
David
David il 27 Nov 2023
Sure we hope so this issue sloved soon!!

Accedi per commentare.


Touraj Tajbakhsh
Touraj Tajbakhsh il 11 Dic 2023
Here is a workaround to prevent MATLAB from hanging when closing or docking a figure. Please insert the following code into your startup.m file:
% avoid hangs when closing a figure
set(groot, 'defaultFigureCloseRequestFcn', 'close(gcf)');
set(groot, 'defaultFigureWindowStyle', 'docked');
warning('off', 'MATLAB:close:RecursionOnClose');
% Additional settings for docked figures to prevent hanging
set(groot, 'defaultFigureDockControls', 'on');
  2 Commenti
Xiliang Luo
Xiliang Luo il 11 Dic 2023
Does not work. Matlab needs to get a fix or new release.
xinhui li
xinhui li il 23 Gen 2024
Which startup.m? Could you please show me the path?

Accedi per commentare.


geofo
geofo il 11 Dic 2023
A variant of the suggested code shown below worked for me. The question is still why nobody at Mathworks is able to fix this problem for 3 years now if it just means two lines of code?
set(groot, 'defaultFigureCloseRequestFcn', 'close(gcf)');
warning off MATLAB:Figure:RecursionOnClose;
  2 Commenti
David Fedida
David Fedida il 14 Dic 2023
This worked for me too
Binod
Binod il 17 Dic 2023
does not work this method in MacOS 14.2 sonoma, M1, 8 GB

Accedi per commentare.


Binod
Binod il 17 Dic 2023
Same problem with me ... tried multiple options, but useless!
OS: macOS Sonom 14.2
Chip: M1
Matlab R2022b
Issue: Close a figure by clicking the red cross on the figure, matlab will freeze and unresponsive.
  1 Commento
Tim Lueth
Tim Lueth il 10 Lug 2024
I have those problems on OSX 14.5 Sonoma on Mac and Intel and with different Matlab version on some days with slow internet connections. using matlab is not possible on those days at all. I noticed that the two mentioned lines have to be modified to give 'whomever' some time to react.
set(groot, 'defaultFigureCloseRequestFcn', 'pause(0.05); close(gcf)'); % PAUSE!
warning off MATLAB:Figure:RecursionOnClose;
Inserting the pause solved it on my mac immediately

Accedi per commentare.


geofo
geofo il 17 Dic 2023
Hi Binod! I uderstand your frustration as I stopped using Mac after I had this same problem each time Mac Sonoma 14 version was updated. I saw in your message after you posted it (got email from Maltabl) that there is a new Mac Sonoma Version 14.2, I had 14.1.2, So I updated all my Mac computers to see what happens. My Macs are as follows:
Mac Air M1, 8 GB
MacMini M1, 16 GB
Macbook Pro 16" with I9, 16 GB
MacBookPro 16" with M1, 32 GB
After the update all of them worked well with Matlab with the two lines added in startup.m I wrote about, Matlab is not freezing anymore:
set(groot, 'defaultFigureCloseRequestFcn', 'close(gcf)');
warning off MATLAB:Figure:RecursionOnClose;
This means it must be something special with your setup. Have you installed the Java amazon-correto? Have you installed the Matlab version for M-processors? Sorry, but I don't have more advices except you can do a favour to yourself and buy a Dell with a multi-core CPU, install Matlab on it and it will work like a charm. I was never a fan of Microsoft Windows, but it works extremely well these days. After I made the change, I didn't use Mac anymore. Good luck!
  2 Commenti
Binod
Binod il 18 Dic 2023
Problem persists even with this
dim-ask
dim-ask il 23 Gen 2024
wow this seems to have fixed my problem! Thank you!
Is there any explanation for this?

Accedi per commentare.


Zhenhao Zhou
Zhenhao Zhou il 24 Gen 2024
Updating to the newly released macOS 14.3 has solved all figure UI related issues!!!! Can close figures normally, and editing figures using property editor is also functioning well! I think Apple has finally solved this issue(s) that has been there for years!
  1 Commento
James Ganong
James Ganong il 1 Mar 2024
I found a way that works for me using the prerelease of MATLAB 2024a and Amazon Corretto 11.
Here are the details:
With MacOS Sonoma 14.3.1 on Apple Silicon and MATLAB 2023b I was getting the following messages, and MATLAB would apper to hang:
objc[1675]: Class WebSwapCGLLayer is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/Frameworks/libANGLE-shared.dylib (0x23c196340) and /Applications/MATLAB_R2023b.app/bin/maca64/Frameworks/Chromium Embedded Framework.framework/Libraries/libGLESv2.dylib (0x108959e70). One of the two will be used. Which one is undefined.
CodeCache is full. Compiler has been disabled.
Try increasing the code cache size using -XX:ReservedCodeCacheSize=
I tried MATLAB 2024a prerelease, and got a similar message and hang:
jeg@barberfish cafe_dive % /Applications/MATLAB_R2024a.app/bin/matlab
objc[1823]: Class WebSwapCGLLayer is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/Frameworks/libANGLE-shared.dylib (0x23c196340) and /Applications/MATLAB_R2024a.app/bin/maca64/Frameworks/Chromium Embedded Framework.framework/Libraries/libGLESv2.dylib (0x10c859e70). One of the two will be used. Which one is undefined.
CodeCache is full. Compiler has been disabled.
Try increasing the code cache size using -XX:ReservedCodeCacheSize=
Finally, I unistalled Amazon Corretto 8, following the instructions at https://docs.aws.amazon.com/corretto/latest/corretto-8-ug/macos-install.html#macos-uninstall and installed Amazon Correto 11 setting JAVA_HOME follwing instructions at https://docs.aws.amazon.com/corretto/latest/corretto-11-ug/macos-install.html
and now the last line of the errors messages no longer appears and it is no longer appearing to hang:
% matlab
WARNING: package sun.awt.X11 not in java.desktop
WARNING: package sun.awt.X11 not in java.desktop
objc[2933]: Class WebSwapCGLLayer is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/Frameworks/libANGLE-shared.dylib (0x23c196340) and /Applications/MATLAB_R2023b.app/bin/maca64/Frameworks/Chromium Embedded Framework.framework/Libraries/libGLESv2.dylib (0x10d059e70). One of the two will be used. Which one is undefined.

Accedi per commentare.


James Huth
James Huth il 15 Lug 2024
Has this issue now been solved? I had been using R2023b in the Fall 2023/ January 2024 and experienced same crashed when trying to close Simulink figures. Was told by Mathworks tech support that it was an Apple + Java issue.
Am still on R2023b... but also now Mac Sonoma 14.5. Is the problem resolved for everyone using R2023b? I wanted to hold off on jump to R2024a since I still have colleagues using R2023b.
  1 Commento
Tim Lueth
Tim Lueth il 16 Lug 2024
Modificato: Tim Lueth il 16 Lug 2024
I've inserted the two recommended lines of "gofo" 2023-12-17 into startup.m but added a pause of (0.05) that was required on faster Macs. The two code lines solved exactly this problem on all of my Intel Macs and Silicon Macs 2018-2024 using 2024a and independently (!) on the JAVA version.
set(groot, 'defaultFigureCloseRequestFcn', 'pause(0.05); close(gcf)'); % PAUSE!
warning off MATLAB:Figure:RecursionOnClose;

Accedi per commentare.


geofo
geofo il 15 Lug 2024
The problem is solved, I have Matlab 2024b installed on Macs with both Intel and M1 processors and it works.

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Prodotti


Release

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by