question

Nguyen Hy Nhan avatar image
Nguyen Hy Nhan asked

PlayFab and Unity crash if no internet connection

I tried many times, if I connect to the internet, everything is fine. But if I disconnect the internet suddenly or without internet before playing / debugging, Unity will crash without any warning or exception. I tried setting a break point before starting login to PlayFab but the break point was never reached.

I reported bugs to Unity. But I still hope that you help me to better understand this error.

This is the Unity Editor's log: editor.txt

Initiating legacy licensing module LICENSE SYSTEM [20191213 17:53:24] Next license update check is after 2019-12-13T07:43:16 Built from '2019.2/staging' branch; Version is '2019.2.15f1 (dcb72c2e9334) revision 14464812'; Using compiler version '191627012' OS: 'Windows 10 (10.0.0) 64bit' Language: 'en' Physical Memory: 16351 MB BatchMode: 0, IsHumanControllingUs: 1, StartBugReporterOnCrash: 1, Is64bit: 1, IsPro: 0 [Package Manager] Server::Start -- Port 56428 was selected COMMAND LINE ARGUMENTS: D:\Apps\2019.2.15f1\Editor\Unity.exe Exiting without the bug reporter. Application will terminate with return code 0cloudEnvironment production -hubSessionId 107fb080-1d59-11ea-ab0a-b1240c01e190 -accessToken uqZ0XWE6SDPFHf01zlTR7I6oZGwLIF4nhVagnjdGeic011f Successfully changed project path to: D:/OneDrive/Game/Your-Aquarium/Your Aquarium D:/OneDrive/Game/Your-Aquarium/Your Aquarium Using Asset Import Pipeline V1. Loading GUID <-> Path mappings...0.000116 seconds Loading Asset Database...0.012516 seconds AssetDatabase consistency checks...0.023404 seconds [Package Manager] Done resolving packages in 0.37s seconds [Package Manager] Registered 42 packages: Packages from [https://packages.unity.com]: com.unity.collab-proxy@1.2.16 (location: D:\OneDrive\Game\Your-Aquarium\Your Aquarium\Library\PackageCache\com.unity.collab-proxy@1.2.16) com.unity.ext.nunit@1.0.0 (location: D:\OneDrive\Game\Your-Aquarium\Your Aquarium\Library\PackageCache\com.unity.ext.nunit@1.0.0) com.unity.ide.rider@1.1.0 (location: D:\OneDrive\Game\Your-Aquarium\Your Aquarium\Library\PackageCache\com.unity.ide.rider@1.1.0) com.unity.ide.vscode@1.1.3 (location: D:\OneDrive\Game\Your-Aquarium\Your Aquarium\Library\PackageCache\com.unity.ide.vscode@1.1.3) com.unity.test-framework@1.0.13 (location: D:\OneDrive\Game\Your-Aquarium\Your Aquarium\Library\PackageCache\com.unity.test-framework@1.0.13) com.unity.textmeshpro@2.0.1 (location: D:\OneDrive\Game\Your-Aquarium\Your Aquarium\Library\PackageCache\com.unity.textmeshpro@2.0.1) Built-in packages: com.unity.2d.sprite@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.2d.sprite) com.unity.2d.tilemap@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.2d.tilemap) com.unity.package-manager-ui@2.2.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.package-manager-ui) com.unity.timeline@1.1.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.timeline) com.unity.ugui@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui) com.unity.modules.ai@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.ai) com.unity.modules.androidjni@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.androidjni) com.unity.modules.animation@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.animation) com.unity.modules.assetbundle@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.assetbundle) com.unity.modules.audio@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.audio) com.unity.modules.cloth@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.cloth) com.unity.modules.director@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.director) com.unity.modules.imageconversion@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.imageconversion) com.unity.modules.imgui@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.imgui) com.unity.modules.jsonserialize@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.jsonserialize) com.unity.modules.particlesystem@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.particlesystem) com.unity.modules.physics@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.physics) com.unity.modules.physics2d@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.physics2d) com.unity.modules.screencapture@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.screencapture) com.unity.modules.terrain@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.terrain) com.unity.modules.terrainphysics@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.terrainphysics) com.unity.modules.tilemap@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.tilemap) com.unity.modules.ui@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.ui) com.unity.modules.uielements@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.uielements) com.unity.modules.umbra@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.umbra) com.unity.modules.unityanalytics@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.unityanalytics) com.unity.modules.unitywebrequest@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.unitywebrequest) com.unity.modules.unitywebrequestassetbundle@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.unitywebrequestassetbundle) com.unity.modules.unitywebrequestaudio@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.unitywebrequestaudio) com.unity.modules.unitywebrequesttexture@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.unitywebrequesttexture) com.unity.modules.unitywebrequestwww@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.unitywebrequestwww) com.unity.modules.vehicles@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.vehicles) com.unity.modules.video@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.video) com.unity.modules.vr@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.vr) com.unity.modules.wind@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.wind) com.unity.modules.xr@1.0.0 (location: D:\Apps\2019.2.15f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.xr) [XR] No new subsystems found in resolved package list. [Package Manager] Done registering packages in 0.01s seconds Refreshing native plugins compatible for Editor in 2.34 ms, found 0 plugins. Preloading 0 native plugins for Editor in 0.00 ms. IsTimeToCheckForNewEditor: Update time 1576237174 current 1576234406 Initialize engine version: 2019.2.15f1 (dcb72c2e9334) [XR] Discovering subsystems at path D:/Apps/2019.2.15f1/Editor/Data/Resources/UnitySubsystems [XR] Discovering subsystems at path D:/OneDrive/Game/Your-Aquarium/Your Aquarium/Assets GfxDevice: creating device client; threaded=1 Direct3D: Version: Direct3D 11.0 [level 11.0] Renderer: NVIDIA GeForce GTX 750 Ti (ID=0x1380) Vendor: VRAM: 984 MB Driver: 26.21.14.3200 [EnlightenBakeManager] m_Clear = false; Initialize mono Mono path[0] = 'D:/Apps/2019.2.15f1/Editor/Data/Managed' Mono path[1] = 'D:/Apps/2019.2.15f1/Editor/Data/MonoBleedingEdge/lib/mono/unityjit' Mono config path = 'D:/Apps/2019.2.15f1/Editor/Data/MonoBleedingEdge/etc' Using monoOptions --debugger-agent=transport=dt_socket,embedding=1,server=y,suspend=n,address=127.0.0.1:56724 Begin MonoManager ReloadAssembly Registering precompiled unity dll's ... Register platform support module: D:/Apps/2019.2.15f1/Editor/Data/PlaybackEngines/WindowsStandaloneSupport/UnityEditor.WindowsStandalone.Extensions.dll Register platform support module: D:/Apps/2019.2.15f1/Editor/Data/PlaybackEngines/WebGLSupport/UnityEditor.WebGL.Extensions.dll Register platform support module: D:/Apps/2019.2.15f1/Editor/Data/PlaybackEngines/AndroidPlayer/UnityEditor.Android.Extensions.dll Register platform support module: D:/Apps/2019.2.15f1/Editor/Data/PlaybackEngines/iOSSupport/UnityEditor.iOS.Extensions.dll Registered in 0.003583 seconds. [usbmuxd] Start listen thread [usbmuxd] Listen thread started Native extension for iOS target not found Native extension for Android target not found Native extension for WebGL target not found Native extension for WindowsStandalone target not found Refreshing native plugins compatible for Editor in 0.21 ms, found 0 plugins. Preloading 0 native plugins for Editor in 0.00 ms. Mono: successfully reloaded assembly - Completed reload, in 1.947 seconds Registering precompiled user dll's ... Registered in 0.065462 seconds. Platform modules already initialized, skipping Begin MonoManager ReloadAssembly Symbol file LoadedFromMemory doesn't match image D:\OneDrive\Game\Your-Aquarium\Your Aquarium\Library\PackageCache\com.unity.ext.nunit@1.0.0\net35\unity-custom\nunit.framework.dll Native extension for iOS target not found Native extension for Android target not found Native extension for WebGL target not found Native extension for WindowsStandalone target not found Refreshing native plugins compatible for Editor in 0.22 ms, found 0 plugins. Preloading 0 native plugins for Editor in 0.00 ms. Mono: successfully reloaded assembly - Completed reload, in 0.897 seconds Platform modules already initialized, skipping Validating Project structure ... 0.013040 seconds. Refresh: detecting if any assets need to be imported or removed ... Refreshing native plugins compatible for Editor in 0.27 ms, found 0 plugins. Preloading 0 native plugins for Editor in 0.00 ms. Refresh: detecting if any assets need to be imported or removed ... Refresh Completed time: 0.036110s Asset Scan time: 0.034782s Asset Hashing: 0.000000s [0 B, 0.000000 mb/s] Asset Import (Scripting) time: 0.000000s (count: 0) Post Processs Assets (Scripting) time: 0.000000s Asset Rehashing: 0.000000s [0 B, 0.000000 mb/s] Asset Import (Non Scripting) time: 0.000000s (count: 0) Post Process Assets (Non Scripting) time: 0.000000s Dependent Assets to Import Queue time: 0.000000s Launched and connected shader compiler UnityShaderCompiler.exe after 0.05 seconds Warming cache for 2339 main assets: 0.003606 seconds elapsed Initializing Unity extensions: 'D:/Apps/2019.2.15f1/Editor/Data/UnityExtensions/Unity/UnityVR/Editor/UnityEditor.VR.dll' GUID: 4ba2329b63d54f0187bcaa12486b1b0f Unloading 1461 Unused Serialized files (Serialized files now loaded: 0) Loaded scene 'Assets/Scenes/Store.unity' Deserialize: 43.443 ms Integration: 41.750 ms Integration of assets: 8.929 ms Thread Wait Time: 14.957 ms Total Operation Time: 109.079 ms System memory in use before: 66.8 MB. System memory in use after: 66.9 MB. Unloading 126 unused Assets to reduce memory usage. Loaded Objects now: 2006. Total: 2.462300 ms (FindLiveObjects: 0.359100 ms CreateObjectMapping: 0.075200 ms MarkObjects: 1.915400 ms DeleteObjects: 0.111900 ms) <RI> Initialized touch support. <RI> Initialized touch support. <RI> Initialized touch support. <RI> Initialized touch support. <RI> Initialized touch support. <RI> Initialized touch support. <RI> Initializing input. <RI> Input initialized. [Project] Loading completed in 8.032 seconds Project init time: 7.306 seconds Template init time: 0.000 seconds Services packages init time: 0.841 seconds Package Manager init time: 0.675 seconds Asset Database init time: 0.570 seconds Global illumination init time: 0.278 seconds Assemblies load time: 3.539 seconds Unity extensions init time: 0.001 seconds Asset Database refresh time: 0.036 seconds Scene opening time: 0.649 seconds Curl error 6: Could not resolve host: config.uca.cloud.unity3d.com (Filename: C:\buildslave\unity\build\Modules/UnityWebRequest/Implementations/TransportCurl.cpp Line: 734) Curl error 6: Could not resolve host: editor.playfabapi.com (Filename: C:\buildslave\unity\build\Modules/UnityWebRequest/Implementations/TransportCurl.cpp Line: 734) Curl error 6: Could not resolve host: api.github.com (Filename: C:\buildslave\unity\build\Modules/UnityWebRequest/Implementations/TransportCurl.cpp Line: 734) Curl error 6: Could not resolve host: cdp.cloud.unity3d.com (Filename: C:\buildslave\unity\build\Modules/UnityWebRequest/Implementations/TransportCurl.cpp Line: 734) Created GICache directory at C:/Users/nhanc/AppData/LocalLow/Unity/Caches/GiCache. Took: 0.036s, timestamps: [8.694 - 8.729] Setting up 4 worker threads for Enlighten. Thread -> id: 3d90 -> priority: 1 Thread -> id: 1b40 -> priority: 1 Thread -> id: 304c -> priority: 1 Thread -> id: 4ee4 -> priority: 1 PlayFab EditorExtensions: Caught an error:Invalid JSON string UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object) UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[]) UnityEngine.Logger:Log(LogType, Object) UnityEngine.Debug:LogError(Object) PlayFab.PfEditor.PlayFabEditor:StateUpdateHandler(EdExStates, String, String) (at Assets\PlayFabEditorExtensions\Editor\PlayFabEditor.cs:332) PlayFab.PfEditor.PlayFabEditor:RaiseStateUpdate(EdExStates, String, String) (at Assets\PlayFabEditorExtensions\Editor\PlayFabEditor.cs:247) PlayFab.PfEditor.PlayFabEditorHelper:SharedErrorCallback(PlayFabError) (at Assets\PlayFabEditorExtensions\Editor\Scripts\Utils\PlayFabEditorHelper.cs:128) PlayFab.PfEditor.PlayFabEditorHttp:OnWwwError(Action`1, String) (at Assets\PlayFabEditorExtensions\Editor\Scripts\PlayFabEditorSDK\PlayFabEditorHttp.cs:130) PlayFab.PfEditor.<>c__DisplayClass2_0`2:<MakeApiCall>b__1(String) (at Assets\PlayFabEditorExtensions\Editor\Scripts\PlayFabEditorSDK\PlayFabEditorHttp.cs:95) PlayFab.PfEditor.<Post>d__7:MoveNext() (at Assets\PlayFabEditorExtensions\Editor\Scripts\PlayFabEditorSDK\PlayFabEditorHttp.cs:177) PlayFab.PfEditor.EditorCoroutine:Update() (at Assets\PlayFabEditorExtensions\Editor\Scripts\Utils\EditorCoroutine.cs:103) UnityEditor.EditorApplication:Internal_CallUpdateFunctions() (at C:\buildslave\unity\build\Editor\Mono\EditorApplication.cs:303) (Filename: Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs Line: 332) PlayFab EditorExtensions: Caught an error:SharedErrorCallbackCannot resolve destination host UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object) UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[]) UnityEngine.Logger:Log(LogType, Object) UnityEngine.Debug:LogError(Object) PlayFab.PfEditor.PlayFabEditor:StateUpdateHandler(EdExStates, String, String) (at Assets\PlayFabEditorExtensions\Editor\PlayFabEditor.cs:332) PlayFab.PfEditor.PlayFabEditor:RaiseStateUpdate(EdExStates, String, String) (at Assets\PlayFabEditorExtensions\Editor\PlayFabEditor.cs:247) PlayFab.PfEditor.PlayFabEditorHelper:SharedErrorCallback(String) (at Assets\PlayFabEditorExtensions\Editor\Scripts\Utils\PlayFabEditorHelper.cs:133) PlayFab.PfEditor.<Post>d__7:MoveNext() (at Assets\PlayFabEditorExtensions\Editor\Scripts\PlayFabEditorSDK\PlayFabEditorHttp.cs:177) PlayFab.PfEditor.EditorCoroutine:Update() (at Assets\PlayFabEditorExtensions\Editor\Scripts\Utils\EditorCoroutine.cs:103) UnityEditor.EditorApplication:Internal_CallUpdateFunctions() (at C:\buildslave\unity\build\Editor\Mono\EditorApplication.cs:303) (Filename: Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs Line: 332) TrimDiskCacheJob: Current cache size 0mb Curl error 6: Could not resolve host: cdp.cloud.unity3d.com (Filename: C:\buildslave\unity\build\Modules/UnityWebRequest/Implementations/TransportCurl.cpp Line: 734) <RI> Initialized touch support. Curl error 6: Could not resolve host: cdp.cloud.unity3d.com (Filename: C:\buildslave\unity\build\Modules/UnityWebRequest/Implementations/TransportCurl.cpp Line: 734) Reloading assemblies for play mode. Begin MonoManager ReloadAssembly Symbol file LoadedFromMemory doesn't match image D:\OneDrive\Game\Your-Aquarium\Your Aquarium\Library\PackageCache\com.unity.ext.nunit@1.0.0\net35\unity-custom\nunit.framework.dll Native extension for iOS target not found Native extension for Android target not found Native extension for WebGL target not found Native extension for WindowsStandalone target not found Refreshing native plugins compatible for Editor in 0.22 ms, found 0 plugins. Preloading 0 native plugins for Editor in 0.00 ms. Mono: successfully reloaded assembly - Completed reload, in 1.755 seconds Platform modules already initialized, skipping Loaded scene 'Temp/__Backupscenes/0.backup' Deserialize: 2.593 ms Integration: 160.528 ms Integration of assets: 0.010 ms Thread Wait Time: 16.809 ms Total Operation Time: 179.940 ms Curl error 6: Could not resolve host: config.uca.cloud.unity3d.com (Filename: C:\buildslave\unity\build\Modules/UnityWebRequest/Implementations/TransportCurl.cpp Line: 734) * Assertion at ..\mono\metadata\threads.c:1788, condition `internal' not met

apis
editor.txt (18.0 KiB)
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sarah Zhang avatar image
Sarah Zhang answered

We tried to reproduce this issue in Unity2019.2.15f1. This issue that Unity Editor will crash when running the scene with no Internet connection truly exists in the Unity2019.2.15f1. But this crash also happens in an empty project without importing PlayFab SDK or extension. When we change the Unity version to 2019.2.16f1, this issue didn’t happen again. It should be a Unity specific-version issue. You can contact to Unity team for further investigation.

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Nguyen Hy Nhan avatar image Nguyen Hy Nhan commented ·

Thanks Sarah Zhang and PlayFab. I am happy with your answer and really appreciate your research.

0 Likes 0 ·
HackerTester avatar image HackerTester commented ·

@Sarah Zhang i am actually using 2020.3.13f1 and still facing this issue what should i do to fix this? Please Help

0 Likes 0 ·
Nguyen Hy Nhan avatar image
Nguyen Hy Nhan answered

Thanks Sarah Zhang and PlayFab. I am happy with your answer and really appreciate your research.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

HackerTester avatar image
HackerTester answered

@Sarah Zhang i am actually using 2020.3.13f1 and still facing this issue what should i do to fix this? Please Help

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sarah Zhang avatar image Sarah Zhang commented ·

If the behavior of your Unity engine is the same as this thread mentioned, it should be a Unity issue. You can contact to Unity team for further investigation.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.