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
Quality Assurance
Bugreports
Archive
No connection could be made because the target machine actively refused it
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="mm1352000" data-source="post: 1131751" data-attributes="member: 82144"><p>Adding log output is unlikely to help.</p><p>Did you try to attach a debugger to the TV service (or try to run the TV service with VS) as I previously suggested? That is probably the most efficient way to find when/where the crash is occurring.</p><p></p><p></p><p>So you think a background thread that is running in the TV service (eg. the scheduler thread) is causing the crash? If this were the case I would expect to see output in the logs. I doubt your theory because I don't see log output.</p><p></p><p></p><p>Isn't your plugin using the TV control interface? If so, you should be checking the functions in TvServer.cs, not TVController.cs.</p><p>Command flow is: plugin -> TV control -> .NET remoting -> TV controller.</p><p>You are missing quite a lot of the code when you only check the TV controller.</p><p></p><p></p><p>After the command finishes (control passes back to your plugin) TV Server just waits for another command. See the "main loop":</p><p><a href="https://github.com/MediaPortal/MediaPortal-1/blob/master/TvEngine3/TVLibrary/TvService/Service1.cs#L945" target="_blank">https://github.com/MediaPortal/MediaPortal-1/blob/master/TvEngine3/TVLibrary/TvService/Service1.cs#L945</a></p><p></p><p></p><p>The function of the TV service is mostly just to obey commands from clients or plugins. If there are no commands then TV service will be doing nothing.</p><p>In other words: <strong>your plugin</strong> is responsible for what happens between StartTimeShifting() and StopTimeShifting().</p><p></p><p></p><p>Of course! There are many background threads running in the TV service. You can see them if you attach a debugger.</p><p></p><p>Having said that, as I said above: I don't think the crash is caused by an existing thread. Two reasons:</p><ol> <li data-xf-list-type="ol">No log output.</li> <li data-xf-list-type="ol">TV service does not normally crash like this.</li> </ol><p>I think something in your environment or that you have introduced - most likely something about your plugin - is causing the crash. I can't tell you what it is because I'm not able to test your plugin, and I don't even have the code to look at.</p><p></p><p>It's fine if you don't believe me. You'll just have to check every thread in the TV service.</p><p></p><p></p><p>I don't understand your question.</p></blockquote><p></p>
[QUOTE="mm1352000, post: 1131751, member: 82144"] Adding log output is unlikely to help. Did you try to attach a debugger to the TV service (or try to run the TV service with VS) as I previously suggested? That is probably the most efficient way to find when/where the crash is occurring. So you think a background thread that is running in the TV service (eg. the scheduler thread) is causing the crash? If this were the case I would expect to see output in the logs. I doubt your theory because I don't see log output. Isn't your plugin using the TV control interface? If so, you should be checking the functions in TvServer.cs, not TVController.cs. Command flow is: plugin -> TV control -> .NET remoting -> TV controller. You are missing quite a lot of the code when you only check the TV controller. After the command finishes (control passes back to your plugin) TV Server just waits for another command. See the "main loop": [URL]https://github.com/MediaPortal/MediaPortal-1/blob/master/TvEngine3/TVLibrary/TvService/Service1.cs#L945[/URL] The function of the TV service is mostly just to obey commands from clients or plugins. If there are no commands then TV service will be doing nothing. In other words: [B]your plugin[/B] is responsible for what happens between StartTimeShifting() and StopTimeShifting(). Of course! There are many background threads running in the TV service. You can see them if you attach a debugger. Having said that, as I said above: I don't think the crash is caused by an existing thread. Two reasons: [LIST=1] [*]No log output. [*]TV service does not normally crash like this. [/LIST] I think something in your environment or that you have introduced - most likely something about your plugin - is causing the crash. I can't tell you what it is because I'm not able to test your plugin, and I don't even have the code to look at. It's fine if you don't believe me. You'll just have to check every thread in the TV service. I don't understand your question. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Quality Assurance
Bugreports
Archive
No connection could be made because the target machine actively refused it
Contact us
RSS
Top
Bottom