我在Unity 5.3.4中安装了Kudan 1.1.3。我从Kudan的“入门”指南中准确地跟踪了100%的场景设置。我点击“构建并运行”,一切看起来都不错,但一旦在Nexus 9上启动,应用程序立即死亡。我与亚行一起制作了一份错误报告,这里的崩溃范围缩小到我认为的相关内容:
05-24 13:38:28.619 5751 5777 E Unity : [KudanAR] Graphics vendor: NVIDIA Corporation
05-24 13:38:28.619 5751 5777 E Unity :
05-24 13:38:28.619 5751 5777 E Unity : (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
05-24 13:38:28.619 5751 5777 E Unity :
05-24 13:38:28.620 5751 5777 E Unity : [KudanAR] Graphics version: OpenGL ES 3.1 NVIDIA 343.00
05-24 13:38:28.620 5751 5777 E Unity :
05-24 13:38:28.620 5751 5777 E Unity : (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
05-24 13:38:28.620 5751 5777 E Unity :
05-24 13:38:28.667 617 794 D ConnectivityService: notifyType CAP_CHANGED for NetworkAgentInfo [WIFI () - 100]
05-24 13:38:28.719 5751 5777 D Kudan : KudanAR initialise called
05-24 13:38:28.721 5751 5777 D Kudan : CameraPreviewAndRender initialise called
05-24 13:38:28.722 5751 5777 D Kudan : OpenGL ES version is set to: 3
05-24 13:38:28.722 5751 5777 D Kudan : OpenGL ES Can use glBindArray: true
05-24 13:38:28.722 5751 5777 D Kudan : CameraPreviewAndRender loadShaders called
05-24 13:38:28.722 5751 5777 D Kudan : CameraPreviewAndRender CreateTexture called
05-24 13:38:28.723 5751 5777 D Kudan : CameraPreviewAndRender BindSinkTexture called
05-24 13:38:28.723 5751 5777 D Kudan : CameraPreviewAndRender CreateShaderProgram called
05-24 13:38:28.752 5751 5777 D Kudan : CameraPreviewAndRender SetupShaderProgram called
05-24 13:38:28.752 5751 5777 D Kudan : CameraPreviewAndRender CreateQuadGeometry called
05-24 13:38:28.752 5751 5777 D Kudan : StopTrackerThread called - bWaitForFinish: true
05-24 13:38:28.752 5751 5777 D Kudan : StartTrackerThread: creating thread TrackerThread1464111508
05-24 13:38:28.754 5751 5777 D Kudan : StartTrackerThread: Finished
05-24 13:38:28.767 5751 5777 I kudan-ndk: checking
05-24 13:38:28.782 5751 5751 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 5751 (eu.kudan.ar)
05-24 13:38:28.831 617 981 I WindowState: WIN DEATH: Window{a426155 u0 SurfaceView}
05-24 13:38:28.832 617 654 I chatty : uid=1000(system) InputDispatcher expire 2 lines
05-24 13:38:28.834 617 979 I WindowState: WIN DEATH: Window{4004c13 u0 eu.kudan.ar/com.unity3d.player.UnityPlayerActivity}
05-24 13:38:28.834 617 979 I chatty : uid=1000(system) Binder_7 expire 1 line
05-24 13:38:28.847 617 984 I ActivityManager: Process eu.kudan.ar (pid 5751) has died
在“kudan-ndk:checking”行之前,一切看起来都不错。我不是使用Android的专业人士,但我确实考虑过这个页面底部的“问题”:https://wiki.kudan.eu/Unity
我已经使用Android SDK管理器安装了Android API 22,因为该级别被定义为目标级别。我还强制在Unity的播放器设置中将屏幕方向设置为“横向左侧”,我甚至安装了Android API 23,因为我的Nexus 9具有Android版本6.0.1。也许最后一部分导致问题......或不?任何人都可以更好地理解这个问题吗?
答案 0 :(得分:2)
我们在Kudan Wiki上添加了新的教程,这些教程应该更容易理解。对你有帮助的人称为:
My First Augmented Reality App (1.1.3 Stable)
Building the App - Android
在回答您的实际问题时,启动时崩溃通常是由于在Kudan Camera上设置的API Key不正确引起的。确保这与其相应的Bundle ID匹配,该ID在Unity中的播放器设置中设置。
答案 1 :(得分:0)
F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 5751 (eu.kudan.ar)
我也遇到了这个错误,这是因为有一个kudan标记,我用另一个替换了它,然后它又开始工作了。