Visible tags not working with button scroller
#1
i hope a xbmc developer can fix this now that jmarshall is on vacation Smile
my skin "the orbs" uses animated gifs of 1mb size, and i need to unload them from memory when something is playing in the home screen, this was working fine (before recent fades changes) by using visible conditions like:
<visible>!player.hasmedia</visible>
on the images associated to the button scroller (id102,103,etc), but now those images are always shown and i have 1mb of memory lost Sad that cause me xbmc unable to load background textures as i t run out of memory.
i also found out that the button scroller "control" itself is not taggable with visibility, even if i add any kind of <visible> condition all the buttons are always shown.
tnx in advance if anybody can fix this.
cheers.

edited 18.08.05
XBMC Italian translator, Movieplayer.it scrapers developer and the old "The Orbs" skin creator.
Reply
#2
some more infos from my log file:
19-08-2005 08:54:19 debug playback has started
19-08-2005 08:54:19 info activating window id: 12005
19-08-2005 08:54:19 notice start led control
19-08-2005 08:54:19 info loading skin file: videofullscreen.xml
19-08-2005 08:54:19 notice dim lcd on playback
19-08-2005 08:54:19 info loading skin file: videoosdsettings.xml
19-08-2005 08:54:19 info loading skin file: videoosd.xml
19-08-2005 08:54:19 debug   msg:vdec: vo config request - 576 x 324 (preferred csp: planar yv12)
19-08-2005 08:54:19 debug   msg:vdec: using planar yv12 as output csp (no 0)
19-08-2005 08:54:19 debug   msg:movie-aspect is 1.78:1 - prescaling to correct movie aspect.
19-08-2005 08:54:19 debug   msg:vo: [directx] 576x324 => 576x324 planar yv12
19-08-2005 08:54:19 info created yuv texture
19-08-2005 08:54:19 debug created yv12 texture 0
19-08-2005 08:54:19 debug udpclient tx: 24151 -> 'kai_client_get_metrics;'
19-08-2005 08:54:19 debug udpclient rx: 24156 <- 'kai_client_metrics;stockholm, sweden;not yet;82.56.86.60;30000;7.0.0.5b;kaistation;mineiro;br0;1;0;0;0;0;0;0;libpcap;n/a;0;0;0;0;'
19-08-2005 08:54:20 debug   msg:ffrw:normal play
19-08-2005 08:54:21 debug setting resolution 6
19-08-2005 08:54:21 debug we set resolution 6
19-08-2005 08:54:21 debug deleted yuv video texture
19-08-2005 08:54:21 debug created yv12 texture 1
19-08-2005 08:54:21 info loading skin file: myvideo.xml
19-08-2005 08:54:22 info activating window id: 10000
19-08-2005 08:54:22 info loading skin file: home.xml
19-08-2005 08:54:23 error out of memory loading texture: top-orb.png (need 1048704 bytes, have 634880 bytes)
19-08-2005 08:54:23 error texture manager unable to load bundled file: top-orb.png
19-08-2005 08:54:23 error out of memory loading texture: bottom-orb.png (need 524416 bytes, have 507904 bytes)
19-08-2005 08:54:23 error texture manager unable to load bundled file: bottom-orb.png
19-08-2005 08:54:24 error out of memory loading texture: home-mymusic.gif (need 605696 bytes, have 548864 bytes)
19-08-2005 08:54:24 error texture manager unable to load bundled file: home-mymusic.gif
19-08-2005 08:54:27 error out of memory loading texture: home-myprograms.gif (need 5639296 bytes, have 4575232 bytes)
19-08-2005 08:54:27 error texture manager unable to load bundled file: home-myprograms.gif
19-08-2005 08:54:29 error out of memory loading texture: home-myprograms.gif (need 5639296 bytes, have 4571136 bytes)
19-08-2005 08:54:29 error texture manager unable to load bundled file: home-myprograms.gif

as you see, once the playback is started i go back to home screen, and it cannot load top-orb.png because it's out of memory, then moving throught home buttons cause the other errors because it's trying to load those images even if i have set visibility off when something is playing.

i'm using today built august 19 as i 've seen that some changes has been made but not enought for me Sad
i also noticed that after i stop the movie the memory is not free all the way, something is still using 20megs and cause xbmc to crash when i try to play another one.
tnx if anybody take care of these things.
XBMC Italian translator, Movieplayer.it scrapers developer and the old "The Orbs" skin creator.
Reply
#3
yes the homescreen visibilty tags are broken completely (for the main textures that is)

in pm3 thet also dont hide when media is playing like the are supposed to

i told jonathan just before he left...
Image

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#4
i think this was fixed last night...
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#5
i thought that too but it's still not working maybe it's fixed the fading stuff but not visibility, i've tryed all cases "!player.hasmedia" "!player.hasvideo + !player.hasaudio" this morning using this morning build and all the stuff is always visible.
a quick check is the memory load in pm3 while moving throught buttons in home screen, it changes because of images are changing on the back of video preview or visualisation.
XBMC Italian translator, Movieplayer.it scrapers developer and the old "The Orbs" skin creator.
Reply
#6
just commited a fix for this, i'm pretty sure it fixes the problem and i hope it doesn't break any other gui stuff Wink
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#7
work perfectly now, tnx Smile
XBMC Italian translator, Movieplayer.it scrapers developer and the old "The Orbs" skin creator.
Reply
#8
i have the exact same setup using hte button scroller and the transistion and visibility tags are working when in the home screen.

however, when i go to any window (pictures,movies,files, etc...) and return to the home screen. the programs icon (id102) is shown behind the previous selected icon. it only happens with this one? does this have any thing to do with it being a default?

using : august 20 cvs

<window>
<id>0</id>
<defaultcontrol>300</defaultcontrol>
<allowoverlay>no</allowoverlay>

<controls>

<control>
<description>background image</description>
<type>image</type>
<id>1</id>
<posx>0</posx>
<posy>0</posy>
<width>720</width>
<height>480</height>
<texture>background.png</texture>
</control>

<control>
<description>start logo</description>
<type>image</type>
<id>1</id>
<posx>65</posx>
<posy>25</posy>
<texture>main_logo2.png</texture>
</control>

<control>
<description>xbox media center label</description>
<type>label</type>
<id>1</id>
<posx>210</posx>
<posy>110</posy>
<align>left</align>
<label>xbox media center</label>
<font>font10</font>
</control>

<control>
<description>menu background image</description>
<type>image</type>
<id>1</id>
<posx>370</posx>
<posy>130</posy>
<width>250</width>
<height>260</height>
<texture>background_glass_menu_area.png</texture>
</control>

<control>
<description>menu background image</description>
<type>image</type>
<id>1</id>
<posx>20</posx>
<posy>40</posy>
<width>310</width>
<height>375</height>
<texture>background_glass_hoover_area.png</texture>
</control>


<!-- button scroller for options-->
<control>
<description>button scroller</description>
<id>300</id>
<type>buttonscroller</type>
<posx>400</posx>
<posy>140</posy>
<width>190</width>
<height>30</height>
<buttongap>1</buttongap>
<orientation>vertical</orientation>
<numbuttons>6</numbuttons>
<defaultbutton>3</defaultbutton>
<movement>1</movement>
<smoothscrolling>yes</smoothscrolling>
<wraparound>yes</wraparound>
<alpha>100</alpha>
<texturefocus>button-focus.png</texturefocus>
<texturenofocus>-</texturenofocus>
<font>font16</font>
<align>left</align>
<aligny>left</aligny>
<onright>10</onright>
<onleft>100</onleft>
</control>

<control>
<type>image</type>
<id>102</id>
<posx>90</posx>
<posy>190</posy>
<height>175</height>
<width>175</width>
<texture>home-programs-icon.png</texture>
<visible>!player.hasmedia</visible>
</control>

<control>
<type>image</type>
<id>103</id>
<posx>90</posx>
<posy>190</posy>
<height>175</height>
<width>175</width>
<texture>home-music-icon.png</texture>
<visible>!player.hasmedia</visible>
</control>

<control>
<type>image</type>
<id>104</id>
<posx>90</posx>
<posy>190</posy>
<height>175</height>
<width>175</width>
<texture>home-pictures-icon.png</texture>
<visible>!player.hasmedia</visible>
</control>

<control>
<type>image</type>
<id>105</id>
<posx>90</posx>
<posy>190</posy>
<height>175</height>
<width>175</width>
<texture>home-videos-icon.png</texture>
<visible>!player.hasmedia</visible>
</control>

<control>
<type>image</type>
<id>106</id>
<posx>90</posx>
<posy>190</posy>
<height>175</height>
<width>175</width>
<texture>home-files-icon.png</texture>
<visible>!player.hasmedia</visible>
</control>

<control>
<type>image</type>
<id>107</id>
<posx>90</posx>
<posy>190</posy>
<height>175</height>
<width>175</width>
<texture>home-weather-icon.png</texture>
<visible>!player.hasmedia</visible>
</control>

<control>
<type>image</type>
<id>109</id>
<posx>90</posx>
<posy>190</posy>
<height>175</height>
<width>175</width>
<texture>home-settings-icon.png</texture>
<visible>!player.hasmedia</visible>
</control>

<!-- on screen preview and labels when video is playing. -->
<control>
<type>image</type>
<id>109</id>
<posx>60</posx>
<posy>178</posy>
<height>170</height>
<width>310</width>
<texture>playback_background.png</texture>
<visible>player.hasmedia</visible>
</control>

<control>
<description>music rectangle</description>
<type>image</type>
<id>0</id>
<posx>64</posx>
<posy>336</posy>
<width>84</width>
<height>84</height>
<texture>playback_background.png</texture>
<visible>player.hasmedia</visible>
</control>

<!-- video preview -->
<control>
<description>video preview window</description>
<type>videowindow</type>
<id>1</id>
<posx>82</posx>
<posy>193</posy>
<height>135</height>
<width>258</width>
<visible>player.hasvideo</visible>
</control>

<control>
<description>video logo</description>
<type>image</type>
<id>0</id>
<posx>71</posx>
<posy>343</posy>
<width>70</width>
<height>70</height>
<texture>music.jpg</texture>
<info>videoplayer.cover</info>
<visible>player.hasvideo</visible>
</control>

<control>
<description>video director label</description>
<type>fadelabel</type>
<id>1</id>
<width>210</width>
<posx>147</posx>
<posy>338</posy>
<info>videoplayer.director</info>
<align>left</align>
<font>special12</font>
<visible>player.hasvideo</visible>
</control>

<control>
<description>video title label</description>
<type>fadelabel</type>
<id>1</id>
<width>210</width>
<posx>147</posx>
<posy>361</posy>
<info>videoplayer.title</info>
<align>left</align>
<font>special13</font>
<visible>player.hasvideo</visible>
</control>

<control>
<description>video time/duration label</description>
<type>fadelabel</type>
<id>1</id>
<width>210</width>
<posx>147</posx>
<posy>388</posy>
<label>$info[player.time] / $info[player.duration]</label>
<align>left</align>
<font>font10</font>
<visible>player.hasvideo</visible>
</control>
<!----------------------------------->
<!-- audio preview -->
<control>
<description>audio visualization preview window</description>
<type>visualisation</type>
<id>1</id>
<posx>82</posx>
<posy>193</posy>
<height>135</height>
<width>258</width>
<visible>player.hasaudio</visible>
</control>

<control>
<description>music logo</description>
<type>image</type>
<id>0</id>
<posx>70</posx>
<posy>343</posy>
<width>70</width>
<height>70</height>
<texture>music.jpg</texture>
<info>musicplayer.cover</info>
<visible>player.hasaudio</visible>
</control>

<control>
<description>artist label</description>
<type>fadelabel</type>
<id>1</id>
<width>210</width>
<posx>147</posx>
<posy>338</posy>
<info>musicplayer.artist</info>
<align>left</align>
<font>special12</font>
<visible>player.hasaudio</visible>
</control>

<control>
<description>title label</description>
<type>fadelabel</type>
<id>1</id>
<width>210</width>
<posx>147</posx>
<posy>361</posy>
<info>musicplayer.title</info>
<align>left</align>
<font>special13</font>
<visible>player.hasaudio</visible>
</control>

<control>
<description>album label</description>
<type>fadelabel</type>
<id>1</id>
<width>210</width>
<posx>147</posx>
<posy>388</posy>
<info>musicplayer.album</info>
<align>left</align>
<font>font10</font>
<visible>player.hasaudio</visible>
</control>
<!----------------------------------->

<!------ xlink kai conditions -------->

<control>
<description>xlink kai conditional button</description>
<type>image</type>
<id>98</id>
<posx>390</posx>
<posy>340</posy>
<width>30 </width>
<height>30 </height>
<font>font10</font>
<texture>kai_connected.png</texture>
<visible>system.kaiconnected</visible>
</control>

<control>
<description>xlink kai conditional button</description>
<type>label</type>
<id>98</id>
<posx>425</posx>
<posy>342</posy>
<width>200</width>
<label>kai engine enabled</label>
<font>font10</font>
<visible>system.kaiconnected</visible>
</control>
<!----------------------------------->


<control>
<description>shutdown button</description>
<type>button</type>
<id>10</id>
<posx>465</posx>
<posy>40</posy>
<width>85</width>
<height>85</height>
<hyperlink>111</hyperlink>
<texturefocus>shutdown-focus.png</texturefocus>
<texturenofocus>shutdown-nofocus.png</texturenofocus>
<label>-</label>
<onleft>300</onleft>
<onright>100</onright>
<onup>300</onup>
<ondown>300</ondown>
</control>

<control>
<type>image</type>
<id>11</id>
<posx>90</posx>
<posy>190</posy>
<height>175</height>
<width>175</width>
<texture>home-power-icon.png</texture>
<visible>control.hasfocus(10) + !player.hasmedia</visible>
</control>

<control>
<description>submenu button</description>
<type>button</type>
<id>100</id>
<posx>540</posx>
<posy>40</posy>
<width>85</width>
<height>92</height>
<hyperlink>20</hyperlink>
<texturefocus>submenu-focus.png</texturefocus>
<texturenofocus>submenu-nofocus.png</texturenofocus>
<label>-</label>
<onleft>10</onleft>
<onright>300</onright>
<onup>300</onup>
<ondown>300</ondown>
</control>

<control>
<type>image</type>
<id>101</id>
<posx>90</posx>
<posy>190</posy>
<height>175</height>
<width>175</width>
<texture>home-my news-icon.png</texture>
<visible>control.hasfocus(100) + !player.hasmedia</visible>
</control>


<control>
<description>date label</description>
<type>label</type>
<id>0</id>
<posx>250</posx>
<posy>150</posy>
<label>date</label>
<info>system.date</info>
<font>font10</font>
<align>right</align>
<textcolor>ffa9d0f7</textcolor>
</control>

<control>
<description>time label</description>
<type>label</type>
<id>0</id>
<posx>253</posx>
<posy>150</posy>
<label>time</label>
<info>system.time</info>
<font>font10</font>
<align>left</align>
<textcolor>ffffffff</textcolor>
</control>

<control>
<description>rss feed</description>
<type>rss</type>
<id>1</id>
<posx>0</posx>
<posy>420</posy>
<width>700</width>
<font>font13</font>
<urlset>1</urlset>
<titlecolor>ffd2ff00</titlecolor>
<headlinecolor>ddced8da</headlinecolor>
<textcolor>ffd2ff00</textcolor>
</control>
</controls>
</window>


any ideas?
Reply

Logout Mark Read Team Forum Stats Members Help
Visible tags not working with button scroller0