Code Monkey home page Code Monkey logo

Comments (12)

Joackk avatar Joackk commented on June 2, 2024

似乎开启时间过长也会导致这个问题,我是昨晚开的,然后留在了视频目录页面。然后睡觉时候改成了睡眠状态,所以第二天是直接恢复了源状态并没有进行什么操作。然后准备看会视频时候发现很卡。看了下内存又用了15个G的内存。不知道什么情况

from miru-app.

Joackk avatar Joackk commented on June 2, 2024

在看了会视频后返回首页后,发现这内存占用在不断增加。虽然增加的不快,但是一直在加,是没有自动释放内存吗?

from miru-app.

MiaoMint avatar MiaoMint commented on June 2, 2024

按理来说应该退出视频界面会释放内存,你只是看了视频然后退出视频界面然后内存就开始一直增加吗?

from miru-app.

Joackk avatar Joackk commented on June 2, 2024

按理来说应该退出视频界面会释放内存,你只是看了视频然后退出视频界面然后内存就开始一直增加吗?

我也不确定这是什么情况了,因为最近一段时间使用中,有时候打开半小时看了会视频他就开始使用了4-8G内存了,然后关闭重开又恢复正常。有的时候开一天中途也会使用看视频什么的,但是内存都使用正常。有点无法确定他这个到底是啥情况了。就正常使用有的时候用一会就内存占用飙升到几个G,有的时候用一天他也正常

from miru-app.

yhsj0919 avatar yhsj0919 commented on June 2, 2024

内存增加大概率是 media_kit的问题,在我应用中,多次调用 player.open(),会导致内存持续增加,而不会释放,长时间播放也会导致内存增加

from miru-app.

MiaoMint avatar MiaoMint commented on June 2, 2024

内存增加大概率是 media_kit的问题,在我应用中,多次调用 player.open(),会导致内存持续增加,而不会释放,长时间播放也会导致内存增加

原来是这样

from miru-app.

yhsj0919 avatar yhsj0919 commented on June 2, 2024

可以尝试限制一下最大缓存

void initVideo() async {
    if (player.platform is NativePlayer) {
      await (player.platform as dynamic).setProperty('cache', 'yes');
    }
    if (player.platform is NativePlayer) {
      await (player.platform as dynamic).setProperty('demuxer-max-bytes', '30MiB');
    }
    if (player.platform is NativePlayer) {
      await (player.platform as dynamic).setProperty('demuxer-readahead-secs', '20');
    }
  }

demuxer-max-bytes demuxer-readahead-secs

我测试的时候没有明显增加内存,但是在另一个应用中,开多个客户端只有一个生效,
其他的还是会不断增大内存

from miru-app.

Joackk avatar Joackk commented on June 2, 2024

可以尝试限制一下最大缓存

void initVideo() async {
    if (player.platform is NativePlayer) {
      await (player.platform as dynamic).setProperty('cache', 'yes');
    }
    if (player.platform is NativePlayer) {
      await (player.platform as dynamic).setProperty('demuxer-max-bytes', '30MiB');
    }
    if (player.platform is NativePlayer) {
      await (player.platform as dynamic).setProperty('demuxer-readahead-secs', '20');
    }
  }

demuxer-max-bytes demuxer-readahead-secs

我测试的时候没有明显增加内存,但是在另一个应用中,开多个客户端只有一个生效, 其他的还是会不断增大内存

这个问题似乎还不是固定的,因为我是偶尔会遇到,还不是此次都会遇到,就挺奇怪的

from miru-app.

MiaoMint avatar MiaoMint commented on June 2, 2024

@Joackk 可以试试 https://github.com/miru-project/miru-app/actions/runs/7256772092?pr=153

from miru-app.

Joackk avatar Joackk commented on June 2, 2024

@Joackk 可以试试 https://github.com/miru-project/miru-app/actions/runs/7256772092?pr=153

感谢大佬

from miru-app.

MiaoMint avatar MiaoMint commented on June 2, 2024

还有这个问题嘛? @Joackk

from miru-app.

Joackk avatar Joackk commented on June 2, 2024

还有这个问题嘛? @Joackk

暂时的使用没有遇到,但是我不确定,因为之前他也不是固定触发,而是偶尔会触发,有时候蛮久都不触发。今天开了一天是没有遇到,应该没了

from miru-app.

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.