OpenChartProject / OpenChart

✨ NEW REPO ✨ https://github.com/OpenChartProject/OpenChart-web
https://github.com/OpenChartProject/OpenChart-web
Other
8 stars 3 forks source link

VSCode debugger crashes when loading noteskin #45

Closed Kangaroux closed 4 years ago

Kangaroux commented 4 years ago

📖 Overview

https://github.com/OpenChartProject/OpenChart/blob/master/OpenChart/src/UI/Assets/ImageAsset.cs#L30

The new Pixbuf() call is causing a crash with no error message. Possibly solved by #43?

📄 Example

new Gdk.Pixbuf("noteskins/default_arrow/4k/tap_1.png")
// The target process exited with code 0 while evaluating the function 'Gdk.Pixbuf.Pixbuf'.The program '[18460] OpenChart.dll' has exited with code 0 (0x0).

Doesn't seem to be an issue of the working directory being incorrect. Referencing a path which doesn't exist throws an exception:

new Gdk.Pixbuf("noteskins/default_arrow/4k/DOESNT_EXIST.png")
// 'new Gdk.Pixbuf("noteskins/default_arrow/4k/DOESNT_EXIST.png")' threw an exception of type 'GLib.GException'
Kangaroux commented 4 years ago

Relevant issue: https://github.com/GtkSharp/GtkSharp/issues/147