Skip to content
This repository has been archived by the owner on Mar 26, 2021. It is now read-only.

0.2.0 build crashes on startup in Windows #100

Open
Durvin opened this issue Dec 23, 2020 · 3 comments
Open

0.2.0 build crashes on startup in Windows #100

Durvin opened this issue Dec 23, 2020 · 3 comments
Labels
bug A feature isn't working as intended

Comments

@Durvin
Copy link

Durvin commented Dec 23, 2020

📖 Overview

from OpenChart.log:
[2020-12-23 12:38:30.756] INFO ------------------------
[2020-12-23 12:38:30.774] INFO Initializing...
[2020-12-23 12:38:30.774] DEBUG Set current directory to E:\Openchart
[2020-12-23 12:38:30.775] DEBUG Setting up file formats.
[2020-12-23 12:38:30.775] INFO Finding noteskins...
[2020-12-23 12:38:30.869] ERROR Exception while trying to load noteskin 'default_arrow'.
System.DllNotFoundException: Unable to load DLL 'SDL2_image' or one of its dependencies: Den angitte modulen ble ikke funnet. (0x8007007E)
at SDL2.SDL_image.INTERNAL_IMG_Load(Byte* file)
at SDL2.SDL_image.IMG_Load(String file)
at OpenChart.UI.Surface.LoadFromFile(String path)
at OpenChart.NoteSkins.NoteSkinManager.loadKeyModeSkin(NoteSkin noteSkin, Int32 keyCount, String path)
at OpenChart.NoteSkins.NoteSkinManager.loadNoteSkin(String path, String skinName)
at OpenChart.NoteSkins.NoteSkinManager.LoadAll(String path)
[2020-12-23 12:38:30.886] INFO Ready.
[2020-12-23 12:38:30.886] INFO Displaying main window.
[2020-12-23 12:38:30.941] FATAL Uncaught exception: System.NullReferenceException: Object reference not set to an instance of an object.
at OpenChart.Application.Run()
at OpenChart.Program.Main()

[2020-12-23 12:38:35.413] INFO ------------------------
[2020-12-23 12:38:35.429] INFO Initializing...
[2020-12-23 12:38:35.429] DEBUG Set current directory to E:\Openchart
[2020-12-23 12:38:35.430] DEBUG Setting up file formats.
[2020-12-23 12:38:35.430] INFO Finding noteskins...
[2020-12-23 12:38:35.515] ERROR Exception while trying to load noteskin 'default_arrow'.
System.DllNotFoundException: Unable to load DLL 'SDL2_image' or one of its dependencies: Den angitte modulen ble ikke funnet. (0x8007007E)
at SDL2.SDL_image.INTERNAL_IMG_Load(Byte* file)
at SDL2.SDL_image.IMG_Load(String file)
at OpenChart.UI.Surface.LoadFromFile(String path)
at OpenChart.NoteSkins.NoteSkinManager.loadKeyModeSkin(NoteSkin noteSkin, Int32 keyCount, String path)
at OpenChart.NoteSkins.NoteSkinManager.loadNoteSkin(String path, String skinName)
at OpenChart.NoteSkins.NoteSkinManager.LoadAll(String path)
[2020-12-23 12:38:35.523] INFO Ready.
[2020-12-23 12:38:35.524] INFO Displaying main window.
[2020-12-23 12:38:35.568] FATAL Uncaught exception: System.NullReferenceException: Object reference not set to an instance of an object.
at OpenChart.Application.Run()
at OpenChart.Program.Main()

Den angitte modulen ble ikke funnet --> The specified module was not found
I should also note that i tried to install this on my E:/ drive, and not on C:/

@Durvin
Copy link
Author

Durvin commented Dec 23, 2020

Launching in admin makes no difference. Installing and launching in C:/ also makes no difference

@Kangaroux
Copy link
Collaborator

@Durvin Can you download the SDL_Image DLLs, extract it next to openchart.exe, and try that?

@Kangaroux Kangaroux changed the title Immediately closes in windows 0.2.0 build crashes on startup in Windows Dec 23, 2020
@Kangaroux Kangaroux added the bug A feature isn't working as intended label Dec 23, 2020
@Durvin
Copy link
Author

Durvin commented Dec 23, 2020

[2020-12-23 20:24:34.352] INFO ------------------------
[2020-12-23 20:24:34.378] INFO Initializing...
[2020-12-23 20:24:34.378] DEBUG Set current directory to E:\Openchart
[2020-12-23 20:24:34.379] DEBUG Setting up file formats.
[2020-12-23 20:24:34.379] INFO Finding noteskins...
[2020-12-23 20:24:34.535] ERROR Exception while trying to load noteskin 'default_arrow'.
System.TypeInitializationException: The type initializer for 'Cairo.NativeMethods' threw an exception.
---> System.DllNotFoundException: Cairo: libcairo-2.dll, libcairo.so.2, libcairo.2.dylib, cairo.dll
at GLibrary.Load(Library library)
at Cairo.NativeMethods..cctor()
--- End of inner exception stack trace ---
at Cairo.ImageSurface..ctor(IntPtr data, Format format, Int32 width, Int32 height, Int32 stride)
at OpenChart.UI.Surface.createCairoSurface()
at OpenChart.UI.Surface..ctor(IntPtr data, Boolean freeOnDispose)
at OpenChart.UI.Surface.LoadFromFile(String path)
at OpenChart.NoteSkins.NoteSkinManager.loadKeyModeSkin(NoteSkin noteSkin, Int32 keyCount, String path)
at OpenChart.NoteSkins.NoteSkinManager.loadNoteSkin(String path, String skinName)
at OpenChart.NoteSkins.NoteSkinManager.LoadAll(String path)
[2020-12-23 20:24:34.574] INFO Ready.
[2020-12-23 20:24:34.574] INFO Displaying main window.
[2020-12-23 20:24:34.622] FATAL Uncaught exception: System.NullReferenceException: Object reference not set to an instance of an object.
at OpenChart.Application.Run()
at OpenChart.Program.Main()

SDL2_image is now being found, but it is now complaining about some missing cairo DLLs

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug A feature isn't working as intended
Projects
None yet
Development

No branches or pull requests

2 participants