Skip to content

quitPlayer method crushes the entire application #214

Closed
@gianfrancopapa

Description

@gianfrancopapa

Hi! When trying to use the method quitPlayer on dispose the app crushes.

void onUnityCreated(controller) {
    this._unityWidgetController = controller;
    ...
}
@override
  void dispose() { 
    _unityWidgetController.quitPlayer();
    super.dispose();
}

I don't know if this is related to the library or is related to a bug in Unity.
In xcode I am getting these 2 errors before the crush, could it be something about onDestroy() method?

First error:

[XRInputSubsystem] A device disconnection with the id 0 has been reported but no device with that id was connected.
UnityEngine.SubsystemManager:DestroyInstance_Internal(IntPtr)
UnityEngine.IntegratedSubsystem:Destroy()
UnityEngine.XR.Management.XRLoaderHelper:DestroySubsystem()
UnityEngine.XR.ARKit.ARKitLoader:Deinitialize()
UnityEngine.XR.Management.XRManagerSettings:DeinitializeLoader()
UnityEngine.XR.Management.XRGeneralSettings:DeInitXRSDK()
UnityEngine.XR.Management.XRGeneralSettings:Quit()
System.Action:Invoke()
UnityEngine.Application:Internal_ApplicationQuit()

Second error: I think this error is more related to something done wrong in unity side but just in case.

Setting up 1 worker threads for Enlighten.
  Thread -> id: 16c707000 -> priority: 1 
Audio Missng System.NullReferenceException: Object reference not set to an instance of an object.
  at PortalTrigger.ChangeMaterials (System.Boolean _fullRender) [0x00000] in <00000000000000000000000000000000>:0 
  at PortalTrigger.OnDestroy () [0x00000] in <00000000000000000000000000000000>:0 
UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
PortalTrigger:ChangeMaterials(Boolean)
PortalTrigger:OnDestroy()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions