cwensley / pablodraw

PabloDraw is an Ansi/Ascii text and RIPscrip vector graphic art editor/viewer with multi-user capabilities.
MIT License
309 stars 21 forks source link

Runtime issue on Fedora #97

Open fcambus opened 9 months ago

fcambus commented 9 months ago

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