<div dir="ltr">Nice compact batch file. Looks like just a one line change for a different app. Its a shame MS doesn't somehow address this issue by default.</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 26, 2018 at 11:46 AM, Andras Lasso <span dir="ltr"><<a href="mailto:lasso@queensu.ca" target="_blank">lasso@queensu.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div class="m_4147584544719637760WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">See a batch file (start.bat) that closes the remote desktop connection and immediately starts the application (and some more discussion about the issue):
<a href="https://issues.slicer.org/view.php?id=4252" target="_blank">https://issues.slicer.org/<wbr>view.php?id=4252</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">This works, you don’t need to wait 1 minute but you can reconnect immediately. However, this approach is unusable for debugging (when you may need to restart
 the application in every few minutes and reconnect the debugger) and Windows remote desktop does not handle multiple monitors very well either, so I just ended up using a third-party remote desktop application.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Andras<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> vtkusers [mailto:<a href="mailto:vtkusers-bounces@vtk.org" target="_blank">vtkusers-bounces@vtk.<wbr>org</a>]
<b>On Behalf Of </b>Ken Martin<br>
<b>Sent:</b> Monday, February 26, 2018 11:33 AM<br>
<b>To:</b> Shawn Waldon <<a href="mailto:shawn.waldon@kitware.com" target="_blank">shawn.waldon@kitware.com</a>><br>
<b>Cc:</b> <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
<b>Subject:</b> Re: [vtkusers] Remote Desktop and the VTK window<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">A few options I have heard of<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">1) On windows 10 nvidia supports OpenGL 3.2 with remote desktop IF you have quadro cards. I do not believe they support it on regular consumer cards :-(<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">2) (I apologize for this one in advance) Some people have created small batch files that launch the application one minute later. So you remote desktop into the system. Fire off the batch file. Close the RD connection. The batch file starts
 the application with local OpenGL which is accelerated. Then a minute later you RD back in and your app is running well.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">3) (what I do) Use nomachine <a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.nomachine.com&data=02%7C01%7Classo%40queensu.ca%7Ca930d8c43969497e220608d57d36a969%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636552596078211057&sdata=DL%2BvlijgsINsjXao7gebXuZw0aSyuq03xAy0JA1SQKk%3D&reserved=0" target="_blank">https://www.<wbr>nomachine.com</a> 
 It works across Windows/linux/OSX and since it is video based it seems to always work.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Mon, Feb 26, 2018 at 11:13 AM, Shawn Waldon <<a href="mailto:shawn.waldon@kitware.com" target="_blank">shawn.waldon@kitware.com</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi Doug,<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Windows 10 supports OpenGL 3.2 (which VTK's OpenGL2 backend uses) over remote desktop... but it depends how the user initially logs into the machine.  If the initial login is over remote desktop, Windows decides
 "you don't need any graphics resources" and doesn't initialize the graphics card.  In this case, you get the behavior you describe where VTK crashes upon initialization.  However, if you initially log in locally and leave the session up, logging in over remote
 desktop gets the initialized graphics resources and VTK applications work fine.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Unfortunately I don't have a good solution for you if the developers who work from home are always working remotely.  Hopefully this helps though,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">Shawn<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Mon, Feb 26, 2018 at 10:55 AM, Doug Hoppes <<a href="mailto:dhoppes@mbfbioscience.com" target="_blank">dhoppes@mbfbioscience.com</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal">Hi all,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">                Got a question.  A number of our developers work from home.  The way that they run our vtk application is by using VPN into our work network and then use a remote
 connection into their machines.  <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">                The VTK application is using OpenGL2 and everybody is running Windows 10.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">                The issue is that the VTK window crashes immediately on startup of the window.  Is there some documentation about how we should be able to run a VTK application
 via remote desktop?<u></u><u></u></p>
<p class="MsoNormal"><span style="color:#888888"> <u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#888888">Doug<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
______________________________<wbr>_________________<br>
Powered by <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com&data=02%7C01%7Classo%40queensu.ca%7Ca930d8c43969497e220608d57d36a969%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636552596078211057&sdata=rwkLCa9WhcTQOGBchAqs5cSjK2MEupFT%2BREQ5ctenkg%3D&reserved=0" target="_blank">
www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Classo%40queensu.ca%7Ca930d8c43969497e220608d57d36a969%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636552596078211057&sdata=G0QIKGcyxVLgmyusJf4rpft1KjjBfn4boxAfsb7dwoA%3D&reserved=0" target="_blank">
http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vtk.org%2FWiki%2FVTK_FAQ&data=02%7C01%7Classo%40queensu.ca%7Ca930d8c43969497e220608d57d36a969%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636552596078211057&sdata=SgsOQydkKLwE6PCgNqnqh6XdH62yypGiX%2BMxIz8O4Jo%3D&reserved=0" target="_blank">
http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtkusers&data=02%7C01%7Classo%40queensu.ca%7Ca930d8c43969497e220608d57d36a969%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636552596078211057&sdata=wfFOdx9Q5StKABND%2F%2FGqx0wpJoEZEYKmuBh57MEfQtU%3D&reserved=0" target="_blank">
http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvtk.org%2Fmailman%2Flistinfo%2Fvtkusers&data=02%7C01%7Classo%40queensu.ca%7Ca930d8c43969497e220608d57d36a969%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636552596078211057&sdata=t5yM%2Frpjm%2Bia%2F8s4p2KmJ0OJJ8VTSKffKCBxl%2BaalVE%3D&reserved=0" target="_blank">https://vtk.org/mailman/<wbr>listinfo/vtkusers</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
______________________________<wbr>_________________<br>
Powered by <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com&data=02%7C01%7Classo%40queensu.ca%7Ca930d8c43969497e220608d57d36a969%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636552596078211057&sdata=rwkLCa9WhcTQOGBchAqs5cSjK2MEupFT%2BREQ5ctenkg%3D&reserved=0" target="_blank">
www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Classo%40queensu.ca%7Ca930d8c43969497e220608d57d36a969%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636552596078211057&sdata=G0QIKGcyxVLgmyusJf4rpft1KjjBfn4boxAfsb7dwoA%3D&reserved=0" target="_blank">
http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vtk.org%2FWiki%2FVTK_FAQ&data=02%7C01%7Classo%40queensu.ca%7Ca930d8c43969497e220608d57d36a969%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636552596078211057&sdata=SgsOQydkKLwE6PCgNqnqh6XdH62yypGiX%2BMxIz8O4Jo%3D&reserved=0" target="_blank">
http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtkusers&data=02%7C01%7Classo%40queensu.ca%7Ca930d8c43969497e220608d57d36a969%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636552596078211057&sdata=wfFOdx9Q5StKABND%2F%2FGqx0wpJoEZEYKmuBh57MEfQtU%3D&reserved=0" target="_blank">
http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvtk.org%2Fmailman%2Flistinfo%2Fvtkusers&data=02%7C01%7Classo%40queensu.ca%7Ca930d8c43969497e220608d57d36a969%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636552596078211057&sdata=t5yM%2Frpjm%2Bia%2F8s4p2KmJ0OJJ8VTSKffKCBxl%2BaalVE%3D&reserved=0" target="_blank">https://vtk.org/mailman/<wbr>listinfo/vtkusers</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">-- <u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal">Ken Martin PhD<u></u><u></u></p>
<div>
<p class="MsoNormal">Distinguished Engineer<br>
<span style="font-size:9.5pt">Kitware Inc.</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">28 Corporate Drive<br>
Clifton Park NY 12065<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif">This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee.  Access to this
 email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately
 and destroy the original message.  Thank you.</span><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Ken Martin PhD<div>Distinguished Engineer<br><span style="font-size:12.8px">Kitware Inc.</span><br></div><div>28 Corporate Drive<br>Clifton Park NY 12065<br><div><br></div><div><span style="font-size:10pt;font-family:Tahoma,sans-serif">This communication,
including all attachments, contains confidential and legally privileged
information, and it is intended only for the use of the addressee.  Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken in reliance on it is prohibited and may be
unlawful. If you received this communication in error please notify us
immediately and destroy the original message. 
Thank you.</span></div></div></div></div></div>
</div>