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

Newtonsoft can't find System.Numerics #69

Closed
sebastientromp opened this issue Jun 22, 2021 · 0 comments
Closed

Newtonsoft can't find System.Numerics #69

sebastientromp opened this issue Jun 22, 2021 · 0 comments
Assignees

Comments

@sebastientromp
Copy link
Sponsor

Hello,

I've been trying to use BSIPA on Hearthstone (another Unity game), and after running IPA.exe and launching the game I have this issue:

[DEBUG @ 15:52:18 | IPA/LibraryLoader] Resolving library System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
[DEBUG @ 15:52:18 | IPA/LibraryLoader] Looking for file System.Numerics.dll
[DEBUG @ 15:52:18 | IPA/LibraryLoader] Found file System.Numerics.dll as D:\Games\Hearthstone\Libs\System.Numerics.dll
[DEBUG @ 15:52:18 | IPA/LibraryLoader] Resolving library System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
[DEBUG @ 15:52:18 | IPA/LibraryLoader] Looking for file System.Numerics.dll
[DEBUG @ 15:52:18 | IPA/LibraryLoader] Found file System.Numerics.dll as D:\Games\Hearthstone\Libs\System.Numerics.dll
[ERROR @ 15:52:18 | IPA/Config] Error serializing value for D:\Games\Hearthstone\UserData\Beat Saber IPA.json
[ERROR @ 15:52:18 | IPA/Config] System.TypeInitializationException: The type initializer for 'Newtonsoft.Json.JsonWriter' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Newtonsoft.Json.Utilities.ConvertUtils' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.
[ERROR @ 15:52:18 | IPA/Config]    --- End of inner exception stack trace ---
[ERROR @ 15:52:18 | IPA/Config]   at Newtonsoft.Json.Utilities.EnumUtils.ToUInt64 (System.Object value) [0x00006] in <836484b0267d488c8d30f28b57efebd9>:0 
[ERROR @ 15:52:18 | IPA/Config]   at Newtonsoft.Json.Utilities.EnumUtils.InitializeValuesAndNames (Newtonsoft.Json.Utilities.StructMultiKey`2[T1,T2] key) [0x00045] in <836484b0267d488c8d30f28b57efebd9>:0 
[ERROR @ 15:52:18 | IPA/Config]   at (wrapper delegate-invoke) System.Func`2[Newtonsoft.Json.Utilities.StructMultiKey`2[System.Type,Newtonsoft.Json.Serialization.NamingStrategy],Newtonsoft.Json.Utilities.EnumInfo].invoke_TResult_T(Newtonsoft.Json.Utilities.StructMultiKey`2<System.Type, Newtonsoft.Json.Serialization.NamingStrategy>)
[ERROR @ 15:52:18 | IPA/Config]   at System.Collections.Concurrent.ConcurrentDictionary`2[TKey,TValue].GetOrAdd (TKey key, System.Func`2[T,TResult] valueFactory) [0x00034] in <7ba07f088431485bb722f3b3373e87ee>:0 
[ERROR @ 15:52:18 | IPA/Config]   at Newtonsoft.Json.Utilities.ThreadSafeStore`2[TKey,TValue].Get (TKey key) [0x00000] in <836484b0267d488c8d30f28b57efebd9>:0 
[ERROR @ 15:52:18 | IPA/Config]   at Newtonsoft.Json.Utilities.EnumUtils.GetEnumValuesAndNames (System.Type enumType) [0x0000c] in <836484b0267d488c8d30f28b57efebd9>:0 
[ERROR @ 15:52:18 | IPA/Config]   at Newtonsoft.Json.JsonWriter.BuildStateArray () [0x0001b] in <836484b0267d488c8d30f28b57efebd9>:0 
[ERROR @ 15:52:18 | IPA/Config]   at Newtonsoft.Json.JsonWriter..cctor () [0x000b3] in <836484b0267d488c8d30f28b57efebd9>:0 
[ERROR @ 15:52:18 | IPA/Config]    --- End of inner exception stack trace ---
[ERROR @ 15:52:18 | IPA/Config]   at Newtonsoft.Json.JsonTextWriter..ctor (System.IO.TextWriter textWriter) [0x00000] in <836484b0267d488c8d30f28b57efebd9>:0 
[ERROR @ 15:52:18 | IPA/Config]   at IPA.Config.Providers.JsonConfigProvider.Store (IPA.Config.Data.Value value, System.IO.FileInfo file) [0x0002f] in <a83e389c035f440ca90c6c2639d8fa6c>:0 
[DEBUG @ 15:52:18 | IPA/Config] Generated impl WriteTo IPA.Loader.DisabledConfig<Generated>

where Newtonsoft can't find the System.Numerics DLL.
I have added it to the Libs folder, which is why it is found by IPA/LibraryLoader.

Do you have any idea what should be done to solve this?

Thanks!
Seb

@nike4613 nike4613 self-assigned this Jun 22, 2021
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

2 participants