-
Notifications
You must be signed in to change notification settings - Fork 93
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
Notifybar does not close on Linux when disconnected #220
Comments
Fix-Ylianst#220-Notifybar-does-not-close-on-Linux-when-disconnected - Call XDestroyWindow() in the close()-function of x_notifybar. This closes the notifybar, when the desktop connection is closed. - Removed the XCloseDisplay() and _windows.clear() calls in the on( 'readset' ) function. The calls caused meshagent crashes, if the notifybar is closed with the mouse, disconnected and then reconnected. They seem to be unnecessary. The notifybar is closed by the close() function. - Moved the setAlwaysOnTop() call down after the XMapWindow() call. The notifybar window must be mapped, otherwise the setAlwaysOnTop() call has no effect.
I fixed the error and opened a pull request. |
i dont seem to have this issue with ubuntu 22.04?
|
You are right. I tried it again with
on Mint 20.2 and Debian 11 and it worked. I closed the pull request. Yet one minor problem also exists with Debian and Mint: The meshagent crashes, when you close the notifybar with the mouse and then log-in again. Normally you would not notice it, because it restarts immediately. |
in theory if you want to test it yourself, do the following:
EDIT: |
The version of the software you are using
Latest version from github. Server: 1.1.16, agent: "openssl": "1.1.1s", "duktape": "v2.6.0", "commitDate": 2023-12-05T09:15:06.000Z", "compileTime": "11:58:43, Dec 6 2023"
The Operating System and version
Browser: Windows 11, Server: Debian GNU/Linux 11 (bullseye), meshagent: self-compiled buildroot, kernel 4.9.13, X, fluxbox
The observed output
Users need to see that someone is connected to the computer. That's why the config.json contains the block: "userConsentFlags": { "desktopnotify": true,...
When a desktop connection is established to the Linux computer, the Notiry Bar appears. If you close the connection, the Notify bar remains visible.
When you reconnect, another notify bar is created on top of the first.
If you close the connection, close the notify bars with the mouse on x and reconnect, the meshagent crashes with a segmentation fault.
The expected output
The behavior under Windows is correct: When you connect, the Notify Bar appears, when the connection is closed, the Notify Bar disappears and if you close the Notify Bar with the mouse while connected, the connection is terminated.
Any troubleshooting you took to resolve the issue yourself
I tried to find the error in notifybar-desktop.js but gave up after a few hours. My knowledge of X11 programming and javascript is not deep enough to analyze the program in detail.
The stack traces of the crashes end in X11.XPending(). I can add them if necessary. However, the error can be reproduced easily and reliably.
Any other similar reports
Not that I knew of.
The text was updated successfully, but these errors were encountered: