Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
Description
<p>This should:</p><ul><li>Fix the startup of MediaPortal on some computers</li><li>Fix deadlock application.doevents</li></ul><p style="margin: 10px 0px 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; background-color: rgb(240, 240, 240);">It seems that on some computer, D3D (more enumeratesetting) is not fully ready when MP start when windows start.</p><p style="margin: 10px 0px 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; background-color: rgb(240, 240, 240);">There is a native code to trying to find capapiblities for a hardcoded retry value but it failed.</p><p style="margin: 10px 0px 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; background-color: rgb(240, 240, 240);">When debugging with Markus, even with a big increase value it will always failed.</p><p style="margin: 10px 0px 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; background-color: rgb(240, 240, 240);">So the code change, try to Init MP from quite start until D3D device is fully ready.</p><p style="margin: 10px 0px 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; background-color: rgb(240, 240, 240);">So we have retry loop of Init / OnEnumeration() / AdapterInfo until it find D3D device and after 20 retries, MP try to continue and will failed with D3D device not ready.</p><p style="margin: 10px 0px 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; background-color: rgb(240, 240, 240);">So the new code try to find D3D stuff differently or more accurate.</p><p style="margin: 10px 0px 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; background-color: rgb(240, 240, 240);">It seems that it works for Markus but need to know if it works for other user too.</p><p style="margin: 10px 0px 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; background-color: rgb(240, 240, 240);">I have merge this stuff on my own build for regression. (If D3D is found directly, MP start as before).</p>
Attachments
Issue Links
- relates to
-
MP1-4131 MP hangs on Initializing DirectX when autostart with Windows is enabled
-
- Closed
-
- links to