Search Unity

Camera freeze with Vuforia AR under Android with 64 bit

Discussion in 'Vuforia' started by mj321, Jun 17, 2019.

  1. mj321

    mj321

    Joined:
    Aug 23, 2016
    Posts:
    20
    I'm in the process of developing a small AR app. Everything worked fine with Mono as scripting backend. But then i had to learn that the Google Playstore requires 64bit App bundles. In order to enable the "ARM64" option i had to switch the scripting backend to "IL2CPP".

    With this setting, the App still works, but whenever a marker is detected, the camera feed freezes for about 0.2 to 0.5 seconds.

    Does anyone know a solution for this?

    Unity 2018.4.0f1 (i can't use a 2019.x version, because the auto-focus for the camera under Android doesn't work.)

    Vuforia version 8.1.11
     
  2. mj321

    mj321

    Joined:
    Aug 23, 2016
    Posts:
    20
    Additions:

    - The effect is also visible in the Vuforia samples, but not as strong. I believe this is because the sample uses fewer markers. I have around 60 in my project.

    - it happens with both image markers and VuMarkers

    - The effect is much stronger in 64bit mode (ARM64) than in 32bit mode (ARMV7)
     
  3. meedabit

    meedabit

    Official Vuforia Employee Vuforia

    Joined:
    Dec 8, 2016
    Posts:
    241
    Hello,

    What device are you using when this is observed? Settings->About phone/device->Model number. Or is it across multiple devices?

    This will help us to better replicate. Also, if you can share your device database, that would be very helpful. Feel free to DM me a link if you don't want to post here.

    Thanks,
    Vuforia Engine Support
     
  4. mj321

    mj321

    Joined:
    Aug 23, 2016
    Posts:
    20
    I tested this on:
    Xiaomi Mi A2 (Android 9)
    Bluboo S1 (Android 7)

    It happens on both devices, the effect is much stronger on the BluBoo (much weaker CPU).

    Would it still help to get the device database? If yes, where do i find it?
     
  5. mj321

    mj321

    Joined:
    Aug 23, 2016
    Posts:
    20
    Addition #2:

    Today i made a quick test with Unity 2019.1.8f1 and the new Vuforia 8.3.8.

    In a minimal sample, started from an empty scene (not from one of the Vuforia samples), i could not reproduce the problem. Currently i don't have time to longer experiments, but as soon as i get to it, i'll report back.
     
    meedabit likes this.
  6. meedabit

    meedabit

    Official Vuforia Employee Vuforia

    Joined:
    Dec 8, 2016
    Posts:
    241
    Hello @mj321,

    Unfortunately, we don't have either of those devices. Keep us informed if you run into the issue again and we'll take it from there.

    Thanks,
    Vuforia Engine Support
     
  7. skdev3

    skdev3

    Joined:
    Jul 15, 2015
    Posts:
    50
    Have some problem on:
    Oppo realme 3 (RMX1821)(Android 9.0 Pie)
    Oppo F11 Pro (OP4883) (Android 9.0 Pie)
    Mi8 lite (Android 9.0)
     
  8. meedabit

    meedabit

    Official Vuforia Employee Vuforia

    Joined:
    Dec 8, 2016
    Posts:
    241