-
-
Notifications
You must be signed in to change notification settings - Fork 346
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 GUI not appearing on mac OS #1844
Comments
What is your Mono version? |
Looks like El Cap (OSX 10.11) also broke a few Mono/Darwin base things that might affect this. |
Ref #1840 |
Hey there! I'm a fun-loving automated bot who's responsible for making sure old support tickets get closed out. As we haven't seen any activity on this ticket for a while, we're hoping the problem has been resolved and I'm closing out the ticket automaically. If I'm doing this in error, please add a comment to this ticket to let us know, and we'll re-open it! |
I currently have the same issue, with the same version of OS X ( Output from
|
Me too. Here're the last few lines of output from mono 4.2.1 (32-bit) in verbose mode, after which it appears to hang: converting method System.Windows.Forms.FormCollection:Remove (System.Windows.Forms.Form)
Method System.Windows.Forms.FormCollection:Remove (System.Windows.Forms.Form) emitted at 0x969f300 to 0x969f328 (code length 40) [ckan.exe]
^C⏎ And from mono 4.6.0 (32-bit) in verbose mode: converting method void System.Windows.Forms.FormCollection:Remove (System.Windows.Forms.Form)
Method void System.Windows.Forms.FormCollection:Remove (System.Windows.Forms.Form) emitted at 0x93eb450 to 0x93eb478 (code length 40) [ckan.exe] with opts peephole,branch,inline,cfold,consprop,copyprop,deadce,linears,cmov,intrins,loop,fcmov,aot,exception,sse2,gshared,simd,alias-analysis
^C⏎ And here's some exceptions reported by mono (more info here): $ mono --trace=N:nothing ckan.exe gui -v
251 [1] INFO CKAN.CmdLine.MainClass (null) - Verbose logging enabled
[0xa3878000:] EXCEPTION handling: System.UnauthorizedAccessException: Access to the path "/Library/Frameworks/Mono.framework/Versions/4.6.0/etc/mono/registry/last-btime" is denied.
[0xa3878000:] EXCEPTION handling: System.IO.FileNotFoundException: Could not load file or assembly 'UIAutomationWinforms, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f4ceacb585d99812' or one of its dependencies
550 [1] INFO CKAN.Main (null) - Starting the GUI
[0xa3878000:] EXCEPTION handling: System.IO.FileNotFoundException: Could not load file or assembly 'ckan.XmlSerializers' or one of its dependencies
[0xa3878000:] EXCEPTION handling: System.IO.FileNotFoundException: Could not find file "/Users/100ideas/.mono/mwf_config".
[0xa3878000:] EXCEPTION handling: System.IO.FileNotFoundException: Could not find file "/Users/100ideas/.mono/mwf_config". |
Made some progress tracking down this bug. Something is wrong with the way the auto-update config option or dialog window works in GUI/Main.cs#L289. The ckan application loads as expected when the //if (!configuration.CheckForUpdatesOnLaunchNoNag)
if (false)
{
log.Debug("Asking user if they wish for autoupdates");
if (new AskUserForAutoUpdatesDialog().ShowDialog() == DialogResult.OK)
{
configuration.CheckForUpdatesOnLaunch = true;
}
configuration.CheckForUpdatesOnLaunchNoNag = true;
configuration.Save();
} I haven't had time to figure out the deeper cause of the problem, will be back if I have time later. Ping #1501 |
Reopening due to progress. Thanks for looking into this for us, @100ideas! |
I haven't had time to explore the issue further, sorry guys! I could submit a PR that disables the auto-update dialog window during launch if the OSX is detected... otherwise I might have time to look further in a week or two. |
Thanks @100ideas for the fix, worked great for me. |
@gioGats can you submit a PR here? |
Sorry, I took a look at this commit and while I am sure we can use it to fix the problem properly, |
Initial results - that form is the only place we used There are still plenty of other potential causes, but my current hypothesis is ayan4m1@4c0cf37 |
Happy to help test.
|
me too |
I found that running ckan, even without the gui, and opening kip thru steam still applies the mods but you can't change them |
If any MacOS users would like to join the CKAN project as in-house MacOS CKAN testers, I'd be very happy to have a MacOS-testers group we can ping |
+1 for MacOS Tester |
hello, i've been stuck for days impossible to lauch the Ckan GUI after try everything i must have miss something i beg for help i can't play my favorite game and after a day of hardwork it's frustrating for a newbie like me to dive in terminal and mono problems that where i don't understand shit ... |
Last login: Fri Jan 6 14:54:30 on ttys000 [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Windows.Forms.WindowsFormsSynchronizationContext' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Windows.Forms.ThemeEngine' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Windows.Forms.ThemeWin32Classic' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Drawing.KnownColors' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Drawing.GDIPlus' threw an exception. ---> System.DllNotFoundException: libgdiplus.dylib |
@leo-hotto-ko maybe this will help: I'm running macOS Sierra 10.12.2. All I did was run:
in the terminal, and For reference, I have this version of
And
|
thank you for u'r quick awser i try that right away, sorry for my english not my native language ^^ |
Ok i install homebrew via terminal. Do i need to unistall my previous version of mono (4.6.1) it's a little bit advance for me one or two command line would help --" |
and i don't understand the "cask" thing .. |
Yes uninstall your previous version of mono (4.6.1) http://www.mono-project.com/docs/about-mono/supported-platforms/osx/#uninstalling-mono-on-mac-os-x. This is an example of what you'd run: Install
Install
Install
🍻 |
ok guys u are indeed quite amazing ^^ all look to be install, do i need a different comand line for running ckan.exe ? ( cd Downloads mono ckan.exe) ? |
i'm afraid to try anything now XD rwanyoike u rule boy a big TY for u'r precious help |
@leo-hotto-ko no different command. https://github.com/KSP-CKAN/CKAN/wiki/Installing-CKAN-on-OSX:
|
arg still the same --"
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Windows.Forms.WindowsFormsSynchronizationContext' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Windows.Forms.ThemeEngine' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Windows.Forms.ThemeWin32Classic' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Drawing.KnownColors' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Drawing.GDIPlus' threw an exception. ---> System.DllNotFoundException: libgdiplus.dylib |
@leo-hotto-ko what does this command show for you:
And you have the latest |
Last login: Fri Jan 6 15:38:18 on ttys000 Ckan V1.22.1 latest i think |
@leo-hotto-ko can you visit https://tlk.io/mono |
@politas pleased to help out w/ mac dev testing |
@100ideas , I've sent you an invite. Thanks! |
@politas If you still need macOS testers, I'm willing and able depending on what you want a tester to do. I don't know C# but I do IT and development professionally so I can do QA. Currently experiencing this issue. That is, ckan command line functions work fine but the gui crashes with an exception in |
rwanyoike comment on Jan 6 worked for me, though I did have to remove all versions of CKan and then rerun |
I am fairly confident that this long issue history is actually multiple different problems manifesting in the same way. I think they can all be traced back to Mono or OS X and not to a defect in CKAN. @politas mind chiming in? I know multiple people have offered to help with testing but I am not sure what to give them to test. |
Yeah, lets close this off with a request for anyone still having problems to check the CKAN on OSX page and open a new issue if problems still occur. |
Thanks for wanting to bring an issue to our attention!
Before you open a ticket, please do a quick search of the existing issues to see if it's already been brought up.
CKAN Version:
v1.18.1-0-g0d2c4f0 (beta)
Operating System:
OS X 10.11.6 (15G31)
The issue you are experiencing:
GUI is not appearing. Commands like ckan help, ckan list etc. work. But "ckan gui" or just "ckan" does not lead to a gui appearing...
What does appear is a blank "mono" labeled on the task bar. Right clicking on that shows that the application is not responding.
How to recreate this issue:
Install altest mono. Install ckan. Run ckan
CKAN error codes (if applicable):
The text was updated successfully, but these errors were encountered: