Hi,
This thread has been opened so we can get to the root of the problem so we can introduce the fix.
The following TSWriter is for 1.3.0 Beta.
To use and test.
Stop TV Server.
Make a backup of your original TSWriter.ax
Download the attached TSWriter.zip and extract the file to [%Program Files%]/Team MediaPortal/TV Server/
Start the TV Server.
Wait till/if the error occurs again.
Upload your TV.log and TSWriter.log to this thread.
The more logs we get the better.
TSWriter.ax
v1 Initial Test [FILE DELETED: superseded]
v2 Loop catcher in EPG Decoder sub. [FILE DELETED: superseded]
v3 Additional locks to make the TSWriter thread safe. [FILE DELETED: superseded]
v4 Edited out commented line in EPG Decoder which was setting m_bParseEPG=false. Changed the CRC32 value storage from int to DWORD. Checked all locks to ensure they should be there. [FILE DELETED: superseded]
v5 Diskrecorder wasn't updating continuity counter on a stream if it became encrypted/corrupt. [FILE DELETED: superseded]
v6 Removed v5 changes, removed an autolock in the filter interface. [FILE DELETED: superseded]
v7 Removed cascaded Autolock in GetTSChannel from TSWriter. [FILE DELETED: superseded]
v8 Added Critical Section lock to Audio Video Analyzer. [FILE DELETED: superseded]
v9 Added Critical Section lock to PMT grabber.
v10 Removed 2 Autolocks from AddChannel/RemoveChannel from TSChannel
v11 Added further locks
v12 Added EPG grabber abort when all channels are deleted.
MPFileWriter.ax
v13 Added extra logging in EPG Decoder to trap deadlock.
v1 Removed Autolock from filter interface. [FILE DELETED: superseded]
v2 Removed potential Autolock cascade
EDIT: Patched installer files for MP 1.5.0 Pre-release are here - https://forum.team-mediaportal.com/...ock-potential-fix.114898/page-24#post-1027981
EDIT: Patch files for MP 1.5.0 Final are here - https://forum.team-mediaportal.com/...ock-potential-fix.114898/page-26#post-1030415
This thread has been opened so we can get to the root of the problem so we can introduce the fix.
The following TSWriter is for 1.3.0 Beta.
To use and test.
Stop TV Server.
Make a backup of your original TSWriter.ax
Download the attached TSWriter.zip and extract the file to [%Program Files%]/Team MediaPortal/TV Server/
Start the TV Server.
Wait till/if the error occurs again.
Upload your TV.log and TSWriter.log to this thread.
The more logs we get the better.
TSWriter.ax
v1 Initial Test [FILE DELETED: superseded]
v2 Loop catcher in EPG Decoder sub. [FILE DELETED: superseded]
v3 Additional locks to make the TSWriter thread safe. [FILE DELETED: superseded]
v4 Edited out commented line in EPG Decoder which was setting m_bParseEPG=false. Changed the CRC32 value storage from int to DWORD. Checked all locks to ensure they should be there. [FILE DELETED: superseded]
v5 Diskrecorder wasn't updating continuity counter on a stream if it became encrypted/corrupt. [FILE DELETED: superseded]
v6 Removed v5 changes, removed an autolock in the filter interface. [FILE DELETED: superseded]
v7 Removed cascaded Autolock in GetTSChannel from TSWriter. [FILE DELETED: superseded]
v8 Added Critical Section lock to Audio Video Analyzer. [FILE DELETED: superseded]
v9 Added Critical Section lock to PMT grabber.
v10 Removed 2 Autolocks from AddChannel/RemoveChannel from TSChannel
v11 Added further locks
v12 Added EPG grabber abort when all channels are deleted.
MPFileWriter.ax
v13 Added extra logging in EPG Decoder to trap deadlock.
v1 Removed Autolock from filter interface. [FILE DELETED: superseded]
v2 Removed potential Autolock cascade
EDIT: Patched installer files for MP 1.5.0 Pre-release are here - https://forum.team-mediaportal.com/...ock-potential-fix.114898/page-24#post-1027981
EDIT: Patch files for MP 1.5.0 Final are here - https://forum.team-mediaportal.com/...ock-potential-fix.114898/page-26#post-1030415
Attachments
Last edited by a moderator: