Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

UnityVideo player memory leak in PC builds?

Discussion in 'Scripting' started by rastleks, Nov 15, 2017.

  1. rastleks

    rastleks

    Joined:
    Jul 17, 2014
    Posts:
    52
    Hi all.

    I use Unity Video player in my project. Version 2017.1.f2

    All wokrs just fine in Unity Editor, but i have large memory leak in standalone build.
    I put video clip from Unity (not streaming assets). It looks like application trying to load all video in memory.
    But even after Stop, when no videos are playing, memory continuously leak. Profiler show nothing, because in Editor all workd fine and memory doesn't leak (i see it in Task Manager and Profiler).

    Can anyone help me please?
     
  2. TaleOf4Gamers

    TaleOf4Gamers

    Joined:
    Nov 15, 2013
    Posts:
    825
    You can connect the profiler to a build
    https://docs.unity3d.com/Manual/ProfilerWindow.html

    Try that and let me know how if it shows anything.

    I think you dont need another device, it should work on an instance running on the same machine as the editor ;)