NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 9 10 11 12 13 … 93 Next »
ActivatePopup: SSPlus problem

 
  • 0 Vote(s) - 0 Average
ActivatePopup: SSPlus problem
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#1
2012-04-18, 09:49 PM
Using this renderlist I don't have any problems...
Code:
2012-04-18 16:46:07.139 [DEBUG][1] render list contains
2012-04-18 16:46:07.139 [DEBUG][1]  - screensaver-black
2012-04-18 16:46:07.139 [DEBUG][1]  - block-extras-black
2012-04-18 16:46:07.139 [DEBUG][1]  - VeryBig-DateTime
2012-04-18 16:46:07.139 [DEBUG][1]  - Overlay
however when I add an extra element like this...
Code:
2012-04-18 16:46:07.139 [DEBUG][1] render list contains
2012-04-18 16:46:07.139 [DEBUG][1]  - screensaver-black
2012-04-18 16:46:07.139 [DEBUG][1]  - block-extras-black
2012-04-18 16:46:07.139 [DEBUG][1]  - VeryBig-DateTime
2012-04-18 16:46:07.139 [DEBUG][1]  - Overlay
2012-04-18 16:46:07.139 [DEBUG][1]  - HOverlayH
a strange thing happens... after a number of minutes equal to the the value of screensaver InactivityMinutes, I see this in the log (I'm rendering every 15 seconds)...
Code:
2012-04-18 16:52:03.181 [DEBUG][1] SSPlus NeedsRendering: time to move
2012-04-18 16:52:18.198 [DEBUG][1] SSPlus NeedsRendering: time to move
2012-04-18 16:52:33.229 [DEBUG][1] SSPlus NeedsRendering: time to move
2012-04-18 16:52:48.261 [DEBUG][1] SSPlus NeedsRendering: time to move
2012-04-18 16:52:53.542 [DEBUG][1] ActivatePopup: SSPlus
2012-04-18 16:52:53.542 [DEBUG][1] deactivating old popup: SSPlus
2012-04-18 16:52:53.542 [INFO][1] SSPlus Deactivate ClientID: PC
2012-04-18 16:52:53.542 [DEBUG][1] Going to dispose popup at end of animation
2012-04-18 16:52:53.542 [INFO][1] SSPlus Activate: 1
Could it be some characteristic of the extra element...
Code:
<Element name="HOverlayH" location="0,0" size="100,100">
<!--  <Rect location="0.99,0.99" size="99.98,99.98" fillColor="Transparent" borderColor="White" borderWidth="4.7"/> -->
  <Rect location="0,0" size="100,100" fillColor="BlueBackgroundMask" borderColor="Transparent" borderWidth="0"/>
  <Rect location="0,4" size="100,92" fillColor="Popup" borderColor="Transparent" borderWidth="0"/>
  <Text text="DON'T PANIC!!!" location="0,5" size="100,5" font="HugeRedFont" valign="Center" align="Center"/>
  <Image source="Help.jpg" location="1,12" size="99,78" fixedAspectRatio="true"/>
</Element>
I've tried changing the element name, size and location without success. I've also tried adding a text field based on a @variable to the element. It happens when I'm running as a ScreenSaver or a Plugin.

Rather ironic really, since I'm trying to simulate a sort of popup...Smile
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2012-04-18, 09:56 PM
Sorry, I dont understand the problem. What's happening? Is it activating the screen saver twice or something?
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#3
2012-04-18, 10:11 PM
Code:
2012-04-18 16:52:53.542 [DEBUG][1] ActivatePopup: SSPlus
2012-04-18 16:52:53.542 [DEBUG][1] deactivating old popup: SSPlus
2012-04-18 16:52:53.542 [INFO][1] SSPlus Deactivate ClientID: PC
2012-04-18 16:52:53.542 [DEBUG][1] Going to dispose popup at end of animation
2012-04-18 16:52:53.542 [INFO][1] SSPlus Activate: 1
In this snippet, I had started SSPlus as a plugin - when this happens my Deactivate method is being called followed by my Activate method - I'm not aware of doing anything to cause this and I certainly don't want it to happen. If I don't have that last Element in my RenderList, the deactivate/activate doesn't happen.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#4
2012-04-18, 11:03 PM
What if you change "Don't" to "Don&apos;t"

Martin
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#5
2012-04-18, 11:13 PM
mvallevand Wrote:What if you change "Don't" to "Don&apos;t"

Martin
I took "don't" out altogether - but still joy...

Alex
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#6
2012-04-23, 12:35 AM
NPVR deactivates and then re-activates my screensaver plugin from time to time - no obvious pattern or cause that I can see...
Code:
2012-04-23 00:35:42.328    [DEBUG][1]    [FONT=Arial Black]ActivatePopup: SSPlus[/FONT]
2012-04-23 00:35:42.328    [DEBUG][1]    [FONT=Arial Black]deactivating old popup: SSPlus[/FONT]  
2012-04-23 00:35:42.328    [INFO][1]    SSPlus Deactivate ClientID: PC
2012-04-23 00:35:42.328    [DEBUG][1]    [FONT=Arial Black]Going to dispose popup at end of animation[/FONT]  
2012-04-23 00:35:42.328    [INFO][1]    SSPlus Activate: 1
...
2012-04-23 00:35:42.593    [DEBUG][1]    [FONT=Arial Black]Calling dispose on old popup(2): SSPlus[/FONT]
Are there a specific (or general) set of circumstances which would cause NPVR to de-activate and re-activate a screensaver, or any other plugin, without any user intervention - keypresses, etc?

Alex
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#7
2012-04-23, 01:42 AM
I checked the code and the only thing that should deactivate the screensaver should be if someone is calling PluginHelperFactory.GetPluginHelper().ActivatePopup(null), or if you're activating some other popup or screen.

The built in screen savers call this when you press a key, or click or move the mouse.
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#8
2012-04-23, 10:36 PM
Thanks for that sub - seems a fairy straightforward set of circumstances. I do call PluginHelperFactory.GetPluginHelper().ActivatePopup(null) when the user wants to exit the plugin/screensaver, but I'm not aware of trying to activate a popup or any other screen.

It looks like I've got a logic problem in my IScreenPlugin.OnKeyDown(...) method - maybe letting a keystroke through by returning false rather than true?

Alex
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#9
2012-04-24, 12:51 AM
ACTCMS Wrote:It looks like I've got a logic problem in my IScreenPlugin.OnKeyDown(...) method - maybe letting a keystroke through by returning false rather than true?
Maybe - hard for me to know really.

If you dont make any progress on it, and can reproduce it on a fairly basic skeleton plugin, send it over and I'll take a look at the code for you.
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#10
2012-04-24, 01:39 AM
sub Wrote:Maybe - hard for me to know really.

If you dont make any progress on it, and can reproduce it on a fairly basic skeleton plugin, send it over and I'll take a look at the code for you.
Thanks for the offer sub - I might have to take you up on that - I do have a few more things to try first though... Smile
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem with preview image for Pending Recordings Northpole 2 1,967 2012-08-14, 02:56 AM
Last Post: Northpole
  Weird Code problem - serialisation (I'll spell it the proper way!!"0 psycik 22 6,039 2011-11-25, 03:16 AM
Last Post: whurlston
  Resolving required plugin assemblies problem McBainUK 37 11,917 2011-10-26, 06:12 PM
Last Post: psycik
  Problem using UIStatic philcooling 13 4,322 2010-02-12, 06:34 PM
Last Post: whurlston
  IVideoPlugin Problem SummerTimeBlues 9 3,825 2009-07-31, 04:02 AM
Last Post: sgilani
  Vista problem loading MovieWizManager.exe? JavaWiz 5 2,634 2008-06-05, 06:23 AM
Last Post: whurlston
  Missing assembly problem... bgowland 16 4,541 2008-01-10, 06:43 PM
Last Post: bgowland
  Probably silly skining problem... ACTCMS 4 2,016 2007-09-27, 08:06 PM
Last Post: ACTCMS
  Videoarchive Problem mpatriche 28 7,218 2007-04-09, 04:30 PM
Last Post: mpatriche
  MVP mp3 file size problem ubu 10 3,527 2007-01-26, 12:51 AM
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