Why do I get "Warning: Error occurred during graphics initialization" after upgrading to MATLAB R2024b and later?
15 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2025 年 10 月 14 日
回答済み: MathWorks Support Team
2025 年 10 月 17 日
I just upgraded to MATLAB R2025a. After installation, I received the following warning related to graphics and "hgrc.m":
Warning: Can't find the resource file 'toolbox/matlab/graphics/core/hg/hgrc.m' needed by 'C:\Program Files\MATLAB\R2025a\bin\win64\hg.dll'
Warning: Error occurred during graphics initialization
Why do I get this graphics initialization warning?
採用された回答
MathWorks Support Team
2025 年 11 月 19 日 0:00
This warning may be related to mismatches in the MATLAB Search Path when upgrading from previous releases to MATLAB R2024b and later. To resolve this warning, refer to How can I perform initial troubleshooting of MATLAB or Simulink errors?. This page provides instructions on how to restore the default MATLAB path and rehash the toolbox cache.
If the steps at the above link don't work, please provide the following information to MathWorks Technical Support:
1) Obtain the path to "hgrc.m" by running the following command in the MATLAB Command Window:
which -all hgrc
2) Obtain a copy of the "startup.m" file if one exists. You can find the path to this file using the following command in the MATLAB Command Window:
which -all startup
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!