krathjen / studiolibrary

Studio Library
https://www.studiolibrary.com
GNU Lesser General Public License v3.0
353 stars 141 forks source link

Maya suffers a hard crash wehe I launch Studio Library #336

Open 1fth3n3ls3 opened 3 years ago

1fth3n3ls3 commented 3 years ago

Maya simply close without any error message when I try to open a fresh new instalation of Studio library 2.7.1. That happens in Maya 2020 (also in 2022 in python 2.7 compliant mode). After trying to find what can be causing the issue it seem it has to be with threading module and also QTrhead, one of them is use in sendAnalytics function and the other one is the method who checks for updates. It seems to be a known issue https://www.mail-archive.com/python_inside_maya@googlegroups.com/msg18861.html but is the first time I'm experiencing in a new installation. Commenting this two calls Studio Library show the window without problems and Maya don't crash. Don't know if something in my local configuration contributes to generate this error.

krathjen commented 3 years ago

Hi,

Thanks for the information.

What OS version are you on, and have you tried the latest version (2.9+)?

https://github.com/krathjen/studiolibrary/releases/tag/2.9.6.b3

Cheers,

Kurt

1fth3n3ls3 commented 3 years ago

I'm working in windows, I will give a try to the beta to see if solves the problem.

Edit: The same error still happens. It's really kind of weird...

letser09 commented 3 years ago

any fix for this? I have a project that requires studio library.

Gooseman77 commented 3 years ago

I too have the same crash. I just bought a new MSI GE76 laptop ( 11980HK CPU ), and upon installation of Maya 2017 and StudioLibrary. As soon as I click on the Studio Library Icon, it crashes straight to desktop without an error message. Following the original posters advice I commented out

\studiolibrary-2.7.1\src\studiolibrary\utils.py (The code inside def sendAnalytics, I just removed it ) \studiolibrary-2.7.1\src\studiolibrary\librarywindow.py ( The code inside def CheckForUpdates, I just removed it )

works fine now :)

Gooseman77 commented 3 years ago

any fix for this? I have a project that requires studio library.

yes, it works if you follow my instructions I posted below.

sj-bt commented 3 years ago

Thanks Gooseman77! We were also experiencing the crash with Maya 2019.3.1, and instead of commenting out functions we were able to prevent the crash by creating a config.json file in ./src/studiolibrary/config and disabling analytics only (didn't need to disable CheckForUpdates, though this is also a config parameter). This was our file:

{ "analyticsEnabled": false }

ladaojeifang commented 3 years ago

set OPENSSL_ia32cap=~0x20000000

Chadjperth commented 1 year ago

Thanks, @Gooseman77 ! Just to add, using studiolibrary-2.9.6.b3 , crashing when opening SL in maya 2019, my solution was pretty much the same. deleting the sendAnalytics procedure, line 207 in the librarywindow.py file, found in file path \studiolibrary-2.9.6.b3\src\studiolibrary. And that's it. Might just be a problem with newer CPUs.

matthew60707 commented 1 year ago

@Gooseman77
Hello, after I tested your method, I still can't open it. I think I may have done something wrong, could you please upload your profile and send it directly to me

RBAnimator commented 1 year ago

Was anyone able to upload the fixed version? Still crashing 2022

AliceMTsolver commented 1 year ago

Found a good fix from the people at Animbot and Studio Library. Edit the environment variables on your windows machine and create a new one with the following name: OPENSSL_ia32cap and the following value: ~0x20000000 This will disable a feature in newer CPU's that makes some Maya Python based plugins fail to start (you need to restart your machine for these variables to take effect)

mamayjohn commented 11 months ago

This is a video link for those looking for a fix

https://www.youtube.com/watch?v=iQIGEeUTO8k&t=40s