Bug #230

avatar

Startup Error in Windows: Unrecognized image file format

Added by Ethan Lee 5529 days ago. Updated 4297 days ago.

Status:Closed Start:11/02/2009
Priority:Normal Due date:
Assigned to:avatarMirco Bauer % Done:

100%

Category:Other
Target version:-
Complexity:

Found in Version:

Votes: 0

Description

I am running Windows Vista, using the standard installer (Gtk# for .Net 2.12.9) and Microsoft .NET Framework 3.5.1. I have already restarted my computer after installing Smuxi. When I try to launch it (specifically, smuxi-frontend-gnome.exe), I consistently receive the following issue:

2009-11-02 08:28:03,198 [Main] INFO Smuxi.Engine.FrontendConfig - Loading config (FrontendConfig)
2009-11-02 08:28:03,198 [Main] INFO Smuxi.Engine.Config - Saving config
2009-11-02 08:28:03,213 [Main] FATAL Smuxi.Frontend.Gnome.MainClass - GLib.GException: Unrecognized image file format
at Gdk.PixbufLoader.Write(Byte[] buf, UInt64 count)
at Gdk.PixbufLoader.LoadFromStream(Stream input)
at Gdk.PixbufLoader.InitFromAssemblyResource(Assembly assembly, String resource)
at Gdk.Pixbuf..ctor(Assembly assembly, String resource)
at Smuxi.Frontend.Gnome.Frontend.Init(String[] args)
at Smuxi.Frontend.Gnome.MainClass.Main(String[] args)

Unhandled Exception: GLib.GException: Unrecognized image file format
at Gdk.PixbufLoader.Write(Byte[] buf, UInt64 count)
at Gdk.PixbufLoader.LoadFromStream(Stream input)
at Gdk.PixbufLoader.InitFromAssemblyResource(Assembly assembly, String resource)
at Gdk.Pixbuf..ctor(Assembly assembly, String resource)
at Smuxi.Frontend.Gnome.Frontend.Init(String[] args)
at Smuxi.Frontend.Gnome.MainClass.Main(String[] args)

gtk-sharp-svg-test.exe (131.5 KB) Mirco Bauer, 01/31/2011 06:26 PM

gtk-sharp-svg-test.cs (414 Bytes) Mirco Bauer, 01/31/2011 06:31 PM

gtk-sharp-svg-test-x86.exe (131.5 KB) Mirco Bauer, 01/31/2011 06:40 PM

gtk-sharp-png-test.cs (447 Bytes) Mirco Bauer, 03/18/2013 11:37 PM

gtk-sharp-png-test-x86.exe (50 KB) Mirco Bauer, 03/18/2013 11:37 PM


Related issues

related to Smuxi - Bug #304 Startup Crash on OpenSUSE: GLib.GException: Unrecognized image file format Closed 01/18/2010

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

Revision c6aae133c91bf1097c266b0e25f0a73a52baba94
Added by Mirco Bauer 4767 days ago

[Installer-Win32] Install GTK# 2.12.10 instead of 2.12.9

Now that Smuxi no longer loads SVG images, it can use the GTK# 2.12.10
installer which lacks SVG support. (references: #230)

With GTK# 2.12.10 the issue is fixed which un-maximized Smuxi when it was
restored from minimize. (closes: #619)

History

Updated by Christian Herrmann 5528 days ago

avatar

this happens to me on linux (debian 5.0 minimal) aswell.

Updated by Christian Herrmann 5528 days ago

avatar

My system configuration was like this before solving the issue:
I had a debian 5.0 minimal. Installed smuxi from backports deb file.
I started smuxi using X11 forwarding to another machine. -> Problem occured.
I tried to compile smuxi on that machine. I had to install libgnome2.0-cil.
After installed that package smuxi worked out of the box. Seems like there is a missing dependency.

Updated by Mirco Bauer 5523 days ago

avatar
  • Category set to Other
  • Assigned to set to Mirco Bauer

Christian Herrmann wrote:

My system configuration was like this before solving the issue: I had a debian 5.0 minimal. Installed smuxi from backports deb file. I started smuxi using X11 forwarding to another machine. -> Problem occured. I tried to compile smuxi on that machine. I had to install libgnome2.0-cil. After installed that package smuxi worked out of the box. Seems like there is a missing dependency.

On Debian I could track this issue down to missing librsvg2-common, as that ships the SVG loader support for GTK+. I will add this package to the dependencies. No idea why it would file on Windows though, sure it's GTK# 2.12.9? Try reinstalling GTK#...

Updated by Ethan Lee 5515 days ago

avatar

I reinstalled GTK#, but it still fails.

Updated by Mirco Bauer 5313 days ago

avatar

Today I found a Smuxi user with exactly this problem and I could find the cause of it. If the user had another installation of a GTK+ based application like GIMP or Pigdin then the PATH environment variable will contain different GTK+ versions at the same time. The first GTK+ version that is listed will get used and that one might not have SVG support! I don't really know a solution except removing the other GTK+ installs or change the order in the PATH variable.

Updated by Mirco Bauer 5074 days ago

avatar

Here is a simple test application that can be used to test wether GTK# with SVG support works correctly.

Updated by Mirco Bauer 5074 days ago

avatar

Updated by Mirco Bauer 5074 days ago

avatar
19:59:52 <SilentException> i did a complete uninstall of gtk#
20:00:22 <SilentException> and in add remove programs i had two of them (one was older)!
20:00:42 <SilentException> but i never installed gtk#, first time hearing of it :S
20:01:00 <SilentException> now i removed both and will install again
20:11:02 <SilentException> ok, now i don't have two in add/remove programs
20:11:16 <SilentException> and test program ran ok (with the icon)!
20:11:30 <SilentException> awesome, smuxi also started :)
20:15:20 <meebey> SilentException: for the record, which exact gtk# install/version is now installed?
20:16:57 <SilentException> right now on win 7 i have "Gtk# for .Net 2.12.9" 

Updated by Mirco Bauer 5036 days ago

avatar
It seems like the GTK# 2.12.10 installer is lacking SVG support:
2011-03-10 21:43:49,050 [Main] FATAL Smuxi.Frontend.Gnome.MainClass - GLib.GException: Unrecognized image file format
   at Gdk.PixbufLoader.Write(Byte[] buf, UInt64 count)
   at Gdk.PixbufLoader.LoadFromStream(Stream input)
   at Gdk.PixbufLoader.InitFromAssemblyResource(Assembly assembly, String resource)
   at Gdk.Pixbuf..ctor(Assembly assembly, String resource)
   at Smuxi.Frontend.Gnome.Frontend.Init(String[] args)
   at Smuxi.Frontend.Gnome.MainClass.Main(String[] args)

Updated by Robert Nordan 5022 days ago

avatar

Mirco Bauer wrote:

It seems like the GTK# 2.12.10 installer is lacking SVG support: [...]

I can confirm that there is a problem with gtk# 2.12.10, I got this error with it on Windows 7 (x64), after uninstalling and installing gtk # 2.12.9-2 Smuxi works like a charm! Took a look at the gtk# bug tracker, and it is a known bug: //bugzilla.novell.com/show_bug.cgi?id=661405">https://bugzilla.novell.com/show_bug.cgi?id=661405

Updated by Mirco Bauer 4768 days ago

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

Updated by Mirco Bauer 4750 days ago

avatar

This change can be tested with a development build which can be obtained from here: http://www.smuxi.org/documentation/running-from-git/

Also available in: Atom PDF