Skip to content

CKAN crashing on startup MacOS #2595

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

Closed
motoboy98 opened this issue Dec 3, 2018 · 6 comments · Fixed by #2600
Closed

CKAN crashing on startup MacOS #2595

motoboy98 opened this issue Dec 3, 2018 · 6 comments · Fixed by #2600
Labels
macOS Issues specific for macOS

Comments

@motoboy98
Copy link

motoboy98 commented Dec 3, 2018

Background

CKAN Version:
1.25.4

KSP Version:
1.5.1

Operating System:
MacOS 10.14.1 Mojave

Have you made any manual changes to your GameData folder (i.e., not via CKAN)?

Problem

What steps did you take in CKAN?
Open it.

What did you expect to happen?
Run as normal.

It opened once just fine and I was able to interact with CKAN as usual.

What happened instead?
The window opened but then the whole program froze. I let it sit just in case it was refreshing but the program never managed to run properly. I tried deleting the GUIConfig file and that allowed me to open CKAN again. However, this only seems to happen if I select yes to auto-updating the repositories. If I select no to the, the next time I open CKAN, it immediately crashes rather than freezes.

Screenshots:

image

CKAN error codes (if applicable):

System.DllNotFoundException: libX11.dylib
  at (wrapper managed-to-native) CKAN.X11.XSetClassHint(intptr,intptr,intptr)
  at CKAN.X11.SetWMClass (System.String name, System.String wmClass, System.IntPtr handle) [0x0004c] in <2c2371fb3f2949b2a6dfae930758e6ee>:0 
  at CKAN.Main.<.ctor>b__37_5 (System.Object sender, System.EventArgs e) [0x00010] in <2c2371fb3f2949b2a6dfae930758e6ee>:0 
  at (wrapper delegate-invoke) <Module>.invoke_void_object_EventArgs(object,System.EventArgs)
  at System.Windows.Forms.Control.OnHandleCreated (System.EventArgs e) [0x00019] in <7cb6368c5ba549ff8a02965fd9de701e>:0 
  at System.Windows.Forms.Form.OnHandleCreated (System.EventArgs e) [0x00016] in <7cb6368c5ba549ff8a02965fd9de701e>:0 
  at System.Windows.Forms.Control.WmCreate (System.Windows.Forms.Message& m) [0x00000] in <7cb6368c5ba549ff8a02965fd9de701e>:0 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x0021c] in <7cb6368c5ba549ff8a02965fd9de701e>:0 
  at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <7cb6368c5ba549ff8a02965fd9de701e>:0 
  at System.Windows.Forms.ContainerControl.WndProc (System.Windows.Forms.Message& m) [0x00029] in <7cb6368c5ba549ff8a02965fd9de701e>:0 
  at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message& m) [0x00166] in <7cb6368c5ba549ff8a02965fd9de701e>:0 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <7cb6368c5ba549ff8a02965fd9de701e>:0 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x0000b] in <7cb6368c5ba549ff8a02965fd9de701e>:0 
  at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x00085] in <7cb6368c5ba549ff8a02965fd9de701e>:0 
1926 [1] ERROR CKAN.URLHandlers (null) - There was an error while registering the URL handler for ckan:// - Could not find a part of the path "/Users/teamgros/.local/share/applications/mimeapps.list".
1936 [1] ERROR CKAN.URLHandlers (null) -   at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x00164] in <14f1e720d53a4a6a8800252bec102319>:0 
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) [0x00000] in <14f1e720d53a4a6a8800252bec102319>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool)
  at System.IO.StreamWriter.CreateFile (System.String path, System.Boolean append, System.Boolean checkHost) [0x0001c] in <14f1e720d53a4a6a8800252bec102319>:0 
  at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize, System.Boolean checkHost) [0x00055] in <14f1e720d53a4a6a8800252bec102319>:0 
  at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize) [0x00000] in <14f1e720d53a4a6a8800252bec102319>:0 
  at System.IO.StreamWriter..ctor (System.String path) [0x00008] in <14f1e720d53a4a6a8800252bec102319>:0 
  at (wrapper remoting-invoke-with-check) System.IO.StreamWriter..ctor(string)
  at System.IO.File.WriteAllLines (System.String path, System.String[] contents) [0x00000] in <14f1e720d53a4a6a8800252bec102319>:0 
  at CKAN.URLHandlers.RegisterURLHandler_Linux () [0x00050] in <2c2371fb3f2949b2a6dfae930758e6ee>:0 
  at CKAN.URLHandlers.RegisterURLHandler (CKAN.Configuration config, CKAN.IUser user) [0x00007] in <2c2371fb3f2949b2a6dfae930758e6ee>:0 
Terminated: 15
@HebaruSan HebaruSan added the macOS Issues specific for macOS label Dec 3, 2018
@HebaruSan
Copy link
Member

Is the progress bar moving or frozen?

@motoboy98
Copy link
Author

motoboy98 commented Dec 3, 2018

it is frozen. It moves briefly when the window first pops up but then ends up like in the picture

@StumbleNOLA
Copy link

I am having the same issues. But I haven't gotten the update to load once yet.

@dangros
Copy link

dangros commented Dec 3, 2018

I have pretty much the same problem which occurred after CKAN tried to update itself. Worked great before that. I'm also on a mac.
My error:
mono --arch=32 ckan.exe
System.DllNotFoundException: libX11.dylib
at (wrapper managed-to-native) CKAN.X11.XSetClassHint(intptr,intptr,intptr)
at CKAN.X11.SetWMClass (System.String name, System.String wmClass, System.IntPtr handle) [0x0004c] in <2c2371fb3f2949b2a6dfae930758e6ee>:0
at CKAN.Main.<.ctor>b__37_5 (System.Object sender, System.EventArgs e) [0x00010] in <2c2371fb3f2949b2a6dfae930758e6ee>:0
at (wrapper delegate-invoke) .invoke_void_object_EventArgs(object,System.EventArgs)
at System.Windows.Forms.Control.OnHandleCreated (System.EventArgs e) [0x00019] in <7cb6368c5ba549ff8a02965fd9de701e>:0
at System.Windows.Forms.Form.OnHandleCreated (System.EventArgs e) [0x00016] in <7cb6368c5ba549ff8a02965fd9de701e>:0
at System.Windows.Forms.Control.WmCreate (System.Windows.Forms.Message& m) [0x00000] in <7cb6368c5ba549ff8a02965fd9de701e>:0
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x0021c] in <7cb6368c5ba549ff8a02965fd9de701e>:0
at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <7cb6368c5ba549ff8a02965fd9de701e>:0
at System.Windows.Forms.ContainerControl.WndProc (System.Windows.Forms.Message& m) [0x00029] in <7cb6368c5ba549ff8a02965fd9de701e>:0
at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message& m) [0x00166] in <7cb6368c5ba549ff8a02965fd9de701e>:0
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <7cb6368c5ba549ff8a02965fd9de701e>:0
at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x0000b] in <7cb6368c5ba549ff8a02965fd9de701e>:0
at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x00085] in <7cb6368c5ba549ff8a02965fd9de701e>:0
1926 [1] ERROR CKAN.URLHandlers (null) - There was an error while registering the URL handler for ckan:// - Could not find a part of the path "/Users/teamgros/.local/share/applications/mimeapps.list".
1936 [1] ERROR CKAN.URLHandlers (null) - at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x00164] in <14f1e720d53a4a6a8800252bec102319>:0
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) [0x00000] in <14f1e720d53a4a6a8800252bec102319>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool)
at System.IO.StreamWriter.CreateFile (System.String path, System.Boolean append, System.Boolean checkHost) [0x0001c] in <14f1e720d53a4a6a8800252bec102319>:0
at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize, System.Boolean checkHost) [0x00055] in <14f1e720d53a4a6a8800252bec102319>:0
at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize) [0x00000] in <14f1e720d53a4a6a8800252bec102319>:0
at System.IO.StreamWriter..ctor (System.String path) [0x00008] in <14f1e720d53a4a6a8800252bec102319>:0
at (wrapper remoting-invoke-with-check) System.IO.StreamWriter..ctor(string)
at System.IO.File.WriteAllLines (System.String path, System.String[] contents) [0x00000] in <14f1e720d53a4a6a8800252bec102319>:0
at CKAN.URLHandlers.RegisterURLHandler_Linux () [0x00050] in <2c2371fb3f2949b2a6dfae930758e6ee>:0
at CKAN.URLHandlers.RegisterURLHandler (CKAN.Configuration config, CKAN.IUser user) [0x00007] in <2c2371fb3f2949b2a6dfae930758e6ee>:0
Terminated: 15

@HebaruSan
Copy link
Member

Ahh right. Our platform checker thinks Mac OS X is a form of Unix...

@cculianu
Copy link

Sooo.. when new release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
macOS Issues specific for macOS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants