Planned maintenance: From Sunday 8th December 10:00 CET there will be changes to try and solve the caching issues that have been experienced. If anyone has a problem connecting after this period then please PM @AndyS or any of the moderators.

macOS Image Gallery deploy



  • Hi everyone!

    I trying to create an application with image gallery with special functions. I'm using QML for UI. When I build this application from QtCreator all works fine (for debug or release). But if I trying to open this application without QtCreator I'm receiving this log:

    ShavDBManager [ void ShavDBManager::openDB(QString, QString, QJSValue) ] Database was opened for use
    ShavDBManager Using database in path: "/Users/andrewsh/Library/Containers/com.shav.ImageDatabase/Data/Library/Application Support/Images Database/Images_Database_shav_components.db"
    qrc:/qml/Gallery/ShavGalleryItemView.qml:62:17: QML Image: Cannot open: file:///Volumes/HPDD/Dropbox/Photos/Anime/Big Size/Cube/IMG_0371.JPG
    qrc:/qml/Gallery/ShavGalleryItemView.qml:62:17: QML Image: Cannot open: file:///Volumes/HPDD/Dropbox/Photos/Anime/Big Size/Cube/IMG_0367.JPG
    qrc:/qml/Gallery/ShavGalleryItemView.qml:62:17: QML Image: Cannot open: file:///Volumes/HPDD/Dropbox/Photos/Anime/Big Size/Cube/IMG_0345.JPG
    qrc:/qml/Gallery/ShavGalleryItemView.qml:62:17: QML Image: Cannot open: file:///Volumes/HPDD/Dropbox/Photos/Anime/Big Size/Cube/IMG_0328.JPG
    qrc:/qml/Gallery/ShavGalleryItemView.qml:62:17: QML Image: Cannot open: file:///Volumes/HPDD/Dropbox/Photos/Anime/Big Size/Cube/IMG_0201.JPG
    qrc:/qml/Gallery/ShavGalleryItemView.qml:62:17: QML Image: Cannot open: file:///Volumes/HPDD/Dropbox/Photos/Anime/Big Size/Cube/IMG_0189.JPG
    qrc:/qml/Gallery/ShavGalleryItemView.qml:62:17: QML Image: Cannot open: file:///Volumes/HPDD/Dropbox/Photos/Anime/Big Size/Cube/IMG_0186.PNG
    qrc:/qml/Gallery/ShavGalleryItemView.qml:62:17: QML Image: Cannot open: file:///Volumes/HPDD/Dropbox/Photos/Anime/Big Size/Cube/IMG_0168.JPG
    qrc:/qml/Gallery/ShavGalleryItemView.qml:62:17: QML Image: Cannot open: file:///Volumes/HPDD/Dropbox/Photos/Anime/Big Size/Cube/IMG_0158.JPG
    qrc:/qml/Gallery/ShavGalleryItemView.qml:62:17: QML Image: Cannot open: file:///Volumes/HPDD/Dropbox/Photos/Anime/Big Size/Cube/IMG_0152.PNG
    qrc:/qml/Gallery/ShavGalleryItemView.qml:62:17: QML Image: Cannot open: file:///Volumes/HPDD/Dropbox/Photos/Anime/Big Size/Cube/anime_girl_mermaid_tail_smile_14886_2048x2048.jpg
    qrc:/qml/Gallery/ShavGalleryItemView.qml:62:17: QML Image: Cannot open: file:///Volumes/HPDD/Dropbox/Photos/Anime/Big Size/Cube/11.png
    qrc:/qml/Gallery/ShavGalleryItemView.qml:62:17: QML Image: Cannot open: file:///Volumes/HPDD/Dropbox/Photos/Anime/avatar/IMG_3001.JPG
    qrc:/qml/Gallery/ShavGalleryItemView.qml:62:17: QML Image: Cannot open: file:///Volumes/HPDD/Dropbox/Photos/Anime/avatar/IMG_2504.JPG
    qrc:/qml/Gallery/ShavGalleryItemView.qml:62:17: QML Image: Cannot open: file:///Volumes/HPDD/Dropbox/Photos/Anime/avatar/IMG_2503.JPG
    qrc:/qml/Gallery/ShavGalleryItemView.qml:62:17: QML Image: Cannot open: file:///Volumes/HPDD/Dropbox/Photos/Anime/IMG_2880.JPG
    QThreadPipe: Unable to create pipe: Too many open files
    QEventDispatcherUNIXPrivate(): Can not continue without a thread pipe
    

    My question is what I need to do for fix this issue? In this case my application is showing list of items with image info but not the image. QML component Image can't load images with full path. What I can do to fix this?



  • Hi everyone! I've solved this problem. In my case the problem was in asynchronous load images into another thread. When I changed asynchronous method to the synchronous all work fine.