Important: Please read the Qt Code of Conduct -

App freeze when gallery is opening on iPhone

  • I have an application that is sending images from device to server. Images can be taken by application or chosen from the gallery. There aren't many issues with pictures from the camera but I have observed that on mobile devices application takes so much time to open local gallery to pick an image that someone might think that it hangs.

    On one of my devices opening a gallery (QML FileDialog to be exact) took 1-2 seconds (that is not a big deal), but there are others that need around 20-30 seconds or even more to be responsive. I attached such device to debugger and pause execution to look what is really happening under the hood. In one thread, code was waiting for some base class initialization. It hangs there for a while, but I don't know is there anything I can do about it as it is objective C code inside qt plugin.

    I have tested it both for locally deployed application and TestFlight and it behaves the same. I was able to take a photo of debugging session - it's not much but I will gladly provide more information if needed. For local deploys I tried Qt 5.13.2, 5.14.2 and 5.15.0.


Log in to reply