Comments (7)
I can not reproduce any leak using a +/- same code/data. So either there is something wrong in your Qt version (or some library that Qt uses) or the problem is somewhere else in your code. Provide the full code (+the real data) you are using if you want me to look deeper into the issue.
from qtpbfimageplugin.
You can try the code after fd02b83. Theoretically this should not change anything, but one never knows in C++...
from qtpbfimageplugin.
PBF.zip
Qt5.4.1+visual studio 2010
protobuf-cpp-3.2.0,
zlib-1.2.11
from qtpbfimageplugin.
You can try the code after fd02b83. Theoretically this should not change anything, but one never knows in C++...
same result
from qtpbfimageplugin.
At the first sight, there is nothing suspicious, except the wrong constant zoom level you use (but that has nothing to do with a memory leak). Try to compile/run the pbf2png example tool and see if it also leaks with your Qt/compiler setup (You may replace the QtConcurrent parallelisation with a simple sequential loop to get closer to your use case).
If it leaks, than there is some problem in your setup. If not, than the problem is in your code.
from qtpbfimageplugin.
Memory leak observed for some tiles. The program pbf2png prints a message "QRegularExpressionPrivate::doMatch(): called on an invalid QRegularExpression object"
The only thing fixed in the source code of QtPBFImagePlugin: in Qt 5.4.1, the QFont :: Weight enumeration does not contain
Thin, ExtraLight, Medium, ExtraBold value
from qtpbfimageplugin.
The program pbf2png prints a message "QRegularExpressionPrivate::doMatch(): called on an invalid QRegularExpression object"
With the default ([0-9]+).*
regexp? Works fine for me...
I would generally recommend you to use some newer Qt version - 5.4 is quiet archaic and most probably contains some already fixed bugs causing the memory leak (and the broken regex)
from qtpbfimageplugin.
Related Issues (10)
- QPBFImagePlugin memory leak(valgrind log) HOT 2
- Build ERROE HOT 1
- Teaming up with Vector Tiles Reader plugin for QGIS? HOT 4
- Some layers are not rendered HOT 1
- Q: Is it really necessary to pass the zoom level? HOT 2
- Wrong marker placement HOT 1
- pbfhandler.cpp#L23 claims support for any and all GZIP files HOT 8
- The plugin can cause an abort if the application uses a QCoreApplication HOT 3
- Can't draw water layer on maptiler pbf tiles HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qtpbfimageplugin.