|
SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Fixed memory leak latest beta
Does anyone know in more detail what exactly was wrong in the get imageasbuferred call?
Memory leak? I am taking that to mean it was taking excessive memory? When a studio update like this comes out do you have to be running the beta to have the advantages of the fix or just code In the beta? I am wondering if this is what was slowing one of my screens down |
#2
|
||||
|
||||
A memory leak means that a process allocates/reserves memory but doesn't release it when it's done. The eventual outcome is that an application will eventually run out out memory.
According the releasenotes, the core STV doesn't use GetBufferedImage so, this memory leak will not exist there. I don't know if sagemc uses GetBufferedImage, but i can tell you for sure that GetBufferedImage is used in the phoenix image apis. So if you are using those, then the memory leak would have been present, and the eventual outcome is that you'd run out of memory.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#3
|
||||
|
||||
BTW, the memory leak was found using the Phoenix api.
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full." - Nikolaus (4yrs old) |
#4
|
||||
|
||||
Thanks for the help on that one Mike
__________________
Jeffrey Kardatzke Founder of SageTV |
#5
|
||||
|
||||
No no no, Thank YOU!
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full." - Nikolaus (4yrs old) |
#6
|
|||
|
|||
Okay mike can you help me on this one I am currently using buffered image and then creating a reflection but cannot get this call to work by prefixing with phoenix_api
What am I doing wrong I would prefer using the phoenix Api as it is probably more efficient and future proof |
#7
|
||||
|
||||
Try using
Code:
phoenix_api_CreateReflection( Image )
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full." - Nikolaus (4yrs old) |
#8
|
|||
|
|||
Quote:
I am guessing that is not possible with phoenix as it is with standard image utils? |
#9
|
||||
|
||||
Phoenix fanart apis return image paths, so if you using phoenix_api_GetFanartPoster(), then it will be a file path. The CreateReflection() api is an expensive operation and as such, it should be called with a filepath so that the operation can be cached. You should be able to call CreateReflection with a standard Sage Image or a Java Buffered Image, but it will apply the transformation each time and it will not be cached (at least not on the filesystem)
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#10
|
|||
|
|||
Quote:
This is great news I have this coded however it is only half working. It does create the reflection in my cache/scaled images directory. However it does not display anything. I have it feeding a image widget but there is nothing displayed. |
#11
|
|||
|
|||
So using the code as show in my image below should work? Or have I got the wrong end of the stick? I've only used text widgets to display what each call is getting, replacing with image widgets does nothing.
Cheers Ben
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders |
#12
|
|||
|
|||
You are where I am if you look in your scaled directory it is reflected and caching it in the filesystem. But putting a image widget gets you nothing.
|
#13
|
|||
|
|||
You also know you don't need that poster call first you can just create reflection off the getfanar call.
|
#14
|
|||
|
|||
Well I have tried just about everything I can think of they get cached just fine reflected and all but I cannot get an output into the interface for the life of me.
Hoping Mike can chime in here... |
#15
|
||||
|
||||
Did you feed the CreateReflection() call into an image widget? I'm using it with no problems, so I know it works.
Aloha, Mike
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full." - Nikolaus (4yrs old) |
#16
|
|||
|
|||
Quote:
reflectioncode Like I said it is creating the reflections in the sagetv/cached/images/scaled directory so I think I am calling it write there are no properties in the image widget but still I Get nothing. |
#18
|
||||
|
||||
Looks like you're running an old version of the Phoenix api. It should be caching the image as a .png file. That's probably your problem.
Aloha, Mike
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full." - Nikolaus (4yrs old) |
#19
|
|||
|
|||
Sagemc says I am running 1.25-beta1 is that not the latest?
|
#20
|
||||
|
||||
How the heck did you get that?!?!
The only publicly released version of the Phoenix API is v1.23, which is available in the downloads section. Anything else is a private internal build and not available for general use.
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full." - Nikolaus (4yrs old) Last edited by MeInMaui; 05-07-2009 at 04:15 PM. Reason: Changed PG-rated comment to G. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Discussion of Possible Memory Leak | toricred | SageMC Custom Interface | 25 | 02-12-2009 09:00 AM |
SageTV Process Memory Leak? | brandypuff | SageTV Software | 13 | 10-14-2008 05:14 PM |
Memory leak in Sage? | abasu2003 | SageTV Software | 5 | 03-27-2005 06:41 PM |
Possible Memory Leak? | Opopanax | SageTV Software | 6 | 02-04-2005 04:28 PM |
Memory leak in Sage 2 | Teg | SageTV Software | 31 | 12-14-2004 07:57 AM |