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

Tray: Kill existing tray process #918

Open
iLLiCiTiT opened this issue Sep 25, 2024 · 0 comments
Open

Tray: Kill existing tray process #918

iLLiCiTiT opened this issue Sep 25, 2024 · 0 comments
Labels
type: bug Something isn't working

Comments

@iLLiCiTiT
Copy link
Member

iLLiCiTiT commented Sep 25, 2024

Current Behavior:

If tray is force killed and machine is restarted, the file where tray PID is stored stays in local app data, so on next tray start it can try to kill completelly different process.

Expected Behavior:

It should be able to detect if the running process by PID is actually tray or something else.

Traceback

Traceback (most recent call last):
  File "C:\Users\...\AppData\Local\Ynput\AYON\addons\core_0.4.4\ayon_core\cli.py", line 331, in main
    main_cli(
  File "C:\Users\...\AppData\Local\Ynput\AYON\dependency_packages\ayon_2406251801_windows.zip\runtime\click\core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "C:\Users\...\AppData\Local\Ynput\AYON\dependency_packages\ayon_2406251801_windows.zip\runtime\click\core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "C:\Users\...\AppData\Local\Ynput\AYON\dependency_packages\ayon_2406251801_windows.zip\runtime\click\core.py", line 1666, in invoke
    rv = super().invoke(ctx)
  File "C:\Users\...\AppData\Local\Ynput\AYON\dependency_packages\ayon_2406251801_windows.zip\runtime\click\core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "C:\Users\...\AppData\Local\Ynput\AYON\dependency_packages\ayon_2406251801_windows.zip\runtime\click\core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "C:\Users\...\AppData\Local\Ynput\AYON\dependency_packages\ayon_2406251801_windows.zip\runtime\click\decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "C:\Users\...\AppData\Local\Ynput\AYON\addons\core_0.4.4\ayon_core\cli.py", line 59, in main_cli    ctx.forward(tray)
  File "C:\Users\...\AppData\Local\Ynput\AYON\dependency_packages\ayon_2406251801_windows.zip\runtime\click\core.py", line 804, in forward
    return __self.invoke(__cmd, *args, **kwargs)
  File "C:\Users\...\AppData\Local\Ynput\AYON\dependency_packages\ayon_2406251801_windows.zip\runtime\click\core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "C:\Users\...\AppData\Local\Ynput\AYON\addons\core_0.4.4\ayon_core\cli.py", line 76, in tray
    main(force)
  File "C:\Users\...\AppData\Local\Ynput\AYON\addons\core_0.4.4\ayon_core\tools\tray\lib.py", line 618, in main
    _kill_tray_process(pid)
  File "C:\Users\...\AppData\Local\Ynput\AYON\addons\core_0.4.4\ayon_core\tools\tray\lib.py", line 87, in _kill_tray_process
    os.kill(pid, signal.SIGTERM)
OSError: [WinError 87] The parameter is incorrect
@iLLiCiTiT iLLiCiTiT added the type: bug Something isn't working label Sep 25, 2024
@iLLiCiTiT iLLiCiTiT changed the title Try: Kill existing tray process Tray: Kill existing tray process Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant