Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime issue on Fedora #97

Open
fcambus opened this issue Oct 24, 2023 · 0 comments
Open

Runtime issue on Fedora #97

fcambus opened this issue Oct 24, 2023 · 0 comments

Comments

@fcambus
Copy link

fcambus commented Oct 24, 2023

Hi,

After installing the dotnet-sdk-7.0 package, I'm attempting to build and run PabloDraw as follow:

dotnet build Source/PabloDraw/PabloDraw.csproj
dotnet run --project Source/PabloDraw/PabloDraw.csproj

Builds succeeds but I get this error at runtime when starting the program:

Platform: Gtk
Version:3.3.12.0

```
GLib.GException: Unrecognized image file format
   at Gdk.PixbufLoader.Write(Byte[] buf, UInt64 count)
   at Gdk.PixbufLoader.Write(Byte[] bytes, UInt32 count)
   at Gdk.PixbufLoader.LoadFromStream(Stream input)
   at Gdk.PixbufLoader.InitFromStream(Stream stream)
   at Gdk.PixbufLoader..ctor(Stream stream)
   at Gdk.Pixbuf..ctor(Stream stream)
   at Eto.GtkSharp.Drawing.IconHandler.Create(Stream stream)
   at Eto.Drawing.Icon..ctor(Stream stream)
   at Eto.Drawing.Icon.FromResource(String resourceName, Assembly assembly)
   at Pablo.ImageCache.IconFromResource(String resource, Assembly assembly) in /home/fcambus/pablodraw/Source/Pablo/ImageCache.cs:line 21
   at Pablo.Interface.Main..ctor() in /home/fcambus/pablodraw/Source/Pablo.Interface/Main.cs:line 395
   at Pablo.Interface.PabloApplication.OnInitialized(EventArgs e) in /home/fcambus/pablodraw/Source/Pablo.Interface/PabloApplication.cs:line 49
   at Eto.Forms.Application.Callback.OnInitialized(Application widget, EventArgs e)
   at Eto.GtkSharp.Forms.ApplicationHandler.Run()
   at Eto.Forms.Application.Run()
   at PabloDraw.CommandHandlers.EditorCommandLine.Process(ProcessCommandLineArgs args) in /home/fcambus/pablodraw/Source/PabloDraw/CommandHandlers/EditorCommandLine.cs:line 80
```

I don't know much about the .NET ecosystem so I might be missing something obvious.

Here is information about the build environment used:

.NET SDK:
 Version:   7.0.111
 Commit:    06c8b346e4

Runtime Environment:
 OS Name:     fedora
 OS Version:  38
 OS Platform: Linux
 RID:         fedora.38-x64
 Base Path:   /usr/lib64/dotnet/sdk/7.0.111/

Host:
  Version:      7.0.11
  Architecture: x64
  Commit:       ecb34f85ec

.NET SDKs installed:
  7.0.111 [/usr/lib64/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 7.0.11 [/usr/lib64/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 7.0.11 [/usr/lib64/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  DOTNET_ROOT       [/usr/lib64/dotnet]

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant