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

LWSM stuck at 'Waiting for all applications to start...' #102

Open
typoworx-de opened this issue May 23, 2023 · 1 comment
Open

LWSM stuck at 'Waiting for all applications to start...' #102

typoworx-de opened this issue May 23, 2023 · 1 comment

Comments

@typoworx-de
Copy link

typoworx-de commented May 23, 2023

At first: Thanks for the nice work in this tool!

👻 Brief Description

I'm new to LWSM. I have a LWSM Session saved (chromium,firefox and some other applications). Trying to restore starts everything as far as I can see. But LWSM ist stuck with this message:

(full trace see below)

Waiting for all applications to start...
POLL_ALL_MAX_TIMEOUT reached

🥞 Action version

lwsm 4.0.5

🎩 workflow configuration

Actually (I know... sadly very old) Ubuntu 16 Xenial with Unity Desktop.

Steps To Reproduce

lwsm save
(after reboot)
lwsm restore

🚓 Expected behavior

I did not even expect LWSM will not only restore window-positions, but also start all applications. Nice!
But I would expect LWSM is more "error resistent" f.e. if not all applications will start LWSM should anyway try to restore as much as possible and place the window's it finds to their session stored position.

Full-Trace:

$ lwsm restore
lwsm 4.0.5 --> restore Tue May 23 2023 13:19:13 GMT+0200 (Mitteleuropäische Sommerzeit)
DisplayID: 5760x1080
Status: "skype.Skype" is running: true 1 0
Status: "ferdi.Ferdi" is running: true 1 0
Status: "Telegram.TelegramDesktop" is running: true 1 0
Status: "keepass2.KeePass2" is running: true 1 0
Status: "Navigator.firefox-esr-esr102" is running: false 9 0
Status: "Navigator.firefox-esr-esr102" is running: false 9 0
Status: "Navigator.firefox-esr-esr102" is running: false 9 0
Status: "Navigator.firefox-esr-esr102" is running: false 9 0
Status: "Navigator.firefox-esr-esr102" is running: false 9 0
Status: "Navigator.firefox-esr-esr102" is running: false 9 0
Status: "Mail.thunderbird" is running: true 1 0
Status: "FoxitReader.Foxit Reader" is running: true 1 0
Status: "jetbrains-phpstorm.jetbrains-phpstorm" is running: false 3 0
Status: "jetbrains-phpstorm.jetbrains-phpstorm" is running: false 3 0
Status: "jetbrains-phpstorm.jetbrains-phpstorm" is running: false 3 0
Status: "Navigator.firefox-esr-esr102" is running: false 9 0
Status: "gnome-terminal-server.Gnome-terminal" is running: true 1 0
Status: "Navigator.firefox-esr-esr102" is running: false 9 0
Status: "Navigator.firefox-esr-esr102" is running: false 9 0
Status: "nemo.Nemo" is running: true 1 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "brave-browser.Brave-browser" is running: true 1 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Status: "chromium-browser.Chromium-browser" is running: true 38 0
Waiting for all applications to start...
POLL_ALL_MAX_TIMEOUT reached
Unable to start the following apps [
  {
    windowId: '0x4c0004c',
    windowIdDec: 79691852,
    executableFile: '/snap/phpstorm/331/jbr/bin/java',
    wmCurrentDesktopNr: 0,
    wmType: '_NET_WM_WINDOW_TYPE_NORMAL',
    states: [ '_NET_WM_STATE_MAXIMIZED_VERT', '_NET_WM_STATE_MAXIMIZED_HORZ' ],
    wmPid: 215953,
    wmClassName: 'jetbrains-phpstorm.jetbrains-phpstorm',
    x: 13505,
    y: -1056,
    width: 1855,
    height: 1056,
    simpleName: 'jetbrains-phpstorm',
    instancesStarted: 1
  },
  {
    windowId: '0x4c00053',
    windowIdDec: 79691859,
    executableFile: '/snap/phpstorm/331/jbr/bin/java',
    wmCurrentDesktopNr: 0,
    wmType: '_NET_WM_WINDOW_TYPE_NORMAL',
    states: [ '_NET_WM_STATE_MAXIMIZED_VERT', '_NET_WM_STATE_MAXIMIZED_HORZ' ],
    wmPid: 215953,
    wmClassName: 'jetbrains-phpstorm.jetbrains-phpstorm',
    x: 13505,
    y: 24,
    width: 1855,
    height: 1056,
    simpleName: 'jetbrains-phpstorm',
    instancesStarted: 1
  },
  {
    windowId: '0x4c0005a',
    windowIdDec: 79691866,
    executableFile: '/snap/phpstorm/331/jbr/bin/java',
    wmCurrentDesktopNr: 0,
    wmType: '_NET_WM_WINDOW_TYPE_NORMAL',
    states: [ '_NET_WM_STATE_MAXIMIZED_VERT', '_NET_WM_STATE_MAXIMIZED_HORZ' ],
    wmPid: 215953,
    wmClassName: 'jetbrains-phpstorm.jetbrains-phpstorm',
    x: 7745,
    y: -1056,
    width: 1855,
    height: 1056,
    simpleName: 'jetbrains-phpstorm',
    instancesStarted: 1
  }
]
Generic Error in Main Handler POLL_ALL_MAX_TIMEOUT reached undefined
An error occurred POLL_ALL_MAX_TIMEOUT reached
Generic Error in Main Handler POLL_ALL_MAX_TIMEOUT reached undefined
node:internal/process/promises:246
          triggerUncaughtException(err, true /* fromPromise */);
          ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "POLL_ALL_MAX_TIMEOUT reached".] {
  code: 'ERR_UNHANDLED_REJECTION'
}
@typoworx-de
Copy link
Author

By the way. I've been trying lwsm restore after I've started PHP-Storm IDE manually. But still with the ERR_UNHANDLED_REJECTION Exception, only the error for 'Unable to start the following apps' disappeared.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant