Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(EMSUSD-1504) Warning Spam when re-loading mayaUsdPlugin #3859

Open
dj-mcg opened this issue Jul 19, 2024 · 5 comments
Open

(EMSUSD-1504) Warning Spam when re-loading mayaUsdPlugin #3859

dj-mcg opened this issue Jul 19, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@dj-mcg
Copy link
Collaborator

dj-mcg commented Jul 19, 2024

Describe the bug
If the mayaUsdPlugin is re-loaded (either by unloading and loading the plugin or by opening additional maya files that will attempt to load the plugin implicitly), there are almost 400 lines of warning spewage issued to the script editor:

// Warning: file: /dist/sw/maya/2023.update3/scripts/others/registerPluginResource.mel line 81: Plug-in "mayaUsdPlugin" resource identifier "kButtonSave" already registered, it will be replaced
// Warning: file: /dist/sw/maya/2023.update3/scripts/others/registerPluginResource.mel line 81: Plug-in "mayaUsdPlugin" resource identifier "kButtonSet" already registered, it will be replaced
// Warning: file: /dist/sw/maya/2023.update3/scripts/others/registerPluginResource.mel line 81: Plug-in "mayaUsdPlugin" resource identifier "kButtonCancel" already registered, it will be replaced...

This is making it difficult for our users to identify warnings and errors that they may need to address

Steps to reproduce
Steps to reproduce the behavior:

  1. Open maya
  2. Load mayaUsdPlugin.so
  3. Unload mayaUsdPlugin.so
  4. Re-load mayaUsdPlugin.so
  5. Observe the script editor output

Expected behavior
No warnings are issued upon subsequent mayaUsdPlugin loads

Specs (if applicable):

  • Linux EL9
  • gcc 9.3.1
  • Maya 2023.3
  • Maya USD commit SHA dev at 15ce0537
  • Internal Dev USD build
@dj-mcg dj-mcg added the bug Something isn't working label Jul 19, 2024
@wallworm
Copy link
Collaborator

Thanks for reporting. We'll look into it.

@santosd santosd assigned santosd and unassigned santosg87 Jul 31, 2024
@wallworm
Copy link
Collaborator

wallworm commented Aug 2, 2024

Answer from the devs is that unloading/reloading the plugin in a single session has never really been supported and may run into unexpected issues. Regardless, I'll ask if there is a way to minimize this message.

@dj-mcg
Copy link
Collaborator Author

dj-mcg commented Aug 2, 2024

Yes, the load/unload/reload steps were for simplicity. In practice, we typically run into this when a user opens a Maya file in a running instance of Maya. If the file contains data that will trigger the plugin to load, the same spewage will occur when it is opened if the plugin is already loaded. Is there a way around that?

@wallworm
Copy link
Collaborator

wallworm commented Aug 2, 2024

Thanks for more context. I'm bringing this back to the devs.

@santosd
Copy link
Collaborator

santosd commented Aug 2, 2024

Yes, the load/unload/reload steps were for simplicity. In practice, we typically run into this when a user opens a Maya file in a running instance of Maya. If the file contains data that will trigger the plugin to load, the same spewage will occur when it is opened if the plugin is already loaded. Is there a way around that?

Hi @dj-mcg , I am attempting to repro this on my end but opening a Maya file that contains USD data into an instance of Maya that already has the plug-in loaded doesn't seem to attempt a reload of the plug-in. Are you running any startups scripts in these files that attempt to load the plug-in? If I attempt to load the plugin with an eval-deferred line, I get a message that the plugin is already loaded.
evalDeferred("loadPlugin(\"mayaUsdPlugin\", \"mayaUsdPlugin\")");
// Warning: line 1: Plug-in, "mayaUsdPlugin.mll", is already loaded. Skipped.
I plan on logging an issue for this, but wanted to understand the issue a bit better. I am able to repro the warnings if I unload/reload the scene file, but that has been the only way so far.

@santosd santosd changed the title Warning Spam when re-loading mayaUsdPlugin (EMSUSD-1504) Warning Spam when re-loading mayaUsdPlugin Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants