Closed aaronklaassen closed 6 years ago
If the image_url attribute in a game's winnitron_metadata.json file isn't a full URL, the parse fails and everything crashes.
image_url
winnitron_metadata.json
UriFormatException: Invalid URI: The format of the URI could not be determined: d167dedb-d14b-4b72-9d5e-7496a70269ed-image-Binary-System.png System.Uri..ctor (System.String uriString, Boolean dontEscape) System.Uri..ctor (System.String uriString) Game.pickImageFile () (at Assets/Scripts/System/Classes/Game.cs:152) Game.GetScreenshot () (at Assets/Scripts/System/Classes/Game.cs:131) Game.BuildGameJSON () (at Assets/Scripts/System/Classes/Game.cs:89) Game..ctor (System.String directory) (at Assets/Scripts/System/Classes/Game.cs:58) Playlist.BuildGameList () (at Assets/Scripts/System/Classes/Playlist.cs:56) Playlist..ctor (System.String directory) (at Assets/Scripts/System/Classes/Playlist.cs:27) DataManager.GetPlaylists () (at Assets/Scripts/System/GM/DataManager.cs:96) DataManager.ReloadData () (at Assets/Scripts/System/GM/DataManager.cs:41) DataManager.Init () (at Assets/Scripts/System/GM/DataManager.cs:27) GM+<Initialize>c__Iterator0.MoveNext () (at Assets/Scripts/System/GM/GM.cs:77) UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) (at /Users/builduser/buildslave/unity/build/Runtime/Export/Coroutines.cs:17) UnityEngine.MonoBehaviour:StartCoroutine(String) GM:Init() (at Assets/Scripts/System/GM/GM.cs:59) InitState:OnStateEnter(Animator, AnimatorStateInfo, Int32) (at Assets/Scripts/System/StateMachine/States/InitState.cs:17)
If the
image_url
attribute in a game'swinnitron_metadata.json
file isn't a full URL, the parse fails and everything crashes.