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

NRE initializing CKAN folder on argumentless GUI launch #2483

Closed
JJDomino opened this issue Aug 6, 2018 · 2 comments · Fixed by #2482
Closed

NRE initializing CKAN folder on argumentless GUI launch #2483

JJDomino opened this issue Aug 6, 2018 · 2 comments · Fixed by #2482
Labels
Bug Something is not working as intended Core (ckan.dll) Issues affecting the core part of CKAN GUI Issues affecting the interactive GUI

Comments

@JJDomino
Copy link

JJDomino commented Aug 6, 2018

Background

CKAN Version:
Latest release
v1.25.2
2321d88

KSP Version:
Steam (last version)

Operating System:
Win10 Pro

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

Problem

What steps did you take in CKAN?
Open ckan.exe

What did you expect to happen?
Installation

What happened instead?
Error and closing ckan.exe

Screenshots:

image

CKAN error codes (if applicable):

Необработанное исключение: System.NullReferenceException: Ссылка на объект не указывает на экземпляр объекта.
   в CKAN.GUIUser.DisplayMessage(String message, Object[] args)
   в CKAN.KSP.SetupCkanDirectories()
   в CKAN.KSP..ctor(String gameDir, String name, IUser user)
   в CKAN.KSPManager.LoadInstancesFromRegistry()
   в CKAN.Main..ctor(String[] cmdlineArgs, KSPManager mgr, GUIUser user, Boolean showConsole)
   в CKAN.GUI.Main_(String[] args, KSPManager manager, Boolean showConsole)
   в CKAN.CmdLine.MainClass.Main(String[] args)
@HebaruSan HebaruSan added Bug Something is not working as intended GUI Issues affecting the interactive GUI Core (ckan.dll) Issues affecting the core part of CKAN labels Aug 6, 2018
@HebaruSan HebaruSan changed the title Not installed CKAN NRE initializing CKAN folder on argumentless GUI launch Aug 6, 2018
@HebaruSan
Copy link
Member

From @barfingskull on #2481:


This happened under Linux Mint 18.3 as well. I had updated mono to the 5.12 version when this happened, but I think the same thing also occurred when I tried the default 4.X version that comes with 18.3.

$ mono ckan.exe 
exception inside UnhandledException handler: Object reference not set to an instance of an object

[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
  at CKAN.GUIUser.DisplayMessage (System.String message, System.Object[] args) [0x00000] in <352d74f237564d2e9ff313cc9ac1989e>:0 
  at CKAN.NullUser.RaiseMessage (System.String message, System.Object[] args) [0x00000] in <352d74f237564d2e9ff313cc9ac1989e>:0 
  at CKAN.KSP.SetupCkanDirectories () [0x000dd] in <352d74f237564d2e9ff313cc9ac1989e>:0 
  at CKAN.KSP..ctor (System.String gameDir, System.String name, CKAN.IUser user) [0x00038] in <352d74f237564d2e9ff313cc9ac1989e>:0 
  at CKAN.KSPManager.LoadInstancesFromRegistry () [0x00060] in <352d74f237564d2e9ff313cc9ac1989e>:0 
  at CKAN.KSPManager..ctor (CKAN.IUser user, CKAN.IWin32Registry win32_registry) [0x00028] in <352d74f237564d2e9ff313cc9ac1989e>:0 
  at CKAN.Main..ctor (System.String[] cmdlineArgs, CKAN.KSPManager mgr, CKAN.GUIUser user, System.Boolean showConsole) [0x00039] in <352d74f237564d2e9ff313cc9ac1989e>:0 
  at (wrapper remoting-invoke-with-check) CKAN.Main..ctor(string[],CKAN.KSPManager,CKAN.GUIUser,bool)
  at CKAN.GUI.Main_ (System.String[] args, CKAN.KSPManager manager, System.Boolean showConsole) [0x0003b] in <352d74f237564d2e9ff313cc9ac1989e>:0 
  at CKAN.CmdLine.MainClass.Gui (CKAN.KSPManager manager, CKAN.CmdLine.GuiOptions options, System.String[] args) [0x00008] in <352d74f237564d2e9ff313cc9ac1989e>:0 
  at CKAN.CmdLine.MainClass.Main (System.String[] args) [0x000a1] in <352d74f237564d2e9ff313cc9ac1989e>:0 
Mono JIT compiler version 5.12.0.301 (tarball Wed Jul 25 15:47:18 UTC 2018)

I was able to get CKAN functioning after applying the .deb package, and just running ckan

@HebaruSan
Copy link
Member

From @TACHYON-Micah on #2481:


I get the same issue on PC. Can't run it.

https://puu.sh/B9xk9/d534aab6bf.png

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 Core (ckan.dll) Issues affecting the core part of CKAN GUI Issues affecting the interactive GUI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants