You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear StickerCamera Developers,
I am implementing a hang-bug detection tool and I am analyzing StickerCamera (master version downloaded today) with it. I found that the main thread of StickerCamera, frequently calls:
In my experiments, the execution of those functions on the main thread may be the main cause of the eye-detectable delays (i.e., hang-bug) experienced with StickerCamera while taking pictures.
Moving work off the main thread leads to higher responsiveness of the app.The android development guide in the explanation of the "android.hardware.Camera.open" method, suggests indeed "Caution: On some devices, this method may take a long time to complete. It is best to call this method from a worker thread (possibly using AsyncTask) to avoid blocking the main application UI thread." Also, startPreview could probably be moved off the main thread to improve responsiveness of the app.
Do you think that it is possible to move off the main thread those functions to improve responsiveness?
Did you know about these two problems with your code?
Thanks for any information,
I hope I can help improve StickerCamera.
The text was updated successfully, but these errors were encountered:
Hi,
sorry for the late reply. I will try to fix those problems soon and send you a pull request accordingly.
In the meaning time, I have found also another possible cause of hang-bugs. In particular, the following API is frequently called by the main thread while using StickerCamera:
Dear StickerCamera Developers,
I am implementing a hang-bug detection tool and I am analyzing StickerCamera (master version downloaded today) with it. I found that the main thread of StickerCamera, frequently calls:
at line 422 which correspond to:
and frequently calls:
at code line 492, which correspond to
In my experiments, the execution of those functions on the main thread may be the main cause of the eye-detectable delays (i.e., hang-bug) experienced with StickerCamera while taking pictures.
Moving work off the main thread leads to higher responsiveness of the app.The android development guide in the explanation of the "android.hardware.Camera.open" method, suggests indeed "Caution: On some devices, this method may take a long time to complete. It is best to call this method from a worker thread (possibly using AsyncTask) to avoid blocking the main application UI thread." Also, startPreview could probably be moved off the main thread to improve responsiveness of the app.
Do you think that it is possible to move off the main thread those functions to improve responsiveness?
Did you know about these two problems with your code?
Thanks for any information,
I hope I can help improve StickerCamera.
The text was updated successfully, but these errors were encountered: