Error Activate of window '10025' refused because there are active modal dialogs - aka.kuro - 2023-07-31
Hi, I'm making a mod of the confluence skin, with the custom search using skin shortcuts. When I select the item, kodi makes a selection noise but doesn't respond in any way. Reviewing the logs, I have seen that it gives me the following error:
"Activate of window '10025' refused because there are active modal dialogs"
How could I solve it, and if you could tell me if I have to put some part of my code, I would appreciate it.
Thank you
RE: Error Activate of window '10025' refused because there are active modal dialogs - Hitcher - 2023-07-31
Close any dialogs you have open using -
Quote:Dialog.Close(dialog[,force])
Close a dialog. Set force to true to bypass animations. Use (all,true) to close all opened dialogs at once.
RE: Error Activate of window '10025' refused because there are active modal dialogs - aka.kuro - 2023-08-01
Thanks for your answer, I already had dialog close set, which I may be putting wrong.
<content>
<onclick>Dialog.Close(dialog[,force])</onclick>
<include>skinshortcuts-group-searchmenu</include>
</content>
RE: Error Activate of window '10025' refused because there are active modal dialogs - jurialmunkey - 2023-08-01
You have to specify ID or name of the dialog you want to close
e.g. To force close DialogVideoInfo.xml without a WindowClose animation use:
Dialog.Close(movieinformation,force)
To close it but allow the WindowClose animation to run use
Dialog.Close(movieinformation)
See here for names / IDs of windows
https://kodi.wiki/view/Window_IDs
RE: Error Activate of window '10025' refused because there are active modal dialogs - Hitcher - 2023-08-01
And you can't add it to the content like that - it will need to be added to the corresponding item in your skinshortcuts-group-searchmenu.
RE: Error Activate of window '10025' refused because there are active modal dialogs - aka.kuro - 2023-08-01
I can't do it, it keeps giving me the same error. I add all the search engine code, see if I'm doing something wrong.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<window type="dialog" id="1107">
<defaultcontrol always="true">9001</defaultcontrol>
<include>dialogeffect</include>
<coordinates>
<left>0</left>
<top>0</top>
</coordinates>
<controls>
<control type="button" id="9001">
<description>Make sure we hit the first button in the group list and not the close window button</description>
<left>-16</left>
<top>-16</top>
<width>4</width>
<height>4</height>
<label></label>
<font></font>
<onfocus>down</onfocus>
<texturefocus></texturefocus>
<texturenofocus></texturenofocus>
<onleft>9000</onleft>
<onright>9000</onright>
<onup>9000</onup>
<ondown>Control.SetFocus(2,0)</ondown>
</control>
<include>BehindDialogDarkBackgroundDarkest</include>
<control type="group" id="9000">
<left>305</left>
<top>190</top>
<width>670</width>
<control type="group">
<width>340</width>
<height>30</height>
<control type="button" id="20">
<description>Close Window button</description>
<left>580</left>
<top>6</top>
<width>64</width>
<height>32</height>
<label></label>
<font></font>
<onclick>PreviousMenu</onclick>
<texturefocus>DialogCloseButton-focus.png</texturefocus>
<texturenofocus>DialogCloseButton.png</texturenofocus>
<onleft>2</onleft>
<onright>13</onright>
<onup>13</onup>
<ondown>2</ondown>
<visible>[System.GetBool(input.enablemouse) + Skin.HasSetting(ShowMouseControlButtons)]</visible>
</control>
</control>
<control type="group">
<left>200</left>
<top>-14</top>
<control type="image">
<description>Search Icon</description>
<left>54</left>
<top>24</top>
<width>26</width>
<height>26</height>
<aspectratio>keep</aspectratio>
<texture colordiffuse="FFebb217">icon_search_large.png</texture>
</control>
<control type="label">
<left>88</left>
<top>20</top>
<width>252</width>
<height>30</height>
<font>Regular26</font>
<textcolor>selected</textcolor>
<selectedcolor>selected</selectedcolor>
<align>left</align>
<aligny>center</aligny>
<label>$LOCALIZE[137]...</label>
</control>
</control>
<control type="panel" id="2">
<left>30</left>
<top>70</top>
<width>613</width>
<height>311</height>
<pagecontrol></pagecontrol>
<scrolltime>0</scrolltime>
<itemlayout height="62" width="306">
<control type="group">
<control type="image">
<left>16</left>
<top>14</top>
<width>32</width>
<height>32</height>
<texture>$INFO[ListItem.Icon]</texture>
<animation effect="fade" start="100" end="70" time="0" condition="true">Conditional</animation>
<animation effect="fade" start="70" end="25" time="0" condition="[[!String.IsEmpty(ListItem.Property(pvrtv)) + !Pvr.HasTVChannels] | [!String.IsEmpty(ListItem.Property(pvrradio)) + !Pvr.HasRadioChannels]]">Conditional</animation>
</control>
<control type="label">
<left>70</left>
<top>0</top>
<width>230</width>
<height>60</height>
<font>Regular22</font>
<textcolor>grey2</textcolor>
<align>left</align>
<aligny>center</aligny>
<label>$INFO[ListItem.Label]</label>
<description>$INFO[ListItem.Label2]</description>
<animation effect="fade" start="100" end="25" time="0" condition="[[!String.IsEmpty(ListItem.Property(pvrtv)) + !Pvr.HasTVChannels] | [!String.IsEmpty(ListItem.Property(pvrradio)) + !Pvr.HasRadioChannels]]">Conditional</animation>
</control>
<animation effect="fade" start="100" end="75" time="0" condition="[[!String.IsEmpty(ListItem.Property(pvrtv)) + !Pvr.HasTVChannels] | [!String.IsEmpty(ListItem.Property(pvrradio)) + !Pvr.HasRadioChannels]]">Conditional</animation>
</control>
</itemlayout>
<focusedlayout height="62" width="306">
<control type="group">
<control type="image">
<left>0</left>
<top>0</top>
<width>304</width>
<height>60</height>
<texture border="4">button-focus.png</texture>
</control>
<control type="image">
<left>0</left>
<top>0</top>
<width>304</width>
<height>60</height>
<texture border="4">button-focus.png</texture>
<animation effect="fade" start="100" end="30" time="0" condition="true">Conditional</animation>
<visible>![[!String.IsEmpty(ListItem.Property(pvrtv)) + !Pvr.HasTVChannels] | [!String.IsEmpty(ListItem.Property(pvrradio)) + !Pvr.HasRadioChannels]]</visible>
</control>
<control type="image">
<left>16</left>
<top>14</top>
<width>32</width>
<height>32</height>
<texture>$INFO[ListItem.Icon]</texture>
<animation effect="fade" start="100" end="25" time="0" condition="[[!String.IsEmpty(ListItem.Property(pvrtv)) + !Pvr.HasTVChannels] | [!String.IsEmpty(ListItem.Property(pvrradio)) + !Pvr.HasRadioChannels]]">Conditional</animation>
</control>
<control type="label">
<left>70</left>
<top>0</top>
<width>230</width>
<height>60</height>
<font>Regular22</font>
<textcolor>white</textcolor>
<align>left</align>
<aligny>center</aligny>
<label>$INFO[ListItem.Label]</label>
<description>$INFO[ListItem.Label2]</description>
</control>
</control>
</focusedlayout>
<content>
<include>skinshortcuts-group-searchmenu</include>
</content>
</control>
</control>
</controls>
</window>
I have not added the dialog.close because it does not work for me
RE: Error Activate of window '10025' refused because there are active modal dialogs - Hitcher - 2023-08-01
Need to see the contents of your skinshortcuts-group-searchmenu include.
RE: Error Activate of window '10025' refused because there are active modal dialogs - realcopacetic - 2023-08-02
I'm seeing some people with this issue on my Skin for the shutdownmenu, both seem to be having the issue on Linux and I can't replicate it on any of my platforms (Windows, MacOS, Android)...
In Overrides.xml, I have. the group override:
xml:
<groupoverride group="shutdownmenu" condition="Window.IsActive(DialogButtonMenu.xml)">Dialog.Close(all)</groupoverride>
Not sure if I'm missing anything else...
RE: Error Activate of window '10025' refused because there are active modal dialogs - jurialmunkey - 2023-08-02
@realcopacetic - You most likely need to add the force flag to skip the WindowClose animations. WindowClose animation will keep the window open until the animation completes, which means the window is still open when you trigger the activatewindow command. Alternative you use a silent AlarmClock command to delay the trigger until after your animations complete.
RE: Error Activate of window '10025' refused because there are active modal dialogs - aka.kuro - 2023-08-02
This is the code in script-skinshortcuts-includes.xml
Code:
<include name="skinshortcuts-group-searchmenu">
<item id="1">
<property name="id">$NUMBER[1]</property>
<property name="mainmenuid">14</property>
<label>$LOCALIZE[1037]</label>
<label2>Videos</label2>
<icon>DefaultAddonVideo.png</icon>
<thumb />
<property name="labelID">1037</property>
<property name="defaultID">1037</property>
<property name="translatedPath">ActivateWindow(videos,addons://sources/video/,return)</property>
<onclick>ActivateWindow(videos,addons://sources/video/,return)</onclick>
<property name="path">ActivateWindow(videos,addons://sources/video/,return)</property>
<property name="list">addons://sources/video/</property>
<visible>String.IsEqual(System.ProfileName,Master user)</visible>
<property name="group">searchmenu</property>
<property name="isSubmenu">True</property>
</item>
</include>
<include name="skinshortcuts-group-alt-searchmenu">
<item id="1">
<property name="id">$NUMBER[1]</property>
<property name="mainmenuid">14</property>
<label>$LOCALIZE[1037]</label>
<label2>Videos</label2>
<icon>DefaultAddonVideo.png</icon>
<thumb />
<property name="labelID">1037</property>
<property name="defaultID">1037</property>
<property name="translatedPath">ActivateWindow(videos,addons://sources/video/,return)</property>
<onclick>ActivateWindow(videos,addons://sources/video/,return)</onclick>
<property name="path">ActivateWindow(videos,addons://sources/video/,return)</property>
<property name="list">addons://sources/video/</property>
<visible>[String.IsEqual(System.ProfileName,Master user)] + String.IsEqual(Window(10000).Property(submenuVisibility),searchmenu)</visible>
<property name="group">searchmenu</property>
<property name="isSubmenu">True</property>
</item>
</include>
<include name="skinshortcuts-group-searchmenu-1">
<description>No items</description>
</include>
<include name="skinshortcuts-group-alt-searchmenu-1">
<description>No items</description>
</include>
<include name="skinshortcuts-group-searchmenu-2">
<description>No items</description>
</include>
<include name="skinshortcuts-group-alt-searchmenu-2">
<description>No items</description>
</include>
<include name="skinshortcuts-group-searchmenu-3">
<description>No items</description>
</include>
<include name="skinshortcuts-group-alt-searchmenu-3">
<description>No items</description>
</include>
<include name="skinshortcuts-group-searchmenu-4">
<description>No items</description>
</include>
<include name="skinshortcuts-group-alt-searchmenu-4">
<description>No items</description>
</include>
<include name="skinshortcuts-group-searchmenu-5">
<description>No items</description>
</include>
<include name="skinshortcuts-group-alt-searchmenu-5">
<description>No items</description>
</include>
RE: Error Activate of window '10025' refused because there are active modal dialogs - aka.kuro - 2023-08-02
jurialmunkey How could i do that.
RE: Error Activate of window '10025' refused because there are active modal dialogs - aka.kuro - 2023-08-02
(2023-08-02, 14:10)realcopacetic Wrote: " Coincidentally if I'm using linux.
RE: Error Activate of window '10025' refused because there are active modal dialogs - realcopacetic - 2023-08-03
(2023-08-02, 14:38)jurialmunkey Wrote: @realcopacetic - You most likely need to add the force flag to skip the WindowClose animations. WindowClose animation will keep the window open until the animation completes, which means the window is still open when you trigger the activatewindow command. Alternative you use a silent AlarmClock command to delay the trigger until after your animations complete.
Thanks for the suggestion. It was still not acting correctly then I eventually realized I had the filename as Overrides.xml instead of overrides.xml. I guess the file wasn't being recognized at all on Linux so the overrides were not being picked up. Fixing the case resolved the issues.
Lesson learned!
RE: Error Activate of window '10025' refused because there are active modal dialogs - jurialmunkey - 2023-08-03
Ah yeah, that'll do it. Linux and Mac are case sensitive filesystems. The one that always gets me is "DialogFullScreenInfo.xml" as I'm never sure if the S should be capitalised.
|