MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Help on Development » General Development (no feature request here!)


General Development (no feature request here!) You were able to fix an issue, or improved a feature? Post it here.

Reply
 
LinkBack Thread Tools Display Modes
Old 2007-06-07, 19:21   #1 (permalink)
Portal Member
 
Join Date: Nov 2006
Posts: 52
Thanks: 0
Thanked 6 Times in 3 Posts


Default [patch] bugfix: memory leak in TStreamBufferPlayer9

While working on something else, I discovered that tsfilesource destructor is always crashing when releasing its filter's graph. The exception is caught inside Marshal.ReleaseComObject call, so nobody can see this crash.
All this happens in Cleanup() method of TStreamBufferPlayer9, which looks like this:

Code:
        ...
        if (_vmr9 != null)
        {
          Log.Info("TSStreamBufferPlayer9: vmr9 dispose");
          _vmr9.Dispose();
          _vmr9 = null;
        }
        ...
        DirectShowUtil.RemoveFilters(_graphBuilder); //here tsfilesource is released
        ....
I found that if _vmr9 is released after tsfilesource, the crash is gone! Don't know what exactly _vmr9 is doing that causes the crash.
Here is the patch on sourceforge.
cpp2005 is offline   Reply With Quote
3 Users Say Thank You:
Old 2007-06-08, 07:11   #2 (permalink)
Portal Developer
 
Join Date: Apr 2006
Posts: 189
Thanks: 0
Thanked 1 Time in 1 Post


Default

Hi , you spotted an issue we were looking into since a while now.
This one was causing crashes after 21 files were played ...
Thx for your patch , it's in svn now and will be tested .
Broceliande is offline   Reply With Quote
Reply

Bookmarks

Tags
bugfix, leak, memory, patch, tstreambufferplayer9

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[patch] bugfix: subtitles configuration is not used cpp2005 General Development (no feature request here!) 31 2007-08-22 01:37
Memory leak - PodgeMaster support 5 2007-01-18 19:27
Memory leak in 2.1.0 ? imported_Michael Media Portal - Allgemeines 3 2006-10-29 19:13
Memory Leak on MP 0.2.0 japelweb General Support 4 2006-02-18 12:13
[Patch] Bugfix: Channel zapping stops working Vic General Development (no feature request here!) 0 2005-03-12 09:16


All times are GMT +1. The time now is 08:04.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress