question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UMM crashes when trying to link to a folder in Linux

See original GitHub issue

I’m trying to run UMM 0.21.3 with My Time at Portia on Ubuntu 19.04, but every time I choose the directory My Time at Portia is linked to, UMM crashes with the stack trace below.

Steps to reproduce:

  1. In $HOME, ln -s .local/share/Steam/steamapps/common/My\ Time\ At\ Portia ~/games/My\ Time\ At\ Portia (also tried ln -s .local/share/Steam/steamapps/common ~/games)
  2. Run mono /path/to/UnityModManager.exe
  3. Click on the folder select button, and go to the games or games/My Time At Portia folder and hit Ok.
  4. Crash with stacktrace.

Maybe unrelated, but I checked the log tab, and I see that there’s an error with parsing UnityModManagerConfig.xml. Also, I tried the build from https://github.com/newman55/unity-mod-manager/issues/27 but it runs into the same issue

The stacktrace:

System.NullReferenceException: Object reference not set to an instance of an object
  at UnityModManagerNet.Installer.UnityModManagerForm.btnOpenFolder_Click (System.Object sender, System.EventArgs e) [0x0001f] in <d375f720dc724318b0a838655821e9d7>:0 
  at System.Windows.Forms.Control.OnClick (System.EventArgs e) [0x00019] in <69e4940ac30645898b9c63f67c310dba>:0 
  at System.Windows.Forms.Button.OnClick (System.EventArgs e) [0x0001e] in <69e4940ac30645898b9c63f67c310dba>:0 
  at System.Windows.Forms.ButtonBase.OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) [0x00069] in <69e4940ac30645898b9c63f67c310dba>:0 
  at System.Windows.Forms.Button.OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 
  at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) [0x00078] in <69e4940ac30645898b9c63f67c310dba>:0 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x001b4] in <69e4940ac30645898b9c63f67c310dba>:0 
  at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message& m) [0x00037] in <69e4940ac30645898b9c63f67c310dba>:0 
  at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message& m) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x0000b] in <69e4940ac30645898b9c63f67c310dba>:0 
  at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x00085] in <69e4940ac30645898b9c63f67c310dba>:0 

Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
  at UnityModManagerNet.Installer.UnityModManagerForm.UnityModLoaderForm_FormClosing (System.Object sender, System.Windows.Forms.FormClosingEventArgs e) [0x00000] in <d375f720dc724318b0a838655821e9d7>:0 
  at System.Windows.Forms.Form.OnFormClosing (System.Windows.Forms.FormClosingEventArgs e) [0x00019] in <69e4940ac30645898b9c63f67c310dba>:0 
  at System.Windows.Forms.Form.FireClosingEvents (System.Windows.Forms.CloseReason reason, System.Boolean cancel) [0x0001b] in <69e4940ac30645898b9c63f67c310dba>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form.FireClosingEvents(System.Windows.Forms.CloseReason,bool)
  at System.Windows.Forms.Application.Exit (System.ComponentModel.CancelEventArgs e) [0x0002e] in <69e4940ac30645898b9c63f67c310dba>:0 
  at System.Windows.Forms.Application.Exit () [0x00005] in <69e4940ac30645898b9c63f67c310dba>:0 
  at System.Windows.Forms.Application.OnThreadException (System.Exception t) [0x0005e] in <69e4940ac30645898b9c63f67c310dba>:0 
  at System.Windows.Forms.NativeWindow.OnThreadException (System.Exception e) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 
  at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x00196] in <69e4940ac30645898b9c63f67c310dba>:0 
  at System.Windows.Forms.XplatUIX11.DispatchMessage (System.Windows.Forms.MSG& msg) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 
  at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG& msg) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 
  at System.Windows.Forms.Application.RunLoop (System.Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x002ff] in <69e4940ac30645898b9c63f67c310dba>:0 
  at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext context) [0x00011] in <69e4940ac30645898b9c63f67c310dba>:0 
  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00006] in <69e4940ac30645898b9c63f67c310dba>:0 
  at UnityModManagerNet.Installer.Program.Main () [0x00010] in <d375f720dc724318b0a838655821e9d7>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
  at UnityModManagerNet.Installer.UnityModManagerForm.UnityModLoaderForm_FormClosing (System.Object sender, System.Windows.Forms.FormClosingEventArgs e) [0x00000] in <d375f720dc724318b0a838655821e9d7>:0 
  at System.Windows.Forms.Form.OnFormClosing (System.Windows.Forms.FormClosingEventArgs e) [0x00019] in <69e4940ac30645898b9c63f67c310dba>:0 
  at System.Windows.Forms.Form.FireClosingEvents (System.Windows.Forms.CloseReason reason, System.Boolean cancel) [0x0001b] in <69e4940ac30645898b9c63f67c310dba>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form.FireClosingEvents(System.Windows.Forms.CloseReason,bool)
  at System.Windows.Forms.Application.Exit (System.ComponentModel.CancelEventArgs e) [0x0002e] in <69e4940ac30645898b9c63f67c310dba>:0 
  at System.Windows.Forms.Application.Exit () [0x00005] in <69e4940ac30645898b9c63f67c310dba>:0 
  at System.Windows.Forms.Application.OnThreadException (System.Exception t) [0x0005e] in <69e4940ac30645898b9c63f67c310dba>:0 
  at System.Windows.Forms.NativeWindow.OnThreadException (System.Exception e) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 
  at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x00196] in <69e4940ac30645898b9c63f67c310dba>:0 
  at System.Windows.Forms.XplatUIX11.DispatchMessage (System.Windows.Forms.MSG& msg) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 
  at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG& msg) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 
  at System.Windows.Forms.Application.RunLoop (System.Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x002ff] in <69e4940ac30645898b9c63f67c310dba>:0 
  at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext context) [0x00011] in <69e4940ac30645898b9c63f67c310dba>:0 
  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00006] in <69e4940ac30645898b9c63f67c310dba>:0 
  at UnityModManagerNet.Installer.Program.Main () [0x00010] in <d375f720dc724318b0a838655821e9d7>:0 

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
newman55commented, Mar 14, 2021

Thanks. I’ll make some changes.

0reactions
newman55commented, Apr 1, 2021

Should be fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

UMM crashes on Linux on Pathfinder Kingmaker GOG setup.
i got this message when i had accidentally assigned the wrong directory for the executable. UMM didn't seem to be able to see...
Read more >
Unable to get UnityModManager working with Linux
I'm trying to get the mod manager to work under Linux, but I've hit a snag. When setting up the game, UMM asks...
Read more >
Unity Mod Manager at Modding Tools
A: Try to run Umm as administrator. A: Uncheck the read-only box from the game folder. Q: I have the error "No network...
Read more >
Nautilus (Files) crashes when trying to open specific folder ...
When I try to open folders (Documents, Downloads, Music, Pictures and Videos) using right click on Files icon on the left bar the...
Read more >
[Guide] Modding on Yuzu Emulator (UMM Method)
A: No clue. Best to try dumping it on a clean yuzu folder (backup and delete or rename your NAND folder) and install...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found