NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 31 32 33 34 35 … 93 Next »
Strange difference between 1.0.16 and 1.2.9

 
  • 0 Vote(s) - 0 Average
Strange difference between 1.0.16 and 1.2.9
lupus11
Offline

Junior Member

Posts: 30
Threads: 3
Joined: Dec 2005
#1
2008-03-22, 06:08 PM
First it looked like 1.2.9. was the solution to my MPEG2 decoding problems. They were all fixed using the overlay mode. But then I got strange crashes and investigated a little further

It seems I have some siginificant problems with my beta plugin in the new version 1.2.9. It was developed using 1.0.16 and works there without problems. In the new 1.2.9 it looks like the disposal of used resources does not work any longer.

When scrolling through my media lists I allocate a lot of GBPVRUiElements (some of them with memory intensive jpegs). After use they are put into an array and passed to GetPluginHelper.DisposeResources(). This works without problem in 1.0.16. However in 1.2.9 it is different. As soon as the object was passed to the rendering engine once, it is never freed afterwards. So the amount of memory keeps accumulating during operation constantly.
Could it be that there is a reference not freed in version 1.2.9.

Sub, could you be so kind to have a look. I can provide sample code if it helps.

Apart from this 1.2.9 is a dream. Thank you for it.

lupus
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#2
2008-03-22, 06:11 PM
I'm not aware of any changes around this stuff, but if you can provide some sample code I'll take a look.
lupus11
Offline

Junior Member

Posts: 30
Threads: 3
Joined: Dec 2005
#3
2008-03-23, 11:15 AM (This post was last modified: 2008-03-23, 10:31 PM by lupus11.)
Thank you Sub.

Sorry, it is probably not a difference between the two versions. If I switch to VMR9 in 1.2.9 everything looks okay. It only happens in overlay mode. I will test it on a second machine.

Thank You
lupus
lupus11
Offline

Junior Member

Posts: 30
Threads: 3
Joined: Dec 2005
#4
2008-04-15, 02:14 PM
In the meantime I have tested on a second machine and the problems remain the same. What I am basically trying to do, is to display a list of films on the left side and thumbnails (preview stills) on the right side of the screen.
The code is not complex at all but due to something that I do not yet understand it does not dispose the preview thumbs.
This only happens in overlay and EVR, in VMR everything works fine. I have attached a piece of demo code, that I have stripped down to the essentials. It adds two static film titles to the list and loads the corresponding previews from jpg files. When you switch back and forth between the two entries, memory usage accumulates quite fast (as mentioned only in Overlay or EVR mode). In VMR everything works fine. Could anybody please have a look and point me in the right direction.

Thank You
lupus
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#5
2008-04-15, 05:59 PM
I havnt tried running the code, but have had a quick look.

You shouldnt be calling PluginHelperFactory.DisposeResources() all time, and recreating previewImage element. Instead, just create the previewImage once. If you want to change the image, then update the previewImage.image attribute and set previewImage.forceRefresh to true. If you updated previewImage.image by setting it to an entirely new Image object, then you should also call previewImage.image.Dispose() prior to setting the new image to let .net know that it can garbage collect the memory that was associated with the previous image you'd loaded.
lupus11
Offline

Junior Member

Posts: 30
Threads: 3
Joined: Dec 2005
#6
2008-04-15, 07:43 PM (This post was last modified: 2008-04-15, 07:51 PM by lupus11.)
Thanks Sub for the very quick answer.
I changed it the way you describe and it helped a bit, this means memory is not allocating as fast as before, but the problem is still there. Btw. when you create a GBPVRUiElement you supply a Hashtable with arguments. How can I change these arguments without recreating the complete element ?
To me it still remains strange, that the code (even with completely recreating the objects) worked without problems in VMR and shows this behaviour in Overlay an EVR.

Anyway, thanks again Sub

lupus
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#7
2008-04-15, 08:02 PM
Ah, sorry I missed the bit where you said it was fine with VMR. I'll look into it.
lupus11
Offline

Junior Member

Posts: 30
Threads: 3
Joined: Dec 2005
#8
2008-05-08, 11:51 AM
Sub, sorry to bother you again. Could you have a look ?

Thank You
lupus
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#9
2008-05-09, 01:21 AM
I've had a good look at the code around this today, but unfortunately I still cant see anything that would account for this.
lupus11
Offline

Junior Member

Posts: 30
Threads: 3
Joined: Dec 2005
#10
2008-05-09, 08:13 AM
Well, thanks anyway for checking. so I have to do some more research myself.

lupus
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


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

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

Linear Mode
Threaded Mode