Error message whenever stepwise is run

As a simple test, I did the following:
dog =
1 2 6
2 3 7
3 4 8
4 5 9
5 6 10
cat =
101
102
103
104
105
Running stepwise(dog, cat) results in the following error:
Message Catalog MATLAB:hg:uicontrol was not loaded from the file. Please check file location, format or
contents
Caught "std::exception" Exception message is:
Message Catalog MATLAB:gbtobjects was not loaded from the file. Please check file location, format or contents
Caught "std::exception" Exception message is:
Message Catalog MATLAB:gbtobjects was not loaded from the file. Please check file location, format or contents
Caught "std::exception" Exception message is:
Message Catalog MATLAB:gbtobjects was not loaded from the file. Please check file location, format or contents

15 Comments

We need to see the line that generate this error (the line that calls stepwise) and the inputs.
Thanks for the reply. Actually I gave all of that information. The line that calls stepwise is:
stepwise(dog, cat)
The inputs are the two test variables, dog and cat. I should say, though, that I get this error with every input variables I have tried.
The error message contains stepwise(dot,cat) but that doesn't necessarily mean that's the line you called that caused the error.
Based on these answers below, you may be missing an fclose(fid).
Thanks for following up, Adam. I think I am not doing a good job of explaining what I am doing. If I start with no variables in the workspace, create the "dog" and "cat" variables, and then run stepwise(dog, cat) then I get the error. In other words, the following code generates the error every time:
clear
dog = [1:5; 2:6; 6:10];
cat = 101:105;
dog = dog'
cat = cat'
stepwise(dog, cat)
There are no other lines of code.
When I run the commands you list above it opens the user interface and does not give any errors. I am running ver 2020A. So it does not seem to be a general bug, but something specific to your setup or situation.
Thanks, Jon. I agree -- I doubt that this is a general bug.
It must be some setting of mine that is causing trouble. I'm just not sure how to figure out what it is. :-)
Did you look into those links I provided?
Other users got similar error message when too many files were open using fopen.
If that's the problem, "fclose all" should fix it.
Mark Walton
Mark Walton on 14 Sep 2020
Edited: Mark Walton on 14 Sep 2020
Thanks Adam,
Running "fclose all" didn't solve it. Interestingly, the following command generates no error:
stepwisefit(dog, cat)
That leads me to wonder if, perhaps, the problem is some graphics setting that got changed, That is, "stepwise" generates an error because it produces a GUI interface, but "stepwisefit" works fine, because it doesn't.
Maybe?
In case this helps, running "info = rendererinfo(gca)" yields:
GraphicsRenderer: 'OpenGL Hardware'
Vendor: 'NVIDIA Corporation'
Version: '4.6.0 NVIDIA 388.16'
RendererDevice: 'NVS 315/PCIe/SSE2'
Details: [1×1 struct]
Does the problem persist after restarting Matlab?
Have you tried setting opengl software?
The problem persists after restarting Matlab. I haven't tried setting opengl software. I am not completely sure how to do that. (Sorry.)
Type opengl info and copy that info into a text file so you know what you started with.
Then type opengl software to change from hardware to software.
Likewise for other versions
Try
restoredefaultpath
rehash toolboxcache
and then run your code with stepwise(). If it works, then you probably have a conflicting function from a third-party toolbox on your regular MATLAB path.
Thanks Adam and Walter,
Unfortunately, neither of those worked. After running "opengl software" I still can't run stepwise and now I get an error message when I run "opengl info", "opengl hardware", or "opengl hardwarebasic".
The error message is:
Message Catalog MATLAB:class was not loaded from the file. Please check file location, format or contents
Even running "opengl info" yields that error message now. "Stepwise fit" still works.
This suggestion might be helpful
The file described in that answer was found in the directory below on my system (r2019b)
C:\Program Files\MATLAB\R2019b\resources\MATLAB\en
If that file is where it should be, then perhaps you should contact tech support.
Once you get the error message about message catalog you probably have to quit MATLAB and restart it.

Sign in to comment.

Answers (0)

Categories

Find more on Graphics Performance in Help Center and File Exchange

Products

Release

R2020a

Asked:

on 14 Sep 2020

Commented:

on 15 Sep 2020

Community Treasure Hunt

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

Start Hunting!