thisMatlab.pem. missing

6 views (last 30 days)
when starting Simulink with the matlab console i get these error messages
---
>> simulink
Warning: Error using fileread (line 23)
Could not open file C:\Users\Username\AppData\Roaming\MathWorks\MATLAB\R2020a\thisMatlab.pem. No such file or directory.
---
It seems it wasn't created during the installation for some reason.
Followed by a ton of errors:
-----------------------------------
Error in matlab.internal.cef.webwindow (line 167)
cert = char(fileread(certLoc));
Error in matlab.internal.webwindow/createImplementation (line 288)
implObj = matlab.internal.cef.webwindow(varargin{:});
Error in matlab.internal.webwindow (line 144)
obj.impl = obj.createImplementation(varargin{:});
Error in sltemplate.internal.DialogWebBrowser/createWindow
Error in sltemplate.internal.DialogWebBrowser
Error in sltemplate.internal.GalleryBrowserFactory.create
Error in sltemplate.internal.GalleryController
Error in sltemplate.ui.StartPage
Error in sltemplate.ui.StartPage
Error in sltemplate.ui.StartPage/instance
Error in sltemplate.ui.StartPage/getInstance
Error in sltemplate.ui.StartPage/doShow
Error in sltemplate.ui.StartPage.showCustomView
Error in sltemplate.ui.StartPage>@()sltemplate.ui.StartPage.showCustomView('Start',varargin{:})
Error in sltemplate.ui.StartPage/showWithFallback
Error in sltemplate.ui.StartPage.show
> In sltemplate.ui/StartPage/showWithFallback
In sltemplate.ui/StartPage/show
---------------------------------------------
At that point the simulink library browser opens, but nothing else.
If i open an already created simulink file simulink does open, despite matlab showing error messages again, but then the toolstrip area is just blank and i can't open the library browser.
Error messages when opening simulink file:
----------------------------------------------------
Error using fileread (line 23)
Could not open file C:\Users\Username\AppData\Roaming\MathWorks\MATLAB\R2020a\thisMatlab.pem. No such file or directory.
Error in matlab.internal.cef.webwindow (line 167)
cert = char(fileread(certLoc));
Error in matlab.internal.webwindow/createImplementation (line 288)
implObj = matlab.internal.cef.webwindow(varargin{:});
Error in matlab.internal.webwindow (line 144)
obj.impl = obj.createImplementation(varargin{:});
Error in Simulink.messageviewer.internal.CEFBrowserDialog
Error in Simulink.messageviewer.internal.BrowserDialogFactory.create
Error in slmsgviewer
Error in slmsgviewer/PersistentInstance
Error in slmsgviewer.processRecord
Error in Simulink.SLXPartHandler/pExecute (line 104)
warning(identifier,'%s',E.message);
Error in Simulink.SLXPartHandler/doLoad (line 48)
pExecute(obj(i),packager,cb,'Load',logger);
Error in Simulink.SLXPartHandlerRegistrar/executeLoadCallbacks (line 86)
doLoad(obj.getHandlers,packager);
Error in slxPackager/executeLoadCallbacks
Error in slprivate (line 11)
[varargout{1:nargout}] = feval(function_name, varargin{1:end});
Error in sltemplate.internal.request.openModelFile
Error in SLStudio.Utils.openModelWithProjectCheck (line 32)
sltemplate.internal.request.openModelFile(modelFile);
Error in openmdl (line 17)
evalin('base', cmd);
Error in openslx (line 9)
out = openmdl(filename);
Error in open (line 142)
feval(openAction,fullpath);
Error in uiopen (line 159)
open(fn);
-------------------------------------------------------------
My version information:
ver
-----------------------------------------------------------------------------------------------------
MATLAB Version: 9.8.0.1323502 (R2020a)
MATLAB License Number: (my license number)
Operating System: Microsoft Windows 10 Education Version 10.0 (Build 18363)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
MATLAB Version 9.8 (R2020a)
Simulink Version 10.1 (R2020a)
Statistics and Machine Learning Toolbox Version 11.7 (R2020a)
Symbolic Math Toolbox Version 8.5 (R2020a)
-----------------------------------------------------------------------------------------------------------
Is there a way to create "thisMatlab.pem." manually or let matlab recreate it, there seems to be people with a similiar problem here, but that question was never answered.

Accepted Answer

Mathias Grünewald
Mathias Grünewald on 25 Sep 2020
Alright, bug was caused by my name which includes a non ASCII letter (german 'ü'). That wouldn't have been a problem, if i didnt use the microsoft account from my university which sets the user name to my real name. Thus in a lot of cases the path to certain folders included a non ASCII letter which Matlab certainly didnt like.
Solution for me was to reinstall windows and to not use my Microsoft account given by the university. Another solution that should work is adding another user - which i sadly wasn't able to due to OS restrictions apparently set by the faculty, that provides the license for windows.
Atleast now Matlab and Simulink work as intended. Hope that helps if someone has a similiar issue.
PS: Something that i should have mention is that the extraction of the Matlab download file also didn't work correctly and i had to download and extract it on another pc and then copy it to my own pc. Should have stopped there, but i guess i'm more of an experimental scientist.

More Answers (1)

Sahithi Kanumarlapudi
Sahithi Kanumarlapudi on 1 Jun 2020
Edited: Sahithi Kanumarlapudi on 3 Jun 2020
Hi,
You could try deleting R2020a folder in C:\Users\ \AppData\Roaming\MathWorks\MATLAB - link, or refreshing the file system caches - link.
in case, none of the above options work, you should try re-installing MATLAB.
For installation and license related issues, contact MathWorks support team at
  1 Comment
Mathias Grünewald
Mathias Grünewald on 3 Jun 2020
Hello Mr./Mrs Kanumarlapudi,
First of all thank you for your reply, second i probably should have stated that this is just a copy paste of my support ticket to maybe help users that also experience this issue, since i didnt find too many helpful posts. After some messaging the most likely cause for these errors is that my username has non-ASCII letters included ('ü') - i use Win 10 Education and an Azure account from my university, so sadly there is no way for me to change the account name or create another local account.
I'll try to reinstall my system and then reply if that fixed the issue.
Kind regards,
MG

Sign in to comment.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!