CameraDialog unable to capture image

301
1
07-01-2022 10:21 AM
DrewMorris
New Contributor II

We are using CameraDialog to take pictures on our AppStudio module, but we see an intermittent issue where we take a picture, the live preview becomes sluggish, and I receive these console errors: 

[PlugInImpl_driveClockAndRenderFrame.mm] Simple queue is full! Wasting frame...

QCameraImageCapture error: "Image capture failed: timed out waiting for a preview frame."

This only happens when attempting to take a picture rapidly after opening the CameraDialog. The nature of our application requires fast picture-taking capability; we have tried to implement measures to delay the opening of the native camera, but nothing seems to have worked so far. If the user accepts the saved picture when this glitch occurs, a filepath is created, but no image data is written; no file exists. 

We understand this module is in beta, but the AppStudio team has suggested before to use CameraDialog instead of Camera due to performance upgrades. 

0 Kudos
1 Reply
TrevorFrame
Esri Contributor

Hi @DrewMorris,

I am having a hard time reproducing this issue when using the "Camera Dialog" sample app when using Mac, Android, or iPhone. Can you try this sample out to see if it is reproducible with your devices? 

Best,

Trevor

0 Kudos