Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Engineer Kieren's Avatar
    Join Date
    Aug 2007
    Location
    England
    Posts
    848

    [SOLVED] Gimp Error


    When I open or create a new image in Gimp I'm getting the below error. The image Window opens but has no menu along the top.

    I'm using Kubuntu 7.10 and when I try to uninstall Gimp to reinstall it Kubuntu wants to remove the desktop!

    Any ideas? I think the xml file has some how become corrupt?

    There was an error parsing the menu definition from image-menu.xml: Error on line 401 char 21: Invalid UTF-8 encoded text - not valid '<?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE ui SYSTEM "gtkuimanager.dtd">
    <!-- This file is automatically generated. Do not edit! -->
    <ui>

    <menubar action="image-menubar">

    <menu action="file-menu" name="File">
    <placeholder name="New">
    <menuitem action="image-new-from-image"/>
    </placeholder>
    <placeholder name="Open">
    <menuitem action="file-open"/>
    <menuitem action="file-open-as-layers"/>
    <menuitem action="file-open-location"/>
    </placeholder>
    <menu action="file-open-recent-menu" name="Open Recent">
    <placeholder name="Files"/>
    <separator/>
    <menuitem action="dialogs-document-history"/>
    </menu>
    <menu action="file-acquire-menu" name="Acquire"/>
    <separator/>
    <placeholder name="Save">
    <menuitem action="file-save"/>
    <menuitem action="file-save-as"/>
    <menuitem action="file-save-a-copy"/>
    <menuitem action="file-save-as-template"/>
    </placeholder>
    <menuitem action="file-revert"/>
    <separator/>
    <placeholder name="Send"/>
    <separator/>
    <placeholder name="Info"/>
    <separator/>
    <menuitem action="view-close"/>
    <menuitem action="file-close-all"/>
    <menuitem action="file-quit"/>
    </menu>

    <!-- Context

    <menu action="context-menu" name="Context">
    <menu action="context-colors-menu" name="Colors">
    <menuitem action="context-colors-default" />
    <menuitem action="context-colors-swap" />
    </menu>
    <menu action="context-opacity-menu" name="Opacity">
    <menuitem action="context-opacity-transparent" />
    <menuitem action="context-opacity-opaque" />
    <menuitem action="context-opacity-decrease" />
    <menuitem action="context-opacity-increase" />
    <menuitem action="context-opacity-decrease-skip" />
    <menuitem action="context-opacity-increase-skip" />
    </menu>
    <menu action="context-paint-mode-menu" name="Paint Mode">
    <menuitem action="context-paint-mode-first" />
    <menuitem action="context-paint-mode-last" />
    <menuitem action="context-paint-mode-previous" />
    <menuitem action="context-paint-mode-next" />
    </menu>
    <menu action="context-tool-menu" name="Tool">
    <menuitem action="context-tool-select-first" />
    <menuitem action="context-tool-select-last" />
    <menuitem action="context-tool-select-previous" />
    <menuitem action="context-tool-select-next" />
    </menu>
    <separator />
    <menu action="context-brush-menu" name="Brush">
    <menuitem action="context-brush-select-first" />
    <menuitem action="context-brush-select-last" />
    <menuitem action="context-brush-select-previous" />
    <menuitem action="context-brush-select-next" />
    <separator />
    <menu action="context-brush-shape-menu" name="Shape">
    <menuitem action="context-brush-shape-circle" />
    <menuitem action="context-brush-shape-square" />
    <menuitem action="context-brush-shape-diamond" />
    </menu>
    <menu action="context-brush-radius-menu" name="Radius">
    <menuitem action="context-brush-radius-minimum" />
    <menuitem action="context-brush-radius-maximum" />
    <menuitem action="context-brush-radius-decrease" />
    <menuitem action="context-brush-radius-increase" />
    <menuitem action="context-brush-radius-decrease-skip" />
    <menuitem action="context-brush-radius-increase-skip" />
    </menu>
    <menu action="context-brush-spikes-menu" name="Spikes">
    <menuitem action="context-brush-spikes-minimum" />
    <menuitem action="context-brush-spikes-maximum" />
    <menuitem action="context-brush-spikes-decrease" />
    <menuitem action="context-brush-spikes-increase" />
    <menuitem action="context-brush-spikes-decrease-skip" />
    <menuitem action="context-brush-spikes-increase-skip" />
    </menu>
    <menu action="context-brush-hardness-menu" name="Hardness">
    <menuitem action="context-brush-hardness-minimum" />
    <menuitem action="context-brush-hardness-maximum" />
    <menuitem action="context-brush-hardness-decrease" />
    <menuitem action="context-brush-hardness-increase" />
    <menuitem action="context-brush-hardness-decrease-skip" />
    <menuitem action="context-brush-hardness-increase-skip" />
    </menu>
    <menu action="context-brush-aspect-menu" name="Aspect">
    <menuitem action="context-brush-aspect-minimum" />
    <menuitem action="context-brush-aspect-maximum" />
    <menuitem action="context-brush-aspect-decrease" />
    <menuitem action="context-brush-aspect-increase" />
    <menuitem action="context-brush-aspect-decrease-skip" />
    <menuitem action="context-brush-aspect-increase-skip" />
    </menu>
    <menu action="context-brush-angle-menu" name="Angle">
    <menuitem action="context-brush-angle-minimum" />
    <menuitem action="context-brush-angle-maximum" />
    <menuitem action="context-brush-angle-decrease" />
    <menuitem action="context-brush-angle-increase" />
    <menuitem action="context-brush-angle-decrease-skip" />
    <menuitem action="context-brush-angle-increase-skip" />
    </menu>
    </menu>
    <menu action="context-pattern-menu" name="Pattern">
    <menuitem action="context-pattern-select-first" />
    <menuitem action="context-pattern-select-last" />
    <menuitem action="context-pattern-select-previous" />
    <menuitem action="context-pattern-select-next" />
    </menu>
    <menu action="context-palette-menu" name="Palette">
    <menuitem action="context-palette-select-first" />
    <menuitem action="context-palette-select-last" />
    <menuitem action="context-palette-select-previous" />
    <menuitem action="context-palette-select-next" />
    </menu>
    <menu action="context-gradient-menu" name="Gradient">
    <menuitem action="context-gradient-select-first" />
    <menuitem action="context-gradient-select-last" />
    <menuitem action="context-gradient-select-previous" />
    <menuitem action="context-gradient-select-next" />
    </menu>
    <menu action="context-font-menu" name="Font">
    <menuitem action="context-font-select-first" />
    <menuitem action="context-font-select-last" />
    <menuitem action="context-font-select-previous" />
    <menuitem action="context-font-select-next" />
    </menu>
    </menu>

    -->

    <menu action="edit-menu" name="Edit">
    <placeholder name="Undo">
    <menuitem action="edit-undo"/>
    <menuitem action="edit-redo"/>
    <menuitem action="edit-fade"/>
    <menuitem action="dialogs-undo-history"/>
    </placeholder>
    <separator/>
    <placeholder name="Cut">
    <menuitem action="edit-cut"/>
    </placeholder>
    <placeholder name="Copy">
    <menuitem action="edit-copy"/>
    <menuitem action="edit-copy-visible"/>
    </placeholder>
    <placeholder name="Paste">
    <menuitem action="edit-paste"/>
    <menuitem action="edit-paste-into"/>
    </placeholder>
    <menu action="edit-paste-as-menu" name="Paste as">
    <menuitem action="edit-paste-as-new-short"/>
    </menu>
    <menu action="edit-buffer-menu" name="Buffer">
    <menuitem action="edit-named-cut"/>
    <menuitem action="edit-named-copy"/>
    <menuitem action="edit-named-copy-visible"/>
    <menuitem action="edit-named-paste"/>
    </menu>
    <separator/>
    <placeholder name="Clear">
    <menuitem action="edit-clear"/>
    </placeholder>
    <placeholder name="Fill">
    <menuitem action="edit-fill-fg"/>
    <menuitem action="edit-fill-bg"/>
    <menuitem action="edit-fill-pattern"/>
    </placeholder>
    <placeholder name="Stroke">
    <menuitem action="select-stroke"/>
    <menuitem action="vectors-stroke"/>
    </placeholder>
    <separator/>
    <placeholder name="Preferences">
    <menuitem action="dialogs-preferences"/>
    <menuitem action="dialogs-keyboard-shortcuts"/>
    </placeholder>
    <separator/>
    </menu>

    <menu action="select-menu" name="Select">
    <menuitem action="select-all"/>
    <menuitem action="select-none"/>
    <menuitem action="select-invert"/>
    <menuitem action="select-float"/>
    <menuitem action="tools-by-color-select-short"/>
    <menuitem action="vectors-selection-from-vectors"/>
    <menuitem action="dialogs-selection-editor"/>
    <separator/>
    <placeholder name="Modify">
    <menuitem action="select-feather"/>
    <menuitem action="select-sharpen"/>
    <menuitem action="select-shrink"/>
    <menuitem action="select-grow"/>
    <menuitem action="select-border"/>
    </placeholder>
    <separator/>
    <menuitem action="quick-mask-toggle"/>
    <menuitem action="select-save"/>
    <menuitem action="vectors-selection-to-vectors-short"/>
    <separator/>
    </menu>

    <menu action="view-menu" name="View">
    <menuitem action="view-new"/>
    <menuitem action="view-dot-for-dot"/>
    <menu action="view-zoom-menu" name="Zoom">
    <menuitem action="view-zoom-revert"/>
    <menuitem action="view-zoom-out"/>
    <menuitem action="view-zoom-in"/>
    <menuitem action="view-zoom-fit-in"/>
    <menuitem action="view-zoom-fit-to"/>
    <separator/>
    <menuitem action="view-zoom-16-1"/>
    <menuitem action="view-zoom-8-1"/>
    <menuitem action="view-zoom-4-1"/>
    <menuitem action="view-zoom-2-1"/>
    <menuitem action="view-zoom-1-1"/>
    <menuitem action="view-zoom-1-2"/>
    <menuitem action="view-zoom-1-4"/>
    <menuitem action="view-zoom-1-8"/>
    <menuitem action="view-zoom-1-16"/>
    <separator/>
    <menuitem action="view-zoom-other"/>
    </menu>
    <separator/>
    <menuitem action="view-shrink-wrap"/>
    <menuitem action="view-fullscreen"/>
    <menu action="view-move-to-screen-menu" name="Move to Screen">
    <menuitem action="view-open-display"/>
    <separator/>
    </menu>
    <separator/>
    <menuitem action="view-navigation-window"/>
    <menuitem action="view-display-filters"/>
    <separator/>
    <menuitem action="view-show-selection"/>
    <menuitem action="view-show-layer-boundary"/>
    <menuitem action="view-show-guides"/>
    <menuitem action="view-show-grid"/>
    <menuitem action="view-show-sample-points"/>
    <separator/>
    <menuitem action="view-snap-to-guides"/>
    <menuitem action="view-snap-to-grid"/>
    <menuitem action="view-snap-to-canvas"/>
    <menuitem action="view-snap-to-vectors"/>
    <separator/>
    <menu action="view-padding-color-menu" name="Padding color">
    <menuitem action="view-padding-color-theme"/>
    <menuitem action="view-padding-color-light-check"/>
    <menuitem action="view-padding-color-dark-check"/>
    <menuitem action="view-padding-color-custom"/>
    <separator/>
    <menuitem action="view-padding-color-prefs"/>
    </menu>
    <menuitem action="view-show-menubar"/>
    <menuitem action="view-show-rulers"/>
    <menuitem action="view-show-scrollbars"/>
    <menuitem action="view-show-statusbar"/>
    <separator/>
    </menu>

    <menu action="image-menu" name="Image">
    <placeholder name="New">
    <menuitem action="image-duplicate"/>
    </placeholder>
    <menu action="image-mode-menu" name="Mode">
    <menuitem action="image-convert-rgb"/>
    <menuitem action="image-convert-grayscale"/>
    <menuitem action="image-convert-indexed"/>
    <separator/>
    <placeholder name="Color Profile"/>
    <separator/>
    </menu>
    <menu action="image-transform-menu" name="Transform">
    <placeholder name="Flip">
    <menuitem action="image-flip-horizontal"/>
    <menuitem action="image-flip-vertical"/>
    </placeholder>
    <separator/>
    <placeholder name="Rotate">
    <menuitem action="image-rotate-90"/>
    <menuitem action="image-rotate-270"/>
    <menuitem action="image-rotate-180"/>
    </placeholder>
    <separator/>
    </menu>
    <separator/>
    <placeholder name="Resize">
    <menuitem action="image-resize"/>
    <menuitem action="image-resize-to-layers"/>
    <menuitem action="image-resize-to-selection"/>
    <menuitem action="image-print-size"/>
    </placeholder>
    <placeholder name="Scale">
    <menuitem action="image-scale"/>
    </placeholder>
    <separator/>
    <placeholder name="Crop">
    <menuitem action="image-crop"/>
    </placeholder>
    <separator/>
    <placeholder name="Structure">
    <menuitem action="image-merge-layers"/>
    <menuitem action="image-flatten"/>
    </placeholder>
    <placeholder name="Arrange"/>
    <separator/>
    <menu action="image-guides-menu" name="Guides">
    </menu>
    <menuitem action="image-configure-grid"/>
    <menuitem action="image-properties"/>
    <separator/>
    </menu>

    <menu action="layers-menu" name="Layer">
    <placeholder name="New">
    <menuitem action="layers-new"/>
    <menuitem action="layers-duplicate"/>
    </placeholder>
    <placeholder name="Structure">
    <menuitem action="layers-anchor"/>
    <menuitem action="layers-merge-down"/>
    <menuitem action="layers-delete"/>
    </placeholder>
    <separator/>
    <placeholder name="Text">
    <menuitem action="layers-text-discard"/>
    <menuitem action="layers-text-to-vectors"/>
    <menuitem action="layers-text-along-vectors"/>
    <menu action="layers-text-to-selection-menu">
    <menuitem action="layers-text-selection-replace"/>
    <menuitem action="layers-text-selection-add"/>
    <menuitem action="layers-text-selection-subtract"/>
    <menuitem action="layers-text-selection-intersect"/>
    </menu>
    </placeholder>
    <separator/>
    <menu action="layers-stack-menu" name="Stack">
    <placeholder name="Select">
    <menuitem action="layers-select-previous"/>
    <menuitem action="layers-select-next"/>
    <menuitem action="layers-select-top"/>
    <menuitem action="layers-select-bottom"/>
    </placeholder>
    <separator/>
    <placeholder name="Position">
    <menuitem action="layers-raise"/>
    <menuitem action="layers-lower"/>
    <menuitem action="layers-raise-to-top"/>
    <menuitem action="layers-lower-to-bottom"/>
    </placeholder>
    <separator/>
    </menu>
    <menu action="layers-mask-menu" name="Mask">
    <placeholder name="Modify">
    <menuitem action="layers-mask-add"/>
    <menuitem action="layers-mask-apply"/>
    <menuitem action="layers-mask-delete"/>
    </placeholder>
    <separator/>
    <placeholder name="Properties">
    <menuitem action="layers-mask-show"/>
    <menuitem action="layers-mask-edit"/>
    <menuitem action="layers-mask-disable"/>
    </placeholder>
    <separator/>
    <placeholder name="Selection">
    <menuitem action="layers-mask-selection-replace"/>
    <menuitem action="layers-mask-selection-add"/>
    <menuitem action="layers-mask-selection-subtract"/>
    <menuitem action="layers-mask-selection-intersect"/>
    </placeholder>
    <separator/>
    </menu>
    <menu action="layers-transparency-menu" name="Transparency">
    <placeholder name="Modify">
    <menuitem action="layers-alpha-add"/>
    <menuitem action="layers-alpha-remove"/>
    </placeholder>
    <separator/>
    <placeholder name="Selection">
    <menuitem action="layers-alpha-selection-replace"/>
    <`enuitem action= (invalid UTF-8 string)
    Linux User #453176

  2. #2
    Linux Engineer Kieren's Avatar
    Join Date
    Aug 2007
    Location
    England
    Posts
    848
    Line 401 contains:

    <`enuitem action=<95>layers-alpha-se+ection-add"/>

    Not sure what character <95> is meant to be so I guess that's the problem.

    I'll try and replace it with a "...

    That has got rid of the above error message but produced new smaller one:

    There was an error parsing the menu definition from image-menu.xml: Error on line 401 char 6: '`' is not a valid character following a '<' character; it may not begin an element name

    I guess the ` should be an m. Line 402 starts with a + too so I'll remove that...
    Linux User #453176

  3. #3
    Linux Engineer Kieren's Avatar
    Join Date
    Aug 2007
    Location
    England
    Posts
    848
    Yep that fixed it There was an error parsing the menu definition from image-menu.xml: Error on line 401 char 6: '`' is not a valid character following a '<' character; it may not begin an element name

    I wonder why that happened! I was only resizing an image when it happend!
    Linux User #453176

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer Kieren's Avatar
    Join Date
    Aug 2007
    Location
    England
    Posts
    848
    Just noticed the 'l' in selection had turned into a + too so that needed correcting
    Linux User #453176

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •