SolidWorks Crashing - Strange Behavior

Cbecks Design
Posts: 31
Joined: Fri Aug 05, 2022 5:46 pm
Answers: 0
x 7
x 16

SolidWorks Crashing - Strange Behavior

Unread post 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?
Attachments
Part Crashing.png
Cbecks Design
Posts: 31
Joined: Fri Aug 05, 2022 5:46 pm
Answers: 0
x 7
x 16

Re: SolidWorks Crashing - Strange Behavior

Unread post 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...)
Cbecks Design
Posts: 31
Joined: Fri Aug 05, 2022 5:46 pm
Answers: 0
x 7
x 16

Re: SolidWorks Crashing - Strange Behavior

Unread post by Cbecks Design »

I don't understand why opening an older part first would fix the problem.
User avatar
AlexLachance
Posts: 2133
Joined: Thu Mar 11, 2021 8:14 am
Answers: 17
Location: Quebec
x 2291
x 1965

Re: SolidWorks Crashing - Strange Behavior

Unread post 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.
User avatar
Frederick_Law
Posts: 1931
Joined: Mon Mar 08, 2021 1:09 pm
Answers: 8
Location: Toronto
x 1614
x 1454

Re: SolidWorks Crashing - Strange Behavior

Unread post 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.
Cbecks Design
Posts: 31
Joined: Fri Aug 05, 2022 5:46 pm
Answers: 0
x 7
x 16

Re: SolidWorks Crashing - Strange Behavior

Unread post 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.
User avatar
zxys001
Posts: 1074
Joined: Fri Apr 02, 2021 10:08 am
Answers: 4
Location: Scotts Valley, Ca.
x 2294
x 988
Contact:

Re: SolidWorks Crashing - Strange Behavior

Unread post 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?
"Democracies aren't overthrown; they're given away." -George Lucas
“We only protect what we love, we only love what we understand, and we only understand what we are taught.” - Jacques Cousteau
Cbecks Design
Posts: 31
Joined: Fri Aug 05, 2022 5:46 pm
Answers: 0
x 7
x 16

Re: SolidWorks Crashing - Strange Behavior

Unread post 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).
User avatar
SPerman
Posts: 1975
Joined: Wed Mar 17, 2021 4:24 pm
Answers: 13
x 2148
x 1796
Contact:

Re: SolidWorks Crashing - Strange Behavior

Unread post 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!
preview.gif
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
Cbecks Design
Posts: 31
Joined: Fri Aug 05, 2022 5:46 pm
Answers: 0
x 7
x 16

Re: SolidWorks Crashing - Strange Behavior

Unread post 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)
image.png
User avatar
AlexLachance
Posts: 2133
Joined: Thu Mar 11, 2021 8:14 am
Answers: 17
Location: Quebec
x 2291
x 1965

Re: SolidWorks Crashing - Strange Behavior

Unread post 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.
Cbecks Design
Posts: 31
Joined: Fri Aug 05, 2022 5:46 pm
Answers: 0
x 7
x 16

Re: SolidWorks Crashing - Strange Behavior

Unread post 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...)
User avatar
AlexLachance
Posts: 2133
Joined: Thu Mar 11, 2021 8:14 am
Answers: 17
Location: Quebec
x 2291
x 1965

Re: SolidWorks Crashing - Strange Behavior

Unread post 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.
Cbecks Design
Posts: 31
Joined: Fri Aug 05, 2022 5:46 pm
Answers: 0
x 7
x 16

Re: SolidWorks Crashing - Strange Behavior

Unread post 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.
User avatar
SPerman
Posts: 1975
Joined: Wed Mar 17, 2021 4:24 pm
Answers: 13
x 2148
x 1796
Contact:

Re: SolidWorks Crashing - Strange Behavior

Unread post 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.
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
User avatar
AlexLachance
Posts: 2133
Joined: Thu Mar 11, 2021 8:14 am
Answers: 17
Location: Quebec
x 2291
x 1965

Re: SolidWorks Crashing - Strange Behavior

Unread post 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 :P 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.
Cbecks Design
Posts: 31
Joined: Fri Aug 05, 2022 5:46 pm
Answers: 0
x 7
x 16

Re: SolidWorks Crashing - Strange Behavior

Unread post 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.
User avatar
Frederick_Law
Posts: 1931
Joined: Mon Mar 08, 2021 1:09 pm
Answers: 8
Location: Toronto
x 1614
x 1454

Re: SolidWorks Crashing - Strange Behavior

Unread post 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.
User avatar
AlexLachance
Posts: 2133
Joined: Thu Mar 11, 2021 8:14 am
Answers: 17
Location: Quebec
x 2291
x 1965

Re: SolidWorks Crashing - Strange Behavior

Unread post by AlexLachance »

Cbecks Design wrote: Mon Sep 19, 2022 2:47 pm THAT'S interesting.
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.
Cbecks Design
Posts: 31
Joined: Fri Aug 05, 2022 5:46 pm
Answers: 0
x 7
x 16

Re: SolidWorks Crashing - Strange Behavior

Unread post 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.
Attachments
Windows Security Update Crashes SolidWorks 2022.09.19.png
Post Reply