适用于iOS的Unity Mapbox示例构建在滑动时不断崩溃

时间:2019-06-24 13:24:48

标签: ios xcode unity3d mapbox

我下载了Mapbox提供的Mapbox.unity软件包,并将其导入到我的空Unity项目中。然后,我为Ios进行了构建。有一个渲染的地图,我可以环顾四周。我可以关闭UI叠加层,但是只要我在屏幕上的其他位置滑动,它就会崩溃。

使用: Unity 2019.1.8f1 xCode 10.2.1 具有iOS 12.3.1的iPhone 7

输出中没有直接的错误消息,这让我更加困惑。如果我在连接调试器的情况下运行该应用程序,则该应用程序将停在出现以下错误的行:

Thread 1: EXC_BAD_ACCESS (code=1, address=0x0)

它停在的行看起来像这样: Marshal_Copy_m ...((intptr_t)L_2,L_3、0,L_4,/ 隐藏参数 / NULL);

它在程序集csharp14脚本中。我不认为该错误是由该脚本引起的,但我只是无法确定它的来源。

以下是一些发生的输出:


LocationProviderFactory: Injected DEVICE Location Provider - Mapbox.Unity.Location.DeviceLocationProvider
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:LogFormat(LogType, String, Object[])
UnityEngine.Debug:LogFormat(String, Object[])
Mapbox.Unity.Location.LocationProviderFactory:InjectDeviceLocationProvider()
Mapbox.Unity.Location.LocationProviderFactory:Awake()

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

DontDestroyOnLoad only works for root GameObjects or components on root GameObjects.
DontDestroyOnLoad:Start()

[./Runtime/SceneManager/SceneManager.cpp line 559] 
(Filename: ./Runtime/SceneManager/SceneManager.cpp Line: 559)

NullReferenceException: Object reference not set to an instance of an object.
  at UnityARInterface.ARKitInterface.Update () [0x00000] in <00000000000000000000000000000000>:0 
  at UnityARInterface.ARController.Update () [0x00000] in <00000000000000000000000000000000>:0 

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

Screen position out of view frustum (screen pos 0.000000, 0.000000, 1000.000000) (Camera rect 0 0 750 1334)


(Filename: ./Runtime/Camera/Camera.cpp Line: 3472)

Screen position out of view frustum (screen pos 750.000000, 0.000000, 1000.000000) (Camera rect 0 0 750 1334)

(Filename: ./Runtime/Camera/Camera.cpp Line: 3472)

Screen position out of view frustum (screen pos 0.000000, 0.000000) (Camera rect 0 0 750 1334)
UnityEngine.Camera:ScreenPointToRay(Vector2, MonoOrStereoscopicEye)
UnityEngine.Camera:ScreenPointToRay(Vector3, MonoOrStereoscopicEye)
UnityEngine.Camera:ScreenPointToRay(Vector3)
UnityEngine.SendMouseEvents:DoSendMouseEvents(Int32)

[./Runtime/Camera/Camera.cpp line 3415] 
(Filename: ./Runtime/Camera/Camera.cpp Line: 3415)

Screen position out of view frustum (screen pos 375.000000, 667.000000) (Camera rect 0 0 750 1334)
UnityEngine.Camera:ScreenPointToRay(Vector2, MonoOrStereoscopicEye)
UnityEngine.Camera:ScreenPointToRay(Vector3, MonoOrStereoscopicEye)
UnityEngine.Camera:ScreenPointToRay(Vector3)
UnityARInterface.ARFocusSquare:Update()

[./Runtime/Camera/Camera.cpp line 3415] 
(Filename: ./Runtime/Camera/Camera.cpp Line: 3415)

2019-06-24 15:32:58.830985+0200 MapBoxTest[5165:1598656] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C3.1:2][0x1137ba330] get output frames failed, state 8196
2019-06-24 15:32:58.831248+0200 MapBoxTest[5165:1598656] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C3.1:2][0x1137ba330] get output frames failed, state 8196
2019-06-24 15:32:58.831610+0200 MapBoxTest[5165:1598656] TIC Read Status [3:0x0]: 1:57
2019-06-24 15:32:58.831628+0200 MapBoxTest[5165:1598656] TIC Read Status [3:0x0]: 1:57
2019-06-24 15:32:59.230462+0200 MapBoxTest[5165:1598530] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C4.1:2][0x1184c6bd0] get output frames failed, state 8196
2019-06-24 15:32:59.230610+0200 MapBoxTest[5165:1598530] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C4.1:2][0x1184c6bd0] get output frames failed, state 8196
2019-06-24 15:32:59.230808+0200 MapBoxTest[5165:1598530] TIC Read Status [4:0x0]: 1:57
2019-06-24 15:32:59.230823+0200 MapBoxTest[5165:1598530] TIC Read Status [4:0x0]: 1:57

我已经看到了nullpointerexeption,但这似乎不是问题。我调试了特定函数中的所有值,似乎camera.nearClipingPlane尚未准备就绪,并在第一帧中引发该错误。在随后的每个帧中都没有错误。

所以我不知道是什么原因导致崩溃的。

0 个答案:

没有答案