NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 922 923 924 925 926 … 1231 Next »
Error with @taskImage in main menu button

 
  • 0 Vote(s) - 0 Average
Error with @taskImage in main menu button
Jeff
Offline

Posting Freak

Posts: 1,933
Threads: 69
Joined: Oct 2004
#1
2005-12-04, 02:01 AM
I am trying to use the new feature to put a task image on the selected main menu button, but it causes GBPVR to crash with an unhandled exception for an object reference not set to an object error.

My skin file has this in it.


Code:
        <CompositeImage name="SelectedButtonImage" size="450,145">
            <DrawImage filename="..\resources\menu_list_focus.png" loc="4,5" size="208,32"/>
            <DrawText text="@buttonText" loc="15,9" size="200,34" textStyle="ButtonText" align="Left"/>
            <DrawImage name="@taskImage" loc="225,5" size="126,140"/>
        </CompositeImage>

And the gbpvr.exe.log file shows this error:


Code:
12/3/2005 5:55:29 PM.630    ERROR    [2]    Error: msg=0x18 (WM_SHOWWINDOW) hwnd=0x260a80 wparam=0x1 lparam=0x0 result=0x0  :  System.NullReferenceException: Object reference not set to an instance of an object.
   at GBPVR.Public.SkinHelper.getNamedImageNonCached(Image image, Boolean fillWithBackgroundColour, Color backgroundColour, String name, Hashtable parameters)
   at GBPVR.Public.SkinHelper.getNamedImageNonCached(String name, Hashtable parameters)
   at GBPVR.Public.SkinHelper.getNamedImage(String name, Hashtable parameters)
   at xae10db17d26ba033.x86396f56243de9fb.getButtonForTask(Int32 x0fcb6604348410b0, IMenuTask xaf6b5176e5a6d4b2)
   at xae10db17d26ba033.x86396f56243de9fb.render(Boolean& xbae0ec4fbb835d1e)
   at xae10db17d26ba033.xbb1566157f5f8b1f.x064b5539bc6e37f5(Object xdf2e3583f942db7b, EventArgs xc4f45905cb1fc7ba)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at xae10db17d26ba033.xbb1566157f5f8b1f.WndProc(Message& x5f8f2c40c000ab2c)
12/3/2005 5:55:44 PM.481    VERBOSE    [321]    getValue() loading new key/value into cache: /settings/NetRadioBufferSize
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#2
2005-12-04, 02:14 AM
This feature isnt widely tested, so I would be surprised if there is some bugs in there.

My initial thought was maybe its not gracefully handling the situation where a task returns a null task image? Check that all the tasks seem to have them. Maybe also try temporarily removing any plugins so you're testing initially a against a smaller set of task that could potentially cause this problem.
Jeff
Offline

Posting Freak

Posts: 1,933
Threads: 69
Joined: Oct 2004
#3
2005-12-04, 05:05 AM
Everything had a task image, so just to be safe I removed and reinstalled GBPVR. since this is my development machine it has had all the GBPVR prereleases on it and I though maybe something was off. I also removed everything from the plug-ins directory and all taks other than the TV Guide. It still crashes. Can you post an example main menu skin that works? Maybe I have something wrong with my syntax.

Jeff
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#4
2005-12-04, 06:04 AM
Ok. I just tried it here. It works fine for the default plugins.

I just edited the .\skin\blue\mainmenu\skin.xml, and set the two button definitions to:

Code:
        <CompositeImage name="SelectedButtonImage" size="166,45">
            <DrawRoundedRect loc="4,5" size="155,30" radius="10" borderWidth="4" borderColor="White" fillColor="DarkBlue"/>        
            <DrawText text="@buttonText" loc="15,7" size="155,34" textStyle="ButtonText" align="Left"/>            
            [b]<DrawImage filename="@taskImage" loc="0,0" size="50,45"/>[/b]                
        </CompositeImage>
        
        <CompositeImage name="NormalButtonImage" size="166,45">    
            <DrawRoundedRect loc="4,5" size="155,30" radius="10" borderWidth="2" borderColor="Black" fillColor="DarkBlue"/>
            <DrawText text="@buttonText" loc="15,7" size="155,34" textStyle="ButtonText" align="Left"/>            
            [b]<DrawImage filename="@taskImage" loc="0,0" size="50,45"/>[/b]                
        </CompositeImage>

I had to change a couple of task images to make them show up though, since the default ones are mostly transparent, and far too large for this usage.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Exit button on StreamZap remote now exits PVRX2 billbobbins 5 5,240 2012-08-30, 09:43 PM
Last Post: billbobbins
  VMR9 Error message cristovao 7 5,874 2012-01-31, 07:35 AM
Last Post: SLR_65
  Windows 7 and Working DVD Menu Navigation imilne 8 4,398 2011-01-04, 02:23 PM
Last Post: imilne
  "Failed to submit the Tune Request to the Network Provider" Error? jksmurf 4 2,487 2010-12-17, 02:09 PM
Last Post: jksmurf
  Sudden Error Message when accessing gbpvr web interface classpro 0 1,559 2010-11-11, 11:59 PM
Last Post: classpro
  Can't cure the Error: 1904 problem rkircher 1 1,876 2010-11-10, 07:22 AM
Last Post: stustunz
  Unexpected error removing recording from conversion queue pvrproblems 1 1,592 2010-09-03, 03:51 AM
Last Post: sub
  PVRX2.exe not rendering anything? no menu, video, nothing ClwFLGator 6 3,424 2010-08-24, 04:42 PM
Last Post: ClwFLGator
  Registry Error while installing PuffY 4 3,202 2010-08-16, 08:20 AM
Last Post: martint123
  Cannot see PVRX2 main menu smvr99 4 2,216 2010-08-11, 02:40 AM
Last Post: smvr99

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

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

Linear Mode
Threaded Mode