NotSupportedException: /Users/builduser/buildslave/unity/build/External/il2cpp/il2cpp/libil2cpp/icalls/mscorlib/System/Environment.cpp(166) : Unsupported internal call for IL2CPP:Environment::get_HasShutdownStarted - "This icall is not supported by il2cpp
Are there more details in the call stack about what is calling that method? It looks like some code is calling Environment.ShutdownHasStarted, which is not implemented for IL2CPP.
Mongodb I am using just works on editor not on iOS and android build… unity seems to be very bad when uses any database… first I tried firebase when I got hundreds of errors after importing firebase sdk I left it…
can you suggest me any online database which will work fine with unity… after every new unity version there are problems…
Now I switched to 2019.4.22f1 and this. even on unity editor… haha only place where my db was running now this
DnsResponseException: No connection could be established to any of the following name servers: 172.20.10.1:53 (Udp: 4096).
DnsClient.LookupClient.ResolveQuery (System.Collections.Generic.IReadOnlyCollection1[T] servers, DnsClient.DnsMessageHandler handler, DnsClient.DnsRequestMessage request, System.Boolean useCache, DnsClient.LookupClientAudit continueAudit) (at <57cd9b7b8c7b47269efcc38c43d25c74>:0) DnsClient.LookupClient.QueryInternal (System.Collections.Generic.IReadOnlyCollection
1[T] servers, DnsClient.DnsQuestion question, System.Boolean useCache) (at <57cd9b7b8c7b47269efcc38c43d25c74>:0)
DnsClient.LookupClient.Query (System.String query, DnsClient.QueryType queryType, DnsClient.QueryClass queryClass) (at <57cd9b7b8c7b47269efcc38c43d25c74>:0)
MongoDB.Driver.Core.Configuration.ConnectionString.Resolve () (at <5ee0a21073b349b884ac8e9a3ec24723>:0)
MongoDB.Driver.MongoUrl.Resolve () (at :0)
MongoDB.Driver.MongoClientSettings.FromUrl (MongoDB.Driver.MongoUrl url) (at :0)
MongoDB.Driver.MongoClientSettings.FromConnectionString (System.String connectionString) (at :0)
MongoDB.Driver.MongoClient…ctor (System.String connectionString) (at :0)
Home.Start () (at Assets/Scripts/home-scene/Home.cs:263)
I’m not sure what database might work, sorry. Can you provide specific details about the error message you see though?
brother above is the whole error log I showed you
I can’t say why this error happens, but it looks like something is wrong with the connection to the server.
MongoDB crashed error on iOS runtime on Xcode
Uploading Crash Report
NotSupportedException: ./External/il2cpp/il2cpp/libil2cpp/icalls/mscorlib/System.Reflection/Module.cpp(112) : Unsupported internal call for IL2CPP:Module::GetPEKind - “This icall is not supported by il2cpp.”
at System.Reflection.MonoModule.GetPEKind (System.Reflection.PortableExecutableKinds& peKind, System.Reflection.ImageFileMachine& machine) [0x00000] in <00000000000000000000000000000000>:0
at MongoDB.Driver.Core.Connections.ClientDocumentHelper.CreateOSDocument () [0x00000] in <00000000000000000000000000000000>:0
at System.Func`1[TResult].Invoke () [0x00000] in <00000000000000000000000000000000>:0
at System.Lazy`1[T].CreateValue () [0x00000] in <00000000000000000000000000000000>:0
at System.Lazy`1[T].LazyInitValue () [0x00000] in <00000000000000000000000000000000>:0
at MongoDB.Driver.Core.Connections.ClientDocumentHelper.CreateClientDocument (System.String applicationName) [0x00000] in <00000000000000000000000000000000>:0
at MongoDB.Driver.Core.Connections.ConnectionInitializer…ctor (System.String applicationName) [0x00000] in <00000000000000000000000000000000>:0
at MongoDB.Driver.Core.Connections.BinaryConnectionFactory…ctor (MongoDB.Driver.Core.Configuration.ConnectionSettings settings, MongoDB.Driver.Core.Connections.IStreamFactory streamFactory, MongoDB.Driver.Core.Events.IEventSubscriber eventSubscriber) [0x00000] in <00000000000000000000000000000000>:0
at MongoDB.Driver.Core.Configuration.ClusterBuilder.CreateConnectionPoolFactory () [0x00000] in <00000000000000000000000000000000>:0
at MongoDB.Driver.Core.Configuration.ClusterBuilder.CreateServerFactory () [0x00000] in <00000000000000000000000000000000>:0
at MongoDB.Driver.Core.Configuration.ClusterBuilder.CreateClusterFactory () [0x00000] in <00000000000000000000000000000000>:0
at MongoDB.Driver.Core.Configuration.ClusterBuilder.BuildCluster () [0x00000] in <00000000000000000000000000000000>:0
at MongoDB.Driver.ClusterRegistry.CreateCluster (MongoDB.Driver.ClusterKey clusterKey) [0x00000] in <00000000000000000000000000000000>:0
at MongoDB.Driver.ClusterRegistry.GetOrCreateCluster (MongoDB.Driver.ClusterKey clusterKey) [0x00000] in <00000000000000000000000000000000>:0
at MongoDB.Driver.MongoClient…ctor (MongoDB.Driver.MongoClientSettings settings) [0x00000] in <00000000000000000000000000000000>:0
at Home.Start () [0x00000] in <00000000000000000000000000000000>:0
(Filename: currently not available on il2cpp Line: -1)
Thanks for the details. This error means the code is hitting some parts of the .NET class libraries that IL2CPP does not support. I don’t expect us to add support for this any time soon. So I don’t believe that this managed code will work with IL2CPP.