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.