Giter VIP home page Giter VIP logo

Comments (7)

tumic0 avatar tumic0 commented on July 1, 2024

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.

tumic0 avatar tumic0 commented on July 1, 2024

You can try the code after fd02b83. Theoretically this should not change anything, but one never knows in C++...

from qtpbfimageplugin.

rusproger avatar rusproger commented on July 1, 2024

PBF.zip
Qt5.4.1+visual studio 2010

protobuf-cpp-3.2.0,

zlib-1.2.11

from qtpbfimageplugin.

rusproger avatar rusproger commented on July 1, 2024

You can try the code after fd02b83. Theoretically this should not change anything, but one never knows in C++...

same result

from qtpbfimageplugin.

tumic0 avatar tumic0 commented on July 1, 2024

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.

rusproger avatar rusproger commented on July 1, 2024

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.

tumic0 avatar tumic0 commented on July 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.