XBMC Community Forum
WindowXML ColorDifusse set using $INFO breaks XBMC - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Python Add-on Development (/forumdisplay.php?fid=26)
+--- Thread: WindowXML ColorDifusse set using $INFO breaks XBMC (/showthread.php?tid=102838)



WindowXML ColorDifusse set using $INFO breaks XBMC - Basje - 2011-06-03 20:53

I just updated part of my script to set the colordiffuse using some Addon Settings. Therefor I set this property on the window:

Code:
self.setProperty("XOT_DimBackground", "99ffffff")

The Image is created like this in the WindowXML skin:

Code:
<control type="image">
  <description>DimBackground image</description>
  <posx>-15</posx>
  <posy>-15</posy>
  <width>940</width>
  <height>505</height>
  <colorkey>0</colorkey>
  <textcolor>ffffffff</textcolor>
  <colordiffuse>$INFO[Container(50).Property(XOT_DimBackground)]</colordiffuse>
  <visible>True</visible>
  <texture>xot_ContentPanel.png</texture>
</control>

It all appears fine, until I click on a button, then XBMC freezes and this message is logged an very large amount of times (it takes up 100% of a single CPU core):
Code:
20:44:50 T:6260 M:910901248   ERROR: exception in CApplication::Render()
20:44:50 T:6260 M:910880768   ERROR: m_pD3DDevice->BeginScene() failed. 8876086C - D3DERR_INVALIDCALL (Invalid call)

I am running a very recent (29th of May) nighlty build. I'll try another compile and report back.


- malte - 2011-06-16 08:14

FYI: I get the exact same error when I use a textbox without <font>-tag in a skin other than Confluence (tested with Night and Alaska). This happens in Dharma, did not test it with Eden yet. Also XBMC does not freeze, I still can navigate around but I can't launch addons anymore and can't quit XBMC.

As soon as I add the <font>-tag everything works fine again.


- jmarshall - 2011-06-16 09:39

It would be useful to have some scripts that allow these to be easily reproduced. Post the details on trac and feel free to cc me.


- malte - 2011-06-16 11:17

I already made such a script. Will open a trac ticket tonight.


- malte - 2011-06-16 19:20

Ticket created.


- jmarshall - 2011-06-17 03:32

It should be fixed (the font issue specifically). Will need a script to test the $INFO colordiffuse issue.


- vdrfan - 2011-06-17 08:51

jmarshall Wrote:It should be fixed (the font issue specifically). Will need a script to test the $INFO colordiffuse issue.

http://trac.xbmc.org/ticket/11612