Coder Social home page Coder Social logo

Comments (11)

Dudemanguy avatar Dudemanguy commented on August 16, 2024

Without bothering to check if there's any leak for me, here are the related looking commits in that timeframe if anyone wants to look into it.

fd3caa2
1e78025
a67bda2

from mpv.

wbtcpip2 avatar wbtcpip2 commented on August 16, 2024

i opened several issues on this subject ... the problem is real and you always close without investigations ... it leaks approx 1 MB at each instance

#9860

from mpv.

Dudemanguy avatar Dudemanguy commented on August 16, 2024

Oh so actually I can confirm this happens but it's only with luajit. That would explain why people in the old issue couldn't reproduce it reliably.

from mpv.

kasper93 avatar kasper93 commented on August 16, 2024

Does it also happen if you compile luajit with -DLUAJIT_USE_SYSMALLOC, they have their own allocator. I don't know the details, but maybe it doesn't release memory right away, and this is what you see.

from mpv.

Dudemanguy avatar Dudemanguy commented on August 16, 2024

maybe it doesn't release memory right away

Did not try messing with luajit yet, but this is almost certainly what is happening. ASAN doesn't report any leaks.

from mpv.

wbtcpip2 avatar wbtcpip2 commented on August 16, 2024

is this related to our topic?
LuaJIT/LuaJIT#1179

from mpv.

Dudemanguy avatar Dudemanguy commented on August 16, 2024

is this related to our topic?

Unfortunately I am using luajit from git master which includes the fix for that issue and the problem still occurs.

Does it also happen if you compile luajit with -DLUAJIT_USE_SYSMALLOC,

Unless I'm doing it wrong, yeah it still happens with this.
My bad, wrong compile. It indeed doesn't happen with that flag.

from mpv.

wbtcpip2 avatar wbtcpip2 commented on August 16, 2024

is it possible to use the flag -DLUAJIT_USE_SYSMALLOC with the official win release of libmpv? do we have to ask it to shinchiro?

from mpv.

kasper93 avatar kasper93 commented on August 16, 2024

Will be fixed by #14457

from mpv.

wbtcpip2 avatar wbtcpip2 commented on August 16, 2024

hello, could you please reopen this issue?

#14457 has fixed the memory leak but after this commit there is 1 leak handle at each new mpv instance (that was not present before the #14457 )

@kasper93 could you please check if in your commit there is an handle that is not closed?

from mpv.

a10r avatar a10r commented on August 16, 2024

Thanks for the quick fix! Can confirm that the leak is gone in the latest zhongfly build.

from mpv.

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.