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.

Error in the exe generated with unity 2017

See original GitHub issue

hi 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:closed
  • Created 6 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
cmiszturcommented, Aug 8, 2017

did you try just changing from .NET2 Subset to .NET2 ?

0reactions
lbnascimentocommented, Feb 5, 2020

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!

Read more comments on GitHub >

github_iconTop 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 >

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