Can't launch softwares anymore

Hi there,
We can’t launch DCC from SGDesktop anymore on several workstations. Everything worked as expected yesterday, and nothing has changed in the sgtk config.

image

All the paths are correct on all workstations. Launching DCC by using those pathes outside of SGDesktop works without any problem (double clic or using cmd):
image

I can’t launch RV either, which does not have any engine associated.

The problem happens on all projects and all configs. We use distributed config, and we don’t use paths.yml (dcc path are set on the website, page Software)

Can anyone help me? Has there been an update on SGDesktop? There are no dates on this page.

image

tk-desktop.log:


[1592 DEBUG sgtk.ext.tkimpcce6b00a5b79467fb037bdc1c813b68b.tk_desktop.site_communication] [PROXY]

Debug logging enabled. To permanently enable it, set the TK_DEBUG environment variable.
Setting TK_DEBUG in the environment for this session. This ensures that subprocesses spawned from this process will inherit the global debug logging setting from this process.
Debug logging enabled. To permanently enable it, set the TK_DEBUG environment variable.
Setting TK_DEBUG in the environment for this session. This ensures that subprocesses spawned from this process will inherit the global debug logging setting from this process.
Widget trash contains 2 widgets
User Settings Manager: Storing xxxx.shotgunstudio.com:project_recent_apps.322
Creating folders for Project 322. Defer keyword: 'tk-maya'
Path cache sync tracking marker in local sqlite db: 545152
Fetching create/delete folder event log entries >= id 545152 for project {'type': 'Project', 'id': 322}...
Got 1 event log entries
Event log contains 1 creations and 0 deletions
Path cache syncing not necessary - local folders already up to date!
Loading environment data from path: l:\_tech\sgtk_configs\config_deploy_project_name_trailer\env\project.yml
Loading SoftwareLauncher plugin 'C:\Users\username\AppData\Roaming\Shotgun\bundle_cache\app_store\tk-maya\v0.9.10\startup.py' ...
Created SoftwareLauncher instance: <39550e2a87e040cfa12fd4e40676f4ca.MayaLauncher object at 0x0000000003103D30>
Created tk-maya engine launcher : <39550e2a87e040cfa12fd4e40676f4ca.MayaLauncher object at 0x0000000003103D30>
Preparing Maya Launch via Toolkit Classic methodology ...

Engine launcher prepared launch info:
    path : C:\Program Files\Autodesk\Maya2019\bin\maya.exe
    args : 
    \'\\np6\\nNsS\'login\'\\np7\\nS\'username\'\\np8\\nsS\'session_token\'\\np9\\nS\'bc76bc3be8f150a882bfbc8bada5ce11\'\\np10\\nssS\'type\'\\np11\\nS\'SessionUser\'\\np12\\ns."\np27\nsS\'step\'\np28\nNsS\'user\'\np29\n(dp30\ng23\nS\'HumanUser\'\np31\nsg24\nI89\nsg25\nS\'FirstName Name\'\np32\nss.', 'SGTK_ENGINE': 'tk-maya'}

Running before app launch hook...
<Sgtk App 0x064e8d68: tk-multi-launchapp, engine: <Sgtk Engine 0x063487b8: tk-desktop, env: project>>: Resolved hook expression (associated with setting 'hook_before_app_launch'): '{config}/tk-multi-launchapp/before_app_launch.py' -> ['C:\\Program Files\\Shotgun\\Resources\\Python\\bundle_cache\\app_store\\tk-multi-launchapp\\v0.10.3\\hooks\\before_app_launch.py', 'l:\\_tech\\sgtk_configs\\config_deploy_project_name_trailer\\hooks\\tk-multi-launchapp\\before_app_launch.py']
Launching executable 'C:\Program Files\Autodesk\Maya2019\bin\maya.exe' with args ''
<Sgtk App 0x064e8d68: tk-multi-launchapp, engine: <Sgtk Engine 0x063487b8: tk-desktop, env: project>>: Resolved hook expression (associated with setting 'hook_app_launch'): '{self}/app_launch.py' -> ['C:\\Program Files\\Shotgun\\Resources\\Python\\bundle_cache\\app_store\\tk-multi-launchapp\\v0.10.3\\hooks\\app_launch.py']
Hook tried to launch 'start /B "App" "C:\Program Files\Autodesk\Maya2019\bin\maya.exe" '
Widget trash contains 2 widgets

The only app that I can still launch from SG Desktop is the Publisher App. tk-desktop.log:

2020-03-10 11:07:35,969 [1592 DEBUG sgtk.env.site.tk-desktop.tk-framework-shotgunutils] User Settings Manager: Storing sgWebsiteName.shotgunstudio.com:project_recent_apps.322

2020-03-10 11:07:36,490 [1592 DEBUG sgtk.ext.tkimpcce6b00a5b79467fb037bdc1c813b68b.tk_desktop.site_communication] [PROXY] 

Initialized settings manager for 'tk-multi-publish2'
Initialized settings manager for 'tk-framework-qtwidgets'
Setting up the UI...
Task Manager: Started new background worker thread (num threads=1)
Retrieving stored 'Recent' actions from disk...
User Settings Manager: Retrieving sgWebsiteName.shotgunstudio.com:project_name:tk-framework-qtwidgets_recent_contexts_322
Querying tasks for the curren user: {'type': 'HumanUser', 'id': 89, 'name': 'FirstName username'}
Creating shotgun connection from <SessionUser busername @ https://sgWebsiteName.shotgunstudio.com>...
create_sg_connection: 0.001000s
Executing sgtk.from_path factory for 'C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg'
The path C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg points at a pipeline configuration.
Resolved the official path registered in Shotgun to be C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg.
Creating StorageRoots instance from config: C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg\config
Initializing storage roots object. Supplied config folder: C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg\config
Storage roots file defined in the config: C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg\config\core\roots.yml
Reading storage roots file form disk: C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg\config\core\roots.yml
Read metadata: {'primary': {'default': True, 'mac_path': 'smb:/IPserveur/art_dev', 'windows_path': 'L:\\', 'linux_path': '/IPserveur/art_dev', 'shotgun_storage_id': 3}}
Storage roots metadata: {'primary': {'default': True, 'mac_path': 'smb:/IPserveur/art_dev', 'windows_path': 'L:\\', 'linux_path': '/IPserveur/art_dev', 'shotgun_storage_id': 3}}
Processing required storages defined by the config...
Processing storage: primary - {'default': True, 'mac_path': 'smb:/IPserveur/art_dev', 'windows_path': 'L:\\', 'linux_path': '/IPserveur/art_dev', 'shotgun_storage_id': 3}
Storage root primary explicitly marked as the default.
Created: <StorageRoots folder:'C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg\config', roots:'primary'>
sgtk.from_path resolved 'C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg' -> <Sgtk Configuration C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg>
Executing sgtk.from_path factory for 'C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg'
The path C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg points at a pipeline configuration.
Resolved the official path registered in Shotgun to be C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg.
Creating StorageRoots instance from config: C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg\config
Initializing storage roots object. Supplied config folder: C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg\config
Storage roots file defined in the config: C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg\config\core\roots.yml
Reading storage roots file form disk: C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg\config\core\roots.yml
Read metadata: {'primary': {'default': True, 'mac_path': 'smb:/IPserveur/art_dev', 'windows_path': 'L:\\', 'linux_path': '/IPserveur/art_dev', 'shotgun_storage_id': 3}}
Storage roots metadata: {'primary': {'default': True, 'mac_path': 'smb:/IPserveur/art_dev', 'windows_path': 'L:\\', 'linux_path': '/IPserveur/art_dev', 'shotgun_storage_id': 3}}
Processing required storages defined by the config...
Processing storage: primary - {'default': True, 'mac_path': 'smb:/IPserveur/art_dev', 'windows_path': 'L:\\', 'linux_path': '/IPserveur/art_dev', 'shotgun_storage_id': 3}
Storage root primary explicitly marked as the default.
Created: <StorageRoots folder:'C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg\config', roots:'primary'>
sgtk.from_path resolved 'C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg' -> <Sgtk Configuration C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg>
Executing sgtk.from_path factory for 'C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg'
The path C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg points at a pipeline configuration.
Resolved the official path registered in Shotgun to be C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg.
Creating StorageRoots instance from config: C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg\config
Initializing storage roots object. Supplied config folder: C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg\config
Storage roots file defined in the config: C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg\config\core\roots.yml
Reading storage roots file form disk: C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg\config\core\roots.yml
Read metadata: {'primary': {'default': True, 'mac_path': 'smb:/IPserveur/art_dev', 'windows_path': 'L:\\', 'linux_path': '/IPserveur/art_dev', 'shotgun_storage_id': 3}}
Storage roots metadata: {'primary': {'default': True, 'mac_path': 'smb:/IPserveur/art_dev', 'windows_path': 'L:\\', 'linux_path': '/IPserveur/art_dev', 'shotgun_storage_id': 3}}
Processing required storages defined by the config...
Processing storage: primary - {'default': True, 'mac_path': 'smb:/IPserveur/art_dev', 'windows_path': 'L:\\', 'linux_path': '/IPserveur/art_dev', 'shotgun_storage_id': 3}
Storage root primary explicitly marked as the default.
Created: <StorageRoots folder:'C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg\config', roots:'primary'>
sgtk.from_path resolved 'C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg' -> <Sgtk Configuration C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg>
Executing sgtk.from_path factory for 'C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg'
The path C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg points at a pipeline configuration.
Resolved the official path registered in Shotgun to be C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg.
Creating StorageRoots instance from config: C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg\config
Initializing storage roots object. Supplied config folder: C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg\config
Storage roots file defined in the config: C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg\config\core\roots.yml
Reading storage roots file form disk: C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg\config\core\roots.yml
Read metadata: {'primary': {'default': True, 'mac_path': 'smb:/IPserveur/art_dev', 'windows_path': 'L:\\', 'linux_path': '/IPserveur/art_dev', 'shotgun_storage_id': 3}}
Storage roots metadata: {'primary': {'default': True, 'mac_path': 'smb:/IPserveur/art_dev', 'windows_path': 'L:\\', 'linux_path': '/IPserveur/art_dev', 'shotgun_storage_id': 3}}
Processing required storages defined by the config...
Processing storage: primary - {'default': True, 'mac_path': 'smb:/IPserveur/art_dev', 'windows_path': 'L:\\', 'linux_path': '/IPserveur/art_dev', 'shotgun_storage_id': 3}
Storage root primary explicitly marked as the default.
Created: <StorageRoots folder:'C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg\config', roots:'primary'>
sgtk.from_path resolved 'C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg' -> <Sgtk Configuration C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg>
Executing sgtk.from_path factory for 'C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg'
The path C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg points at a pipeline configuration.
Resolved the official path registered in Shotgun to be C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg.
Creating StorageRoots instance from config: C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg\config
Initializing storage roots object. Supplied config folder: C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg\config
Storage roots file defined in the config: C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg\config\core\roots.yml
Reading storage roots file form disk: C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg\config\core\roots.yml
Read metadata: {'primary': {'default': True, 'mac_path': 'smb:/IPserveur/art_dev', 'windows_path': 'L:\\', 'linux_path': '/IPserveur/art_dev', 'shotgun_storage_id': 3}}
Storage roots metadata: {'primary': {'default': True, 'mac_path': 'smb:/IPserveur/art_dev', 'windows_path': 'L:\\', 'linux_path': '/IPserveur/art_dev', 'shotgun_storage_id': 3}}
Processing required storages defined by the config...
Processing storage: primary - {'default': True, 'mac_path': 'smb:/IPserveur/art_dev', 'windows_path': 'L:\\', 'linux_path': '/IPserveur/art_dev', 'shotgun_storage_id': 3}
Storage root primary explicitly marked as the default.
Created: <StorageRoots folder:'C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg\config', roots:'primary'>
sgtk.from_path resolved 'C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg' -> <Sgtk Configuration C:\Users\busername\AppData\Roaming\Shotgun\sgWebsiteName\p322c367.basic.desktop\cfg>
Task Manager: Started new background worker thread (num threads=2)
Querying PublishedFile.entity schema...
Creating shotgun connection from <SessionUser busername @ https://sgWebsiteName.shotgunstudio.com>...
create_sg_connection: 0.001000s
Installed log handler for publishing @ sgtk.env.project.tk-desktop.tk-multi-publish2.hook
Loading collector plugin...
<Sgtk App 0x068d5588: tk-multi-publish2, engine: <Sgtk Engine 0x063487b8: tk-desktop, env: project>>: Resolved hook expression (associated with setting 'None'): '{self}/collector.py' -> ['C:\\Users\\busername\\AppData\\Roaming\\Shotgun\\bundle_cache\\app_store\\tk-multi-publish2\\v2.4.1\\hooks\\collector.py']
Loading plugins for the current context...
Finding publish plugin settings for context: Project Ghee Happy Trailer
Found publish plugin config: {'hook': '{self}/publish_file.py', 'name': 'Publish to Shotgun', 'settings': {}}
<Sgtk App 0x068d5588: tk-multi-publish2, engine: <Sgtk Engine 0x063487b8: tk-desktop, env: project>>: Resolved hook expression (associated with setting 'None'): '{self}/publish_file.py' -> ['C:\\Users\\busername\\AppData\\Roaming\\Shotgun\\bundle_cache\\app_store\\tk-multi-publish2\\v2.4.1\\hooks\\publish_file.py']
Created publish plugin: <PublishPluginInstance: {self}/publish_file.py>
Found publish plugin config: {'hook': '{config}/tk-multi-publish2/upload_version.py', 'name': 'Upload for review', 'settings': {}}
<Sgtk App 0x068d5588: tk-multi-publish2, engine: <Sgtk Engine 0x063487b8: tk-desktop, env: project>>: Resolved hook expression (associated with setting 'None'): '{config}/tk-multi-publish2/upload_version.py' -> ['l:\\_tech\\sgtk_configs\\config_deploy_project_name\\hooks\\tk-multi-publish2\\upload_version.py']
Created publish plugin: <PublishPluginInstance: {config}/tk-multi-publish2/upload_version.py>
Loading post phase hook...
<Sgtk App 0x068d5588: tk-multi-publish2, engine: <Sgtk Engine 0x063487b8: tk-desktop, env: project>>: Resolved hook expression (associated with setting 'None'): '{self}/post_phase.py' -> ['C:\\Users\\busername\\AppData\\Roaming\\Shotgun\\bundle_cache\\app_store\\tk-multi-publish2\\v2.4.1\\hooks\\post_phase.py']
Pushing subsection to log tree: Collecting items to Publish...
Refresh: Running collection on current session...
Refresh: Running collection on all previously collected external files
Popping log tree hierarchy.
Selecting first item in the tree..
Nothing to select!
Detected std style sheet file 'C:\Users\busername\AppData\Roaming\Shotgun\bundle_cache\app_store\tk-multi-publish2\v2.4.1\style.qss' - applying to widget <tank.platform.qt.tankqdialog.__AppDialog_TkWidgetWrapper__ object at 0x000000000955E9C8>
Completed query for current user tasks.
Building actions for group: My Tasks
Completed query of PublishedFile.entity schema
Limiting context link completer to these entities: ['Asset', 'Episode', 'Shot', 'CustomEntity01', 'Project']
Setting searchable entity types to: {'Project': [], 'Shot': [], 'CustomEntity01': [], 'Episode': [], 'Asset': []}
CloseEvent Received. Begin shutting down UI.
Unregistering <tkimpbb5f7d52dc0846a78996a381554ea08c.task_manager.background_task_manager.BackgroundTaskManager object at 0x000000000955E4C8> from schema manager
Shutting down publish logging...
Task Manager: Shutting down...
Task Manager: Stopping all tasks...
Task Manager:  > All tasks stopped!
Task Manager: Waiting for 2 background threads to stop...
Results Queue: Sent _ShutdownHint to consumer thread.
Results Queue: Consumer thread received ShutdownHint.
Task Manager: Shut down successfully!
Storing serialized 'Recent' contexts.
User Settings Manager: Storing sgWebsiteName.shotgunstudio.com:project_name:tk-framework-qtwidgets_recent_contexts_322
Widget trash contains 4 widgets

3 Likes

Does running start /B "App" "C:\Program Files\Autodesk\Maya2019\bin\maya.exe" in a separate command line Window work for you?

We’ve not pushed any changes to the launch app, or SG Desktop.

1 Like

Yep, this launches Maya like a charm.

2 Likes

what about if you launch Python in the command line and run the following:

import os
os.system(r'start /B "App" "C:\Program Files\Autodesk\Maya2019\bin\maya.exe')
1 Like

This works too

1 Like

hmmm, I’m not certain whats happening here then. The log doesn’t appear to show an error.
The pop up says that command doesn’t work, and the thing I just got you to test, is exactly what the app_launch.py hook will run:

Have you taken over and modified this hook at all?

1 Like

Hi Philipp,
I have not taken over anything on tk-multi-launchapp.

How can I take over app_launch? I cant see any line about this hook in tk-multi-launchapp.yml

I use the same file that can be found here:

2 Likes

You can find the various options for a given app on either the doc page or in the info.yml.
In this scenario, you would have set the hook_app_launch setting in the tk-multi-launchapp.yml to point to your custom hook. I don’t have any further suggestions at the moment.

However I’m not saying you need to take it over, it should work by default, and I’m a bit baffled, that it is not. I guess you could take over the hook and try and work backwards until it works.

ie if we know this worked, then maybe try hard coding the launch to do that instead and see if that works. If that works, then you need to figure out what is different between that and the dynamic command that is being built.

1 Like

Ok, found the bug: the “Path” env variable was overrided in the shell and became too long.

Thanks for your help

3 Likes

Ah interesting! thanks for sharing

1 Like