PTCInc / vuforia-engine

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

Cannot Turn Off Flashlight on UWP Dell Latitude 7230 Rugged Extreme Tablet Device #90

Closed tsoen closed 4 months ago

tsoen commented 4 months ago

Summarize your feature feedback Hello, Yet another question regarding flashlight, but I think the issue might be different than #89 so I created a new ticket. On a Unity-UWP build, I am able to turn ON the flashlight of the device. However, once it is done, I can never turn it OFF. There is no error message at all.

Device : Dell Latitude 7230 Rugged Extreme Tablet. Windows 11. Windows SDK version 10.0.22621.

Here is my code :

public void EnableFlashLight(bool enable)
{
    Logger.Error($"EnableFlashLight {enable}");

    // Try to enable/disable flash. If it did not work, assume the flash state did not change.
    if (_vuforiaBehaviour.CameraDevice.SetFlash(enable))
    {
        _isFlashActivated = enable;

        Logger.Error($"EnableFlashLight _isFlashActivated = {_isFlashActivated}");
    }
}

My logs confirm that we always enter the if condition whether the enable variable was true or false. No error is thrown, but the flashlight never shuts down.

Business impact Flashlight feature cannot be used.

Workaround Did not think of a workaround yet.

ptc-pscheper commented 4 months ago

@tsoen, definitely another issue! 😉 Thank you for the bug report. I will reach out to the R&D team as I do not have a UWP device available at the moment to reproduce the issue. Have you tried to reproduce this on another UWP device?

tsoen commented 4 months ago

Thank you for the answer @ptc-pscheper, glad there may be some hope to solve this one !

I think we have a Surface Pro 6 at the office, though I am not sure it has a flashlight. I'll definitely check once I get back to the office this week.

tsoen commented 4 months ago

Hello @ptc-pscheper, unfortunately the only other UWP device we have is a Surface Pro 6 and I just confirmed it does not have a flashlight, so I am not able to reproduce the issue that appeared on the Dell Latitude 7230 Rugged Extreme Tablet 😕

ptc-pscheper commented 4 months ago

Hi @tsoen, sadly the team will be unable to go through this bug report because of the following reasons:

Overall this means I will need to close this bug report. I am sorry I am not able to be of more help...

tsoen commented 1 week ago

For the record, I can confirm the issue was not related to this specific tablet model. It was fixed in Vuforia Engine v10.22.5 : "Fixed an issue that prevented disabling torch mode on UWP devices." (https://developer.vuforia.com/library/release-notes/vuforia-engine-release-notes#vuforia-engine-v10-22-5)