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

CKAN crashes when I try to launch it. #2269

Closed
Bralvar opened this issue Jan 30, 2018 · 4 comments · Fixed by #2270
Closed

CKAN crashes when I try to launch it. #2269

Bralvar opened this issue Jan 30, 2018 · 4 comments · Fixed by #2270
Labels
macOS Issues specific for macOS Support Issues that are support requests

Comments

@Bralvar
Copy link

Bralvar commented Jan 30, 2018

Background

CKAN Version:
Latest

KSP Version:
1.3.1

Operating System:
Mac OSX Sierra

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

Problem

What steps did you take in CKAN?
I did mono ckan.exe in the Terminal.

What did you expect to happen?
For it to launch without a hitch.

What happened instead?
It "Quit unexpectedly"

Screenshots:

CKAN error codes (if applicable):

WARNING: The Carbon driver has not been ported to 64bits, and very few parts of Windows.Forms will work properly, or at all
1137 [1] ERROR CKAN.ErrorDialog (null) - CKAN is already running for this instance!

If you're certain this is not the case, then delete:
"/Users/halvar/Library/Application Support/Steam/SteamApps/common/Kerbal Space Program/CKAN/registry.locked"

Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.Windows.Forms.XplatUICarbon.CGDisplayBounds (intptr) [0x00002] in <36fbc38531724d82b10aef6ebafea6e9>:0
  at System.Windows.Forms.XplatUICarbon.get_WorkingArea () [0x00005] in <36fbc38531724d82b10aef6ebafea6e9>:0
  at System.Windows.Forms.XplatUICarbon.get_VirtualScreen () [0x00000] in <36fbc38531724d82b10aef6ebafea6e9>:0
  at System.Windows.Forms.XplatUI.get_VirtualScreen () [0x00000] in <36fbc38531724d82b10aef6ebafea6e9>:0
  at System.Windows.Forms.Screen..cctor () [0x00034] in <36fbc38531724d82b10aef6ebafea6e9>:0
  at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) [0x0001e] in <4fdc5ed61a074cafb49fa42deb20d521>:0
  at <unknown> <0xffffffff>
  at System.Windows.Forms.Form.get_CreateParams () [0x00157] in <36fbc38531724d82b10aef6ebafea6e9>:0
  at System.Windows.Forms.Control.CreateHandle () [0x0002a] in <36fbc38531724d82b10aef6ebafea6e9>:0
  at System.Windows.Forms.Form.CreateHandle () [0x00000] in <36fbc38531724d82b10aef6ebafea6e9>:0
  at System.Windows.Forms.Control.CreateControl () [0x00039] in <36fbc38531724d82b10aef6ebafea6e9>:0
  at System.Windows.Forms.Control.SetVisibleCore (bool) [0x0003a] in <36fbc38531724d82b10aef6ebafea6e9>:0
  at System.Windows.Forms.Form.SetVisibleCore (bool) [0x00065] in <36fbc38531724d82b10aef6ebafea6e9>:0
  at System.Windows.Forms.Control.set_Visible (bool) [0x00009] in <36fbc38531724d82b10aef6ebafea6e9>:0
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control.set_Visible (bool) [0x00032] in <36fbc38531724d82b10aef6ebafea6e9>:0
  at System.Windows.Forms.Application.RunLoop (bool,System.Windows.Forms.ApplicationContext) [0x00059] in <36fbc38531724d82b10aef6ebafea6e9>:0
  at System.Windows.Forms.Form.ShowDialog (System.Windows.Forms.IWin32Window) [0x001b7] in <36fbc38531724d82b10aef6ebafea6e9>:0
  at System.Windows.Forms.Form.ShowDialog () [0x00000] in <36fbc38531724d82b10aef6ebafea6e9>:0
  at CKAN.ErrorDialog.ShowErrorDialog (string,object[]) [0x00071] in <fce8ecce013a4e11ba75e87f5f8ce9eb>:0
  at (wrapper remoting-invoke-with-check) CKAN.ErrorDialog.ShowErrorDialog (string,object[]) [0x00033] in <fce8ecce013a4e11ba75e87f5f8ce9eb>:0
  at CKAN.Main..ctor (string[],CKAN.GUIUser,bool) [0x0014f] in <fce8ecce013a4e11ba75e87f5f8ce9eb>:0
  at (wrapper remoting-invoke-with-check) CKAN.Main..ctor (string[],CKAN.GUIUser,bool) [0x0001b] in <fce8ecce013a4e11ba75e87f5f8ce9eb>:0
  at CKAN.GUI.Main_ (string[],bool) [0x0003b] in <fce8ecce013a4e11ba75e87f5f8ce9eb>:0
  at CKAN.CmdLine.MainClass.Gui (CKAN.CmdLine.GuiOptions,string[]) [0x00007] in <fce8ecce013a4e11ba75e87f5f8ce9eb>:0
  at CKAN.CmdLine.MainClass.Main (string[]) [0x00090] in <fce8ecce013a4e11ba75e87f5f8ce9eb>:0
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object (object,intptr,intptr,intptr) [0x00054] in <fce8ecce013a4e11ba75e87f5f8ce9eb>:0

Native stacktrace:

	0   mono                                0x000000010b3203d1 mono_handle_native_crash + 257
	1   mono                                0x000000010b387e86 altstack_handle_and_restore + 70
	2   SkyLight                            0x00007fffadb2efc2 SLDisplayBounds + 50
	3   ???                                 0x00000001138d0f5e 0x0 + 4622978910
	4   ???                                 0x000000010c687a56 0x0 + 4503140950
	5   mono                                0x000000010b27a5f4 mono_jit_runtime_invoke + 1316
	6   mono                                0x000000010b472238 do_runtime_invoke + 88
	7   mono                                0x000000010b46e2a4 mono_runtime_class_init_full + 996
	8   mono                                0x000000010b273a45 mono_jit_compile_method_inner + 2485
	9   mono                                0x000000010b276903 mono_jit_compile_method_with_opt + 1379
	10  mono                                0x000000010b322871 common_call_trampoline + 1217
	11  mono                                0x000000010b322379 mono_magic_trampoline + 73
	12  ???                                 0x000000010b6f839e 0x0 + 4486824862
	13  ???                                 0x000000011313b87b 0x0 + 4615026811
	14  ???                                 0x000000010f1ed1af 0x0 + 4548645295
	15  ???                                 0x000000010f1ece27 0x0 + 4548644391

Debug info from gdb:

(lldb) command source -s 0 '/tmp/mono-gdb-commands.UNNHKA'
Executing commands in '/tmp/mono-gdb-commands.UNNHKA'.
(lldb) process attach --pid 7592
warning: (x86_64) /Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/4.5/mscorlib.dll.dylib empty dSYM file detected, dSYM was created with an executable with no debug info.
warning: (x86_64) /Library/Frameworks/Mono.framework/Versions/5.4.1/lib/libglib-2.0.0.dylib empty dSYM file detected, dSYM was created with an executable with no debug info.
Process 7592 stopped
* thread #1, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fffb190c3ee libsystem_kernel.dylib`__wait4 + 10
libsystem_kernel.dylib`__wait4:
->  0x7fffb190c3ee <+10>: jae    0x7fffb190c3f8            ; <+20>
    0x7fffb190c3f0 <+12>: movq   %rax, %rdi
    0x7fffb190c3f3 <+15>: jmp    0x7fffb1904cd4            ; cerror
    0x7fffb190c3f8 <+20>: retq   
Target 0: (mono) stopped.

Executable module set to "/Library/Frameworks/Mono.framework/Versions/Current/Commands/mono".
Architecture set to: x86_64h-apple-macosx.
(lldb) thread list
Process 7592 stopped
* thread #1: tid = 0x1a1042, 0x00007fffb190c3ee libsystem_kernel.dylib`__wait4 + 10, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  thread #2: tid = 0x1a1043, 0x00007fffb190bbf2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'SGen worker'
  thread #3: tid = 0x1a1044, 0x00007fffb190bbf2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'SGen worker'
  thread #4: tid = 0x1a1045, 0x00007fffb1904386 libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'Finalizer'
  thread #5: tid = 0x1a1046, 0x00007fffb190c44e libsystem_kernel.dylib`__workq_kernreturn + 10
  thread #6: tid = 0x1a1047, 0x00007fffb190c44e libsystem_kernel.dylib`__workq_kernreturn + 10
  thread #7: tid = 0x1a1049, 0x00007fffb190c44e libsystem_kernel.dylib`__workq_kernreturn + 10
  thread #8: tid = 0x1a106c, 0x00007fffb190cd96 libsystem_kernel.dylib`kevent + 10, name = 'tid_5803'
  thread #9: tid = 0x1a106d, 0x00007fffb190bbf2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'Timer-Scheduler'
(lldb) thread backtrace all
* thread #1, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007fffb190c3ee libsystem_kernel.dylib`__wait4 + 10
    frame #1: 0x000000010b32045e mono`mono_handle_native_crash(signal=<unavailable>, ctx=<unavailable>, info=<unavailable>) at mini-exceptions.c:2720 [opt]
    frame #2: 0x000000010b387e86 mono`altstack_handle_and_restore(ctx=0x00007fff54995b60, obj=0x0000000000000000, stack_ovf=0) at exceptions-amd64.c:799 [opt]
    frame #3: 0x00007fffadb2efc2 SkyLight`SLDisplayBounds + 50
    frame #4: 0x00000001138d0f5e
    frame #5: 0x000000010c687a56
    frame #6: 0x000000010b27a5f4 mono`mono_jit_runtime_invoke(method=<unavailable>, obj=<unavailable>, params=0x0000000000000000, exc=0x00000001138d08e0, error=<unavailable>) at mini-runtime.c:2791 [opt]
    frame #7: 0x000000010b472238 mono`do_runtime_invoke(method=0x00007fc38c1962a8, obj=0x0000000000000000, params=0x0000000000000000, exc=0x00007fff54996448, error=0x00007fff54996628) at object.c:2862 [opt]
    frame #8: 0x000000010b46e2a4 mono`mono_runtime_class_init_full [inlined] mono_runtime_try_invoke(method=<unavailable>, obj=<unavailable>, params=<unavailable>, error=0x00007fff54996628) at object.c:2970 [opt]
    frame #9: 0x000000010b46e25f mono`mono_runtime_class_init_full(vtable=0x00007fc38c3caad8, error=0x00007fff54996628) at object.c:471 [opt]
    frame #10: 0x000000010b273a45 mono`mono_jit_compile_method_inner(method=0x00007fc38c196130, target_domain=<unavailable>, opt=<unavailable>, error=0x00007fff54996628) at mini.c:4341 [opt]
    frame #11: 0x000000010b276903 mono`mono_jit_compile_method_with_opt(method=0x00007fc38c196130, opt=<unavailable>, jit_only=0, error=<unavailable>) at mini-runtime.c:2129 [opt]
    frame #12: 0x000000010b322871 mono`common_call_trampoline(regs=0x00007fff54996708, code="H\x8b?H??\xa8H\x8b??8, m=0x00007fc38c196130, vt=<unavailable>, vtable_slot=<unavailable>, error=<unavailable>) at mini-trampolines.c:708 [opt]
    frame #13: 0x000000010b322379 mono`mono_magic_trampoline(regs=<unavailable>, code=<unavailable>, arg=<unavailable>, tramp=<unavailable>) at mini-trampolines.c:838 [opt]
    frame #14: 0x000000010b6f839e
    frame #15: 0x000000011313b87b
    frame #16: 0x000000010f1ed1af
    frame #17: 0x000000010f1ece27
  thread #2, name = 'SGen worker'
    frame #0: 0x00007fffb190bbf2 libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fffb19f77fa libsystem_pthread.dylib`_pthread_cond_wait + 712
    frame #2: 0x000000010b4e803f mono`thread_func [inlined] mono_os_cond_wait(cond=0x000000010b60f960, mutex=<unavailable>) at mono-os-mutex.h:173 [opt]
    frame #3: 0x000000010b4e8033 mono`thread_func(thread_data=0x000000010b60f918) at sgen-thread-pool.c:108 [opt]
    frame #4: 0x00007fffb19f693b libsystem_pthread.dylib`_pthread_body + 180
    frame #5: 0x00007fffb19f6887 libsystem_pthread.dylib`_pthread_start + 286
    frame #6: 0x00007fffb19f608d libsystem_pthread.dylib`thread_start + 13
  thread #3, name = 'SGen worker'
    frame #0: 0x00007fffb190bbf2 libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fffb19f77fa libsystem_pthread.dylib`_pthread_cond_wait + 712
    frame #2: 0x000000010b4e8022 mono`thread_func [inlined] mono_os_cond_wait(cond=0x000000010b663bd0, mutex=<unavailable>) at mono-os-mutex.h:173 [opt]
    frame #3: 0x000000010b4e8016 mono`thread_func(thread_data=0x000000010b79d108) at sgen-thread-pool.c:90 [opt]
    frame #4: 0x00007fffb19f693b libsystem_pthread.dylib`_pthread_body + 180
    frame #5: 0x00007fffb19f6887 libsystem_pthread.dylib`_pthread_start + 286
    frame #6: 0x00007fffb19f608d libsystem_pthread.dylib`thread_start + 13
  thread #4, name = 'Finalizer'
    frame #0: 0x00007fffb1904386 libsystem_kernel.dylib`semaphore_wait_trap + 10
    frame #1: 0x000000010b46a165 mono`finalizer_thread [inlined] mono_os_sem_wait(flags=MONO_SEM_FLAGS_ALERTABLE) at mono-os-semaphore.h:91 [opt]
    frame #2: 0x000000010b46a15a mono`finalizer_thread at mono-coop-semaphore.h:43 [opt]
    frame #3: 0x000000010b46a14e mono`finalizer_thread(unused=<unavailable>) at gc.c:864 [opt]
    frame #4: 0x000000010b43e2f3 mono`start_wrapper [inlined] start_wrapper_internal at threads.c:829 [opt]
    frame #5: 0x000000010b43e273 mono`start_wrapper(data=0x00007fc38b40ebc0) at threads.c:891 [opt]
    frame #6: 0x00007fffb19f693b libsystem_pthread.dylib`_pthread_body + 180
    frame #7: 0x00007fffb19f6887 libsystem_pthread.dylib`_pthread_start + 286
    frame #8: 0x00007fffb19f608d libsystem_pthread.dylib`thread_start + 13
  thread #5
    frame #0: 0x00007fffb190c44e libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fffb19f648e libsystem_pthread.dylib`_pthread_wqthread + 1023
    frame #2: 0x00007fffb19f607d libsystem_pthread.dylib`start_wqthread + 13
  thread #6
    frame #0: 0x00007fffb190c44e libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fffb19f6621 libsystem_pthread.dylib`_pthread_wqthread + 1426
    frame #2: 0x00007fffb19f607d libsystem_pthread.dylib`start_wqthread + 13
  thread #7
    frame #0: 0x00007fffb190c44e libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fffb19f6621 libsystem_pthread.dylib`_pthread_wqthread + 1426
    frame #2: 0x00007fffb19f607d libsystem_pthread.dylib`start_wqthread + 13
  thread #8, name = 'tid_5803'
    frame #0: 0x00007fffb190cd96 libsystem_kernel.dylib`kevent + 10
    frame #1: 0x000000010b3cc250 mono`ves_icall_System_IO_KqueueMonitor_kevent_notimeout(kq_ptr=0x000000010ba11d1c, changelist=0x00007fc38d920f20, nchanges=0, eventlist=0x00007fc38c1ad000, nevents=32) at filewatcher.c:244 [opt]
    frame #2: 0x00000001136d07cc
  thread #9, name = 'Timer-Scheduler'
    frame #0: 0x00007fffb190bbf2 libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fffb19f77fa libsystem_pthread.dylib`_pthread_cond_wait + 712
    frame #2: 0x000000010b45feff mono`mono_os_cond_timedwait(cond=0x00007fc38b804b60, mutex=0x00007fc38b804b20, timeout_ms=<unavailable>) at mono-os-mutex.h:216 [opt]
    frame #3: 0x000000010b45eb11 mono`mono_w32handle_timedwait_signal_handle [inlined] mono_w32handle_timedwait_signal_naked(cond=<unavailable>, mutex=<unavailable>, timeout=2999, poll=0, alerted=<unavailable>) at w32handle.c:956 [opt]
    frame #4: 0x000000010b45eb09 mono`mono_w32handle_timedwait_signal_handle(handle=<unavailable>, timeout=<unavailable>, poll=0, alerted=<unavailable>) at w32handle.c:1071 [opt]
    frame #5: 0x000000010b45e9b0 mono`mono_w32handle_wait_one(handle=0x0000000000000402, timeout=<unavailable>, alertable=<unavailable>) at w32handle.c:1190 [opt]
    frame #6: 0x000000010b45ec8d mono`mono_w32handle_wait_multiple(handles=0x00007000026c3600, nhandles=1, waitall=<unavailable>, timeout=<unavailable>, alertable=<unavailable>) at w32handle.c:1224 [opt]
    frame #7: 0x000000010b439853 mono`mono_wait_uninterrupted(thread=<unavailable>, numhandles=<unavailable>, handles=<unavailable>, waitall=<unavailable>, ms=<unavailable>, error=<unavailable>) at threads.c:1892 [opt]
    frame #8: 0x000000010b439b4a mono`ves_icall_System_Threading_WaitHandle_WaitOne_internal(handle=0x0000000000000402, ms=-1) at threads.c:2017 [opt]
    frame #9: 0x00000001136cbd9e
    frame #10: 0x000000010dc2aa80 mscorlib.dll.dylib`System_Threading_WaitHandle_InternalWaitOne_System_Runtime_InteropServices_SafeHandle_long_bool_bool + 64
    frame #11: 0x000000010dc2aa2c mscorlib.dll.dylib`System_Threading_WaitHandle_WaitOne_long_bool + 44
    frame #12: 0x000000010dc2a893 mscorlib.dll.dylib`System_Threading_WaitHandle_WaitOne_int_bool + 51
    frame #13: 0x000000010dc2a9bc mscorlib.dll.dylib`System_Threading_WaitHandle_WaitOne_int + 28
    frame #14: 0x000000010dc31377 mscorlib.dll.dylib`System_Threading_Timer_Scheduler_SchedulerThread + 2423
    frame #15: 0x000000010dc23c07 mscorlib.dll.dylib`System_Threading_ThreadHelper_ThreadStart_Context_object + 151
    frame #16: 0x000000010dc218a1 mscorlib.dll.dylib`System_Threading_ExecutionContext_Run_System_Threading_ExecutionContext_System_Threading_ContextCallback_object_bool + 33
    frame #17: 0x000000010dc21830 mscorlib.dll.dylib`System_Threading_ExecutionContext_Run_System_Threading_ExecutionContext_System_Threading_ContextCallback_object + 80
    frame #18: 0x000000010dc23d4f mscorlib.dll.dylib`System_Threading_ThreadHelper_ThreadStart + 47
    frame #19: 0x000000010c5da5f9
    frame #20: 0x000000010b27a5f4 mono`mono_jit_runtime_invoke(method=<unavailable>, obj=<unavailable>, params=0x00007000026c3ea0, exc=0x000000010ba18208, error=<unavailable>) at mini-runtime.c:2791 [opt]
    frame #21: 0x000000010b472238 mono`do_runtime_invoke(method=0x00007fc38bbb4dc0, obj=0x000000010ba182f0, params=0x00007000026c3ea0, exc=0x0000000000000000, error=0x00007000026c3e38) at object.c:2862 [opt]
    frame #22: 0x000000010b43e31e mono`start_wrapper at threads.c:837 [opt]
    frame #23: 0x000000010b43e273 mono`start_wrapper(data=0x00007fc38d881540) at threads.c:891 [opt]
    frame #24: 0x00007fffb19f693b libsystem_pthread.dylib`_pthread_body + 180
    frame #25: 0x00007fffb19f6887 libsystem_pthread.dylib`_pthread_start + 286
    frame #26: 0x00007fffb19f608d libsystem_pthread.dylib`thread_start + 13
(lldb) detach

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

(lldb) quit
Abort trap: 6
@HebaruSan HebaruSan added macOS Issues specific for macOS Support Issues that are support requests labels Jan 30, 2018
@HebaruSan HebaruSan changed the title CKAN is doing a bamboozle on me and it keeps crashing when I try to launch it. CKAN crashes when I try to launch it. Jan 30, 2018
@HebaruSan
Copy link
Member

Have you seen the wiki page for OS X? It has advice from other Mac users:

In your case, the error mentioning 64 bits suggests you might want to try:

mono --verbose --arch=32 ckan.exe

@HebaruSan
Copy link
Member

GitHub missed "doesn't" in "doesn't fix"...

@HebaruSan HebaruSan reopened this Jan 31, 2018
@Bralvar
Copy link
Author

Bralvar commented Feb 1, 2018

No wait, the arch=32 fixed it.

@HebaruSan
Copy link
Member

Cool! Now we can close this... 😄

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

Successfully merging a pull request may close this issue.

2 participants