I am using unity 2018.4.12f1, this kind of crash usually come with the following logs on android:
Error Dec 6, 2019, 05:23:54.870 65536 java.net.UnknownHostException: Unable to resolve host "cdp.cloud.unity3d.com": No address associated with hostname
Error Dec 6, 2019, 05:23:55.563 65578 java.net.UnknownHostException: Unable to resolve host "cdp.cloud.unity3d.com": No address associated with hostname
Error Dec 6, 2019, 05:24:06.565 0 java.net.ProtocolException: unexpected end of stream
Yes,I request asset bundle from web server and streaming assets with UnityWebRequestAssetBundle, and assess web API with UnityWebRequest, some times UnityWebRequestAssetBundle failed to request asset bundle from steaming assets but which can be recovered by retrying again. I make request with the following c# code:
var request = new UnityWebRequest(url, "POST") {
certificateHandler = new AcceptAnyCertificateHandler()
};
var bodyRaw = Encoding.UTF8.GetBytes(content);
request.uploadHandler = new UploadHandlerRaw(bodyRaw);
request.downloadHandler = new DownloadHandlerBuffer();
request.SetRequestHeader("Content-Type", "application/json");
request.SendWebRequest();
Does “destroy UWR” means to call UnityWebRequest.Dispose? I don’t understand how to achieve “destroy UWR before the certificate callback is called”. I checked my code, found some UnityWebRequest instance does not disposed when request failed, but UnityWebRequest.Dispose is always called after a request is done.
We’re seeing same crashes in editor when reloading domain and entering play mode. We’re also using custom certificate handler. Log:
ERROR: SymGetSymFromAddr64, GetLastError: 'The specified module could not be found.' (Address: 0000021E896E1596)
ERROR: SymGetModuleInfo64, GetLastError: 'A dynamic link library (DLL) initialization routine failed.' (Address: 0000021E896E1596)
0x0000021E896E1596 ((<unknown>)) (function-name not available)
0x0000021F7A37497C (Mono JIT Code) UnityEngine.Networking.CertificateHandler:ValidateCertificateNative (byte[])
=================================================================
Native Crash Reporting
=================================================================
Got a UNKNOWN while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
=================================================================
Managed Stacktrace:
=================================================================
at <unknown> <0xffffffff>
at UnityEngine.Networking.CertificateHandler:ValidateCertificateNative <0x0008b>
at ¨eN!:€H‚“# <0x0018d>
=================================================================
A crash has been intercepted by the crash handler. For call stack and other details, see the latest crash report generated in:
Crash dump contains following content from WinDbg: