Maproom / qmapshack

Consumer grade GIS software
GNU General Public License v3.0
282 stars 63 forks source link

SSL failure when using Geo search #461

Open kssi opened 2 years ago

kssi commented 2 years ago

Describe the bug

Since early October 2021, I can no longer use the Geo search tool available in the Workspace dock widget. I get a "SSL handshake failed" error message.

I tend to use OSM Nominatim exclusively.

What have you done to circle down the problem?

I've tried changing and configuring the different geocoding services available, without luck. (Google might work but I don't have an API key).

Currently secretly hoping tweaking QMapShack.app/Contents/Frameworks/libssl.1.0.0.dylib might help.

To Reproduce

  1. Use the same OS and QMapShack version as me (see below)
  2. Select either the "OSM Nominatim" or "Geonames Places" geocoding service
  3. Try to find a place by name
  4. See error

Expected behavior

Lots of waypoints.

Screenshots

image

Attachments

n/a

Tracebacks

comment: # (Add your backtrace below if you have one. If QMapshack crashes the fastest way to get help is a backtrace. For Linux see: https://github.com/Maproom/qmapshack/wiki/TroubleShooting#create-a-backtrace-of-a-crash-on-linux. For Windows it would need a debug build and running QMapshack in Visual Studio.)

n/a

Desktop

Additional context

This may be related: https://techcrunch.com/2021/09/21/lets-encrypt-root-expiry/

kiozen commented 2 years ago

The root of SSL failures is usually not with the source code of QMapShack. QMapShack is using the OpenSSL plugin of Qt. This might not be installed on your system or it might fail to load. One reason might be a mismatch in the OpenSSL library. You might get a bit more information if you start QMapShack from the console with:

qmapshack -d

Anyway this is nothing to be solved in the source code.

kssi commented 2 years ago

QMapShack is using the OpenSSL plugin of Qt. This might not be installed on your system or it might fail to load.

It used to work wonderfully until October 2021, why I think the Let's Encrypt root certificate expiration is causing the issue.

This is what I get when I run QMapShack in debugging mode:

$ LANG=en_US.UTF-8 /Applications/QMapShack.app/Contents/MacOS/QMapShack -d
2021-11-19 20:54:05.985 [debug] Log configuration: log file= "/Users/someone/Library/Logs/org.qlandkarte.QMapShack.log" write to file= false debug output= true
2021-11-19 20:54:05.986 [debug] BIN "/Applications/QMapShack.app/Contents/Tools"
2021-11-19 20:54:05.986 [debug] "GDAL_DATA directory set to /Applications/QMapShack.app/Contents/Resources/gdal"
2021-11-19 20:54:05.986 [debug] "PROJ_LIB directory set to /Applications/QMapShack.app/Contents/Resources/proj"
2021-11-19 20:54:06.064 [debug] locale "en"
2021-11-19 20:54:06.064 [warning] "no file found for translations '/Applications/QMapShack.app/Contents/Resources/translations/qt_en' (using default)."
2021-11-19 20:54:06.065 [debug] locale "en"
2021-11-19 20:54:06.065 [warning] "no file found for translations '/Applications/QMapShack.app/Contents/Resources/translations/qmapshack_en' (using default)."
2021-11-19 20:54:06.066 [debug] Stylesheet "/Applications/QMapShack.app/Contents/Resources/qms-style.qss"
2021-11-19 20:54:06.071 [debug] "CACHE" path "/Users/someone/Library/Caches/QLandkarte/QMapShack"
2021-11-19 20:54:06.072 [debug] "USER DATA" path "/Users/someone/Library/Application Support/QLandkarte/QMapShack/WaypointIcons"
2021-11-19 20:54:06.072 [debug] "LOG" path "/Users/someone/Library/Logs"
2021-11-19 20:54:06.076 [debug] CSingleInstanceProxy: Single instance server socket listening to "/var/folders/_2/xqvfps894wncbgbnf6bxmm480000gn/T/QMapShack-someone"
2021-11-19 20:54:06.244 [debug] Application ID: 613159878
2021-11-19 20:54:06.554 [debug] "ROUTINO" path "/Applications/QMapShack.app/Contents/Resources/routino/profiles.xml"
2021-11-19 20:54:06.556 [debug] "ROUTINO" path "/Applications/QMapShack.app/Contents/Resources/routino/translations.xml"
2021-11-19 20:54:06.945 [debug] CDeviceWorker Thread.run
2021-11-19 20:54:07.327 [debug] ------------------------------
2021-11-19 20:54:07.327 [debug] VRT: try to open "/Volumes/Data/scratch/qmapshack/Maps/raster/WORLD_BLANK.vrt"
ERROR 4: /Volumes/Data/scratch/qmapshack/Maps/raster/WORLD BLANK.tif: No such file or directory
2021-11-19 20:54:07.338 [debug] has overviews false
2021-11-19 20:54:07.342 [debug] FF QTransform(type=TxScale, 11=19.0979 12=0 13=0 21=0 22=-19.0979 23=0 31=-3.89182e+06 32=1.8354e+07 33=1)
2021-11-19 20:54:07.342 [debug] RR QTransform(type=TxScale, 11=0.0523619 12=0 13=0 21=0 22=-0.0523619 23=0 31=203783 32=961050 33=1)
2021-11-19 20:54:07.351 [debug] ------------------------------
2021-11-19 20:54:07.351 [debug] TMS: try to open "/Volumes/Data/scratch/qmapshack/Maps/online/FR_IGN.tms"
2021-11-19 20:54:07.351 [debug] tms: +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs
2021-11-19 20:54:07.496 [debug] ------------------------------
2021-11-19 20:54:07.496 [debug] WMTS: try to open "/Volumes/Data/scratch/qmapshack/Maps/online/FR_IGN_Topo_25.wmts"
2021-11-19 20:54:07.514 [debug] EPSG:3857 +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs
2021-11-19 20:54:07.572 [debug] ------------------------------
2021-11-19 20:54:07.572 [debug] VRT: try to open "/Volumes/Data/scratch/qmapshack/DEM/viewfinderpanoramas-org/areas/ALPS_all_1\"_viewfinderpanoramas.vrt"
2021-11-19 20:54:07.617 [debug] has overviews true
2021-11-19 20:54:07.617 [debug] no data: 1 -32768
2021-11-19 20:54:07.617 [debug] QPointF(0.087264,0.83776) QPointF(0.279255,0.83776) QPointF(0.279255,0.750489) QPointF(0.087264,0.750489)
2021-11-19 20:54:07.618 [debug] FF QTransform(type=TxScale, 11=4.84814e-06 12=0 13=0 21=0 22=-4.84814e-06 23=0 31=0.087264 32=0.83776 33=0.0174533)
2021-11-19 20:54:07.618 [debug] RR QTransform(type=TxScale, 11=206265 12=0 13=0 21=0 22=-206265 23=0 31=-17999.5 32=172801 33=1)
2021-11-19 20:54:08.678 [debug] Sanity test passed.
2021-11-19 20:54:08.678 [debug] slotUpdate
2021-11-19 20:54:08.681 [debug] label: "macOS 10.11"  root path:  "/"  device:  "disk0s3"
2021-11-19 20:54:08.681 [debug] Probe device at "/" "disk0s3" "macOS 10.11"
2021-11-19 20:54:08.691 [debug] Don't know it :(
2021-11-19 20:54:08.691 [debug] label: "Data"  root path:  "/Volumes/Data"  device:  "disk1s2"
2021-11-19 20:54:08.691 [debug] Probe device at "/Volumes/Data" "disk1s2" "Data"
2021-11-19 20:54:08.756 [debug] Don't know it :(
2021-11-19 20:54:08.756 [debug] label: "Dropbox"  root path:  "/Volumes/Dropbox"  device:  "disk1s3"
2021-11-19 20:54:08.756 [debug] Probe device at "/Volumes/Dropbox" "disk1s3" "Dropbox"
2021-11-19 20:54:08.826 [debug] Don't know it :(
2021-11-19 20:54:08.826 [debug] label: "10.6 Utility"  root path:  "/Volumes/10.6 Utility"  device:  "disk1s4"
2021-11-19 20:54:08.827 [debug] Probe device at "/Volumes/10.6 Utility" "disk1s4" "10.6 Utility"
2021-11-19 20:54:08.867 [debug] Don't know it :(
2021-11-19 20:54:08.867 [debug] label: "10.11 Utility"  root path:  "/Volumes/10.11 Utility"  device:  "disk1s5"
2021-11-19 20:54:08.867 [debug] Probe device at "/Volumes/10.11 Utility" "disk1s5" "10.11 Utility"
2021-11-19 20:54:08.882 [debug] Don't know it :(
2021-11-19 20:54:08.882 [debug] label: "Time Machine"  root path:  "/Volumes/Time Machine"  device:  "disk2s2"
2021-11-19 20:54:08.882 [debug] Probe device at "/Volumes/Time Machine" "disk2s2" "Time Machine"
2021-11-19 20:54:12.920 [debug] Don't know it :(

Nothing OpenSSL related.

And this is what happens when I perform a Geo search:

2021-11-19 20:58:00.985 [warning] Error receiving trust for a CA certificate
2021-11-19 20:58:00.990 [warning] Error receiving trust for a CA certificate
2021-11-19 20:58:00.994 [warning] Error receiving trust for a CA certificate
2021-11-19 20:58:01.000 [warning] Error receiving trust for a CA certificate
2021-11-19 20:58:01.004 [warning] Error receiving trust for a CA certificate

Does this help?

Thanks for your time and for the great piece of software, kiozen.