{"id":5715,"date":"2018-10-26T11:48:31","date_gmt":"2018-10-26T11:48:31","guid":{"rendered":"https:\/\/www.use-snip.com\/kb\/?post_type=ht_kb&#038;p=5715"},"modified":"2020-07-26T23:37:01","modified_gmt":"2020-07-26T23:37:01","slug":"5715","status":"publish","type":"ht_kb","link":"https:\/\/www.use-snip.com\/kb\/knowledge-base\/5715\/","title":{"rendered":"Server 2012 Blank Maps, solved"},"content":{"rendered":"<p>A few users running copies of <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> on remote machines (often with TeamViewer or with Microsoft&#8217;s MSTSC Client) have reported blank screens at times for both Maps and Documents.\u00a0 While <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> runs fine (servicing clients etc.), none of the reports can be viewed. \u00a0 <a href=\"https:\/\/www.use-snip.com\/kb\/knowledge-base\/blank-screens-with-maps\/\" target=\"_blank\" rel=\"noopener noreferrer\">This article<\/a> describes this issue further and states that incorrect screen drivers were partly to blame.\u00a0 That is correct, but not the full story.<\/p>\n<p>The problem is most prevalent on server OS machines such as <strong>Windows Server 2012<\/strong> (all releases).\u00a0 In some of these machines OpenGL is not correctly started, in a few there is simply no OpenGL support present.\u00a0 [And this is a different issue than trying to run <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> on a<em> single-core<\/em> <em>under-powered<\/em> machine.\u00a0 A two-core machine is highly recommended.]<\/p>\n<h2>Solution #1, starting with a script<\/h2>\n<p><span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> operator Alan Merkel describes the root cause and how to overcome it in the below email.\u00a0 In essence, <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> needs to be started locally for the correct local screen drivers to work.<\/p>\n<h4 style=\"text-align: right;\"><em><span style=\"color: #008000;\">Update, Late 2018<\/span><\/em><\/h4>\n<p style=\"padding-left: 60px;\">The root issue involved in this is the use of the desktop openGL drivers vs the remote drivers.\u00a0 From <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> release 2.07 onward, some additional startup code has been added to ensure the use of the correct drivers.\u00a0 This is observed to fix the problem of &#8216;blank&#8217; document screens for some uses, but we are not sure if it will address it for all user machines.\u00a0 The machines that seems to be most often affected have settings or both English and another language installed.<\/p>\n<div class=\"moz-cite-prefix\">\n<h3>The Windows Server Screen Issue &amp; Solution<\/h3>\n<\/div>\n<div><\/div>\n<div class=\"moz-cite-prefix\">On 10\/16\/2018 6:31 PM, Alan Merkel wrote:<\/div>\n<div>\n<p style=\"padding-left: 30px;\">First, thanks for a GREAT hunk of software &#8211; well done sir.<br \/>\nNow on to the what, why, and fix for the map issue&#8230;<\/p>\n<\/div>\n<div style=\"padding-left: 30px;\">\n<p style=\"padding-left: 30px;\">What &#8211;<\/p>\n<p style=\"padding-left: 60px;\">Described on your website very well.\u00a0 Blank screen on Map viewer window.<\/p>\n<p style=\"padding-left: 30px;\">Why &#8211;<\/p>\n<p style=\"padding-left: 60px;\">The software (not your fault I think) does not like the remote desktop protocol for the graphics.<\/p>\n<p style=\"padding-left: 30px;\">How to make it happen &#8211;<\/p>\n<p style=\"padding-left: 60px;\">Close SNIP.\u00a0 RDP (MSTSC Client) into the server.\u00a0 Open SNIP.\u00a0 Blank map screen.<\/p>\n<p style=\"padding-left: 30px;\">How to make it NOT happen &#8211;<\/p>\n<p style=\"padding-left: 60px;\">Close SNIP.\u00a0 From the server console open SNIP.\u00a0 Working map screen.<\/p>\n<p style=\"padding-left: 60px;\">Next, RDP into the server as the logged in user from the console session.\u00a0 Working map screen.<\/p>\n<p style=\"padding-left: 30px;\">How to prove it &#8211;<\/p>\n<p style=\"padding-left: 60px;\">From the RDP session (previous step) close, then re-open SNIP.\u00a0 Blank map screen.<\/p>\n<p style=\"padding-left: 30px;\">Screen resolution and video drivers make no difference.\u00a0 Only where it was started from (console or RDP).<\/p>\n<p style=\"padding-left: 30px;\">Can I run SNIP as a service to avoid this, and how?<\/p>\n<\/div>\n<div style=\"padding-left: 30px;\">\n<p style=\"padding-left: 30px;\">Thanks again,<br \/>\nAlan Merkel<br \/>\nMerkel &amp; Associates, Inc.<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<h3>A useful Script<\/h3>\n<p>In a subsequent email Alan provided a clever but simple batch script which can be placed alongside the Windows copy of <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> (typically found at the folder: <em>C:\\Program Files (x86)\\SNIP\\bin<\/em>) and run to overcome this.\u00a0\u00a0 Here is the resulting script, slightly modified by <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> developers.\u00a0 This will be included in all future <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> installer releases.<\/p>\n<pre dir=\"ltr\" style=\"padding-left: 30px;\">@echo off\r\nREM The active session has an arrow as the first character\r\nsetlocal EnableDelayedExpansion\r\nFOR \/F %%A in ('qwinsta') do (\r\nset tempSessionName=%%A\r\nif \"!tempSessionName:~0,1!\"==\"&gt;\" \u00a0(\u00a0\r\n@echo off\r\ntscon.exe !tempSessionName:~1! \/v \/dest:console\u00a0\r\n)\r\n)\r\ncd \"C:\\Program Files (x86)\\SNIP\\bin\"\r\nstart simpleNTRIP.exe\r\ncls\r\nexit<\/pre>\n<p>This is quite similar to the script which is used to create environment variables and then to start <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> in Ubuntu.\u00a0 Be sure to edit the path to the <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> executable\u00a0 (<em>simpleNTRIP.exe<\/em>) if you have installed in another folder.<\/p>\n<h3>And in reply to<\/h3>\n<blockquote><p>Can I run SNIP as a service to avoid this, and how?<\/p><\/blockquote>\n<p>We are developing a suitable solution to this now, which will also integrate with our pending 24\/7 monitoring service.\u00a0 Because <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> manages several open log files containing the state of the machine, data logs, and users, using simple 3rd party tools to periodically hard restart the process can run the risk of damaging these files. This is not recommended.\u00a0 Because <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> is a GUI application it does require access to the desktop.<\/p>\n<p>Some deployments report that they are using utility tools like <a href=\"https:\/\/www.howtogeek.com\/50786\/using-srvstart-to-run-any-application-as-a-windows-service\/\" target=\"_blank\" rel=\"noopener noreferrer\">SrvStart<\/a> to run <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> as a service in this way.<\/p>\n<h2>Solution #2, adding OpenGL support in software<\/h2>\n<p><span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> operator Ola Torgeir Bue has found a 3rd Party OpenGL software DLL called &#8220;Mesa3D&#8221; that resolves the problem as well.\u00a0\u00a0 We have used it here on other Windows Server 2012 machines as well.\u00a0 In the machines we have seen with this issue, the default language and keyboard has never been English (but it is not clear if this is part of the cause).<\/p>\n<p>The link is:\u00a0 <a href=\"https:\/\/fdossena.com\/?p=mesa\/index.frag\">https:\/\/fdossena.com\/?p=mesa\/index.frag <\/a><\/p>\n<p>From that site:<\/p>\n<blockquote><p>Mesa3D can be used to provide a Software Renderer to OpenGL applications. It is especially useful to run old apps and games that use an old version of OpenGL and do not work properly on modern hardware. Please note that this renderer is far from perfect, and many games will not work.<\/p><\/blockquote>\n<p>And it works for <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span>.<\/p>\n<p>The project is in active development\u00a0 (Version 19.04 released May 9th 2019).<br \/>\nWhile intended for use with older Windows PCs, it seems to work fine on Windows Servers.<br \/>\nBe sure to take a look at the open license as well: https:\/\/mesa3d.org\/license.html<\/p>\n<p>Simply download it, extract it, and place it alongside simpleNTRIP.exe in your <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> \/bin folder.\u00a0 Restart <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span>.\u00a0 That&#8217;s it.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A few users running copies of SNIP on remote machines (often with TeamViewer or with Microsoft&#8217;s MSTSC Client) have reported blank screens at times for both Maps and Documents.\u00a0 While SNIP runs fine (servicing clients etc.), none of the reports can be viewed. \u00a0 This article describes this issue further [&hellip;]<\/p>\n","protected":false},"author":13,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"ht-kb-category":[115],"ht-kb-tag":[416,92],"class_list":["post-5715","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-getting-started","ht_kb_tag-remote-desktop","ht_kb_tag-server"],"_links":{"self":[{"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb\/5715","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/comments?post=5715"}],"version-history":[{"count":23,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb\/5715\/revisions"}],"predecessor-version":[{"id":6305,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb\/5715\/revisions\/6305"}],"wp:attachment":[{"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/media?parent=5715"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=5715"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=5715"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}