Skip to main content

Hello OpticStudio colleagues,



My name is Vadim and i'm using OpticStudio 21.1 and 16.5 on different machines.



Following problem happens with 16.5 that I tried but cannot find a solution.



For some reason, OpticStudio 16.5 stopped launching - first screen is being opened, license is checked and the app is shut down.



After hours of checking, I found out that suddenly there's some compatibility problem with Microsoft Net Framework (Windows 10).



In particular - clr.dll and mscorlib.ni.dll files.



What I've tried to do is:



1. Re-booting PC



2. Re-installing OS 16.5



3. Uninstalling any Windows 10 updates related to Net Framework



4. Repairing Net Framework (doesn't help)



5. Uninstalling and installing Net Framework (seems - not possible in Windows 10)



Maybe something else I am forgetting.



Has anyone experienced this issue before?



Any advice would be appreciated...



 



Thanks in advance,



Best regards,



Vadim



 

Hello! 



I'm the license and install specialist here at Zemax. So far I have not seen a similar problem with older releases in Windows 10. How did you find it was NET related? Do you have any error messages from OpticStudio or windows event logs you can attach to this thread? Also, there may be an error logged in Documents\zemax\license folder. Attach any Key_StatXXX.log files from that folder to a reply. 



Thanks and best regards,



Don D


Hi Don,



Thanks so much for your reply and help.



I've thought of Net Framework due to 2 reasons:



1. The latest Windows 10 update (and the only update between the time it was working and time it stopped) was KB4598242 for 3.5 and 4.8 .NET Framework



2. Through Win 10 EventViewer I was able to identify the problematic modules: mscorlib.ni.dll and clr.dll



Here let me attach screenshot for mscorlib.ni.dll (sorry for the log being in Russian, not sure how to automatically translate this to English)





After that I was able to find clr.dll and mscorlib.dll in Microsoft.Net corresponding folder.



But now, after you pointing out this might be a license issue, I've looked at key_stat files - and indeed, it seems odd.



I've got 2 key_stat files from today (attaching them) and seems there's some indication that there was an error.



Strange, because when launching, OS 16.5 didn't mention about any key problems.



 



Thanks so-so much for your help!



Best regards,



Vadim



 


Thanks!



No, this isn't a license issue as I see it's finding the license just fine. Opticstudio just stores some logs in that license folder. The key_Stat logs are pretty generic unfortunately but it does indicate .NET a well.



I checked and have that same Windows 10 update installed. 16.5 works just fine for me ao it's not an outright compatibility issue at least. 



Perhaps the update didn't install correctly? You could remove it and reinstall it - A direct download is available hee:  



 https://www.catalog.update.microsoft.com/Search.aspx?q=KB4598242



It also wouldnt hurt to repair the Visual C 2015 or 2017 redistributables (whichever you have). 



https://my.zemax.com/Knowledge-Base/kb-article/?ka=KA-01512#nothingvc


Hi Don,



 



Thanks so much for your advices and help.



First of all, I'm sorry, I wrote wrong number of Win 10 Update - KB4598299 is a correct one.



Nevetheless, I followed your advice and basicaly deleted and then manually installed all the recent updates.



As well did it with all the needed Visual C files.



Unfortunately - no progress, still the same.



 



Since I've already also tried even restoring the system to a day before the updates and even this didn't help, I'm thinking about reastoring to initial condition.



No matter how much I don't want this, I guess this is the fastest way to get it back up again :)



 



Thanks so much!



 



Best regards,



Vadim 


Also, let me add if it helps - same thing happened couple of months ago on another PC.



At that time I had there 2 licenses and 2 OpticStudio versions: 16.5 and 20.3 (as I recall)



While 16.5 stopped working like now, 20.3 continued working with no problem at all.



 



Not sure, if this can lead to some idea - but just in case.



 



Thanks in advance,



 



Best regards,



Vadim


Hi everyone,



 



Ok, seems the problem is confirmed by Microsoft:



https://www.windowslatest.com/2021/02/06/microsoft-confirms-windows-10-update-bug-is-crashing-some-apps/



 



Thanks in advance,



 



Best regards,



Vadim


Thanks! 



I tried installing this update and 16.5 continues to work fine for me - Which 16.5 service pack release do you have? You can open the Zemax LIcense Manager and tell me the date at the top of it to get it. 



Take care



Don D


Hi Don,



Thanks so much for your help!



Awesome, that it doesn't impact your side - frankly, I truly hope I'm the only one.



I tried to do it on 15.5, 16.5 SP1 and SP3 - all of them experienced the same issue (21.1 is working just fine).



Tried also reinstalling them.



Here's the one that I'm using now: 'December 14, 2016' (date at the top of License Manager)



 



Thanks in advance,



 



Best regards,



Vadim


Ok thanks! We so far havent had other reports like this. However, most people with 16.5 aren't eliguble to contact us for support any longer anyway, so we may not have a way to know for sure. I tried that release too and no problems. I wish i had some other trick to share, but can't think of anything else at this time, sorry. You may have to wait to see if Microsoft puts out a replacement update. 



Best regards,



Don D


There are new updates to Windows and .NET out today, BTW. Feb 9


Hi Don, hi Mark,



Thanks so much for your advices, info and help. 



Yes, installed most recent updates, but it didn't help.



Solved this problem, finally, let me post this solution, however, I still cannot find any logic or intrinsic reason why it worked.



1. I created brand new account on my Win 10 and successfully launched OS 16.5



2. After copying all my Documents/Zemax files from old account to new one OS 16.5 started crushing again



--> so I figured out the issue was in some file in Documents/Zemax folder



Now it get's really strange



By checking and copying files one by one from old account to the new one, I found that the problem was in ~10 last Macros .zpl files, if the order will be by name - to me it was .zpl26 and onwards.



Frankly, I have no idea why, but deleting these files solved the problem.



Sorry to bother you and everyone with this one, hope I will be the only one with this issue and here's the strange solution.



I will try to think about the reason further, so I can add some info if I can.



 



Thanks in advance,



Vadim



 


Wow, odd issue. Thanks for sharing the fix! Sometimes we do have people rename the Zemax folder entirely to force a recopy of all samples and rule out corrupt files. I don't understand why macros might cause this but glad you found the cause!  


Reply