Bug #304

avatar

Startup Crash on OpenSUSE: GLib.GException: Unrecognized image file format

Added by Mirco Bauer 5452 days ago. Updated 4742 days ago.

Status:Closed Start:01/18/2010
Priority:High Due date:
Assigned to:avatarMirco Bauer % Done:

100%

Category:Other
Target version:0.8.9
Complexity:

Found in Version:

Votes: 0

Description

Starting Smuxi 0.7 on OpenSUSE 11.2 x64 crashes with:
2010-01-18 11:13:17,575 [Main] INFO  Smuxi.Frontend.Gnome.Frontend - Smuxi - GNOME frontend 0.7.0.0 starting
2010-01-18 11:13:22,038 [Main] INFO  Smuxi.Engine.FrontendConfig - Loading config (FrontendConfig)
2010-01-18 11:13:22,116 [Main] FATAL Smuxi.Frontend.Gnome.MainClass - GLib.GException: Unrecognized image file format
  at Gdk.PixbufLoader.Write (System.Byte[] buf, UInt64 count) [0x00000]
  at Gdk.PixbufLoader.Write (System.Byte[] bytes, UInt32 count) [0x00000]
  at Gdk.PixbufLoader.LoadFromStream (System.IO.Stream input) [0x00000]
  at Gdk.PixbufLoader.InitFromAssemblyResource (System.Reflection.Assembly assembly, System.String resource) [0x00000]
  at Gdk.PixbufLoader..ctor (System.Reflection.Assembly assembly, System.String resource) [0x00000]
  at Gdk.Pixbuf..ctor (System.Reflection.Assembly assembly, System.String resource) [0x00000]
  at Smuxi.Frontend.Gnome.Frontend.Init (System.String[] args) [0x00000]
  at Smuxi.Frontend.Gnome.MainClass.Main (System.String[] args) [0x00000]

This looks very familar with #230

The librsvg package is installed though, wondering which other packages is needed for SVG support in GTK+


Related issues

related to Smuxi - Bug #230 Startup Error in Windows: Unrecognized image file format Closed 11/02/2009

Associated revisions

Revision e5d694e3ec01656546791b1a43762e4166fa5231
Added by Mirco Bauer 4768 days ago

[Frontend-GNOME] Load PNG instead of SVG images, honor GTK+ icon themes and install icons into correct places

- Only load pre-scaled PNG image files in Smuxi so the SVG pixbuf loader
for GDK is no longer needed. (closes: #230, #304)
- Load icons using Gtk.IconTheme to honor GTK+ icon themes. (closes: #472)
- Install SVG and PNGs into correct locations as per
GNOME Goal: Install theme-friendly icons [0]. (closes: #503)

http://live.gnome.org/GnomeGoals/AppIcon

History

Updated by Mirco Bauer 5439 days ago

avatar
  • Target version changed from 0.7.1 to 0.7.2

Updated by Mirco Bauer 5268 days ago

avatar
  • Target version changed from 0.7.2 to 0.8

Updated by Mirco Bauer 5232 days ago

avatar
  • Target version changed from 0.8 to TBD

Updated by Tomas Forsman 5220 days ago

avatar
getting similar:
2010-09-07 22:25:02,329 [Main] INFO  Smuxi.Frontend.Gnome.Frontend - Smuxi - GNOME frontend 0.7.2.2 starting
2010-09-07 22:25:02,416 [Main] INFO  Smuxi.Engine.FrontendConfig - Loading config (FrontendConfig)
2010-09-07 22:25:02,453 [Main] FATAL Smuxi.Frontend.Gnome.MainClass - GLib.GException: Unrecognized image file format
  at Gdk.PixbufLoader.Write (System.Byte[] buf, UInt64 count) [0x00000] in <filename unknown>:0 
  at Gdk.PixbufLoader.Write (System.Byte[] bytes, UInt32 count) [0x00000] in <filename unknown>:0 
  at Gdk.PixbufLoader.LoadFromStream (System.IO.Stream input) [0x00000] in <filename unknown>:0 
  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 Smuxi.Frontend.Gnome.Frontend.Init (System.String[] args) [0x00000] in <filename unknown>:0 
  at Smuxi.Frontend.Gnome.MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0 

Unhandled Exception: GLib.GException: Unrecognized image file format
  at Gdk.PixbufLoader.Write (System.Byte[] buf, UInt64 count) [0x00000] in <filename unknown>:0 
  at Gdk.PixbufLoader.Write (System.Byte[] bytes, UInt32 count) [0x00000] in <filename unknown>:0 
  at Gdk.PixbufLoader.LoadFromStream (System.IO.Stream input) [0x00000] in <filename unknown>:0 
  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 Smuxi.Frontend.Gnome.Frontend.Init (System.String[] args) [0x00000] in <filename unknown>:0 
  at Smuxi.Frontend.Gnome.MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0 
[mforsman@localhost smuxi]$ 

Updated by Mirco Bauer 5220 days ago

avatar
Here is a test-case that can be used to see if the GTK+ install has working SVG support:
echo 'Gtk.Application.Init(); var img = new Gtk.Image("/usr/share/pixmaps/smuxi-frontend-gnome.svg"); var win = new Gtk.Window("Test"); win.Add(img); win.ShowAll(); Gtk.Application.Run();' | csharp -pkg:gtk-sharp-2.0

It should simply show a window with the smuxi icon in it.

Updated by Tomas Forsman 5219 days ago

avatar

i deleted librsvg in laptop, installed it again. That did the trick. could been a bad installation of librsvg in first place.

Updated by Mirco Bauer 4768 days ago

avatar
  • Status changed from New to Closed
  • % Done changed from 0 to 100

Updated by Mirco Bauer 4742 days ago

avatar
  • Target version changed from TBD to 0.8.9

Also available in: Atom PDF