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 1
Support
Electronic Program Guide
No guide info added due to a MYSQL deadlock
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="doskabouter" data-source="post: 1287361" data-attributes="member: 98267"><p>I might have found something...</p><p></p><p>Stacktrace of deadlock points to this line: <a href="https://github.com/MediaPortal/MediaPortal-1/blob/9b5dbb1c48d3f6435bf3120fee092971febcad7f/TvEngine3/TVLibrary/Plugins/WebEPG/WebEPGPlugin/DatabaseEPGDataSink.cs#L266" target="_blank">MediaPortal-1/DatabaseEPGDataSink.cs at 9b5dbb1c48d3f6435bf3120fee092971febcad7f · MediaPortal/MediaPortal-1</a></p><p>but analyzing further I see that when calling <a href="https://github.com/MediaPortal/MediaPortal-1/blob/9b5dbb1c48d3f6435bf3120fee092971febcad7f/TvEngine3/TVLibrary/Plugins/WebEPG/WebEPGPlugin/DatabaseEPGDataSink.cs#L272" target="_blank">MediaPortal-1/DatabaseEPGDataSink.cs at 9b5dbb1c48d3f6435bf3120fee092971febcad7f · MediaPortal/MediaPortal-1</a> the inserting of programs is done in a separate thread to increase performance.</p><p></p><p>So removing programs and inserting programs of different channels from different threads can lead to deadlocks (something rather technical explanation given by mysql but I still think this shouldn't be happening at all)</p><p></p><p>Analyzing further I see that after or before inserting of programs this <a href="https://github.com/MediaPortal/MediaPortal-1/blob/6691182eefdbec7ef1c5dd349cb45377e69946c2/TvEngine3/TVLibrary/TVDatabase/TvBusinessLayer/BusinessLayer.cs#L2283" target="_blank">MediaPortal-1/BusinessLayer.cs at 6691182eefdbec7ef1c5dd349cb45377e69946c2 · MediaPortal/MediaPortal-1</a> is executed (in the same thread as the inserts).</p><p></p><p>Summarizing: before inserting programs all old programs are removed for specific channels, and while inserting, old programs are removed for all channels...</p><p></p><p>Solution seem to deleting the first removeoldprograms loop (as it is a: running in a different thread, and b: completely superfluous).</p><p>Testing that myself now, dll's (for tv service 1.29) attached so others can test too</p><p></p><p>Edit: first day grabbing went without errors!</p></blockquote><p></p>
[QUOTE="doskabouter, post: 1287361, member: 98267"] I might have found something... Stacktrace of deadlock points to this line: [URL='https://github.com/MediaPortal/MediaPortal-1/blob/9b5dbb1c48d3f6435bf3120fee092971febcad7f/TvEngine3/TVLibrary/Plugins/WebEPG/WebEPGPlugin/DatabaseEPGDataSink.cs#L266']MediaPortal-1/DatabaseEPGDataSink.cs at 9b5dbb1c48d3f6435bf3120fee092971febcad7f · MediaPortal/MediaPortal-1[/URL] but analyzing further I see that when calling [URL='https://github.com/MediaPortal/MediaPortal-1/blob/9b5dbb1c48d3f6435bf3120fee092971febcad7f/TvEngine3/TVLibrary/Plugins/WebEPG/WebEPGPlugin/DatabaseEPGDataSink.cs#L272']MediaPortal-1/DatabaseEPGDataSink.cs at 9b5dbb1c48d3f6435bf3120fee092971febcad7f · MediaPortal/MediaPortal-1[/URL] the inserting of programs is done in a separate thread to increase performance. So removing programs and inserting programs of different channels from different threads can lead to deadlocks (something rather technical explanation given by mysql but I still think this shouldn't be happening at all) Analyzing further I see that after or before inserting of programs this [URL='https://github.com/MediaPortal/MediaPortal-1/blob/6691182eefdbec7ef1c5dd349cb45377e69946c2/TvEngine3/TVLibrary/TVDatabase/TvBusinessLayer/BusinessLayer.cs#L2283']MediaPortal-1/BusinessLayer.cs at 6691182eefdbec7ef1c5dd349cb45377e69946c2 · MediaPortal/MediaPortal-1[/URL] is executed (in the same thread as the inserts). Summarizing: before inserting programs all old programs are removed for specific channels, and while inserting, old programs are removed for all channels... Solution seem to deleting the first removeoldprograms loop (as it is a: running in a different thread, and b: completely superfluous). Testing that myself now, dll's (for tv service 1.29) attached so others can test too Edit: first day grabbing went without errors! [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Electronic Program Guide
No guide info added due to a MYSQL deadlock
Contact us
RSS
Top
Bottom