MATLAB Answers

thisMatlab.pem. missing

30 views (last 30 days)
Mathias Grünewald
Mathias Grünewald on 29 May 2020
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.

  0 Comments

Sign in to comment.

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.

Products


Release

R2020a