Unity Sample Project crashes


#1

I installed and tried StructureUnityAR package in iPhone.

the app crashes when i tap “scan” button

i’ve tried “Fetch” and “Simple”.

however apps from app store like Bridget works fine

—Tested Environment
Unity 2017.1.1f1 (Also tested 5.3.4f1 and same thing happens)
Xcode 9.2
Iphone6 ios11.2.2 (Also tested 6S)
Structure SDK 0.7.1

logs from xcode

2018 - 02 - 08 11:38 : 43.783723 + 0900 ProductName[360:47192][Structure] streaming started

2018 - 02 - 08 11:38 : 43.787243 + 0900 ProductName[360:47192] Unspecified amount of protocols offered

2018 - 02 - 08 11:38 : 43.787521 + 0900 ProductName[360:47192] Accessory model number(ST01) not equal to Expected SC number(ST02)

StructureAR.Manager:HandleButtonClickedEvent(Object, ButtonEventArgs)

UnityEngine.Events.InvokableCallList : Invoke(Object[])

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

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

	UnityEngine.EventSystems.StandaloneInputModule : ProcessTouchEvents()

	UnityEngine.EventSystems.StandaloneInputModule : Process()



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



	2018 - 02 - 08 11:38 : 53.436550 + 0900 ProductName[360:47192][Mapper] volumeBounds: 160.000000 80.000000 160.000000 (resolution = 0.012500)

	2018 - 02 - 08 11:38 : 53.455135 + 0900 ProductName[360:47192][StructureSDK] Throwing exception STInvalidInitialPoseException : The initial pose is incorrect and has a NAN determinant.

	2018 - 02 - 08 11:38 : 53.583676 + 0900 ProductName[360:47192] Uncaught exception : STInvalidInitialPoseException: The initial pose is incorrect and has a NAN determinant.

	(

		0   CoreFoundation                      0x000000018178637c <redacted> +148

		1   libobjc.A.dylib                     0x00000001809cc528 objc_exception_throw + 56

		2   ProductName                         0x000000010136f588 il2cpp_z_zcfree + 29976

		3   ProductName                         0x00000001013d2f74 inu_usb_monitor_jump + 26400

		4   ProductName                         0x0000000100ad5428 - [StructureAR enterScanningState] + 156

		5   ProductName                         0x0000000100ad6ab4 _startScanning + 56

		6   ProductName                         0x00000001005efa4c Manager_HandleButtonClickedEvent_m1209681717 + 464

		7   ProductName                         0x000000010086d31c InvokableCallList_Invoke_m1715071363 + 232

		8   ProductName                         0x0000000100a4162c ExecuteEvents_Execute_TisRuntimeObject_m1144091088_gshared + 880

		9   ProductName                         0x000000010081f314 StandaloneInputModule_ProcessTouchPress_m1857146442 + 992

		10  ProductName                         0x000000010081eea4 StandaloneInputModule_ProcessTouchEvents_m1211765774 + 228

		11  ProductName                         0x000000010081e808 StandaloneInputModule_Process_m280127576 + 120

		12  ProductName                         0x0000000100aa7108 _Z31RuntimeInvoker_Void_t3943261086PFvvEPK10MethodInfoPvPS4_ + 20

		13  ProductName                         0x0000000101357c40 _ZN6il2cpp2vm7Runtime6InvokeEPK10MethodInfoPvPS5_PP15Il2CppException + 68

		14  ProductName                         0x0000000100dfdf6c _Z23scripting_method_invoke18ScriptingMethodPtr18ScriptingObjectPtrR18ScriptingArgumentsP21ScriptingExceptionPtrb + 100

		15  ProductName                         0x0000000100dfadf4 _ZN19ScriptingInvocation6InvokeEP21ScriptingExceptionPtrb + 60

		16  ProductName                         0x0000000100d15060 _ZN13MonoBehaviour16CallUpdateMethodEi + 300

		17  ProductName                         0x0000000100bfba7c _ZN20BaseBehaviourManager12CommonUpdateI16BehaviourManagerEEvv + 80

		18  ProductName                         0x0000000100cfa240 _Z10PlayerLoopv + 844

		19  ProductName                         0x0000000100f33bb8 _ZL19UnityPlayerLoopImplb + 36

		20  ProductName                         0x00000001005d3184 UnityRepaint + 140

		21  ProductName                         0x0000000100ad3c3c _Z21TriggerUnityRenderingv + 104

		22  ProductName                         0x0000000100ad3b9c - [StructureAR sensorDidOutputSynchronizedDepthFrame : colorFrame:] + 112

		23  ProductName                         0x0000000101379404 il2cpp_z_zcfree + 70548

		24  ProductName                         0x000000010145f714 _Z19streamConfigIs60FPS14STStreamConfig + 92024

		25  ProductName                         0x000000010148b7d0 _Z19streamConfigIs60FPS14STStreamConfig + 272436

		26  libdispatch.dylib                   0x0000000181102a54 <redacted> +24

		27  libdispatch.dylib                   0x0000000181102a14 <redacted> +16

		28  libdispatch.dylib                   0x000000018110f698 <redacted> +1016

		29  CoreFoundation                      0x000000018172e544 <redacted> +12

		30  CoreFoundation                      0x000000018172c120 <redacted> +2012

		31  CoreFoundation                      0x000000018164be58 CFRunLoopRunSpecific + 436

		32  GraphicsServices                    0x00000001834f8f84 GSEventRunModal + 100

		33  UIKit                               0x000000018ada067c UIApplicationMain + 236

		34  ProductName                         0x00000001005cd020 main + 160

		35  libdyld.dylib                       0x000000018116856c <redacted> +4

		)

	2018 - 02 - 08 11:38 : 53.584420 + 0900 ProductName[360:47192] * ** Terminating app due to uncaught exception 'STInvalidInitialPoseException', reason: 'The initial pose is incorrect and has a NAN determinant.'

	*** First throw call stack :

(0x181786364 0x1809cc528 0x10136f588 0x1013d2f74 0x100ad5428 0x100ad6ab4 0x1005efa4c 0x10086d31c 0x100a4162c 0x10081f314 0x10081eea4 0x10081e808 0x100aa7108 0x101357c40 0x100dfdf6c 0x100dfadf4 0x100d15060 0x100bfba7c 0x100cfa240 0x100f33bb8 0x1005d3184 0x100ad3c3c 0x100ad3b9c 0x101379404 0x10145f714 0x10148b7d0 0x181102a54 0x181102a14 0x18110f698 0x18172e544 0x18172c120 0x18164be58 0x1834f8f84 0x18ada067c 0x1005cd020 0x18116856c)

libc++abi.dylib : terminating with uncaught exception of type NSException

(lldb)

#2

The Unity packages found within the Structure SDK were made with iPads in mind. Although it may be possible to use the Unity Packages with an iPhone, some issues will occur.

If you’d like to use your iPhone with the Structure Sensor for AR, VR, or MR applications, I would suggest taking a look at our Bridge Engine: https://bridge.occipital.com/developers.

If you are interested in trying out the Bridge Engine, please direct message me for more details.


#3

Hi, I’ve looked at all the posts regarding this issue, and have tried multiple recommended versions of Unity, Structure SDK, IOS, two versions of XCode and Apple OS but I’m still getting this app crash when pressing the scan button?

Through this process I’ve upgraded and am now stuck with

iPad Pro (12.9-inch) Year: 2015
OSX 12.01

Apple OS 10.13.6
Xcode 10.0

But can use something else instead of
Unity 2017.2.0f3

Have tried all Structure Unity SDKs…

Please could you help me get this working I’m spending way too much time on getting the demo projects running on an iPad.

I need to scan a 3D object with the scanner and use Unity to modify and edit the resulting mesh.

Kind regards


#4

With each announcement from Apple, we begin exploring how to make the Structure Sensor compatible with their new version of iOS. However, we are unable to complete the testing process or give concrete answers on product compatibility until we have the release version of the iOS.

The full process usually takes a few weeks to months after the product is physically released for purchase.

Our community forum is the best place to find any announcements regarding new product availability. (Please note: The forum is read-only until you receive an invitation to post and comment after you purchase a Structure Sensor).


#5

Thanks Anthony. We have purchased several Structure scanners.

Unfortunately we don’t have weeks or months to wait to get the scanners working, so wondering if you could please let me know the latest version of IOS, XCode, Unity that has successfully been tested? I might be able to use other iPads which IOS has not been upgraded, or has a versions that is supported/tested.

In the meantime I’ll try BridgeEngine and see if that will run for us.


#6

I would recommend, then, that you take a look at the native Objective-C Structure SDK, as this works correctly on iOS 12.


#7

Thanks Anthony
Unfortunately this is not an option as we need to work within Unity.
If you could please let me know the latest version of IOS, XCode, and Unity that has successfully been tested with Structure scanner I will try and replicate.

Many thanks