Marble GeoDataFolder iterator seg fault

Sarah Magliocca magliocca at arlut.utexas.edu
Tue Aug 23 13:45:54 BST 2022


Hi,

I have built Marble 19.08 with Qt 5.15.5 and am trying to create an 
application which uses GeoDataFolder but have run into an issue. The 
following snippet gives me a seg fault:

GeoDataFolder *myFolder = new GeoDataFolder(); myFolder->begin();

I get a similar seg fault when I try to call end(). The stack trace 
shows the following: 1 QVector<Marble::GeoDataFeature *>::isDetached 
qvector.h 113 0x7ffff78f0b36 2 QVector<Marble::GeoDataFeature *>::detach 
qvector.h 399 0x7ffff78f0cfa 3 QVector<Marble::GeoDataFeature *>::begin 
qvector.h 219 0x7ffff78ef4c9 4 Marble::GeoDataContainer::begin 
GeoDataContainer.cpp 349 0x7ffff78ee6fa 5 main main.cpp 54 0x55555555b6e4

It looks like the d pointer is either becoming corrupted or is getting 
deleted, only for the iterator methods. I can call other methods without 
problems, such as at() and last(). I ran the same snippet with Marble 
16.04 and it runs fine. Has anyone seen this error before? Any help 
would be much appreciated.

Thank you,

Sarah Magliocca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20220823/ad4753e2/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4843 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20220823/ad4753e2/attachment.bin>


More information about the Marble-devel mailing list