iOS NotImplementedException: The method or operation is not implemented.

Hi, we load xml with System.Xml.Serialization.XmlSerializationReader.ReadString but seems like IL2CPP on iOS lost that. Any idea how to fix it? It worked fine in previous Unity versions.
Thank you, Marek.
(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

XML

UnityEngine.Logger:Log(LogType, Object)

UnityEngine.Debug:Log(Object)

NSTestSuiteXML:LoadXML(NSTestSuiteButton)

UnityEngine.Events.UnityEvent:Invoke()

UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchPress(PointerEventData, Boolean, Boolean)

UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchEvents()

UnityEngine.EventSystems.StandaloneInputModule:Process()

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

NotImplementedException: The method or operation is not implemented.

at System.Xml.Serialization.XmlSerializationReader.ReadString (System.String value, System.Boolean trim) [0x00000] in <00000000000000000000000000000000>:0

at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read7_typedtext (System.Boolean isNullable, System.Boolean checkType) [0x00000] in <00000000000000000000000000000000>:0

at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read13_identification (System.Boolean isNullable, System.Boolean checkType) [0x00000] in <00000000000000000000000000000000>:0

at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read305_scorepartwise (System.Boolean isNullable, System.Boolean checkType) [0x00000] in <00000000000000000000000000000000>:0

at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read325_scorepartwise () [0x00000] in <00000000000000000000000000000000>:0

at Microsoft.Xml.Serialization.GeneratedAssembly.scorepartwiseSerializer.Deserialize (System.Xml.Serialization.XmlSerializationReader reader) [0x00000] in <00000000000000000000000000000000>:0

at ForieroEngine.Music.MusicXML.Xsd.MusicXMLExtensions.Load (ForieroEngine.Music.MusicXML.Xsd.scorepartwise spw, System.IO.MemoryStream stream) [0x00000] in <00000000000000000000000000000000>:0

at ForieroEngine.Music.NotationSystem.Systems.NSRollingLeftRightSystem+ScorePartwise.LoadMusicXML (ForieroEngine.Music.NotationSystem.Systems.NSRollingLeftRightSystem ns, System.Byte[ ] bytes) [0x00000] in <00000000000000000000000000000000>:0

at ForieroEngine.Music.NotationSystem.Systems.NSRollingLeftRightSystem.LoadMusicXML (System.Byte[ ] bytes) [0x00000] in <00000000000000000000000000000000>:0

at NSTestSuiteXML.LoadXML (NSTestSuiteButton item) [0x00000] in <00000000000000000000000000000000>:0

at UnityEngine.Events.UnityEvent.Invoke () [0x00000] in <00000000000000000000000000000000>:0

at UnityEngine.EventSystems.StandaloneInputModule.ProcessTouchPress (UnityEngine.EventSystems.PointerEventData pointerEvent, System.Boolean pressed, System.Boolean released) [0x00000] in <00000000000000000000000000000000>:0

at UnityEngine.EventSystems.StandaloneInputModule.ProcessTouchEvents () [0x00000] in <00000000000000000000000000000000>:0

at UnityEngine.EventSystems.StandaloneInputModule.Process () [0x00000] in <00000000000000000000000000000000>:0

UnityEngine.Logger:LogException(Exception, Object)

UnityEngine.Debug:LogException(Exception)

UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchPress(PointerEventData, Boolean, Boolean)

UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchEvents()

UnityEngine.EventSystems.StandaloneInputModule:Process()

(Filename: currently not available on il2cpp Line: -1)

We use sgen to generate our cached classes. “C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\sgen.exe” Can that be possible issue in that? But as I said it worked with NET before. Thank you, Marek.

This might be a bug on the Unity side. Can you submit a bug report for it?

I will try to isolate it. Should be relatively easy.

Ok simple enough. 100% reproducibility on iOS. I would also try other platforms just to be sure. But I din’t get the case number. Try to search in your database “xgen ios”. Marek.

Case 1106236

2 Likes

Can you guys fix it?

I’m not sure yet, but we will investigate.

We were able to reproduce the issue. You’ll be able to find the issue tracker entry here in a couple of hours: Unity Issue Tracker - NotImplementedException when calling XmlSerializationReader.ReadString (for xgen)