<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
Hi,
<div class="moz-forward-container">
<p>
</p>
<p>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:</p>
<p>
GeoDataFolder *myFolder = new GeoDataFolder();
myFolder->begin();</p>
<p>
</p>
<p>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 </p>
<p>
</p>
<p>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. </p>
<p>
</p>
<p>Thank you,</p>
<p>
</p>
<p>Sarah Magliocca
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p><style type="text/css"></style></p>
<p><style type="text/css">p, li { white-space: pre-wrap; }</style></p>
</div>
</body>
</html>