<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Maya 2023.3 hangs when loading our custom plugins at startup in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/maya-2023-3-hangs-when-loading-our-custom-plugins-at-startup/m-p/11772292#M1298</link>
    <description>&lt;P&gt;Thanks for the info.&amp;nbsp;I'll ask around internally to see if I can get clarification on why this might be happening.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Feb 2023 09:42:47 GMT</pubDate>
    <dc:creator>brentmc</dc:creator>
    <dc:date>2023-02-22T09:42:47Z</dc:date>
    <item>
      <title>Maya 2023.3 hangs when loading our custom plugins at startup</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/maya-2023-3-hangs-when-loading-our-custom-plugins-at-startup/m-p/11762949#M1295</link>
      <description>&lt;P&gt;We have been long time users of Maya and have several custom C++ plugins we've written. We are in the process of upgrading from Maya 2018 to Maya 2023.3.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been able to recompile our plugins with the 2023.3 SDK and they will load and run in Maya 2023 when I use the plug in manager. This is great. Except for...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I enabled the plugins to autoload and then restarted Maya. Maya will not restart and hangs in the process of loading the plugins. I did some further reading and found that Maya 2023 has security measures for plugins, MEL and Python. I've disabled all these and it continues to hang. There is no feedback of what its stalling on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas? Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 18:07:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/maya-2023-3-hangs-when-loading-our-custom-plugins-at-startup/m-p/11762949#M1295</guid>
      <dc:creator>karl.loveridgeRKJJN</dc:creator>
      <dc:date>2023-02-17T18:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Maya 2023.3 hangs when loading our custom plugins at startup</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/maya-2023-3-hangs-when-loading-our-custom-plugins-at-startup/m-p/11770406#M1296</link>
      <description>&lt;P&gt;Its looking like some of the initialization we have been doing in the past in the plugin start up partially might be to blame for this hang. Doing further investigating.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 15:51:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/maya-2023-3-hangs-when-loading-our-custom-plugins-at-startup/m-p/11770406#M1296</guid>
      <dc:creator>karl.loveridgeRKJJN</dc:creator>
      <dc:date>2023-02-21T15:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Maya 2023.3 hangs when loading our custom plugins at startup</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/maya-2023-3-hangs-when-loading-our-custom-plugins-at-startup/m-p/11770711#M1297</link>
      <description>&lt;P&gt;After further investigation, it appears that a convention we used to use to initialize callback's not longer works. This causes the hang:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MLL_EXPORT MStatus initializePlugin(MObject obj)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;MStatus status;&lt;BR /&gt;MFnPlugin plugin(obj, "MyPlugin", "1.1.0", "Any", &amp;amp;status);&lt;/P&gt;&lt;P&gt;status = plugin.registerCommand(cmd_ztools, MayaTools::creator);&lt;/P&gt;&lt;P&gt;if (status != MS::kSuccess)&lt;BR /&gt;{&lt;BR /&gt;MGlobal::displayError(MString(cmd_ztools) + " command failed to initialize");&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;MGlobal::displayInfo(MString(cmd_ztools) + " command initialized");&lt;BR /&gt;scriptjob_newSceneOpened = MEventMessage::addEventCallback("SceneOpened", sceneOpened);&lt;BR /&gt;scriptjob_selectionChanged = MEventMessage::addEventCallback("SelectionChanged", selectionChanged);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attempting to add the event callbacks causes the&amp;nbsp; hang. If I remove them in the plugin initialization, it works fine. So the question is why?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 17:37:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/maya-2023-3-hangs-when-loading-our-custom-plugins-at-startup/m-p/11770711#M1297</guid>
      <dc:creator>karl.loveridgeRKJJN</dc:creator>
      <dc:date>2023-02-21T17:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Maya 2023.3 hangs when loading our custom plugins at startup</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/maya-2023-3-hangs-when-loading-our-custom-plugins-at-startup/m-p/11772292#M1298</link>
      <description>&lt;P&gt;Thanks for the info.&amp;nbsp;I'll ask around internally to see if I can get clarification on why this might be happening.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 09:42:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/maya-2023-3-hangs-when-loading-our-custom-plugins-at-startup/m-p/11772292#M1298</guid>
      <dc:creator>brentmc</dc:creator>
      <dc:date>2023-02-22T09:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Maya 2023.3 hangs when loading our custom plugins at startup</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/maya-2023-3-hangs-when-loading-our-custom-plugins-at-startup/m-p/11773091#M1299</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Can you verify that you are building your plugins with the correct compiler for 2023.&lt;BR /&gt;&lt;A href="https://help.autodesk.com/view/MAYAUL/2023/ENU/?guid=Maya_SDK_MinimumRequirementsAllPlatforms_html" target="_blank"&gt;https://help.autodesk.com/view/MAYAUL/2023/ENU/?guid=Maya_SDK_MinimumRequirementsAllPlatforms_html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Otherwise, could you provide a sample plugin that shows the issue?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 14:33:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/maya-2023-3-hangs-when-loading-our-custom-plugins-at-startup/m-p/11773091#M1299</guid>
      <dc:creator>brentmc</dc:creator>
      <dc:date>2023-02-22T14:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Maya 2023.3 hangs when loading our custom plugins at startup</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/maya-2023-3-hangs-when-loading-our-custom-plugins-at-startup/m-p/11773380#M1300</link>
      <description>&lt;P&gt;So the issue turned out to be the way we were creating a callback on the idle event. We originally had the callback set up with this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;g_idleEventCallbackId = MEventMessage::addEventCallback( "idle",
	&amp;amp;IdleEventCallback,
	NULL,
	&amp;amp;status);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This caused the hang. I switched both of these to this and it now works:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;g_idleEventCallbackId = MTimerMessage::addTimerCallback(1.0f, &amp;amp;IdleEventCallback, NULL, &amp;amp;status);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 16:08:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/maya-2023-3-hangs-when-loading-our-custom-plugins-at-startup/m-p/11773380#M1300</guid>
      <dc:creator>karl.loveridgeRKJJN</dc:creator>
      <dc:date>2023-02-22T16:08:33Z</dc:date>
    </item>
  </channel>
</rss>

