NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 20 21 22 23 24 … 93 Next »
WizTools - 1.x Plugin Development Toolkit

 
  • 0 Vote(s) - 0 Average
WizTools - 1.x Plugin Development Toolkit
Ommina
Offline

Senior Member

Posts: 330
Threads: 39
Joined: Feb 2006
#151
2008-01-06, 11:16 AM
I was filled with hope, but, no joy.

I just spent the evening (/morning) spending some quality time with a memory profiler, and while I did learn some pretty interesting things and am probably a wiser person for the experience, I did not find any cause for the memory to go up. Nor did I find any indication of what was using it. (Except that it isn't a System.Drawing.Bitmap object! I've got them all accounted for!)

The best that I can figure is that it is an unmanaged resource. But what resource and what is using it I've no clue.

Side note - I am the only one seeing the behaviour, right?
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#152
2008-01-06, 06:40 PM
How long are you waiting before launching your plugin? If you launch it as soon as you open GB-PVR, the memory increase you are seeing may be due to the guide data being loaded in the background.
Ommina
Offline

Senior Member

Posts: 330
Threads: 39
Joined: Feb 2006
#153
2008-01-06, 09:08 PM
Sadly, nope, no fun there either. The issue (seems to be) with opening a popup and dismissing it again. While there is an increase in memory consumption when starting the plugin itself, it isn't an unexpected increase.

The increase that has me concerned is quite dependably tied to opening and closing a popup from within the plugin. Memory goes up sharply opening the plugin, falls again when closed, but never quite falls back to previous values.

Besides, I have no EPG source defined on this machine. It's doing really well if it is finding some to load!

I'm going to get back at it with the profiler today after I get some coffee in me.

Thank you for the post though - if nothing else, it did remind me that I may need to look at things that are not immediately related to the popup.
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#154
2008-01-06, 10:49 PM
Yeah, it was one of those questions like "are you sure it's plugged in". Most likely not the problem but...

Sorry but I don't have any other ideas at the moment. I'm sure if there is an obsure way to leak memory in a popup, I will find it though. That the benefit of being self taught. Big Grin
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#155
2008-01-07, 12:53 AM
I am seeing a little memory variation, but I have been attributing that to what .net is doing under the covers.

I do see memory jump at the point of popup creation, then it drops a few seconds after the display, and drops back basically to pre-popup level once the popup is closed.

I don't see any major leaks (there were some in WizUiHelper text box and label a couple versions back) in either popup or controls.

If you want to post a test program that you can cause the problem with, and your testing approach, I'd be glad to see if I can reproduce on my machine.
Ommina
Offline

Senior Member

Posts: 330
Threads: 39
Joined: Feb 2006
#156
2008-01-07, 01:22 AM
Thanks JW - I'll likely take you up on that.

The memory difference pre- and post-popup are significant, ~2000K every time, after the initial jump of ~15000K on creation.

Forcing a G2 garbage collection (which I hate to do) does nothing interesting.

I'm also down to the World's Smallest Popup:

Constructor [Calls base class constructor]
getSkinFileName [Returns string]
Dispose [Calls base class dispose + skinHelper2.disposeResources()]
OnKeyDown [Calls closeWithCommand]

No controls. At all. And still ~2000K lost per creation.

Right now I'm going to go back and get your most recent sample plugin + popup and see what I can work out from there. Maybe I'm stripping out too much and am missing some vital something necessary for proper disposal. Or there's something in the main plugin class I'm not doing or am doing incorrectly that is the root of the issue and the whole popup thing is just a diversion. I dunno.

It's great to learn new things about how .NET deals with memory and allocates objects, but right now it's making me pull out my hair and, quite frankly, I can't afford to lose it any faster than I already am.
idkpmiller
Offline

Posting Freak

Posts: 817
Threads: 141
Joined: May 2006
#157
2008-01-07, 10:01 PM
sub Wrote:
Code:
Hashtable args = new Hashtable();
args["@ArtistSong"] = media.Artist + "-" + media.Title;
args["@Time"] = currentSong.ToString();
args["@AlbumArt"] = media.GetImage();
nowPlayingStatic.SetArgs(args);

Let me know if you have problems.

Hi Sub,
I just tryed the method you explained, and if I do just text its working fine, it all turns to custard when I use an image so... the media.GetImage you have in your code how is that passing and what is it passint to the args? i.e. is the image itself or a string for the filename, is there something simple I can set up there to test that everything is working?

Thanks
Let the Games begin...Round 2!
GameZone v2.9.6 - PVRx2 1.4.7 compatible!

[Image: 1299379.png]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#158
2008-01-07, 10:06 PM
It should be an Image class, not a filename.
idkpmiller
Offline

Posting Freak

Posts: 817
Threads: 141
Joined: May 2006
#159
2008-01-07, 10:54 PM
which image class?

tried Dim emulatoricon As Image

but no GetImage offered only GetThumbnailImage
Let the Games begin...Round 2!
GameZone v2.9.6 - PVRx2 1.4.7 compatible!

[Image: 1299379.png]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#160
2008-01-07, 11:02 PM
System.Drawing.Image()

Quote:but no GetImage offered only GetThumbnailImage
Its not clear to me what you are talking about.
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (31): « Previous 1 … 14 15 16 17 18 … 31 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  PIP plugin for Kodi sgilani 2 3,104 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 3,576 2020-11-14, 08:01 PM
Last Post: sub
  Test/Development environment for npvr.db3 scJohn 10 4,614 2020-09-04, 09:14 PM
Last Post: scJohn
  VIdeo playback from plugin mvallevand 5 3,653 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 3,018 2014-11-14, 02:05 AM
Last Post: Benoire
  API docs to help with plugin development? McBainUK 3 2,894 2013-06-08, 06:14 PM
Last Post: sub
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,340 2013-03-24, 08:03 PM
Last Post: imilne
  sabnzbd plugin to show processed files Wakalaka 1 2,035 2013-03-12, 06:48 AM
Last Post: psycik
  Integrated Development Environment (IDE) for plugins osx-addict 5 2,876 2012-10-18, 08:35 PM
Last Post: osx-addict
  Plugin problems with started from the command line mvallevand 11 5,273 2012-08-12, 07:56 PM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode