home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
Plugin Development
Questions on writing my first plugin
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="huha" data-source="post: 875943" data-attributes="member: 63847"><p>Albert, I did a fresh install of the Easter build in the program folder. I have none of my plugins installed. Now i copied the HelloWorld plugin and included in plugin.xml:</p><p> </p><p><DependsOn></p><p> <!-- SlimTvClient --></p><p> <!--<PluginReference PluginId="{63040BB4-4638-49b7-A82F-F4530D4D43B9}"/>--></p><p> </DependsOn></p><p> </p><p>With the comments everything works fine.</p><p>If I remove the comment I am getting now a different error message</p><p> </p><p>[2012-06-19 22:26:13,608] [592 ] [Main ] [INFO ] - PluginManager: Plugin 'Media' (id '15fb35f7-8c85-4404-bc67-bff28446158a') enabled.</p><p>[2012-06-19 22:26:13,608] [592 ] [Main ] [DEBUG] - PluginManager: Trying to activate plugin 'Media' (id '15fb35f7-8c85-4404-bc67-bff28446158a')</p><p>[2012-06-19 22:26:13,608] [592 ] [Main ] [DEBUG] - PluginManager: Checking activation of plugin dependency '1aff4467-64b0-4ca1-af28-9aedf3525bce' for plugin 'Media'</p><p>[2012-06-19 22:26:13,608] [592 ] [Main ] [DEBUG] - PluginManager: Checking activation of plugin dependency 'b765a4b6-f455-4941-bdae-2ce45208bfeb' for plugin 'Media'</p><p>[2012-06-19 22:26:13,608] [592 ] [Main ] [DEBUG] - PluginManager: Checking activation of plugin dependency '5d239050-02b8-4f58-8301-7630a1c4cf85' for plugin 'Media'</p><p>[2012-06-19 22:26:13,655] [639 ] [Main ] [FATAL] - Error executing application</p><p>MediaPortal.Common.PluginManager.Exceptions.PluginLockException: Plugin 'SkinBase' (id: '5d239050-02b8-4f58-8301-7630a1c4cf85') cannot be locked for state dependency - it's currently changing its state ---> System.Threading.LockRecursionException: Eine Aktualisierungssperre kann bei aktivierter Lesesperre nicht eingerichtet werden.</p><p> bei System.Threading.ReaderWriterLockSlim.TryEnterUpgradeableReadLock(Int32 millisecondsTimeout)</p><p> bei System.Threading.ReaderWriterLockSlim.TryEnterUpgradeableReadLock(TimeSpan timeout)</p><p> bei MediaPortal.Common.PluginManager.PluginRuntime.LockForStateDependency(Boolean upgradableToWriteLock)</p><p> --- Ende der internen Ausnahmestapelüberwachung ---</p><p> bei MediaPortal.Common.PluginManager.PluginRuntime.LockForStateDependency(Boolean upgradableToWriteLock)</p><p> bei MediaPortal.Common.Services.PluginManager.PluginManager.LockPluginStateDependency(PluginRuntime plugin, Boolean upgradableToWriteLock, PluginState[] statesToLock)</p><p> bei MediaPortal.Common.Services.PluginManager.PluginManager.TryActivate(PluginRuntime plugin)</p><p> bei MediaPortal.Common.Services.PluginManager.PluginManager.TryActivate(PluginRuntime plugin)</p><p> bei MediaPortal.Common.Services.PluginManager.PluginManager.TryEnable(PluginRuntime plugin, Boolean doAutoActivate)</p><p> bei MediaPortal.Common.Services.PluginManager.PluginManager.TryEnable(PluginRuntime plugin, Boolean doAutoActivate)</p><p> bei MediaPortal.Common.Services.PluginManager.PluginManager.TryEnable(PluginRuntime plugin, Boolean doAutoActivate)</p><p> bei MediaPortal.Common.Services.PluginManager.PluginManager.Startup(Boolean maintenanceMode)</p><p> bei MediaPortal.Client.ApplicationLauncher.Main(String[] args)</p><p> </p><p>I am not able to get any plugin to run with the dependency setting on the SlimTvclient</p></blockquote><p></p>
[QUOTE="huha, post: 875943, member: 63847"] Albert, I did a fresh install of the Easter build in the program folder. I have none of my plugins installed. Now i copied the HelloWorld plugin and included in plugin.xml: <DependsOn> <!-- SlimTvClient --> <!--<PluginReference PluginId="{63040BB4-4638-49b7-A82F-F4530D4D43B9}"/>--> </DependsOn> With the comments everything works fine. If I remove the comment I am getting now a different error message [2012-06-19 22:26:13,608] [592 ] [Main ] [INFO ] - PluginManager: Plugin 'Media' (id '15fb35f7-8c85-4404-bc67-bff28446158a') enabled. [2012-06-19 22:26:13,608] [592 ] [Main ] [DEBUG] - PluginManager: Trying to activate plugin 'Media' (id '15fb35f7-8c85-4404-bc67-bff28446158a') [2012-06-19 22:26:13,608] [592 ] [Main ] [DEBUG] - PluginManager: Checking activation of plugin dependency '1aff4467-64b0-4ca1-af28-9aedf3525bce' for plugin 'Media' [2012-06-19 22:26:13,608] [592 ] [Main ] [DEBUG] - PluginManager: Checking activation of plugin dependency 'b765a4b6-f455-4941-bdae-2ce45208bfeb' for plugin 'Media' [2012-06-19 22:26:13,608] [592 ] [Main ] [DEBUG] - PluginManager: Checking activation of plugin dependency '5d239050-02b8-4f58-8301-7630a1c4cf85' for plugin 'Media' [2012-06-19 22:26:13,655] [639 ] [Main ] [FATAL] - Error executing application MediaPortal.Common.PluginManager.Exceptions.PluginLockException: Plugin 'SkinBase' (id: '5d239050-02b8-4f58-8301-7630a1c4cf85') cannot be locked for state dependency - it's currently changing its state ---> System.Threading.LockRecursionException: Eine Aktualisierungssperre kann bei aktivierter Lesesperre nicht eingerichtet werden. bei System.Threading.ReaderWriterLockSlim.TryEnterUpgradeableReadLock(Int32 millisecondsTimeout) bei System.Threading.ReaderWriterLockSlim.TryEnterUpgradeableReadLock(TimeSpan timeout) bei MediaPortal.Common.PluginManager.PluginRuntime.LockForStateDependency(Boolean upgradableToWriteLock) --- Ende der internen Ausnahmestapelüberwachung --- bei MediaPortal.Common.PluginManager.PluginRuntime.LockForStateDependency(Boolean upgradableToWriteLock) bei MediaPortal.Common.Services.PluginManager.PluginManager.LockPluginStateDependency(PluginRuntime plugin, Boolean upgradableToWriteLock, PluginState[] statesToLock) bei MediaPortal.Common.Services.PluginManager.PluginManager.TryActivate(PluginRuntime plugin) bei MediaPortal.Common.Services.PluginManager.PluginManager.TryActivate(PluginRuntime plugin) bei MediaPortal.Common.Services.PluginManager.PluginManager.TryEnable(PluginRuntime plugin, Boolean doAutoActivate) bei MediaPortal.Common.Services.PluginManager.PluginManager.TryEnable(PluginRuntime plugin, Boolean doAutoActivate) bei MediaPortal.Common.Services.PluginManager.PluginManager.TryEnable(PluginRuntime plugin, Boolean doAutoActivate) bei MediaPortal.Common.Services.PluginManager.PluginManager.Startup(Boolean maintenanceMode) bei MediaPortal.Client.ApplicationLauncher.Main(String[] args) I am not able to get any plugin to run with the dependency setting on the SlimTvclient [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Questions on writing my first plugin
Contact us
RSS
Top
Bottom