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

Linux: Unending scanning and sharp.lua:133: assertion failed! #21

Open
WaffleLapkin opened this issue Jul 29, 2021 · 5 comments
Open

Linux: Unending scanning and sharp.lua:133: assertion failed! #21

WaffleLapkin opened this issue Jul 29, 2021 · 5 comments

Comments

@WaffleLapkin
Copy link

I'm the 12-th linux user trying to use olympus on Arch Linux with steam celeste installation, but it doesn't seem to work. When I run it, it just stucks in the "Scanning..." state. Using "Manually select Celeste.exe" doesn't help either. Here are the logs:

stdout log

; ./olympus
pre-initializing
cwd:	/home/waffle/Downloads/dist
src:	/home/waffle/Downloads/dist
storageDir:	/home/waffle/.config/Olympus
pre-initialized
love2d version	11.3.0.Mysterious Mysteries
SDL2 version	2.0.10
Olympus version	21.07.23.02-azure-2253-954da
[sharp init]	starting thread
[sharp init]	starting subprocess	/home/waffle/Downloads/dist/sharp/Olympus.Sharp.bin.x86_64	8400	nil
[sharp init]	logging to	/home/waffle/.config/Olympus/log-sharp.txt
[sharp init]	reading init
[sharpthread error]	sharp.lua:133: assertion failed!
stack traceback:
	[C]: in function 'assert'
	sharp.lua:133: in function <sharp.lua:28>
	[C]: in function 'xpcall'
	sharp.lua:28: in function 'fun'
	string:33: in function <string:32>
	[C]: in function 'xpcall'
	string:31: in main chunk
[finder]	steam root	/home/waffle/.local/share/Steam	<same>
[finder]	steam common	/home/waffle/.local/share/Steam/steamapps/common
[finder]	steam common	/home/waffle/steam/steamapps/common
[finder]	steam additional library	/home/waffle/steam/steamapps/common
[finder]	steam install	/home/waffle/.local/share/Steam/steamapps/common/Celeste
[finder]	steam root	/home/waffle/.local/share/Steam	<same>
[finder]	itch db	/home/waffle/.config/itch/db/butler.db	false
[finder]	lutris db	/home/waffle/.local/share/lutris/pga.db	<same>
[finder]	lutris root	/home/waffle/.config/lutris	<same>
[finder]	legendary root	/home/waffle/.config/legendary	false

`log-sharp.txt`

/home/waffle/Downloads/dist
FATAL ERROR
System.TypeInitializationException: The type initializer for 'System.Net.ServicePointManager' threw an exception. ---> System.Configuration.ConfigurationErrorsException: Error Initializing the configuration system. ---> System.Configuration.ConfigurationErrorsException: Unrecognized configuration section <startup> (/home/waffle/Downloads/dist/sharp/Olympus.Sharp.exe.config line 3)
  at System.Configuration.ConfigInfo.ThrowException (System.String text, System.Xml.XmlReader reader) [0x00007] in <1e6a1e890ba741b38804396a1899ecf8>:0
  at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlReader reader, System.Configuration.Configuration config, System.Boolean overrideAllowed, System.Boolean root) [0x00135] in <1e6a1e890ba741b38804396a1899ecf8>:0
  at System.Configuration.SectionGroupInfo.ReadRootData (System.Xml.XmlReader reader, System.Configuration.Configuration config, System.Boolean overrideAllowed) [0x00007] in <1e6a1e890ba741b38804396a1899ecf8>:0
  at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlReader reader, System.String fileName) [0x000ce] in <1e6a1e890ba741b38804396a1899ecf8>:0
  at System.Configuration.Configuration.Load () [0x00043] in <1e6a1e890ba741b38804396a1899ecf8>:0
  at System.Configuration.Configuration.Init (System.Configuration.Internal.IConfigSystem system, System.String configPath, System.Configuration.Configuration parent) [0x0005d] in <1e6a1e890ba741b38804396a1899ecf8>:0
  at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) [0x00056] in <1e6a1e890ba741b38804396a1899ecf8>:0
  at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] hostInitConfigurationParams) [0x0000d] in <1e6a1e890ba741b38804396a1899ecf8>:0
  at System.Configuration.ConfigurationManager.OpenExeConfigurationInternal (System.Configuration.ConfigurationUserLevel userLevel, System.Reflection.Assembly calling_assembly, System.String exePath) [0x000ef] in <1e6a1e890ba741b38804396a1899ecf8>:0
  at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x0000e] in <1e6a1e890ba741b38804396a1899ecf8>:0
   --- End of inner exception stack trace ---
  at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x0002a] in <1e6a1e890ba741b38804396a1899ecf8>:0
  at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.String configKey) [0x00000] in <1e6a1e890ba741b38804396a1899ecf8>:0
  at System.Configuration.ConfigurationManager.GetSection (System.String sectionName) [0x00005] in <1e6a1e890ba741b38804396a1899ecf8>:0
  at System.Net.ServicePointManager..cctor () [0x0003c] in <32fc020d7373456995b3d44fa885e01a>:0
   --- End of inner exception stack trace ---
  at Olympus.Program.Main (System.String[] args) [0x0013c] in <ed9d8567279b4b6c8462b4649eed87fc>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Net.ServicePointManager' threw an exception. ---> System.Configuration.ConfigurationErrorsException: Error Initializing the configuration system. ---> System.Configuration.ConfigurationErrorsException: Unrecognized configuration section <startup> (/home/waffle/Downloads/dist/sharp/Olympus.Sharp.exe.config line 3)
  at System.Configuration.ConfigInfo.ThrowException (System.String text, System.Xml.XmlReader reader) [0x00007] in <1e6a1e890ba741b38804396a1899ecf8>:0
  at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlReader reader, System.Configuration.Configuration config, System.Boolean overrideAllowed, System.Boolean root) [0x00135] in <1e6a1e890ba741b38804396a1899ecf8>:0
  at System.Configuration.SectionGroupInfo.ReadRootData (System.Xml.XmlReader reader, System.Configuration.Configuration config, System.Boolean overrideAllowed) [0x00007] in <1e6a1e890ba741b38804396a1899ecf8>:0
  at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlReader reader, System.String fileName) [0x000ce] in <1e6a1e890ba741b38804396a1899ecf8>:0
  at System.Configuration.Configuration.Load () [0x00043] in <1e6a1e890ba741b38804396a1899ecf8>:0
  at System.Configuration.Configuration.Init (System.Configuration.Internal.IConfigSystem system, System.String configPath, System.Configuration.Configuration parent) [0x0005d] in <1e6a1e890ba741b38804396a1899ecf8>:0
  at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) [0x00056] in <1e6a1e890ba741b38804396a1899ecf8>:0
  at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] hostInitConfigurationParams) [0x0000d] in <1e6a1e890ba741b38804396a1899ecf8>:0
  at System.Configuration.ConfigurationManager.OpenExeConfigurationInternal (System.Configuration.ConfigurationUserLevel userLevel, System.Reflection.Assembly calling_assembly, System.String exePath) [0x000ef] in <1e6a1e890ba741b38804396a1899ecf8>:0
  at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x0000e] in <1e6a1e890ba741b38804396a1899ecf8>:0
   --- End of inner exception stack trace ---
  at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x0002a] in <1e6a1e890ba741b38804396a1899ecf8>:0
  at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.String configKey) [0x00000] in <1e6a1e890ba741b38804396a1899ecf8>:0
  at System.Configuration.ConfigurationManager.GetSection (System.String sectionName) [0x00005] in <1e6a1e890ba741b38804396a1899ecf8>:0
  at System.Net.ServicePointManager..cctor () [0x0003c] in <32fc020d7373456995b3d44fa885e01a>:0
   --- End of inner exception stack trace ---
  at Olympus.Program.Main (System.String[] args) [0x0013c] in <ed9d8567279b4b6c8462b4649eed87fc>:0

@WaffleLapkin
Copy link
Author

It seems like the problem is caused by this exception on C# side:

System.TypeInitializationException: The type initializer for 'System.Net.ServicePointManager' threw an exception. ---> System.Configuration.ConfigurationErrorsException: Error Initializing the configuration system. ---> System.Configuration.ConfigurationErrorsException: Unrecognized configuration section <startup> (/home/waffle/Downloads/dist'/sharp/Olympus.Sharp.exe.config line 3)

Removing <startup> from the configuration file (Olympus.Sharp.exe.config) fixes the issue:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
-  <startup>
-    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
-  </startup>
</configuration>

@metamuffin
Copy link

This fix (at least on my machine) fixes, the original issue, but creates a new one, where at downloading mods other errors occurr.

[sharp] Task (installMod)(thread#96>sharp.lua:431<scenes/installer.lua:344)#1 failed: System.NotSupportedException: The URI prefix is not recognized.

This looks alot like if there were features, only enabled through specifing the runtime version.

@0x0ade
Copy link
Member

0x0ade commented Nov 2, 2021 via email

@metamuffin
Copy link

Thanks a lot. It seems to work properly again.
Would it be useful to include an option to run olympus with the system installation of mono for the 13 other GNU+Linux users?

@WaffleLapkin
Copy link
Author

WaffleLapkin commented Nov 2, 2021

For the record: yes, removal of <startup> only changed the issue for me and did not actually solve it (I added it back in the end). The actual solution was proposed by @jade on the Celeste discord. tl;dr it's just a hacky way to use system mono installation instead of MonoKickstart.

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

No branches or pull requests

3 participants