Bug 5362 - Pinta does not work
Summary: Pinta does not work
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Malo Deniélou
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-11 22:17 CEST by Jacques Pronchery
Modified: 2012-04-23 13:08 CEST (History)
2 users (show)

See Also:
Source RPM: pinta-1.1-1.mga2
CVE:
Status comment:


Attachments

Description Jacques Pronchery 2012-04-11 22:17:26 CEST
When lauching there is :

[jacques@localhost ~]$ pinta
Gtk-Message: Failed to load module "canberra-gtk-module"

Unhandled Exception: System.ArgumentException: 'gtk-close' 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.OpenImagesListWidget..ctor () [0x00000] in <filename unknown>:0 
  at Pinta.OpenImagesPad.Initialize (MonoDevelop.Components.Docking.DockFrame workspace, Gtk.Menu padMenu) [0x00000] in <filename unknown>:0 
  at Pinta.MainWindow.CreateDockAndPads (Gtk.HBox container) [0x00000] in <filename unknown>:0 
  at Pinta.MainWindow.CreatePanels (Pinta.WindowShell shell) [0x00000] in <filename unknown>:0 
  at Pinta.MainWindow.CreateWindow () [0x00000] in <filename unknown>:0 
  at Pinta.MainWindow..ctor () [0x00000] in <filename unknown>:0 
  at Pinta.MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentException: 'gtk-close' 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.OpenImagesListWidget..ctor () [0x00000] in <filename unknown>:0 
  at Pinta.OpenImagesPad.Initialize (MonoDevelop.Components.Docking.DockFrame workspace, Gtk.Menu padMenu) [0x00000] in <filename unknown>:0 
  at Pinta.MainWindow.CreateDockAndPads (Gtk.HBox container) [0x00000] in <filename unknown>:0 
  at Pinta.MainWindow.CreatePanels (Pinta.WindowShell shell) [0x00000] in <filename unknown>:0 
  at Pinta.MainWindow.CreateWindow () [0x00000] in <filename unknown>:0 
  at Pinta.MainWindow..ctor () [0x00000] in <filename unknown>:0 
  at Pinta.MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0 
[jacques@localhost ~]$
Remco Rijnders 2012-04-12 07:26:03 CEST

Assignee: bugsquad => malo

Comment 1 Malo Deniélou 2012-04-12 12:50:08 CEST
Thanks for the report. Can you install gnome-icon-theme and see if that fixes the problem?

Status: NEW => ASSIGNED

Comment 2 Jacques Pronchery 2012-04-12 13:10:06 CEST
With gnome-icon-theme it is the same problem.
Comment 3 Malo Deniélou 2012-04-12 15:18:07 CEST
Ok. I could reproduce the bug. On i586, when I select the oxygen icon theme in kde-settings, pinta produces the error above. If another icon theme is selected, it works fine.
I can't reproduce on x86_64 though. I also don't understand why the kde-settings matters for this application which seems to use gtk ...

A bug in oxygen?
Malo Deniélou 2012-04-12 15:26:21 CEST

CC: (none) => juan.baptiste

Juan Luis Baptiste 2012-04-12 16:47:59 CEST

CC: (none) => hugo

Comment 4 Hugo Pereira Da Costa 2012-04-12 16:57:17 CEST
The reason why the kde settings matter is that oxygen-gtk forces the use of the icon theme selected for KDE in gtk applications, for consistency sake. 

Now, there are some known (non standard) icons in gnome icon theme, that are not implemented in oxygen (because of the non-standardness).

Oxygen-gtk has a mechanism to remap some of these missing icons to existing ones.
Why this mechanism fails for pinta whereas it works for all other applications is a mistery. This is likely due to some "hard-coded" names in the application.

I'll investigate a bit.
Comment 5 Hugo Pereira Da Costa 2012-04-12 16:58:13 CEST
(PS: first thing: an application should not -never- crash in case of a missing icon. So this at least, is a pinta bug)
Comment 6 Malo Deniélou 2012-04-12 18:07:24 CEST
Thanks Hugo.
Upstream BR https://bugs.launchpad.net/pinta/+bug/879043

See Also: (none) => https://launchpad.net/bugs/879043

Comment 7 Hugo Pereira Da Costa 2012-04-13 10:38:58 CEST
Also, 

do you have the "gnome" icon theme installed ? 
Here when this installed, the crash does not happen any more (when using oxygen-gtk), the reason being that oxygen-gtk is supposed to use this theme as a "fallback", when available.
Comment 8 Jacques Pronchery 2012-04-13 12:36:58 CEST
Yes I have gnome-icon-theme installed.
I use LXDE.
When I choose clearlooks for interface theme and tango for icon theme,
pinta work fine without messages.
And when I choose oxygen for interface and icon theme, it crashes.
Comment 9 Malo Deniélou 2012-04-23 13:08:58 CEST
I applied a patch from upstream. It fixes the crash. Thanks for reporting it.

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.