Git Product home page Git Product logo

Comments (10)

kaixiong avatar kaixiong commented on May 23, 2024

Was this report produced with --leak-check=full? If it was, then the leaks are not limited to plazma.

from libvisual.

rigid avatar rigid commented on May 23, 2024

Chong Kai Xiong [email protected] schrieb:

Was this report produced with with --leak-check=full? If it was, then
the leaks are not limited to plazma.


Reply to this email directly or view it on GitHub:
#5 (comment)

yes it was, but they weren't caused by other actors iirc. can do another check later.

from libvisual.

rigid avatar rigid commented on May 23, 2024

you are right, here is the output for lv_analyzer with stdout driver (to remove SDL leaks):

https://gist.github.com/4556737

from libvisual.

kaixiong avatar kaixiong commented on May 23, 2024

I've closed all the VisParam-related leaks on plugin unloads with 1563c00

Apart from some plugins not properly freeing their private data pointers after encountering errors during init(), I am confident that there are no serious system-wide leaks left. valgrind --leak-check=full doesn't show anything except leaks within SDL. I believe we can close this issue. Any leaks with individual plugins can be filed separately.

from libvisual.

rigid avatar rigid commented on May 23, 2024

still getting some leaks: https://gist.github.com/4708164

from libvisual.

kaixiong avatar kaixiong commented on May 23, 2024

Alright I should've completely fixed the VisPluginData leaks. The ones remaining I can catch are from calls to ORC routines, SDL/Xlib and dlfcn: https://gist.github.com/4708432

from libvisual.

rigid avatar rigid commented on May 23, 2024

I still get various leaks, related to RandomContext, DFT, System, PluginRegistry etc: https://gist.github.com/4712770
If exactly the same command is used (first line of paste), outputs are comparable (use stdout driver to eliminate X/SDL leaks). Though this only covers lv_analyzer, it's a good starting point.

from libvisual.

kaixiong avatar kaixiong commented on May 23, 2024

Try limiting the number of frames with -F for the program to terminate normally. It reveals no leaks for me. Breaking out from lv-tool with Ctrl-C will not call the C++ destructors.

from libvisual.

rigid avatar rigid commented on May 23, 2024

indeed that reduces leaked memory significantly, still there are leaks left: https://gist.github.com/4712879
I'm not sure whether lv-tool should have a signal handler to exit cleanly on ctrl+c ... should it?

from libvisual.

kaixiong avatar kaixiong commented on May 23, 2024

Sure why not? It's quite simple to add on POSIX systems (still looking for a Windows example):
http://stackoverflow.com/questions/4250013/is-destructor-called-if-sigint-or-sigstp-issued

Edit: C has a portable way to handle process signals (signal.h)

I don't really consider the reported leaks in SDL, Xlib or ORC problems we can fix, so they shouldn't be under the scope of this issue.

from libvisual.

Related Issues (20)

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.