! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Applications menu disappears after failed xfce-applications.menu parsing whil...
Status:
RESOLVED: MOVED

Comments

Description OmegaPhil 2016-07-23 19:03:53 CEST
I'm currently working on menulibre (https://launchpad.net/menulibre), and found that occasionally while making a few menu changes in succession the XFCE4 panel would pop up an error dialog:

============================================================

Failed to load the applications menu

Error on line 1205 char 19: Document ended unexpectedly inside an element name

============================================================

I have also seen 'Error on line 1 char 1: Document was empty or contained only whitespace'.

After OKing the dialog, the applications menu is empty (just a tiny square popping up from the button) and you have to restart the panel to recover from the situation.

This is much easier to trigger if you move an item up and down a menu quickly (note that menulibre is more efficient than alacarte so completes changes quite fast).

Looking into the code, the failure is happening in garcon-menu-parser.c:garcon_menu_parser_run, from either g_markup_parse_context_parse or the g_markup_parse_context_end_parse call (the actual error wording comes from the Glib source).

Presumably garcon is responding to the first committed change to a file, but tries to read it right in the middle of the next change, so naturally fails on junk content (editing these files really needs locking)...

When this situation happens, please could garcon try again a little later rather than giving up? Restarting the panel is fine for a programmer but not a normal user.

Thanks
Comment 1 Git Bot editbugs 2020-05-25 22:47:42 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/garcon/-/issues/3.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #12722

Reported by:
OmegaPhil
Reported on: 2016-07-23
Last modified on: 2020-05-25

People

Assignee:
Jannis Pohlmann
CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information