Try MAXST AR Fusion Tracker Now ✨
List
Unity3d crashed cause of MaxstAR.dll - 0xC000001D: Illegal Instruction,after first USB camera frames
Posted Date: 2020-07-03 8:45     Edited Date: 2020-07-10 4:28     Writer: next.space.team

Please provide your development details as below;

1. SDK Version: ? arsdk_version.txt file in streaming assets have zero size (unity package installed about month ago)
2. Development Environment: Unity-Android, Unity-iOS. Crashed in Unity-Windows-Editor.
3. Tracker/Scanner:
4. License Type: Pro-One Time:
5. Target Device(Optional):

Good day, support.

 

unity3d crash persists 100% just after first frames seen in unity taken by camera.

Windows7 x64 SP1, 32GB ram, geforce 1080, AMD phenom x6 1090T @3.2.

Unity3D 2019.4.1f1

camera A4 tech PK-910H

 

Unable to debug application in editor. have stable unity editor crash, when camera plugged in.

Any solution?

 

MaxstAR.dll MaxstAR.dll Assets\Plugins\x86_64\MaxstAR.dll N/A N/A Cannot find or open the PDB file. 151 15.05.2020 4:50 000007FEC87C0000-000007FEC8E43000 [13692] Unity.exe  

 

> MaxstAR.dll!000007fec8858cab()
  MaxstAR.dll!000007fec885bd31()
  MaxstAR.dll!000007fec88f9844()
  MaxstAR.dll!000007fec8910a37
  MaxstAR.dll!000007fec89109a8
  MaxstAR.dll!000007fec8884492
  MaxstAR.dll!000007fec8878509
  MaxstAR.dll!000007fec881a7d7
  MaxstAR.dll!000007fec87fea86
  MaxstAR.dll!000007fec87fdd69
  ucrtbase.dll!000007fee51982dd
  kernel32.dll!BaseThreadInitThunk
  ntdll.dll!RtlUserThreadStart

 

000007FEC8858C53  mov         r14,qword ptr [rsp+80h]  
000007FEC8858C5B  lea         esi,[rbp+10h]  
000007FEC8858C5E  mov         r10,qword ptr [rsp+38h]  
000007FEC8858C63  mov         r15,qword ptr [rsp+90h]  
000007FEC8858C6B  mov         rax,qword ptr [rsp+78h]  
000007FEC8858C70  mov         rcx,r15  
000007FEC8858C73  mov         rdx,qword ptr [r14+28h]  
000007FEC8858C77  mov         r8,qword ptr [r14+30h]  
000007FEC8858C7B  add         rdx,r10  
000007FEC8858C7E  mov         r9,qword ptr [r14+38h]  
000007FEC8858C82  add         r8,r10  
000007FEC8858C85  mov         r11,qword ptr [rsp+70h]  
000007FEC8858C8A  add         r9,r10  
000007FEC8858C8D  add         r10,qword ptr [r14+40h]  
000007FEC8858C91  mov         rbx,qword ptr [rsp+68h]  
000007FEC8858C96  mov         rdi,qword ptr [rsp+60h]  
000007FEC8858C9B  mov         rbp,qword ptr [rsp+0A8h]  
000007FEC8858CA3  movdqu      xmm1,xmmword ptr [rdx]  
000007FEC8858CA7  lea         rcx,[rcx+40h]  
000007FEC8858CAB  pmulld      xmm1,xmmword ptr [rax]  // crash hire. 0xC000001D: Illegal Instruction.
000007FEC8858CB0  movdqu      xmm0,xmmword ptr [r8]  
000007FEC8858CB5  lea         rdx,[rdx+40h]  
000007FEC8858CB9  pmulld      xmm0,xmmword ptr [r11]  
000007FEC8858CBF  paddd       xmm1,xmm3  
000007FEC8858CC3  lea         r8,[r8+40h]  
000007FEC8858CC7  paddd       xmm1,xmm0  
000007FEC8858CCB  movdqu      xmm0,xmmword ptr [r9]  
000007FEC8858CD0  lea         r9,[r9+40h]  
000007FEC8858CD4  pmulld      xmm0,xmmword ptr [rbx]  
000007FEC8858CD9  paddd       xmm1,xmm0  

Posted Date: 2020-07-03 12:21     Edited Date: 2020-07-03 12:21     Writer: next.space.team

i suggest, that native library using sse4.1 withut check cpu abilityes?

phenom x6 1090T support only sse 4.0a?

so any solution ?

(this system upgrade not suggested. have other systems which also better, but mostly work on this system)

Posted Date: 2020-07-06 6:28     Edited Date: 2020-07-06 6:28     Writer: sjkim

Thanks for your interest to our MAXST AR SDK.

 

Would you check minimum requirements and supports available for MAXST AR SDK?

Unfortunatly, We don't support OS Window7.

 

Please check the minimim requirement.

 - Unity : Unity 5.6.2, 2017 upper

 - Android : Android OS 4.3 upper

 - iOS : iOS 9.0 upper

 -Windows : Windows 10 upper and Visual Studio 2017 upper

- macOS macOS 10.10 upper

 

If you have other questions, feel free to questions us.

 

 

Best regards

Francisco

MAXST Support Team

Posted Date: 2020-07-06 12:03     Edited Date: 2020-07-06 16:52     Writer: next.space.team

good day.

As i can suggest - problem not in OS version. Of cource i can work on different machine, but only if no way to solve this problem.

i can't see CPU requerements in SDK. Your native code using SSE and not checking is CPU supports this instruction or not. Am i correct?

So if your SDK requeres CPU support SSE 4.2 - please specify it. If possible please give library, that compiled withoud SSE 4.2. I understand that specified CPU too old but in most cases it enought for work and I suggest - you won't do this, but i hope that you will. If sse code not manually generated - i suggest not hard to change settings in compiler and made version for old cpus or even made SSE version detection and choose branch of basic slow code or fast SSE version.

And of cource trying to use unsupported cpu operations and crash host application - not best behavior.

sorry for weak English.

 

Posted Date: 2020-07-07 6:01     Edited Date: 2020-07-07 6:01     Writer: sjkim

Did you connect USB Camera?

If a camera is connected, select the web camera from the Webcam Type.

 

Please reference to bottom picture.

 

Currently, MAXST is using the native library using sse2 from emmintrin.h.

But, We are review what you requested.

 

If you have other questions, feel free to questions us.

 

 

Best regards

Francisco

MAXST Support Team

Posted Date: 2020-07-07 7:43     Edited Date: 2020-07-07 16:09     Writer: next.space.team

Good day. i gived line that causes crash. Of cource camera was connected, selected, resolution was selected (actually crashes in both cases - fullhd and 720p).

i was able to see at least one  frame from camera in UnityEditor, but just after that - crash occurs 100% if ANY camera connected, not only USB version, but even with droid cam.

instruction in your native library (as i can suggest) MaxstAR.dll:

pmulld      xmm1,xmmword ptr [rax]  // crash hire. 0xC000001D: Illegal Instruction.

based wikipedia -  pmulld is SSE 4.1 - it not SSE 2. 

https://en.wikipedia.org/wiki/SSE4

And as i can see AMD Phenom x6 1090T support only SSE 4.0a

So i suggest - it crash reason.

Am i wrong?

Posted Date: 2020-07-10 4:28     Edited Date: 2020-07-10 4:28     Writer: sjkim

Sorry for the trouble.

And Thanks for your suggest and giving me valuable information.

 

We will hold an internal review on these SSE matters.

 

If you have other questions, feel free to questions us.

 

 

Best regards

Francisco

MAXST Support Team