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

Freeze bug #83

Open
make-your-soft-better opened this issue Sep 17, 2024 · 4 comments
Open

Freeze bug #83

make-your-soft-better opened this issue Sep 17, 2024 · 4 comments

Comments

@make-your-soft-better
Copy link

If you close the application and have time to click with right mouse button on the control panel on its window in the lxpanel list, the entire panel freezes, without the possibility of recovery. It is required to restart X11 via killall -u $USER.

I think the problem is that there is an attempt to address already released data, something like a "segmentation fault".

This action can happen by accident, I've accidentally done it several times, and it's terribly annoying because it requires restarting X11. Just try to open any application, close it (for example, using ALT+F4) and immediately click on its disappearing element in the list with RMB. The whole panel will die.

@kurokawachan
Copy link
Contributor

I am able to see this issue on debian stable
debian version 0.10.1-2

@kurokawachan
Copy link
Contributor

Hello @make-your-soft-better

Just to make sure we are talking the same issue. Are you able to see this issue using the following way.

How to reproduce the issue

Ths issue seems to be the app been closed while the manu list is still open.

  • Open lxterminal and keep only one window open.
  • type the command sleep 5 && exit;
  • within 5 seconds, move your mouse to the task bar and right click to open the menu
  • wait for the window to close.
  • There should be a blank window where the menu is
  • All the button freezes
  • This issue is not required to restart X11 just restart lxpanel

@make-your-soft-better
Copy link
Author

make-your-soft-better commented Sep 21, 2024

@kurokawachan Yes, that's this issue. I repeated it, the result is the same - lxpanel freezes. Will I have to write a script for restarting lxpanel? Or how to get through to the developers?

@kurokawachan
Copy link
Contributor

The issue is because inside task_button_update_windows_list
We did not gtk_menu_popdown the menu before gtk_menu_detach

            GtkMenu *menu = GTK_MENU(l->data);
            gtk_menu_popdown(menu);
            gtk_menu_detach(menu);

lxpanel/plugins/task-button.c

Lines 1543 to 1549 in ffd815f

menu_list = g_list_copy(menu_list);
for (l = menu_list; l; l = l->next)
{
GtkMenu *menu = GTK_MENU(l->data);
gtk_menu_detach(menu);
}
g_list_free(menu_list);

I don't know how to get through to the developers, I have many pull requests not replied.

kurokawachan added a commit to kurokawachan/lxpanel that referenced this issue Sep 22, 2024
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

2 participants