Jump to content

ONI will not restart after changing mods


Unquiet Jake
  • Branch: Live Branch Version: OSX Fixed
[01:21:33.810] [1] [INFO] Restarting
	exe (/Users/xxxx/Library/Application Support/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded.app/Contents/MacOS/OxygenNotIncluded)
	full (/Users/xxxx/Library/Application Support/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded.app/Contents/MacOS/OxygenNotIncluded.app/Contents/MacOS/OxygenNotIncluded)
	dir (/Users/xxxx/Library/Application Support/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded.app/Contents/MacOS)
The files /Users/xxxx/Library/Application Support/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded.app/Contents/MacOS/OxygenNotIncluded.app/Contents/MacOS/Restarter and /Users/xxxx/Library/Application Support/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded.app/Contents/MacOS/OxygenNotIncluded.app/Contents/MacOS/OxygenNotIncluded do not exist.
Fallback handler could not load library /Users/xxxx/Library/Application Support/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded.app/Contents/Frameworks/MonoEmbedRuntime/osx/libKernel32
Fallback handler could not load library /Users/xxxx/Library/Application Support/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded.app/Contents/Frameworks/MonoEmbedRuntime/osx/libKernel32.dylib
Fallback handler could not load library /Users/xxxx/Library/Application Support/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded.app/Contents/Frameworks/MonoEmbedRuntime/osx/libKernel32.so
Fallback handler could not load library /Users/xxxx/Library/Application Support/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded.app/Contents/Frameworks/MonoEmbedRuntime/osx/libKernel32.bundle
Fallback handler could not load library /Users/xxxx/Library/Application Support/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded.app/Contents/Frameworks/MonoEmbedRuntime/osx/Kernel32
Fallback handler could not load library /Users/xxxx/Library/Application Support/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded.app/Contents/Frameworks/MonoEmbedRuntime/osx/libKernel32
Fallback handler could not load library /Users/xxxx/Library/Application Support/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded.app/Contents/Frameworks/MonoEmbedRuntime/osx/libKernel32.dylib
Fallback handler could not load library /Users/xxxx/Library/Application Support/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded.app/Contents/Frameworks/MonoEmbedRuntime/osx/libKernel32.so
Fallback handler could not load library /Users/xxxx/Library/Application Support/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded.app/Contents/Frameworks/MonoEmbedRuntime/osx/libKernel32.bundle
Fallback handler could not load library /Users/xxxx/Library/Application Support/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded.app/Contents/Frameworks/MonoEmbedRuntime/osx/libKernel32

ONI cannot restart from mod changes modal.

EDIT: No "restart" button in the game works as expected. 


Steps to Reproduce
Launch the ONI app Click "Mods" Check or uncheck any number of mods to ensure the "Restart/Continue" screen will show.. Click "Close" The changed mods modal will show. Click "Restart" You will be returned to the mods list, but the color of the selected mods will become increasingly red, indicating a crash. This can be repeated any number of times. Restart will not restart the game, instead producing the above logs WORKAROUND: Click "Continue" instead of restart, and "quit" from the main menu. Mod changes will be respected. It appears the restart is getting confused by the space in "Application Support", as I confirmed both files exist.
  • Like 2
  • Thanks 1



User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.
Quote

You will be returned to the mods list, but the color of the selected mods will become increasingly red, indicating a crash.

That means that the mods have crashed, and the game has disabled them as a result. 

Recently they updated the .NET Framework to 4.0:

On 2/5/2020 at 8:02 PM, Ipsquiggle said:

Hello friends!

In the most recent patch, we upgraded the version of Unity that the game is running on, which resulted in the .net runtime being upgraded as well.

The most acute result of this is that any mod solutions will have to be updated to target the 4.0 framework. (In Visual Studio, this is in the project properties, Application > Target Framework.) This will fix compilation issues caused by the patch.

So now all mods have to be updated to the same .NET Framework in order to function again.

Share this comment


Link to comment
Share on other sites

No, this is not due to mods. I can reproduce this with no mods active (except the Enable All Mods mod, which works fine) simply by clicking on any "Restart" button in the game. 

The snippet of log I posted explicitly indicates the game is not finding the Restarter, likely due to an issue interpreting the space in the "Application Support" directory name, as I mentioned. I've seen this exact issue in the Mac OS X console if I were to type:

open /Users/xxxx/Library/Application Support/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded.app/Contents/MacOS/OxygenNotIncluded.app/Contents/MacOS/Restarter

In console, the space needs to be escaped, like so:

open /Users/xxxx/Library/Application\ Support/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded.app/Contents/MacOS/OxygenNotIncluded.app/Contents/MacOS/Restarter

Or the whole string needs to be quoted:

open "/Users/xxxx/Library/Application Support/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded.app/Contents/MacOS/OxygenNotIncluded.app/Contents/MacOS/Restarter"

The Restarter executable is part of the official ONI binary, and I have confirmed it exists; it just isn't being found, and since ONI interprets any crash with mods active as a mod crash, it increments the mod crash counters and disables all mods again.

 

Edited by Unquiet Jake

Share this comment


Link to comment
Share on other sites

I've been having the same problem the last few weeks. Restart buttons are not respected, but manually quitting and reloading seems to work.

Edited by Sol Invictus

Share this comment


Link to comment
Share on other sites

This also occurs on the preview branch. Remembering not to click restart is a little interesting when you're trying to figure out which mods have broken against the upcoming release. 

Share this comment


Link to comment
Share on other sites

I am also having this issue, where clicking the "restart" button in the game causes a crash.

Player.log:

[23:09:24.193] [1] [INFO] Restarting
	exe (/Users/asnyder/Library/Application Support/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded.app/Contents/MacOS/OxygenNotIncluded)
	full (/Users/asnyder/Library/Application Support/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded.app/Contents/MacOS/OxygenNotIncluded.app/Contents/MacOS/OxygenNotIncluded)
	dir (/Users/asnyder/Library/Application Support/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded.app/Contents/MacOS)
The files /Users/asnyder/Library/Application Support/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded.app/Contents/MacOS/OxygenNotIncluded.app/Contents/MacOS/Restarter and /Users/asnyder/Library/Application Support/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded.app/Contents/MacOS/OxygenNotIncluded.app/Contents/MacOS/OxygenNotIncluded do not exist.
[23:09:24.286] [1] [INFO] Error occurred with mods active. Disabling all mods (unless dev mods active).
Win32Exception: Cannot find the specified file
  at System.Diagnostics.Process.StartWithShellExecuteEx (System.Diagnostics.ProcessStartInfo startInfo) [0x00102] in <d2957de1c3fd4781a43d89572183136c>:0 
  at System.Diagnostics.Process.Start () [0x00032] in <d2957de1c3fd4781a43d89572183136c>:0 
  at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
  at System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo startInfo) [0x0001b] in <d2957de1c3fd4781a43d89572183136c>:0 
  at App.Restart () [0x00075] in <16b1d622fd1745318f230365dce57f8d>:0 
  at ConfirmDialogScreen.OnSelect_OK () [0x0000e] in <50a7ed6d3ce04a00b892cc8ec2adaec4>:0 
  at KButton.SignalClick (KKeyCode btn) [0x00010] in <16b1d622fd1745318f230365dce57f8d>:0 
  at KButton.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) [0x00069] in <16b1d622fd1745318f230365dce57f8d>:0 
  at UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) [0x00008] in <df908a91aa0f474f9f22637bf50e3fd3>:0 
  at UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) [0x00070] in <df908a91aa0f474f9f22637bf50e3fd3>:0

You'll notice that the files it is looking for do not exist at the path specified in the log. There is some weird recursion going on in the paths where it is looking for a nested OxygenNotIncluded.app directory.

/Users/asnyder/Library/Application Support/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded.app/Contents/MacOS/OxygenNotIncluded.app/Contents/MacOS/Restarter

I found a workaround for MacOS users if this is bothering anyone.

1. Open Terminal

2. Run the following command

ln -s "$HOME/Library/Application Support/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded.app" "$HOME/Library/Application Support/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded.app/Contents/MacOS/OxygenNotIncluded.app"

After running this, you should be able to click that in-game restart button and have mods enabled the next time you start the game.

Share this comment


Link to comment
Share on other sites

This is still happening on Vanilla and DLC, 11 months after the bug was posted. Can we please just fix the reference to the `restarter` app?

Share this comment


Link to comment
Share on other sites

Similar error found on Arch Linux with KDE:

[23:39:52.483] [1] [INFO] Restarting
        exe (/home/cnachtigall/.local/share/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded)
        full (/home/cnachtigall/.local/share/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded)
        dir (/home/cnachtigall/.local/share/Steam/steamapps/common/OxygenNotIncluded)
ERROR: ld.so: object '/home/cnachtigall/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
xdg-open: unexpected argument '/home/cnachtigall/.local/share/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded'
Try 'xdg-open --help' for more information.

Any ideas?

[Edit]
Funny enough, running the game with Proton 6.3-8, the game restarts just fine!

Steps for enabling Proton:
ONI Preferences > Compatibility > [enable 'Force the use of a specific Steam Play compatibility tool'] > [select 'Proton 6.3-8']

Edited by vikingowl1991

Share this comment


Link to comment
Share on other sites

Changed Status to Fixed

There was an issue that was causing the restarter to sometimes not be shipped with the game.

  • Thanks 1

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...