error message on cut/paste on xubuntu

Bug #990799 reported by sam on 2012-04-28
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pinta
Undecided
Unassigned

Bug Description

In xubuntu 12.04 if I copy a section of a picture, then paste it, I get an error message coming up 7 times in a row, then an extra twice each time I click on anything until I restart pinta.

Unhandled exception:
'gtk-paste' is not a valid resource name of assembly 'Pinta.Resources, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null'.

System.ArgumentException: 'gtk-paste' is not a valid resource name of assembly 'Pinta.Resources, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null'.
  at Gdk.PixbufLoader.InitFromAssemblyResource (System.Reflection.Assembly assembly, System.String resource) [0x00000] in <filename unknown>:0
  at Gdk.PixbufLoader..ctor (System.Reflection.Assembly assembly, System.String resource) [0x00000] in <filename unknown>:0
  at Gdk.Pixbuf..ctor (System.Reflection.Assembly assembly, System.String resource) [0x00000] in <filename unknown>:0
  at Gdk.Pixbuf.LoadFromResource (System.String resource) [0x00000] in <filename unknown>:0
  at Pinta.Resources.ResourceLoader.GetIcon (System.String name, Int32 size) [0x00000] in <filename unknown>:0
  at Pinta.ResourceManager.GetIcon (System.String name, Int32 size) [0x00000] in <filename unknown>:0
  at Pinta.ResourceManager.GetIcon (System.String name) [0x00000] in <filename unknown>:0
  at Pinta.Gui.Widgets.HistoryTreeView.HistoryRenderIcon (Gtk.TreeViewColumn column, Gtk.CellRenderer cell, TreeModel model, TreeIter iter) [0x00000] in <filename unknown>:0
  at GtkSharp.TreeCellDataFuncWrapper.NativeCallback (IntPtr tree_column, IntPtr cell, IntPtr tree_model, IntPtr iter, IntPtr data) [0x00000] in <filename unknown>:0

If I try cutting a secion of image, then I get the following similar message, but this seems to just come up in an infinite loop:
Unhandled exception:
'gtk-cut' is not a valid resource name of assembly 'Pinta.Resources, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null'

System.ArgumentException: 'gtk-cut' is not a valid resource name of assembly 'Pinta.Resources, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null'.
  at Gdk.PixbufLoader.InitFromAssemblyResource (System.Reflection.Assembly assembly, System.String resource) [0x00000] in <filename unknown>:0
  at Gdk.PixbufLoader..ctor (System.Reflection.Assembly assembly, System.String resource) [0x00000] in <filename unknown>:0
  at Gdk.Pixbuf..ctor (System.Reflection.Assembly assembly, System.String resource) [0x00000] in <filename unknown>:0
  at Gdk.Pixbuf.LoadFromResource (System.String resource) [0x00000] in <filename unknown>:0
  at Pinta.Resources.ResourceLoader.GetIcon (System.String name, Int32 size) [0x00000] in <filename unknown>:0
  at Pinta.ResourceManager.GetIcon (System.String name, Int32 size) [0x00000] in <filename unknown>:0
  at Pinta.ResourceManager.GetIcon (System.String name) [0x00000] in <filename unknown>:0
  at Pinta.Gui.Widgets.HistoryTreeView.HistoryRenderIcon (Gtk.TreeViewColumn column, Gtk.CellRenderer cell, TreeModel model, TreeIter iter) [0x00000] in <filename unknown>:0
  at GtkSharp.TreeCellDataFuncWrapper.NativeCallback (IntPtr tree_column, IntPtr cell, IntPtr tree_model, IntPtr iter, IntPtr data) [0x00000] in <filename unknown>:0

Thanks
Sam

Cameron White (cameronwhite91) wrote :

Do you have gnome-icon-theme and/or gnome-icon-theme-full installed? It sounds like your icon theme is missing some stock icons (similar to bug #785034)

This should be fixed in Pinta 1.3, though, which does a much better job of handling missing icons and not crashing.
(You can test this out in the daily builds PPA - https://launchpad.net/~pinta-maintainers/+archive/pinta-daily)

sam (samr85) wrote :

I did have gnome-icon-theme installed, but not -full. I've just installed that and it now works fine. Thanks for the speedy response!

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers