Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Setup have been running on IOS - but for some reason now it does not

Discussion in 'iOS and tvOS' started by Flindt, Dec 1, 2019.

  1. Flindt

    Flindt

    Joined:
    Dec 28, 2016
    Posts:
    78
    I have program that was running fine before - but suddenly now it does not.
    It shows me this error code - which is not present when running in editor on mac/PC.

    It shows nullreference - but i dont understand why it runs in editor - and why it have been working before...

    Code (CSharp):
    1. Uploading Crash Report
    2. NullReferenceException: Object reference not set to an instance of an object.
    3.   at WeatherController.SetParticleAmmount () [0x00000] in <00000000000000000000000000000000>:0
    4.   at WeatherController.SetWindValues () [0x00000] in <00000000000000000000000000000000>:0
    5.   at WeatherController.SetWeatherConditionValues () [0x00000] in <00000000000000000000000000000000>:0
    6.   at Interactive.DataManager.OnDateTimeChange (System.Int32 year, System.Int32 month, System.Int32 day, System.Int32 hour) [0x00000] in <00000000000000000000000000000000>:0
    7.   at ChangeForBut.ChangeDay () [0x00000] in <00000000000000000000000000000000>:0
    8.   at ChangeForBut.ChangeIf () [0x00000] in <00000000000000000000000000000000>:0
    9.   at DataLoader.LoadInstallationData () [0x00000] in <00000000000000000000000000000000>:0
    10.   at UnityEngine.Events.UnityAction.Invoke () [0x00000] in <00000000000000000000000000000000>:0
    11.   at UnityEngine.Events.InvokableCall.Invoke () [0x00000] in <00000000000000000000000000000000>:0
    12.   at UnityEngine.Events.UnityEvent.Invoke () [0x00000] in <00000000000000000000000000000000>:0
    13.   at UnityEngine.UI.Button.Press () [0x00000] in <00000000000000000000000000000000>:0
    14.   at UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) [0x00000] in <00000000000000000000000000000000>:0
    15.   at UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) [0x00000] in <00000000000000000000000000000000>:0
    16.   at UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1].Invoke (T1 handler, UnityEngine.EventSystems.BaseEventData eventData) [0x00000] in <00000000000000000000000000000000>:0
    17.   at UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) [0x00000] in <00000000000000000000000000000000>:0
    18.   at UnityEngine.EventSystems.StandaloneInputModule.ProcessTouchPress (UnityEngine.EventSystems.PointerEventData pointerEvent, System.Boolean pressed, System.Boolean released) [0x00000] in <00000000000000000000000000000000>:0
    19.   at UnityEngine.EventSystems.StandaloneInputModule.ProcessTouchEvents () [0x00000] in <00000000000000000000000000000000>:0
    20.   at UnityEngine.EventSystems.StandaloneInputModule.Process () [0x00000] in <00000000000000000000000000000000>:0
    21.   at UnityEngine.EventSystems.EventSystem.Update () [0x00000] in <00000000000000000000000000000000>:0
    22. UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
    23. UnityEngine.DebugLogHandler:LogException(Exception, Object)
    24. UnityEngine.Logger:LogException(Exception, Object)
    25. UnityEngine.Debug:LogException(Exception)
    26. UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1)
    27. UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchPress(PointerEventData, Boolean, Boolean)
    28. UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchEvents()
    29. UnityEngine.EventSystems.StandaloneInputModule:Process()
    30. UnityEngine.EventSystems.EventSystem:Update()
    31. (Filename: currently not available on il2cpp Line: -1)

    Any comments or thoughts are very welcome. - Thanks
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Please show your code, it looks like you have a NRE in your Update() method.