Comments (10)
Was this report produced with --leak-check=full? If it was, then the leaks are not limited to plazma.
from libvisual.
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.
you are right, here is the output for lv_analyzer with stdout driver (to remove SDL leaks):
https://gist.github.com/4556737
from libvisual.
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.
still getting some leaks: https://gist.github.com/4708164
from libvisual.
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.
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.
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.
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.
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)
- Update lv-tool and examples to use SDL 2 HOT 1
- [0.4.x] Re-integrate or drop zombie plugins (that exist but are not being built) HOT 16
- Pass "double seconds_passed" to the acter rendering function? HOT 5
- MMX implementation of LV::Video's blit_overlay_alphasrc() is broken HOT 5
- Plans on release 0.4.2 (off branch 0.4.x, not master)
- macOS support / need your help with trying 0.4.x out on macOS (branch "0.4.x-macos") HOT 22
- Enable anti-aliasing for actor "lv_gltest"? HOT 6
- [0.4.x] Segfault in function blit_overlay_noalpha (lv_video.c)
- Enhancement of lv_analyzer HOT 6
- [0.4.x] Plugin "gforce": heap-use-after-free in method PixPort::Fade
- [0.4.x] Plugin "corona": heap-buffer-overflow in method Corona::genReflectedWaves HOT 4
- Support PipeWire HOT 4
- Port old GL code in actors to work with OpenGL 3.2+ core profiles HOT 9
- Throw out SIMD versions of memcpy and memset?
- Plugin (dancingparticles) - Signed integer overflows
- Provision Let's Encrypt certificate(s) for LV website
- [0.4.x] Plugin "gforce": severe warnings "no return statement in function returning non-void [-Wreturn-type]"
- [0.4.2] ./configure: 18070: Syntax error: word unexpected (expecting ")") HOT 7
- [0.4.2] [plugins] configure / bad substitution HOT 4
- RFE: port to `sdl2` HOT 4
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 libvisual.