PTCInc / vuforia-engine

Bug and feedback issue tracker for the Vuforia Engine SDK
https://developer.vuforia.com
19 stars 0 forks source link

Model Target Database from Model Target Generator (MTG) results into "Failed to create ModelTargetObserver: DATABASE_LOAD_ERROR" error within SDK. #69

Closed C-Perfume closed 5 months ago

C-Perfume commented 8 months ago

Summarize the bug: Custom MTG DB cannot load on MacOS

Observed problem My Vuforia license is basic. I created a new Database using MTG(10.18.5) with 3 FBXsto test Model Target feature on Galaxy A51. It seemed OK to create and import ~.unitypackage files from the FBXs with MTG but 20 model target usages for basic users did not decrease. I used the CoreSample project with Vuforia Engine and I applied my custom DB in the inspector window with the Sample Scene for Model Target. Once I clicked play, Console shows the load error message.

Expected result Creating dataset and Vuforia Started.

Other observations Things I have tried:

Reproducible steps Steps to reproduce the behavior:

  1. Install MGT(10.18.5) on MacOS
  2. Log in with basic license account
  3. Click Create button to get Custom DB using FBX files.
  4. Import the DB in CoreSample unity project.
  5. Open 3-ModelTargetsStandard Scene.
  6. Go to Inspector window and Change Database from Vuforia_RZR_Toy to CustomDB.
  7. Edit Physical Length, Width and Height to real size of the model
  8. Click Play
  9. See error

Affected Vuforia Engine version: v(10.18.4)

Affected platform:

Affected device:

Device or platform logs

Exception in callback: Failed to create ModelTargetObserver: DATABASE_LOAD_ERROR.
UnityEngine.Debug:LogErrorFormat (string,object[])
Vuforia.Internal.Utility.UnityLogger:LogError (string,object[])
Vuforia.Internal.Utility.Log:Error (string,object[])
Vuforia.Utility.ExtensionMethods.DelegateHelper:InvokeDelegate(System.Delegate,object[])
Vuforia.Utility.ExtensionMethods.DelegateHelper:InvokeWithExceptionHandling (System.Action)
Vuforia.Internal.Core.Engine:OnStart ()
Vuforia.Internal.Core.Engine:Start (System.Action)
Vuforia.Internal.Core.Engine:Start ()
Vuforia.VuforiaBehaviour:VuforiaInitialized (Vuforia.VuforiaInitError)
System.Delegate:DynamicInvoke (object[])
Vuforia.Utility.ExtensionMethods.DelegateHelper:InvokeDelegate (System.Delegate,object[])
Vuforia.Utility.ExtensionMethods.DelegateHelper:InvokeWithExceptionHandling<Vuforia.VuforiaInitError> (System.Action`1<Vuforia.VuforiaInitError>,Vuforia.VuforiaInitError)
Vuforia.Internal.Core.Engine:InitOnCameraReady ()
Vuforia.WebCam:HandleFirstWebCamFrame ()
Vuforia.WebCam:<Init>b__34_0 (bool)
Vuforia.Internal.Utility.VuforiaCoroutineUtility/<RunCoroutineWithTimeout>d__1:MoveNext ()
UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr) 
ptc-ddowning commented 8 months ago

Hello,

Thank you for the detailed report. As part of the initial investigation, it would be helpful to know the Engine account email (or client ID) that you are using when logging into the MTG. This will help us to look at the backend data to see if any internal errors have been logged.

If you do not feel comfortable sharing this information publicly, feel free to email the information to vuforia-feedback@ptc.com.

Thanks, Vuforia Engine Support

C-Perfume commented 8 months ago

Waiting for the investigation to be completed.

ptc-ddowning commented 8 months ago

Hello @C-Perfume,

Thank you for the continued patience. I have forwarded the details of your issue to another team for additional investigation. I will update this thread once any new information is available.

-Vuforia Engine Support

ptc-pmessenger commented 8 months ago

Hi @C-Perfume, we so far have not been able to reproduce this issue. Would you mind creating a new scene and adding in an ARCamera as well as the MT, and let us know if you still see the issue? Also a complete log, starting where Unity initializes would be useful as well. Also, did you restart the Unity Editor in between. There's a known issue with some versions of 2022.3.x which would log errors in the way you describe, but should disappear after restarting the editor one time.

C-Perfume commented 7 months ago

I sent you a reply e-mail on 23/11/09 Did you receive the e-mail?

ptc-ddowning commented 7 months ago

Hello,

The last email received was on 23/11/1. Unless you are sharing sensitive information, I strongly suggest replying to this thread for visibility.

Thanks, Vuforia Engine Support

C-Perfume commented 7 months ago

Hi, I am resending this email to you all as one of you has confirmed that the last email you received was on 23/11/01. I really hope that this issue will be resolved soon so that I can use the feature in our new application. Thank you.

PLEASE NOTE: I added a new screenshot of the Unity console today, as the (deleted) one below was not well visible.

스크린샷 2023-11-15 오전 11 29 20
      1. 오후 1:56 @C-Perfume 작성:  Hi, I followed your instructions but I'm still getting the same error. I have closed and re-opened the Unity editor. I created a new scene and added an ARCamera and the MT I created earlier. I have attached a screenshot of the Unity console for your information.
ptc-ddowning commented 7 months ago

Hello,

Thank you for the additional information. We are still unable to reproduce your error.

Can you ZIP the Unity project above and share it with us? We'd like to try and reproduce in our environment. Feel free to again send it to vuforia-feedback@ptc.com.

Your patience is appreciated.

-Vuforia Engine Support

C-Perfume commented 7 months ago

  Hi,

Here's a link to download the zip file you requested. The file is too large to attach to this email. I used my basic license key on the Vuforia configuration. If anything comes up, please let me know as soon as possible. I'm really hoping to fix the issue and can't wait to use the feature soon. Regards, Satbyul Lee.
ptc-ddowning commented 7 months ago

Hello,

We were able to download the ZIP file - thank you. Updates will be provided here as they become available.

-Vuforia Engine Support

C-Perfume commented 7 months ago

Hi,

I've noticed that the Vuforia engine and MTG have been updated to 10.19.3. So I created a new Unity project (2021.3.0f1 Silicon). I deleted the old version and installed the new MTG. I also imported the updated VuforiaEngine into the project. The new MTG created a model using the previous FBX I used to test. I imported it, selected it to model target behaviour in the new project. I did the same with the old project, which I also zipped and sent to you. After clicking the play button, the error still exists in the console. I am frustrated with it.

Is there any progress on this issue?

Kind regards, Satbyul Lee

C-Perfume commented 7 months ago

I tried testing with the model created on Windows MTG(10.19.3). It shows the same DATABASE_LOAD_ERROR.

C-Perfume commented 7 months ago

Yesterday I spoke to one of Vuforia's Korean engineers to solve this problem. He generated my whale.fbx into a model in MTG using his account and emailed it to me. The model works perfectly with my MacOS Unity project. So he and I assume that the problem is with my account and MTG.

Today I used my personal account (akdl1020@gmail.com) to generate a new model in MTG, but there's nothing different. MTG didn't count the new model at the end of the generation process. Speaking of data load, the new model also shows DATABASE_LOAD_ERROR. on the console.

스크린샷 2023-11-29 오전 11 49 07
ptc-pscheper commented 7 months ago

Hi there, apologies that this issue takes longer then expected. Did you shared the .fbx file via vuforia-feedback@ptc.com as well? The ZIP file only included the project itself. Based on that we can try to reproduce the issue by generating a new target. I believe it might be related to your desktop device or internet access, instead of your account. Do you have the ability to use another device, or another internet provider?

Also we have a hunch that the file path might be an issue due to Unicode characters. Can you verify if there are any characters in there (Chinese, Greek, Arabic, etc.)?

C-Perfume commented 7 months ago

Hi,

Yes, the fbx and stl file for testing was emailed to @.*** on 2023/11/02 KST. As I mentioned, I have already tested MTG on WindowsOS using my company account. The MTG process on the Windows laptop was the same as the one on the MacOS. Result shows 20/20 usage, shows the same DATABASE LOAD ERROR.

      1. 오후 7:58, Patrick Scheper @.***> 작성:



Hi there, have you shared the .fbx file as well via @.**@.>? The ZIP file only included the project itself. Based on that we can try to reproduce the issue by generating a new target. I believe it might be related to your desktop device or internet access, instead of your account. Do you have the ability to use another device, or another internet provider?

— Reply to this email directly, view it on GitHubhttps://github.com/PTCInc/vuforia-engine/issues/69#issuecomment-1831671028, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATU23NLGSWX3AC2UOXQATPDYG4IODAVCNFSM6AAAAAA6VLN55GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZRGY3TCMBSHA. You are receiving this because you were mentioned.Message ID: @.***>

ptc-pscheper commented 7 months ago

Alright. Can you verify if there are any characters in the path to the .fbx file (Chinese, Greek, Arabic, etc.)? And have you tried another internet connection?

C-Perfume commented 7 months ago

There aren't any characters other than English, numbers and underscores in the path. I have tried 2 different wifi connections to test the issue and it all shows the same.

      1. 오전 5:47, Patrick Scheper @.***> 작성:



Alright. Can you verify if there are any characters in the path to the .fbx file (Chinese, Greek, Arabic, etc.)? And have you tried another internet connection?

— Reply to this email directly, view it on GitHubhttps://github.com/PTCInc/vuforia-engine/issues/69#issuecomment-1834537700, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATU23NPLWDIJOT7ZOSSP7ELYHDWF5AVCNFSM6AAAAAA6VLN55GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZUGUZTONZQGA. You are receiving this because you were mentioned.Message ID: @.***>

ptc-pscheper commented 7 months ago

Hi there, after investigation of the past days our team found out that a bug was introduced in v10.18 of the MTG where certain special characters in user passwords are causing dataset singing issues. This issue caused our internal services to throw an error which the Model Target Generator does not handle properly. Therefor you can still generate a target, but it does not get properly signed. An unsigned target will result into the errors you've encountered within the SDK.

There are two workarounds:

Sidenote: This same issue causes the MTG to constantly force users to login going through the UI.

I apologize for this inconvenience but thank you immensely for the help over the past weeks, mainly because of your feedback we were able to find out this issue. These two issues will be solved in our next SDK release. This issue will be updated once the release is published!

el-mimoso commented 5 months ago

We are experiencing a similiar issue

Failed to create ImageTargetObserver

Expected result Vuforia should be able to track images and display the 3D models.

Other observations Works in Android. works in iOS with plane tracker, wont work with image targets. works in unity editor but wont work on ios device.

Observed problem

Reproducible steps Followed tutorial from here : https://www.youtube.com/watch?v=XKnzW9Z1gU0 at the last step change from ground plane to image target.

Affected Vuforia Engine version: v(10.19.3)

Affected platform:

Workstation OS: MacOS (14.2.1) Platform [Unity][Flutter] Platform version :

Affected device: Iphone SE 2022 OS: IOS 17.2.1

Device or platform logs

Vuforia.Utility.ExtensionMethods.DelegateHelper:InvokeDelegate(Delegate, Object[])
Vuforia.Utility.ExtensionMethods.DelegateHelper:InvokeWithExceptionHandling(Action`1, T)
Vuforia.Internal.Permissions.<>c__DisplayClass0_0:<CreateRequester>b__0(Boolean)
System.Reflection.RuntimeMethodInfo:InternalInvoke(Object, Object[], Exception&)
System.Reflection.RuntimeMethodInfo:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
System.Reflection.MethodBase:Invoke(Object, Object[])
System.Delegate:DynamicInvokeImpl(Object[])
System.MulticastDelegate:DynamicInvokeImpl(Object[])
System.Delegate:DynamicInvoke(Object[])
Vuforia.Utility.ExtensionMethods.DelegateHelper:InvokeDelegate(Delegate, Object[])
Vuforia.Utility.ExtensionMethods.DelegateHelper:InvokeWithExceptionHandling(Action`1, T)
Vuforia.Internal.Permissions.IOSPermissionRequester:Finish()
Vuforia.Internal.Permissions.<RequestPermissions>d__15:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

INFO/AR(9213) Creating ImageTargetObserver...
ERROR/AR(9213) Failed to load database 'Vuforia/Test.xml'.
ERROR/AR(9213) Creating ImageTargetObserver...FAILED
Exception in callback: Failed to create ImageTargetObserver: DATABASE_LOAD_ERROR.
UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:LogFormat(LogType, String, Object[])
UnityEngine.Debug:LogErrorFormat(String, Object[])
Vuforia.Internal.Utility.UnityLogger:LogError(String, Object[])
Vuforia.Internal.Utility.Log:Error(String, Object[])
Vuforia.Utility.ExtensionMethods.DelegateHelper:InvokeDelegate(Delegate, Object[])
Vuforia.Utility.ExtensionMethods.DelegateHelper:InvokeWithExceptionHandling(Action)

Proyect Zip Folder The proyect files can be downloaded here.

ptc-pscheper commented 5 months ago

@el-mimoso Has the workaround I posted above not worked for you? https://github.com/PTCInc/vuforia-engine/issues/69#issuecomment-1841021172

ptc-pscheper commented 5 months ago

Hi all, Vuforia Engine v10.20 has been released today which solves the issue noted above. Please use the newest version of the Model Target Generator to generate your targets which will be signed properly. Thank you for your understanding and Happy New Year!