NodeCanvas Forums › Support › [NC2] WebGL Exceptions with deserialisation
So running my project with NC2 WebGL target produces these kind of deserialisation exceptions (note I don’t see these at all in the editor)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
run() called, but dependencies remain, so not running localhost/:33 pre-main prep time: 215 ms localhost/:29 PlayerConnection initialized from (debug = 0) localhost/:29 PlayerConnection disabled - listening mode not supported localhost/:29 Initialize engine version: 5.0.0f4 (5b98b70ebeb9) localhost/:29 Renderer: WebKit WebGL localhost/:29 Vendor: WebKit localhost/:29 Version: WebGL 1.0 (OpenGL ES 2.0 Chromium) localhost/:29 GLES: 0 localhost/:29 ANGLE_instanced_arrays GL_ANGLE_instanced_arrays EXT_blend_minmax GL_EXT_blend_minmax EXT_frag_depth GL_EXT_frag_depth EXT_shader_texture_lod GL_EXT_shader_texture_lod EXT_sRGB GL_EXT_sRGB EXT_texture_filter_anisotropic GL_EXT_texture_filter_anisotropic WEBKIT_EXT_texture_filter_anisotropic GL_WEBKIT_EXT_texture_filter_anisotropic OES_element_index_uint GL_OES_element_index_uint OES_standard_derivatives GL_OES_standard_derivatives OES_texture_float GL_OES_texture_float OES_texture_float_linear GL_OES_texture_float_linear OES_texture_half_float GL_OES_texture_half_float OES_texture_half_float_linear GL_OES_texture_half_float_linear OES_vertex_array_object GL_OES_vertex_array_object WEBGL_compressed_texture_s3tc GL_WEBGL_compressed_texture_s3tc WEBKIT_WEBGL_compressed_texture_s3tc GL_WEBKIT_WEBGL_compressed_texture_s3tc WEBGL_debug_renderer_info GL_WEBGL_debug_renderer_info WEBGL_debug_shaders GL_WEBGL_debug_shaders WEBGL_depth_texture GL_WEBGL_depth_texture WEBKIT_WEBGL_depth_texture GL_WEBKIT_WEBGL_depth_tex localhost/:29 ture WEBGL_draw_buffers GL_WEBGL_draw_buffers WEBGL_lose_context GL_WEBGL_lose_context WEBKIT_WEBGL_lose_context GL_WEBKIT_WEBGL_lose_context localhost/:29 Creating OpenGLES2.0 graphics device 2:13008/Development/WebOS.js:10173 Deserialization Error: 'Error while parsing: unable to parse; invalid initial token "2"; context = <{"version":2.0,"type":"NodeCanvas.StateMachines.FS>' UnityEngine.Debug:LogError(Object) NodeCanvas.Framework.Graph:Deserialize(String, List 1) NodeCanvas.Framework.Graph:OnAfterDeserialize() 2:13008/Development/WebOS.js:10173 Exception: Error while parsing: unable to parse; invalid initial token "0"; context = <},"Value":{"_value":0,"_propertyPath":null,"_name"> ParadoxNotion.Serialization.FullSerializer.fsResult.AssertSuccess () ParadoxNotion.Serialization.FullSerializer.fsJsonParser.Parse (System.String input) ParadoxNotion.Serialization.JSON.Deserialize (System.Type type, System.String serializedState, System.Collections.Generic.List1 objectReferences) ParadoxNotion.Serialization.JSON.Deserialize[Object] () NodeCanvas.Framework.Blackboard.OnAfterDeserialize () :13008/Development/WebOS.js:10173 Deserialization Error: 'Error while parsing: unable to parse; invalid initial token "2"; context = <{"version":2.0,"type":"NodeCanvas.StateMachines.FS>' UnityEngine.Debug:LogError(Object) NodeCanvas.Framework.Graph:Deserialize(String, List1) NodeCanvas.Framework.Graph:OnAfterDeserialize() :13008/Development/WebOS.js:10173 Exception: Error while parsing: unable to parse; invalid initial token "0"; context = <},"Value":{"_value":0.0,"_propertyPath":null,"_nam> ParadoxNotion.Serialization.FullSerializer.fsResult.AssertSuccess () ParadoxNotion.Serialization.FullSerializer.fsJsonParser.Parse (System.String input) ParadoxNotion.Serialization.JSON.Deserialize (System.Type type, System.String serializedState, System.Collections.Generic.List1 objectReferences) ParadoxNotion.Serialization.JSON.Deserialize[Object] () NodeCanvas.Framework.Blackboard.OnAfterDeserialize () |
Thanks for the report.
Havent yet had the time to check at WebGL and what its supported and what is not. Will do that
Thanks
Join us on Discord: https://discord.gg/97q2Rjh
I am seeing these exceptions also for NC2 on webgl platform on unity 5.
1 2 3 4 5 6 7 |
"Exception: Error while parsing: unable to parse; invalid initial token "0"; context = <},"Value":{"_value":0.0,"_propertyPath":"RiderChar> ParadoxNotion.Serialization.FullSerializer.fsResult.AssertSuccess () ParadoxNotion.Serialization.FullSerializer.fsJsonParser.Parse (System.String input) ParadoxNotion.Serialization.JSON.Deserialize (System.Type type, System.String serializedState, System.Collections.Generic.List 1 objectReferences) ParadoxNotion.Serialization.JSON.Deserialize[Object] () NodeCanvas.Framework.Blackboard.OnAfterDeserialize () |