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

Crash on start under Ubuntu 16.04 #1871

Closed
dertroglodyt opened this issue Aug 20, 2016 · 20 comments
Closed

Crash on start under Ubuntu 16.04 #1871

dertroglodyt opened this issue Aug 20, 2016 · 20 comments
Labels
Linux Issues specific for Linux

Comments

@dertroglodyt
Copy link

dertroglodyt commented Aug 20, 2016

CKAN Version:
1.18.1
mono 4.2.1
certs are synced

Operating System:
ubuntu 16.04

The issue you are experiencing:
mono ./ckan.exe crashes on start.
Same for new empty diectory as for old directory with 100+ mods installed.

How to recreate this issue:
see above. launching it as "mono ckan" or "ckan" does crash every time.

CKAN error codes (if applicable):
Unhandled Exception:
System.TypeInitializationException: The type initializer for 'CKAN.CmdLine.MainClass' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.
File name: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
at log4net.Repository.Hierarchy.DefaultLoggerFactory+LoggerImpl..ctor (System.String name) <0x40298000 + 0x00013> in :0

@ayan4m1
Copy link
Contributor

ayan4m1 commented Aug 20, 2016

Could not load file or assembly 'System.Core

Do you have the libmoono-system-core4.0-cil package installed?

@ayan4m1 ayan4m1 added Support Issues that are support requests Linux Issues specific for Linux labels Aug 20, 2016
@dertroglodyt
Copy link
Author

dertroglodyt commented Aug 20, 2016

How would I know? I just freshly installed mono...
apt-get says there is no such package.
Just ignore that. Too late already. Installing package now...

@dertroglodyt
Copy link
Author

OK, now it says:
Unhandled Exception:
System.TypeInitializationException: The type initializer for 'CKAN.Net' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.
File name: 'System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
--- End of inner exception stack trace ---
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'CKAN.Net' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.
File name: 'System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
--- End of inner exception stack trace ---

@dertroglodyt
Copy link
Author

OK, installed transaction too.
Now I get:
Could not load file or assembly 'System.Windows.Forms

How deep do I have to follow this?

@dertroglodyt
Copy link
Author

No idea where to go now.
Now it's:

mono ./ckan.exe
701 [1] ERROR CKAN.ErrorDialog (null) - Error in autoupdate:
Could not load file or assembly 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
12477 [1] ERROR CKAN.Main (null) - Error in autoupdate
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
File name: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at CKAN.Main.OnLoad (System.EventArgs e) <0x40431090 + 0x001bf> in :0
13197 [1] WARN CKAN.GameVersionProviders.KspBuildMap (null) - Could not parse build map
13197 [1] WARN CKAN.GameVersionProviders.KspBuildMap (null) - Could not parse build map
System.NullReferenceException: Object reference not set to an instance of an object
at CKAN.GameVersionProviders.KspBuildMap.get_Item (System.String buildId) <0x40498630 + 0x0002b> in :0
at CKAN.GameVersionProviders.KspBuildIdVersionProvider.TryGetVersion (System.String directory, CKAN.Versioning.KspVersion& result) <0x40498070 + 0x001c2> in :0
at CKAN.KSP.DetectVersionInternal (System.String directory) <0x4046d760 + 0x00071> in :0
at CKAN.KSP.DetectVersion (System.String directory) <0x4046d650 + 0x00017> in :0
at CKAN.KSP.Version () <0x4046cf50 + 0x0003f> in :0
at CKAN.Main.m__B () <0x4046cdb0 + 0x00043> in :0
at CKAN.Util.Invoke[T](CKAN.T obj, System.Action action) <0x402f6520 + 0x000cb> in :0
at CKAN.Main.CurrentInstanceUpdated () <0x4046cbf0 + 0x0009b> in :0
at CKAN.Main.OnLoad (System.EventArgs e) <0x40431090 + 0x00bfb> in :0
at System.Windows.Forms.Form.OnLoadInternal (System.EventArgs e) <0x40430e30 + 0x0007f> in :0

@politas
Copy link
Member

politas commented Aug 20, 2016

Are you trying to build CKAN from source?

@dertroglodyt
Copy link
Author

dertroglodyt commented Aug 20, 2016

No. Just put the ckan.exe into an empty folder.
Btw: Fresh install of Ubuntu 16.04 too.

@politas
Copy link
Member

politas commented Aug 20, 2016

And you got that from the current release?

@dertroglodyt
Copy link
Author

Latest Releas "StarTrammier"

@politas
Copy link
Member

politas commented Aug 20, 2016

I've just upgraded to Ubuntu 16.04, but I have Mono 4.4.2 from the mono-project.org PPA, and it's working fine for me.

@politas
Copy link
Member

politas commented Aug 20, 2016

And you've done apt install libcurl4-openssl-dev?

@dertroglodyt
Copy link
Author

Yes, did that
Why is my mono 4.2.1 when I just did apt-get it?

@politas
Copy link
Member

politas commented Aug 20, 2016

That's what's Ubuntu's providing. To get 4.4.2, you have to go upstream to the mono-project ppa.

@politas
Copy link
Member

politas commented Aug 20, 2016

But 4.2.1 ought to work, unless Ubuntu have b0rked it.

@DinCahill
Copy link
Member

There's the mono-complete package which might help. I'm not at a computer right now I can't check.

@politas
Copy link
Member

politas commented Aug 20, 2016

Oh, yes, definitely need mono-complete, whether from the Ubuntu Repos or the Mono-project PPA

@dertroglodyt
Copy link
Author

Installing...

@dertroglodyt
Copy link
Author

...aaaaaand: Works like a charm!
Thank you so much for your help!
I wouldn't know how to play KSP without CKAN.

@pjf pjf removed the Support Issues that are support requests label Aug 20, 2016
@politas
Copy link
Member

politas commented Aug 20, 2016

Was that installing mono-complete, or switching to the mono-project PPA that fixed it?

@dertroglodyt
Copy link
Author

Yes, last step with mono-complete soved it.

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

No branches or pull requests

5 participants