tumic0 / GPXSee

GPS log file viewer and analyzer with support for GPX, TCX, KML, FIT, IGC, NMEA, SLF, SML, LOC, GPI, GeoJSON and OziExplorer files.
https://www.gpxsee.org
GNU General Public License v3.0
938 stars 129 forks source link

gpxsee segfault at start #540

Closed solsticedhiver closed 4 months ago

solsticedhiver commented 4 months ago
$ LC_ALL=C.UTF8 gpxsee 20240417-gpxlogger-f67820ab.gpx 
/usr/share/gpxsee/maps/Antarctica.xml:
  xml: 2: Not a GMAP XML file
  xml: Antarctic_Basemap: layer not provided
Erreur de segmentation (core dumped)

already reported at https://gitlab.archlinux.org/archlinux/packaging/packages/gpxsee/-/issues/1 but I was told to report upstream

tumic0 commented 4 months ago

Please provide the 20240417-gpxlogger-f67820ab.gpx file (you have to zip it for Github to accept it) which is most probably the trigger.

_xml: AntarcticBasemap: layer not provided looks also strange as the Antarctica WMTS service definitely has such layer. Can you also provide the content of the $HOME/.cache/gpxsee/tiles/Antarctica/capabilities.xml file?

solsticedhiver commented 4 months ago

I tried with another gpx file, and it was the same. Antartica.xml.zip I tried by renaming ~/.cache/gpxsee to ~/.cache/gpxsee.old and now I have:

$ gpxsee BrittanyJura_Southampton_Portsmouth.gpx
qt.positioning.geoclue2: Already stopped
Erreur de segmentation (core dumped)

I can provide gpxsee 20240417-gpxlogger-f67820ab.gpx later on if need be, but now I have to go.

tumic0 commented 4 months ago

The Antarctica map has moved 4 years ago from NOAA servers to ArcGIS servers and you had the old WMTS capabilities in the cache. Deleting the file (or the whole cache) has fixed the issue and now you should have the Antarctica map available. But that is not what causes the crash.

Although I still would like to see the file you are trying to open to get sure, the cause of the crash is probably somewhere else. Can you run GPXSee in GDB and post the stack trace? This will definitely tell us more.

solsticedhiver commented 4 months ago

ok. I run gdb and found out it was segfaulting in /usr/lib/qt6/plugins/wayland-decoration-client/libqadwaitadecorations.so So I uninstalled qadwaita-decorations-qt6 (and qt5)

It's working now

I rebuilt the previous mentionned libraries, and it's working fine now also with them...