UnityEngine.UI.Dropdown broken on iOS? Unity 5.5

Crossposting from the UI forum since this is iOS-specific:

I have an app that runs fine on desktop, but when I run it on iOS, the Dropdown UI component specifically doesn’t work - clicking on it produces the following error, and it fails to render correctly (Unity 5.5, iOS 9.x, Xcode 8.2.1).

Any ideas how to fix or circumvent this? It looks like a problem with one of the Unity built-in UI structs: UnityEngine.UI.Navigation which is used by the Dropdown component…

Full error stack below:

(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

ExecutionEngineException: Attempting to JIT compile method ‘System.Collections.Generic.GenericEqualityComparer`1<UnityEngine.UI.Navigation>:.ctor ()’ while running with --aot-only.

at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[ ] parameters, System.Globalization.CultureInfo culture) [0x00000] in :0

Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.

at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[ ] parameters, System.Globalization.CultureInfo culture) [0x00000] in :0

at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[ ] parameters, System.Globalization.CultureInfo culture) [0x00000] in :0

at System.Reflection.ConstructorInfo.Invoke (System.Object[ ] parameters) [0x00000] in :0

at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x00000] in :0

at System.Activator.CreateInstance (System.Type type) [0x00000] in :0

at System.Collections.Generic.EqualityComparer`1[UnityEngine.UI.Navigation]…cctor () [0x00000] in :0

Rethrow as TypeInitializationException: An exception was thrown by the type initializer for System.Collections.Generic.EqualityComparer`1

at UnityEngine.UI.SetPropertyUtility.SetStruct[Navigation] (UnityEngine.UI.Navigation& currentValue, Navigation newValue) [0x00000] in :0

at UnityEngine.UI.Selectable.set_navigation (Navigation value) [0x00000] in :0

at UnityEngine.UI.Dropdown.Show () [0x00000] in :0

at UnityEngine.UI.Dropdown.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) [0x00000] in :0

at UnityEngine.EventSystems.ExecuteEvents.Execute (IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) [0x00000] in :0

at UnityEngine.EventSystems.ExecuteEvents.Execute[IPointerClickHandler] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.EventFunction`1 functor) [0x00000] in :0

UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)

UnityEngine.DebugLogHandler:LogException(Exception, Object)

UnityEngine.Logger:LogException(Exception, Object)

UnityEngine.Debug:LogException(Exception)

UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1)

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

UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchEvents()

UnityEngine.EventSystems.StandaloneInputModule:Process()

UnityEngine.EventSystems.EventSystem:Update()

(Filename: Line: -1)

``

1 Like

Please file a bug report to Unity,…