Graphics error has appeared in Linux - help me understand why.
63 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I've been using MATLAB in Linux for plotting data for years, and for about 4 months with my current hardware/software setup
I'm now getting the following graphics error. It happens on the first run of a plotting script after I've started the MATLAB GUI, but not on any subsequent runs. It also happens when I run a plotting scipt from the Linux command line. The scripts run fine and generate plots.
disregard stty: warning message above
count lines, count words, count characters, filename =
wc: US: No such file or directory
Warning: Initializing MATLAB Graphics failed.
This indicates a potentially serious problem in your MATLAB setup, which should be resolved as soon as possible. Error detected was:
MATLAB:UndefinedFunction
Undefined function 'readseisfile2' for input arguments of type 'char'.
> In hgrc (line 184)
In matlab.graphics.internal.initialize (line 15)
The only thing I recognise in the error message is readseisfile2. That sounds like a name I'd use for a function, but no such function exists on my system.
The problem started today when I was trying to make changes to my MATLAB startup. I've always had a problem saving my Path, and had to Set Path every time I started the MATLAB GUI. I needed to sort the Path problem so I could run scripts as batch jobs, either from the command line or as cronjobs. I noticed that userpath was empty, so I set that to the directory where I had created a startup.m file. That seemd to solve the Path problem.
I'm not certain that the graphics error appeared at exactly the same time as I fixed the Path.
Can anyone suggest what I could look at to try and troubleshoot this problem? My instinct is that I've messed something up and should reinstall MATLAB. Or should I contact MATLAB support?
3 Commenti
shuaijia heng
il 21 Nov 2024 alle 9:56
How to solve this problem? I had the same problem, but I was running on a win 11 system
Risposte (1)
Yash
il 25 Nov 2024 alle 6:11
Looks like some of the configuration settings were altered while you were trying to fix the path issue. The function "readseisfile2" could be an internal function which is not executing since some required file is not on MATLAB Path.
Please run the below commands in the MATLAB Command Window to reset the path:
>> restoredefaultpath
>> rehash toolboxcache
>> savepath
If the "USERPATH" is empty, run the following command to reset it:
userpath reset
After executing these commands, restart MATLAB and check if the issue is resolved. If the problem persists, I recommend contacting MathWorks Technical Support at: https://www.mathworks.com/support/contact_us.html
Hope this helps!
Vedere anche
Categorie
Scopri di più su Startup and Shutdown in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!