Error in the exe generated with unity 2017
See original GitHub issuehi all! here is the error I retrieve in the output_log.txt
System.TypeInitializationException: An exception was thrown by the type initializer for LiteDB.BsonMapper ---> System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: options
at System.Text.RegularExpressions.Regex.validate_options (RegexOptions options) [0x00000] in <filename unknown>:0
at System.Text.RegularExpressions.Regex..ctor (System.String pattern, RegexOptions options) [0x00000] in <filename unknown>:0
at LiteDB.BsonMapper..ctor (System.Func`2 customTypeInstantiator) [0x00000] in <filename unknown>:0
at LiteDB.BsonMapper..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at GRConfig. (System.String , LiteDB.BsonMapper ) [0x00000] in <filename unknown>:0
at GRConfig.loadSettings () [0x00000] in <filename unknown>:0
and my code for the initalization is this:
try
{
liteDb = new LiteDatabase(liteFile);
collectionStats = liteDb.GetCollection<dtStats>("dtStats");
}
catch (Exception ex)
{
Debug.LogWarning("Error liteDb");
Debug.LogWarning(ex.ToString());
}
thanks in advance
Issue Analytics
- State:
- Created 6 years ago
- Comments:7
Top Results From Across the Web
Exception: Il2cpp.exe Did Not Run Properly!
Try to run Unity as an administrator. This error usually means there is some permissions issue with the Unity installation that prevents il2cpp....
Read more >Unity 2017.4.34f1 Cant build APK using IL2CPP
This failure occurs because the code in the project has extern methods in C#. Methods marked as extern with a the [Dllimport("__Internal")] ...
Read more >Troubleshooting - Unity's Package Manager
This error message indicates that your manifest.json file is malformed. It also tells you the line number where the Package Manager failed to...
Read more >Unity.exe - Application Error : r/Unity3D
I have version 2018.2.12f1 (64-bit), and i already had visual studio community 2017 prior to downloading unity :/ And yes, my version is...
Read more >Troubleshooting and known issues (VS Tools for Unity)
Read about troubleshooting in Visual Studio Tools for Unity. See descriptions of known issues, and learn about solutions to those issues.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
did you try just changing from .NET2 Subset to .NET2 ?
Hi! With the objective of organizing our issues, we are closing old unsolved issues. Please check the latest version of LiteDB and open a new issue if your problem/question/suggestion still applies. Thanks!