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

[Bug] Builds with Mono >=6.6 don't run on Windows #2972

Closed
cmoore-mayesh opened this issue Jan 28, 2020 · 12 comments · Fixed by #2976
Closed

[Bug] Builds with Mono >=6.6 don't run on Windows #2972

cmoore-mayesh opened this issue Jan 28, 2020 · 12 comments · Fixed by #2976
Labels
Bug Something is not working as intended GUI Issues affecting the interactive GUI Mono Issues specific for Mono Windows Issues specific for Windows

Comments

@cmoore-mayesh
Copy link

cmoore-mayesh commented Jan 28, 2020

Background

  • Operating System: Windows 10 1909
  • CKAN Version: 1.26.8
  • KSP Version: 1.8.1

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

Problem

Describe the bug
CKAN performed a self update -- and a stack trace appears for a split second in a command prompt window.

Steps to reproduce

  • Let CKAN self update
  • Run CKAN as normal

Expected behavior

  • Expected normal behavior for opening CKAN. Instead get the attached screenshot below.

Stack trace

Unhandled Exception: System.ArgumentException: Object of type 'System.Globalization.CalendarId[]' cannot be converted to type 'System.Int32[]'.
   at System.RuntimeType.TryChangeType(Object value, Binder binder, CultureInfo culture, Boolean needsSpecialCast)
   at System.RuntimeType.CheckValue(Object value, Binder binder, CultureInfo culture, BindingFlags invokeAttr)
   at System.Reflection.RtFieldInfo.UnsafeSetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture)
   at System.Runtime.Serialization.FormatterServices.SerializationSetValue(MemberInfo fi, Object target, Object value)
   at System.Runtime.Serialization.ObjectManager.CompleteObject(ObjectHolder holder, Boolean bObjectFullyComplete)
   at System.Runtime.Serialization.ObjectManager.DoNewlyRegisteredObjectFixups(ObjectHolder holder)
   at System.Runtime.Serialization.ObjectManager.RegisterObject(Object obj, Int64 objectID, SerializationInfo info, Int64 idOfContainingObj, MemberInfo member, Int32[] arrayIndex)
   at System.Runtime.Serialization.Formatters.Binary.ObjectReader.RegisterObject(Object obj, ParseRecord pr, ParseRecord objectPr, Boolean bIsString)
   at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ParseObjectEnd(ParseRecord pr)
   at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Parse(ParseRecord pr)
   at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
   at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
   at System.Resources.ResourceReader.DeserializeObject(Int32 typeIndex)
   at System.Resources.ResourceReader._LoadObjectV2(Int32 pos, ResourceTypeCode& typeCode)
   at System.Resources.ResourceReader.LoadObjectV2(Int32 pos, ResourceTypeCode& typeCode)
   at System.Resources.ResourceReader.LoadObject(Int32 pos)
   at System.Resources.ResourceReader.ResourceEnumerator.get_Entry()
   at System.Resources.ResourceReader.ResourceEnumerator.get_Current()
   at System.ComponentModel.ComponentResourceManager.FillResources(CultureInfo culture, ResourceSet& resourceSet)
   at System.ComponentModel.ComponentResourceManager.FillResources(CultureInfo culture, ResourceSet& resourceSet)
   at System.ComponentModel.ComponentResourceManager.FillResources(CultureInfo culture, ResourceSet& resourceSet)
   at System.ComponentModel.ComponentResourceManager.ApplyResources(Object value, String objectName, CultureInfo culture)
   at System.ComponentModel.ComponentResourceManager.ApplyResources(Object value, String objectName)
   at CKAN.Main.InitializeComponent()
   at CKAN.Main..ctor(String[] cmdlineArgs, KSPManager mgr, Boolean showConsole)
   at CKAN.GUI.Main_(String[] args, KSPManager manager, Boolean showConsole)
   at CKAN.CmdLine.MainClass.RunSimpleAction(Options cmdline, CommonOptions options, String[] args, IUser user, KSPManager manager)
   at CKAN.CmdLine.MainClass.Execute(KSPManager manager, CommonOptions opts, String[] args)
   at CKAN.CmdLine.MainClass.Main(String[] args)

Screenshots (if applicable)

Annotation 2020-01-27 214832

@DasSkelett DasSkelett added Bug Something is not working as intended GUI Issues affecting the interactive GUI labels Jan 28, 2020
@nan0bug00

This comment has been minimized.

@HebaruSan HebaruSan added the Windows Issues specific for Windows label Jan 28, 2020
@Jadem115

This comment has been minimized.

@Beetlecat
Copy link

Is the .net 4.5 in the release notes a new, hard requirement? I'm only running 4.0, but CKAN has been functioning fine for many previous versions.

@cmoore-mayesh
Copy link
Author

Is the .net 4.5 in the release notes a new, hard requirement? I'm only running 4.0, but CKAN has been functioning fine for many previous versions.

If you're running Win10 -- .net 4.5 is installed by default

@Beetlecat
Copy link

Right - I was mis-reading my framework client key info. 4.8 by that measure.

@politas
Copy link
Member

politas commented Jan 28, 2020

@cmoore-mayesh, can you re-download ckan.exe from https://github.com/KSP-CKAN/CKAN/releases/tag/v1.26.8 and try again?

@Nimnu

This comment has been minimized.

@cmoore-mayesh
Copy link
Author

@cmoore-mayesh, can you re-download ckan.exe from https://github.com/KSP-CKAN/CKAN/releases/tag/v1.26.8 and try again?

I did prior to filing the bug. I just did it again for giggles, same error.

@DasSkelett
Copy link
Member

DasSkelett commented Jan 28, 2020

Can someone try out this build and report back if it works?
[link removed, the ckan.exe for v1.26.8 has been replaced with a working one]

@cmoore-mayesh
Copy link
Author

Can someone try out this build and report back if it works?
ckan.zip

Opened properly -- loaded modules and functions as expected.

@Beetlecat
Copy link

launched into the GUI, first try!

@DasSkelett
Copy link
Member

DasSkelett commented Jan 28, 2020

Thank you all for reporting this issue. We replaced the .exe file in the release assets now.
If you redownload it now, it should work again.

The source of this error is still unknown though.

@HebaruSan HebaruSan added the Mono Issues specific for Mono label Jan 28, 2020
@DasSkelett DasSkelett changed the title [Bug] CKAN refuses to open -- crashes with a unhandled exception for system.globalization.calenderid[] [Bug] Builds with Mono >=6.6 don't run on Windows Jan 28, 2020
@HebaruSan HebaruSan pinned this issue Jan 28, 2020
@HebaruSan HebaruSan unpinned this issue Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is not working as intended GUI Issues affecting the interactive GUI Mono Issues specific for Mono Windows Issues specific for Windows
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants