Profiler will not open

Until recently I did not have any issues with opening and running the Profiler on matlabR21b, however, since last week I have not been able to open it, there is always a window that opens and it looks like Profiler is loading and starting, but it never loads fully and I can not click on it and use it. I tried also donwloading and isntalling the version R22a and the problem persists. I also restarted my computer and matlab numerous times.

2 Comments

Jan
Jan on 12 Jul 2022
Edited: Jan on 12 Jul 2022
"there is always a window that opens and it looks like Profiler is loading and starting, but it never loads fully" - please explain with more details, how you start the profiler and what you observe.
I click on the profiler and a new blank window on the taskbar with the name Profiler opens. But I can not click on it, nothing is shown and also when I try to close matlab it complains about running processes so it seems like it is trying to open it somehow but not succeeding.

Sign in to comment.

Answers (1)

Jan
Jan on 12 Jul 2022

0 votes

Maybe a user-defined function shadows a function used to start the profiler. Try https://www.mathworks.com/matlabcentral/fileexchange/27861-uniquefuncnames to identify shadowed toolbox functions. Do not insert folder with user-defined functions on top of the path but at the bottom.
Try restoredefaultpath (which should remove all user folders from the path - create a backup of pathdef.m before).
Removing the profile directory helps some times, but you tried to install a new Matlab version and this should create a new user folder and preferences files also.

4 Comments

thanks, I will try that later and let you know.
So I tried running the function, but I do not understand what path should I put there. I ran it without input just in my current path and it outputed a long file. Part of it is here:
-- pathdef:
C:\Users\Hana\Documents\MATLAB\pathdef.m
C:\Program Files\MATLAB\R2022a\toolbox\local\pathdef.m
-- slblocks:
C:\Program Files\MATLAB\R2022a\toolbox\simulink\blocks\sb2sl\slblocks.m
C:\Program Files\MATLAB\R2022a\toolbox\simulink\blocks\slblocks.m
C:\Program Files\MATLAB\R2022a\toolbox\stateflow\stateflow_lib\slblocks.m
C:\Program Files\MATLAB\R2022a\toolbox\comm\commutilities\slblocks.m
C:\Program Files\MATLAB\R2022a\toolbox\daq\daqblks\slblocks.m
C:\Program Files\MATLAB\R2022a\toolbox\dsp\dsputilities\slblocks.m
..................
In the output, there is not mentioned profiler anywhere so I guess this won't be a problem. The restoredefaultpath function also does not help.
Any other advices? When I run it, only thing that is shown is a window with the name Profiler on the taskbar, but I can not even click on the window to open it.
Jan
Jan on 28 Jul 2022
@Hana Krakovská: The important output of the tool to check collisions are the functions, which exist as user-defined functions and in Matlab's toolbox also. This would most likely not be the profiler.m function itself, but a subfunction called by the profiler.
Are you working with admin privileges? Then it is possible to destroy a function of Matlab's toolbox functions by accident. If this was the case, the secure method to solve this is a re-installation of Matlab and avoiding to work with admin privileges.
What happens if you press Ctrl-C during the profiler is in idle mode?
Do you have folders in your path, which are stored on a network or cloud drive?
How long did you wait?
Dear Jan, thank you for your help. In the meantime I had some windows updates after which it still did not work, but now I reinstalled everything once again and it magically works. I do not still understand what was the issue. Matlab asked me to install some additional sub-program, something to do with C and C++ compiler, so I do not know if that could have been the original problem.

Sign in to comment.

Categories

Products

Release

R2021b

Tags

Asked:

on 12 Jul 2022

Commented:

on 28 Jul 2022

Community Treasure Hunt

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

Start Hunting!