Page 1 of 1
SolidWorks Crashing - Strange Behavior
Posted: Thu Sep 08, 2022 11:29 pm
by Cbecks Design
Created this extremely simple part and saved it.
Now any time I open that part SolidWorks crashes.
What's really strange - is if I open a DIFFERENT, older SolidWorks part first, then I can open this one without crashing.
Any insights why just opening this part would crash SolidWorks?
And/or why opening a regular part first would then allow this one to open?
Re: SolidWorks Crashing - Strange Behavior
Posted: Fri Sep 09, 2022 12:01 am
by Cbecks Design
UPDATE:
Running SolidWorks Rx...
"launch SOLIDWORKS in Software OpenGL mode" did not solve the problem.
But "Click here to launch SOLIDWORKS while bypassing the Tools/Options settings'"
did solve the problem (so far).
Ugh... that means going back to default settings?
I spent hours getting my settings set up right.
(And did not back them up...)
Re: SolidWorks Crashing - Strange Behavior
Posted: Fri Sep 09, 2022 12:25 am
by Cbecks Design
I don't understand why opening an older part first would fix the problem.
Re: SolidWorks Crashing - Strange Behavior
Posted: Fri Sep 09, 2022 7:30 am
by AlexLachance
Hey Cbecks,
Have a look at your messages checked to not show again, most likely one in there causing the crash.
Kind of odd that you can open it after opening another part.
Re: SolidWorks Crashing - Strange Behavior
Posted: Fri Sep 09, 2022 8:52 am
by Frederick_Law
Copy the file, see if still crash.
If it does, delete the CS and try again.
Anything else in the file? Macro?
Disable addin you don't use.
Re: SolidWorks Crashing - Strange Behavior
Posted: Sat Sep 10, 2022 12:57 am
by Cbecks Design
AlexLachance wrote: ↑Fri Sep 09, 2022 7:30 am
Have a look at your messages checked to not show again, most likely one in there causing the crash.
Hi Alex. I checked all the "Dismissed Messages" so they would show again.
Opening the file still crashed and no messages shown.
Re: SolidWorks Crashing - Strange Behavior
Posted: Sat Sep 10, 2022 1:58 pm
by zxys001
Cbecks Design wrote: ↑Sat Sep 10, 2022 12:57 am
Hi Alex. I checked all the "Dismissed Messages" so they would show again.
Opening the file still crashed and no messages shown.
Hi Checks, can you share (attach) your model here so we can test?
Re: SolidWorks Crashing - Strange Behavior
Posted: Mon Sep 12, 2022 4:00 pm
by Cbecks Design
zxys001 wrote: ↑Sat Sep 10, 2022 1:58 pm
Hi Checks, can you share (attach) your model here so we can test?
Thanks for offering to look at it.
It's actually any file I create now. Even just a simple cube. I create it, save it, quit SolidWorks. Launch SolidWorks again, try to open it, SolidWorks crashes.
Will try resetting Custom Settings now (resetting the SolidWorks registry).
Re: SolidWorks Crashing - Strange Behavior
Posted: Mon Sep 12, 2022 4:13 pm
by SPerman
Do you have PDM?
I have a strange PDM bug. If the PDM tab is set to "preview" in the "File-Open" dialog, and I click on a drawing file, Solidworks crashes.
I am a GIF. Click me!
Re: SolidWorks Crashing - Strange Behavior
Posted: Mon Sep 12, 2022 6:11 pm
by Cbecks Design
SPerman wrote: ↑Mon Sep 12, 2022 4:13 pm
Do you have PDM?
Not using PDM. Found the problem though. There was a 3rd party Add-In that was seemingly the culprit.
Clearing my User Registry Settings allowed the system to throw up the Error message pertaining to that.
(So good idea
@AlexLachance , but just un-checking the Dismissed Messages did not allow that particular message to appear. I had to completely reset the SolidWorks registry in order to see it - following instructions in this
Link).
Then I restored all my custom settings EXCEPT "System options".
And now I can open all my old files it seems.
(Restoring System options would make it crash again)
Re: SolidWorks Crashing - Strange Behavior
Posted: Tue Sep 13, 2022 7:18 am
by AlexLachance
Cbecks Design wrote: ↑Mon Sep 12, 2022 6:11 pm
Not using PDM. Found the problem though. There was a 3rd party Add-In that was seemingly the culprit.
Clearing my User Registry Settings allowed the system to throw up the Error message pertaining to that.
(So good idea @AlexLachance , but just un-checking the Dismissed Messages did not allow that particular message to appear. I had to completely reset the SolidWorks registry in order to see it - following instructions in this
Link).
Then I restored all my custom settings EXCEPT "System options".
And now I can open all my old files it seems.
(Restoring System options would make it crash again)
image.png
That was what I was going to suggest,to clear your registry.
Hopefully you have a fresh restore-file to use so you do not have to recreate your entire settings.
Re: SolidWorks Crashing - Strange Behavior
Posted: Tue Sep 13, 2022 9:34 pm
by Cbecks Design
AlexLachance wrote: ↑Tue Sep 13, 2022 7:18 am
That was what I was going to suggest,to clear your registry.
Hopefully you have a fresh restore-file to use so you do not have to recreate your entire settings.
Hah. No, I did not.
I had no idea the SolidWorks Custom Settings could become corrupt!
(What will they think of next?)
So instead I saved out 7 versions of my custom settings.
One with all the settings intact. And one with each of settings type removed. Meaning one without System Options. One without Toolbar Layout. One without Keyboard Shortcuts, etc. And I tested each settings package to see which ones worked / didn't work. That's how i found it was just the System Options that was causing the error. So now, I fixed the error and have ALL my other settings in tact! (And backed up...)
Re: SolidWorks Crashing - Strange Behavior
Posted: Wed Sep 14, 2022 7:10 am
by AlexLachance
Cbecks Design wrote: ↑Tue Sep 13, 2022 9:34 pm
Hah. No, I did not.
I had no idea the SolidWorks Custom Settings could become corrupt!
(What will they think of next?)
So instead I saved out 7 versions of my custom settings.
One with all the settings intact. And one with each of settings type removed. Meaning one without System Options. One without Toolbar Layout. One without Keyboard Shortcuts, etc. And I tested each settings package to see which ones worked / didn't work. That's how i found it was just the System Options that was causing the error. So now, I fixed the error and have ALL my other settings in tact! (And backed up...)
Once you have it, save one that will never change that will become a start-up template, and one that will be 'yours'. This way, you ensure having a custom settings that is proper for all the company and that never corrupts itself and one that is the same as the company but with it's customization that belong to you.
Re: SolidWorks Crashing - Strange Behavior
Posted: Wed Sep 14, 2022 1:28 pm
by Cbecks Design
AlexLachance wrote: ↑Wed Sep 14, 2022 7:10 am
Once you have it, save one that will never change that will become a start-up template, and one that will be 'yours'. This way, you ensure having a custom settings that is proper for all the company and that never corrupts itself and one that is the same as the company but with it's customization that belong to you.
Mine are always changing it seems. Tweaking one setting here, another setting there occasionally.
I'll have to save out a new Custom Settings file any time I modify any setting at all.
Otherwise I'll never have the latest one if it gets corrupted again.
Incremental backups.
Re: SolidWorks Crashing - Strange Behavior
Posted: Wed Sep 14, 2022 1:38 pm
by SPerman
In theory, I export a settings file every time I make a change. In reality, it doesn't happen as often as it should.
Re: SolidWorks Crashing - Strange Behavior
Posted: Wed Sep 14, 2022 1:44 pm
by AlexLachance
Cbecks Design wrote: ↑Wed Sep 14, 2022 1:28 pm
Mine are always changing it seems. Tweaking one setting here, another setting there occasionally.
I'll have to save out a new Custom Settings file any time I modify any setting at all.
Otherwise I'll never have the latest one if it gets corrupted again.
Incremental backups.
Tweaking one setting here and there isn't too bad compared to recreating an entire setting file
But yeah, incremental backups is a good alternative too, it is how we used them here at first. setting_user_date was our "incrementing". We stopped doing these because we'd end up carrying over the corruption. So, we have the main setting that is the "standard" where I work, and then we tweak that setting to change things at our preference and save it in a new file with our name.
Reason we stopped also is that we noticed that the corruption sometimes came from an even earlier save that hadn't caused issue up until now. SolidWorks Registry wipe is done just about every 6 months on our computers to reduce risk of corruption.
Re: SolidWorks Crashing - Strange Behavior
Posted: Mon Sep 19, 2022 2:47 pm
by Cbecks Design
AlexLachance wrote: ↑Wed Sep 14, 2022 1:44 pm
Reason we stopped also is that we noticed that the corruption sometimes came from an even earlier save that hadn't caused issue up until now.
THAT'S interesting.
AlexLachance wrote: ↑Wed Sep 14, 2022 1:44 pm
SolidWorks Registry wipe is done just about every 6 months on our computers to reduce risk of corruption.
That's also very interesting. Thanks for sharing this. I've set a reminder to do the same.
It was about 9 months when mine became corrupted.
Re: SolidWorks Crashing - Strange Behavior
Posted: Mon Sep 19, 2022 4:24 pm
by Frederick_Law
You can "test" which part of setting cause the crash.
When you restore, don't restore everything. Only restore one group. Until you find one that crash.
Re: SolidWorks Crashing - Strange Behavior
Posted: Tue Sep 20, 2022 8:43 am
by AlexLachance
Let's not forget I'm also "assuming" a bit here too. Maybe the registry setting wasn't affecting the setting that was corrupted too, all I can say for certainty is that:
-Restoring settings did not fix the issues when they began.
-Saving a corrupt setting and trying to partially restore it to find the source of the issue did not change anything as the issue arose as soon as the settings were partially reloaded.
-Doing a registry wipe fixed the issue
If I remember correctly, I got the casual "Template corruption" excuse from my VAR when I reached out to them about this issue, without further any explication as to how to fix or work around the issue.
I recreate my entire settings from scratch every year I upgrade, just because SolidWorks is so great at causing issues just because they "remodeled" something. To do so, I take screenshots from all my settings tab and then recreate it in the new version. It's also a good exercice to notice the new settings and what has changed.
Re: SolidWorks Crashing - Strange Behavior
Posted: Tue Sep 20, 2022 5:39 pm
by Cbecks Design
AlexLachance wrote: ↑Tue Sep 20, 2022 8:43 am
-Doing a registry wipe fixed the issue
Wiping the SolidWorks part of the registry fixed my problem for a short while. However Microsoft updates seem to have broken it again.
It seems like the Security Update for Windows is the culprit.
My SolidWorks worked fine on 9/17/22
9/19/22 I logged in, Microsoft did their forced updates, and voila. SolidWorks doesn't work anymore. Back to crashing on File->Open.