CodeCache is full. Compiler has been disabled.

This is a new installation of R2023b on an M2 macOS 13.6. When launching matlab from the console, I get the following error messages:
--
objc[2572]: Class WebSwapCGLLayer is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/Frameworks/libANGLE-shared.dylib (0x2335e6cc0) and /Applications/MATLAB_R2023b.app/bin/maca64/Frameworks/Chromium Embedded Framework.framework/Libraries/libGLESv2.dylib (0x109b41e70). 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=
--
An online search indicates this error is related to JDK, e.g., https://poonamparhar.github.io/codecache_is_full/
java -version yields:
--
openjdk version "17.0.8.1" 2023-08-24
OpenJDK Runtime Environment Temurin-17.0.8.1+1 (build 17.0.8.1+1)
OpenJDK 64-Bit Server VM Temurin-17.0.8.1+1 (build 17.0.8.1+1, mixed mode)

5 Comments

I encounted exactly the same issue.
I encountered the exact same issue. And I found that the plot function could be broken when you run multiple plot requests in a short period of time.
I check my info with
ver java
----------------------------------------------------------------------------------------------------- MATLAB Version: 23.2.0.2410171 (R2023b) Update 2 MATLAB License Number: 0 Operating System: Linux 5.4.233-0504233-generic #202302250651 SMP Sat Feb 25 12:26:27 UTC 2023 x86_64 Java Version: Java 1.8.0_292-b10 with AdoptOpenJDK OpenJDK 64-Bit Server VM mixed mode -----------------------------------------------------------------------------------------------------
Warning: No properly formatted Contents.m file was found for 'java'.
In my case differs by OS and JDK:
-----------------------------------------------------------------------------------------
MATLAB Version: 23.2.0.2380103 (R2023b) Update 1
MATLAB License Number: XXXXXX
Operating System: macOS Version: 13.6 Build: 22G120
Java Version: Java 1.8.0_382-b05 with Amazon.com Inc. OpenJDK 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------
Warning: No properly formatted Contents.m file was found for 'java'.
> In ver
Hi Dirk.
This warning is appearing on Macs with the Silicon processor. Nevertheless, despite this warning message, there is no practical concern with MATLAB or the CodeCache. Users should be able to use MATLAB normally. Hopefully, MathWorks will work on removing this warning in future releases.

Sign in to comment.

Answers (0)

Categories

Products

Release

R2023b

Asked:

on 12 Oct 2023

Commented:

on 15 Nov 2023

Community Treasure Hunt

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

Start Hunting!