luspi / photoqt

PhotoQt Image Viewer (mirror repo) - https://photoqt.org
GNU General Public License v2.0
51 stars 12 forks source link

[Bug] The map never loads #30

Closed 7system7 closed 4 months ago

7system7 commented 5 months ago

Expected Behavior

When I open any JPG a file w/ coordinates, the map never ever loads. I have 2 Gbps internet connection, and there is no problem w/ it.

Current Behavior

The map does not shows anything. :disappointed:

Steps to Reproduce

  1. Install PhotoQT from flatpak
  2. Open a JPEG file w/ coordinates
  3. See the grey square instead of the map

Context (Environment)

Example Image

Screenshot from 2024-06-06 08-23-55

Comments

Debug log

$ flatpak run org.photoqt.PhotoQt --debug
QGuiApplication::setDesktopFileName: the specified desktop file name ends with .desktop. For compatibility reasons, the .desktop suffix will be removed. Please specify a desktop file name without .desktop suffix
2024-06-06 08:23:19.041 [D] pqc_startup.cpp::int PQCStartup::check()::42: 
2024-06-06 08:23:19.041 [D] pqc_scriptsother.cpp::bool PQCScriptsOther::takeScreenshots()::49: 
2024-06-06 08:23:19.041 [D] pqc_scriptsother.cpp::bool PQCScriptsOther::takeScreenshots()::55: Error taking screenshot for screen # 0
2024-06-06 08:23:19.042 [D] pqc_imageformats.cpp::void PQCImageFormats::readFromDatabase()::104: 
2024-06-06 08:23:19.063 [D] pqc_settings.cpp::void PQCSettings::readDB()::136: 
2024-06-06 08:23:19.084 [D] pqc_shortcuts.cpp::void PQCShortcuts::readDB()::230: 
2024-06-06 08:23:19.141 [D] pqc_scriptscontextmenu.cpp::QVariantList PQCScriptsContextMenu::getEntries()::61: 
2024-06-06 08:23:19.161 [W] ::::0: Attempting to set another interceptor on  QDeclarativeGeoMap_QML_136 property center - unsupported
2024-06-06 08:23:21.334 [D] pqc_scriptsfiledialog.cpp::QString PQCScriptsFileDialog::getLastLocation()::331: 
2024-06-06 08:23:21.340 [D] pqc_scriptsfiledialog.cpp::bool PQCScriptsFileDialog::setLastLocation(QString)::270: args: path = "/home/system7/Downloads"
2024-06-06 08:23:21.347 [D] pqc_scriptsfiledialog.cpp::QVariantList PQCScriptsFileDialog::getPlaces(bool)::79: 
2024-06-06 08:23:21.348 [D] pqc_scriptsfiledialog.cpp::QVariantList PQCScriptsFileDialog::getDevices()::48: 
2024-06-06 08:23:21.444 [D] pqc_filefoldermodel.cpp::void PQCFileFolderModel::loadDataFileDialog()::963: 
2024-06-06 08:23:21.444 [D] pqc_filefoldermodel.cpp::QStringList PQCFileFolderModel::getAllFolders(QString, bool)::1016: args: folder = "/home/system7/Downloads"
2024-06-06 08:23:21.445 [D] pqc_filefoldermodel.cpp::QStringList PQCFileFolderModel::getAllFiles(QString, bool)::1076: args: folder = "/home/system7/Downloads"
2024-06-06 08:23:21.445 [D] pqc_filefoldermodel.cpp::QStringList PQCFileFolderModel::getAllFiles(QString, bool)::1077: args: ignoreFiltersExceptDefault = true
2024-06-06 08:23:21.469 [D] pqc_providerthumb.cpp::void PQCAsyncImageResponseThumb::loadImage()::67: 
2024-06-06 08:23:22.011 [D] pqc_providertooltipthumb.cpp::void PQCAsyncImageResponseTooltipThumb::loadImage()::58: 
2024-06-06 08:23:22.011 [D] pqc_providerthumb.cpp::void PQCAsyncImageResponseThumb::loadImage()::67: 
2024-06-06 08:23:22.182 [D] pqc_providerthumb.cpp::void PQCAsyncImageResponseThumb::loadImage()::67: 
2024-06-06 08:23:22.261 [D] pqc_providerthumb.cpp::void PQCAsyncImageResponseThumb::loadImage()::67: 
2024-06-06 08:23:22.334 [D] pqc_filefoldermodel.cpp::void PQCFileFolderModel::loadDataMainView()::864: 
2024-06-06 08:23:22.334 [D] pqc_filefoldermodel.cpp::QStringList PQCFileFolderModel::getAllFiles(QString, bool)::1076: args: folder = "/home/system7/Downloads"
2024-06-06 08:23:22.334 [D] pqc_filefoldermodel.cpp::QStringList PQCFileFolderModel::getAllFiles(QString, bool)::1077: args: ignoreFiltersExceptDefault = false
2024-06-06 08:23:22.341 [D] pqc_scriptsimages.cpp::bool PQCScriptsImages::isPDFDocument(QString)::487: args: path = "/home/system7/Downloads/2024-05-19-15-23-59-682.jpg"
2024-06-06 08:23:22.341 [D] pqc_scriptsimages.cpp::bool PQCScriptsImages::isArchive(QString)::504: args: path = "/home/system7/Downloads/2024-05-19-15-23-59-682.jpg"
2024-06-06 08:23:22.388 [D] pqc_scriptsimages.cpp::bool PQCScriptsImages::isPDFDocument(QString)::487: args: path = "/home/system7/Downloads/2024-05-19-15-23-59-682.jpg"
2024-06-06 08:23:22.388 [D] pqc_scriptsimages.cpp::bool PQCScriptsImages::isArchive(QString)::504: args: path = "/home/system7/Downloads/2024-05-19-15-23-59-682.jpg"
2024-06-06 08:23:22.388 [D] pqc_scriptsimages.cpp::bool PQCScriptsImages::isMpvVideo(QString)::424: args: path = "/home/system7/Downloads/2024-05-19-15-23-59-682.jpg"
2024-06-06 08:23:22.388 [D] pqc_scriptsimages.cpp::bool PQCScriptsImages::isQtVideo(QString)::459: args: path = "/home/system7/Downloads/2024-05-19-15-23-59-682.jpg"
2024-06-06 08:23:22.389 [D] pqc_scriptsimages.cpp::bool PQCScriptsImages::isSVG(QString)::961: args: path = "/home/system7/Downloads/2024-05-19-15-23-59-682.jpg"
2024-06-06 08:23:22.389 [D] pqc_scriptsimages.cpp::bool PQCScriptsImages::isPhotoSphere(QString)::747: args: path = "/home/system7/Downloads/2024-05-19-15-23-59-682.jpg"
2024-06-06 08:23:22.389 [D] pqc_scriptsimages.cpp::bool PQCScriptsImages::isPhotoSphere(QString)::747: args: path = "/home/system7/Downloads/2024-05-19-15-23-59-682.jpg"
2024-06-06 08:23:22.399 [D] pqc_providerfull.cpp::virtual QImage PQCProviderFull::requestImage(const QString&, QSize*, const QSize&)::43: args: url = "%2Fhome%2Fsystem7%2FDownloads%2F2024-05-19-15-23-59-682.jpg"
2024-06-06 08:23:22.399 [D] pqc_providerfull.cpp::virtual QImage PQCProviderFull::requestImage(const QString&, QSize*, const QSize&)::44: args: requestedSize = QSize(-1, -1)
2024-06-06 08:23:22.399 [D] pqc_loadimage.cpp::QString PQCLoadImage::load(QString, QSize, QSize&, QImage&)::216: args: filename = "/home/system7/Downloads/2024-05-19-15-23-59-682.jpg"
2024-06-06 08:23:22.399 [D] pqc_loadimage.cpp::QString PQCLoadImage::load(QString, QSize, QSize&, QImage&)::217: args: requestedSize = QSize(-1, -1)
2024-06-06 08:23:22.399 [D] pqc_loadimage.cpp::QString PQCLoadImage::load(QString, QSize, QSize&, QImage&)::218: args: origSize = QSize(-1, -1)
2024-06-06 08:23:22.399 [D] pqc_loadimage.cpp::QString PQCLoadImage::load(QString, QSize, QSize&, QImage&)::219: args: img
2024-06-06 08:23:22.399 [D] pqc_scriptsimages.cpp::QString PQCScriptsImages::getColorProfileFor(QString)::1189: args: path = "/home/system7/Downloads/2024-05-19-15-23-59-682.jpg"
2024-06-06 08:23:22.399 [D] pqc_loadimage_qt.cpp::static QString PQCLoadImageQt::load(QString, QSize, QSize&, QImage&)::104: args: filename = "/home/system7/Downloads/2024-05-19-15-23-59-682.jpg"
2024-06-06 08:23:22.399 [D] pqc_loadimage_qt.cpp::static QString PQCLoadImageQt::load(QString, QSize, QSize&, QImage&)::105: args: maxSize = QSize(-1, -1)
2024-06-06 08:23:22.450 [D] pqc_scriptsimages.cpp::bool PQCScriptsImages::applyColorProfile(QString, QImage&)::1380: args: filename = "/home/system7/Downloads/2024-05-19-15-23-59-682.jpg"
2024-06-06 08:23:22.450 [D] pqc_scriptsimages.cpp::bool PQCScriptsImages::applyColorProfile(QString, QImage&)::1381: args: img
2024-06-06 08:23:22.450 [D] pqc_scriptsimages.cpp::QString PQCScriptsImages::getColorProfileFor(QString)::1189: args: path = "/home/system7/Downloads/2024-05-19-15-23-59-682.jpg"
2024-06-06 08:23:22.450 [D] pqc_scriptsimages.cpp::bool PQCScriptsImages::applyColorProfile(QString, QImage&)::1469: Checking for embedded color profiles
2024-06-06 08:23:22.450 [D] pqc_scriptsimages.cpp::bool PQCScriptsImages::applyColorProfile(QString, QImage&)::1540: Using default color profile
2024-06-06 08:23:22.450 [D] pqc_scriptsimages.cpp::QString PQCScriptsImages::getColorProfileFor(QString)::1189: args: path = "/home/system7/Downloads/2024-05-19-15-23-59-682.jpg"
2024-06-06 08:23:22.450 [D] pqc_scriptsimages.cpp::void PQCScriptsImages::setSupportsTransparency(QString, bool)::547: args: path = "/home/system7/Downloads/2024-05-19-15-23-59-682.jpg"
2024-06-06 08:23:22.450 [D] pqc_scriptsimages.cpp::void PQCScriptsImages::setSupportsTransparency(QString, bool)::548: args: alpha = false
2024-06-06 08:23:22.450 [D] pqc_providerfull.cpp::virtual QImage PQCProviderFull::requestImage(const QString&, QSize*, const QSize&)::43: args: url = "%2Fhome%2Fsystem7%2FDownloads%2F2024-05-19-15-23-59-682.jpg"
2024-06-06 08:23:22.450 [D] pqc_providerfull.cpp::virtual QImage PQCProviderFull::requestImage(const QString&, QSize*, const QSize&)::44: args: requestedSize = QSize(-1, -1)
2024-06-06 08:23:22.450 [D] pqc_loadimage.cpp::QString PQCLoadImage::load(QString, QSize, QSize&, QImage&)::216: args: filename = "/home/system7/Downloads/2024-05-19-15-23-59-682.jpg"
2024-06-06 08:23:22.450 [D] pqc_loadimage.cpp::QString PQCLoadImage::load(QString, QSize, QSize&, QImage&)::217: args: requestedSize = QSize(-1, -1)
2024-06-06 08:23:22.450 [D] pqc_loadimage.cpp::QString PQCLoadImage::load(QString, QSize, QSize&, QImage&)::218: args: origSize = QSize(-1, -1)
2024-06-06 08:23:22.450 [D] pqc_loadimage.cpp::QString PQCLoadImage::load(QString, QSize, QSize&, QImage&)::219: args: img
2024-06-06 08:23:22.450 [D] pqc_scriptsimages.cpp::QString PQCScriptsImages::getColorProfileFor(QString)::1189: args: path = "/home/system7/Downloads/2024-05-19-15-23-59-682.jpg"
2024-06-06 08:23:22.452 [D] pqc_providerthumb.cpp::void PQCAsyncImageResponseThumb::loadImage()::67: 
2024-06-06 08:23:22.452 [D] pqc_scriptsimages.cpp::bool PQCScriptsImages::supportsTransparency(QString)::556: args: path = "/home/system7/Downloads/2024-05-19-15-23-59-682.jpg"
2024-06-06 08:23:22.452 [D] pqc_resolutioncache.cpp::void PQCResolutionCache::saveResolution(QString, QSize)::33: args: filename = "/home/system7/Downloads/2024-05-19-15-23-59-682.jpg"
2024-06-06 08:23:22.452 [D] pqc_resolutioncache.cpp::void PQCResolutionCache::saveResolution(QString, QSize)::34: args: res = QSize(4608, 2592)
2024-06-06 08:23:22.544 [D] pqc_scriptsimages.cpp::bool PQCScriptsImages::isQtVideo(QString)::459: args: path = "/home/system7/Downloads/2024-05-19-15-23-59-682.jpg"
2024-06-06 08:23:22.544 [D] pqc_scriptsimages.cpp::bool PQCScriptsImages::isMpvVideo(QString)::424: args: path = "/home/system7/Downloads/2024-05-19-15-23-59-682.jpg"
2024-06-06 08:23:22.707 [D] pqc_scriptsmetadata.cpp::QVariantList PQCScriptsMetaData::getFaceTags(QString)::467: args: filename = "/home/system7/Downloads/2024-05-19-15-23-59-682.jpg"
2024-06-06 08:23:22.759 [D] pqc_scriptsimages.cpp::int PQCScriptsImages::isMotionPhoto(QString)::564: args: path = "/home/system7/Downloads/2024-05-19-15-23-59-682.jpg"
2024-06-06 08:23:22.760 [D] pqc_providerfull.cpp::virtual QImage PQCProviderFull::requestImage(const QString&, QSize*, const QSize&)::43: args: url = "%2Fhome%2Fsystem7%2FDownloads%2F2024-05-19-15-23-59-682.jpg"
2024-06-06 08:23:22.760 [D] pqc_providerfull.cpp::virtual QImage PQCProviderFull::requestImage(const QString&, QSize*, const QSize&)::44: args: requestedSize = QSize(125, 125)
2024-06-06 08:23:22.760 [D] pqc_loadimage.cpp::QString PQCLoadImage::load(QString, QSize, QSize&, QImage&)::216: args: filename = "/home/system7/Downloads/2024-05-19-15-23-59-682.jpg"
2024-06-06 08:23:22.760 [D] pqc_loadimage.cpp::QString PQCLoadImage::load(QString, QSize, QSize&, QImage&)::217: args: requestedSize = QSize(125, 125)
2024-06-06 08:23:22.760 [D] pqc_loadimage.cpp::QString PQCLoadImage::load(QString, QSize, QSize&, QImage&)::218: args: origSize = QSize(-1, -1)
2024-06-06 08:23:22.760 [D] pqc_loadimage.cpp::QString PQCLoadImage::load(QString, QSize, QSize&, QImage&)::219: args: img
2024-06-06 08:23:22.760 [D] pqc_scriptsimages.cpp::QString PQCScriptsImages::getColorProfileFor(QString)::1189: args: path = "/home/system7/Downloads/2024-05-19-15-23-59-682.jpg"
2024-06-06 08:23:22.815 [D] pqc_metadata.cpp::void PQCMetaData::updateMetadata()::103: 
2024-06-06 08:23:22.816 [D] pqc_scriptsmetadata.cpp::QString PQCScriptsMetaData::analyzeDateTimeOriginal(QString)::46: args: val = "2024:05:19 15:24:00"
2024-06-06 08:23:22.817 [D] pqc_scriptsmetadata.cpp::QString PQCScriptsMetaData::analyzeExposureTime(QString)::59: args: val = "1/33"
2024-06-06 08:23:22.817 [D] pqc_scriptsmetadata.cpp::QString PQCScriptsMetaData::analyzeFlash(QString)::86: args: val = "24"
2024-06-06 08:23:22.817 [D] pqc_scriptsmetadata.cpp::QString PQCScriptsMetaData::analyzeFNumber(QString)::203: args: val = "170/100"
2024-06-06 08:23:22.817 [D] pqc_scriptsmetadata.cpp::QString PQCScriptsMetaData::analyzeFocalLength(QString)::183: args: val = "4250/1000"
2024-06-06 08:23:22.818 [D] pqc_scriptsmetadata.cpp::QString PQCScriptsMetaData::analyzeSceneCaptureType(QString)::161: args: val = "0"
2024-06-06 08:23:22.818 [D] pqc_scriptsmetadata.cpp::QString PQCScriptsMetaData::analyzeLightSource(QString)::223: args: val = "0"
2024-06-06 08:23:22.819 [D] pqc_scriptsmetadata.cpp::QString PQCScriptsMetaData::analyzeGPS(QString, QString, QString, QString)::291: args: latRef = "N"
2024-06-06 08:23:22.819 [D] pqc_scriptsmetadata.cpp::QString PQCScriptsMetaData::analyzeGPS(QString, QString, QString, QString)::292: args: lat = "46/1 40/1 464278800/10000000"
2024-06-06 08:23:22.819 [D] pqc_scriptsmetadata.cpp::QString PQCScriptsMetaData::analyzeGPS(QString, QString, QString, QString)::293: args: lonRef = "E"
2024-06-06 08:23:22.819 [D] pqc_scriptsmetadata.cpp::QString PQCScriptsMetaData::analyzeGPS(QString, QString, QString, QString)::294: args: lon = "16/1 40/1 295510800/10000000"

Environment

                   -`                    system7@AMANDA 
                  .o+`                   -------------- 
                 `ooo/                   OS: Arch Linux x86_64 
                `+oooo:                  Kernel: 6.9.3-arch1-1 
               `+oooooo:                 Uptime: 10 hours, 6 mins 
               -+oooooo+:                Packages: 1794 (pacman), 37 (flatpak) 
             `/:-:++oooo+:               Shell: bash 5.2.26 
            `/++++/+++++++:              Resolution: 2560x1080 
           `/++++++++++++++:             DE: GNOME 46.2 
          `/+++ooooooooooooo/`           WM: Mutter 
         ./ooosssso++osssssso+`          WM Theme: Adwaita 
        .oossssso-````/ossssss+`         Theme: adw-gtk3 [GTK2/3] 
       -osssssso.      :ssssssso.        Icons: Papirus [GTK2/3] 
      :osssssss/        osssso+++.       Terminal: guake 
     /ossssssss/        +ssssooo/-       CPU: 13th Gen Intel i9-13900K (32) @ 5.500GHz 
   `/ossssso+/:-        -:/+osssso+-     GPU: AMD ATI Radeon RX 6600/6600 XT/6600M 
  `+sso+:-`                 `.-/+oso:    Memory: 17694MiB / 63599MiB 
 `++:.                           `-/+/
 .`                                 `/

Speedtest on the current machine


   Speedtest by Ookla

      Server: Vodafone Magyarország Zrt. - Budapest (id: 31271)
         ISP: Magyar Telekom
Idle Latency:     2.98 ms   (jitter: 0.05ms, low: 2.94ms, high: 3.04ms)
    Download:   931.45 Mbps (data used: 970.1 MB)                                                   
                  5.95 ms   (jitter: 0.89ms, low: 3.29ms, high: 8.00ms)
      Upload:   939.28 Mbps (data used: 422.9 MB)                                                   
                  2.75 ms   (jitter: 0.19ms, low: 2.27ms, high: 3.89ms)
 Packet Loss:     0.0%
luspi commented 4 months ago

(Sorry for not getting to this earlier, had some big deadlines to deal with.)

Thanks for the report, I was able to reproduce this. I pushed an update to the flatpak which should be live later today. In the meantime you can fix this by explicitely granting it network access when starting:

flatpak run --share=network org.photoqt.PhotoQt

Out of curiosity, what issues did you encounter when installing the AUR package? The photoqt-bin package might be an alternative if you prefer a normal install.

luspi commented 4 months ago

The flathub package should be updated now.