[marble] [Bug 519422] New: When a GPX track has multiple segments Marble does not display all segments.

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Sun Apr 26 02:34:43 BST 2026


https://bugs.kde.org/show_bug.cgi?id=519422

            Bug ID: 519422
           Summary: When a GPX track has multiple segments Marble does not
                    display all segments.
    Classification: Applications
           Product: marble
      Version First unspecified
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: marble-bugs at kde.org
          Reporter: thomasking53 at bigpond.com
  Target Milestone: ---

Created attachment 191801
  --> https://bugs.kde.org/attachment.cgi?id=191801&action=edit
subset of gpx file from a Garmin Drive66 trace entering a tunnel (loss of
signal)

SUMMARY
GPS devices can record a track with multiple segments. 
Marble will only display the last segment of the track.


STEPS TO REPRODUCE
1. Have a .gpx file with multiple segments (eg.
<trk><name>test</name><trkseg>...</trkseg><trkseg...</trkseg></trk>
2. From the Open Menu choose File
3. Select the gpx file.

OBSERVED RESULT
The Marble Map display will show only the final segment.

EXPECTED RESULT
The Marble Map display will show all segments


SOFTWARE/OS VERSIONS
Linux: Linux 6.8.0-110-generic #110-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 19
15:09:20 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux 
KDE Marble Version: Marble Virtual Globe 25.12.2  
KDE Frameworks Version: 
Qt Version: Qt 6.10.2

ADDITIONAL INFORMATION
This looks like an issue in src/lib/marble/GeoGraphicsScene.cpp:39 where the
feature map is a QHash.
e.g.
using FeatureItemMap = QHash<const GeoDataFeature *, GeoGraphicsItem *>;
QMultiHash<TileId, FeatureItemMap> m_tiledItems;
----------------------------------------------------------------------------------
Changing this to a QMultiHash seems to address this issue
e.g.
using FeatureItemMap = QMultiHash<const GeoDataFeature *, GeoGraphicsItem *>;
QMultiHash<TileId, FeatureItemMap> m_tiledItems;

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Marble-bugs mailing list