{"id":12005,"date":"2019-11-22T01:13:00","date_gmt":"2019-11-21T23:13:00","guid":{"rendered":"http:\/\/159.69.82.204\/win\/?p=12005"},"modified":"2022-11-04T11:57:12","modified_gmt":"2022-11-04T10:57:12","slug":"windows-app-g-blockiert-das-herunterfahren","status":"publish","type":"post","link":"https:\/\/borncity.com\/win\/2019\/11\/22\/windows-app-g-blockiert-das-herunterfahren\/","title":{"rendered":"Windows: App &lsquo;G&rsquo; blocks shutdown"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" style=\"float: left; margin: 0px 10px 0px 0px; display: inline\" src=\"http:\/\/www.borncity.com\/blog\/wp-content\/uploads\/2013\/03\/winb.jpg\" width=\"58\" align=\"left\" height=\"58\">[<a href=\"https:\/\/www.borncity.com\/blog\/?p=225136\" target=\"_blank\" rel=\"noopener noreferrer\">German<\/a>]Some users are annoyed by a strange behavior. The shutdown is blocked by a strange app 'G' &#8211; which makes many suspect a malware infection. It is simply a Windows bug that will soon be fixed.<\/p>\n<p><!--more--><\/p>\n<h2>The error in detail<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" src=\"https:\/\/vg01.met.vgwort.de\/na\/999f4c7cb89d431a9300920843808f6a\" width=\"1\" height=\"1\">If you search the Internet for the term 'App G prevents shutting down', there are hundreds of hits. The error runs from Windows 7 to Windows 10 through the operating system versions. On reddit.com there is <a href=\"https:\/\/www.reddit.com\/r\/techsupport\/comments\/70xke5\/app_called_g_is_preventing_shutdown_or_restart\/\" target=\"_blank\" rel=\"noopener noreferrer\">this post<\/a> for example:<\/p>\n<blockquote>\n<p>App called \"g\" is preventing shutdown or restart<\/p>\n<p>Every once and a while there's this app called \"g\" that prevents my pc from shuting down but I have no idea what it is , does anyone have and idea on what tjis could be?<\/p>\n<\/blockquote>\n<p>A user complains that an app named G interferes with the shutdown process. Another user confirms this in the same thread. This <a href=\"https:\/\/www.reddit.com\/r\/techsupport\/comments\/85ekr1\/program_called_g_preventing_shutdown\/\" target=\"_blank\" rel=\"noopener noreferrer\">reddit.com post<\/a> describes the same thing. best\u00e4tigt das Ganze im gleichen Thread. <\/p>\n<p><img decoding=\"async\" title=\"App G blockt Shutdown\" alt=\"App G blockt Shutdown\" src=\"https:\/\/i.imgur.com\/5Gb2Xq8.jpg\"><\/p>\n<p>The screenshot above shows this display during shutdown. The whole thing is described at superuser.com <a href=\"https:\/\/superuser.com\/questions\/1200037\/app-is-preventing-shutdown-or-restart\" target=\"_blank\" rel=\"noopener noreferrer\">in this article<\/a>.&nbsp;&nbsp; <\/p>\n<blockquote>\n<p>App is preventing shutdown or restart<\/p>\n<p>After updating my Windows 10 to creators update (build 15063.138) when I restart or shutdown the PC a screen appears and shows a 'G' app which is preventing the operation.  <\/p>\n<p>Is there a way to determine which application it is, or find out more details about it?  <\/p>\n<p>I do not see any \"g\" running process or installed application in my system.<\/p>\n<\/blockquote>\n<p>Also in the <a href=\"https:\/\/steamcommunity.com\/discussions\/forum\/12\/1700541698682546020\/\" target=\"_blank\" rel=\"noopener noreferrer\">Steam-Community<\/a>, in Microsoft Answers forum (<a href=\"https:\/\/answers.microsoft.com\/en-us\/windows\/forum\/windows_10-power\/mysterious-app-called-g-preventing-shutdown\/c2f750ed-f480-4a09-94ee-42d93704c0e4?auth=1\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a> and <a href=\"https:\/\/answers.microsoft.com\/en-us\/windows\/forum\/windows_10-power\/phantom-app-preventing-restart-or-shutdown-on\/a0aa3e4e-7f24-4cb7-ba44-ec18717c0ae1?auth=1&amp;page=1\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a>) the problem is reported without a solution being found. <a href=\"https:\/\/www.reddit.com\/r\/de_EDV\/comments\/a0crrv\/programm_g_verhindert_das_herunterfahren\/\" target=\"_blank\" rel=\"noopener noreferrer\">There is also a German reddit.com thread<\/a> on the topic. As a rule, those affected are advised to check the system for malware. At Bleeping Computer, for example, you can find <a href=\"https:\/\/web.archive.org\/web\/20190327031901\/https:\/\/www.bleepingcomputer.com\/forums\/t\/669906\/app-is-preventing-shutdown-gexe\/\" target=\"_blank\" rel=\"noopener noreferrer\">this forum thread<\/a> with such hints.&nbsp; <\/p>\n<h2>A Bug in Windows<\/h2>\n<p>The error has passed me by so far &#8211; but Woody Leonhard found the cause and described it in <a href=\"https:\/\/www.computerworld.com\/article\/3455160\/mysterious-app-keeps-you-from-shutting-down-or-does-it.html\" target=\"_blank\" rel=\"noopener noreferrer\">this&nbsp; Computer World article<\/a>. Also Woody noticed that there are hundreds of hits on the internet where the problem is described. People are sent to search for malware, but this is without result. <\/p>\n<p>The reason: The whole thing is simply a bug in Windows that has been running for years through various versions. Raymond Chen of Microsoft described the background in the Microsoft developer blog in the article <a href=\"https:\/\/devblogs.microsoft.com\/oldnewthing\/20191030-00\/?p=103036\" target=\"_blank\" rel=\"noopener noreferrer\">The program \"G\" is preventing you from shutting down<\/a>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" src=\"https:\/\/vg01.met.vgwort.de\/na\/445b19f1c0154549963cd0c52859bbfc\" width=\"1\" height=\"1\">Microsoft's developers have noticed some time ago that treating a UTF16-LE Unicode string as an 8-bit string generally takes only the first character. This is because the higher byte of the UTF16-LE code unit is zero for most Western European characters and the zero byte is interpreted as the end of the 8-bit string.<\/p>\n<p>Let's get back to the mysterious \"G\" program, which blocks the shutdown. When the GDI+ library was created, it had to support Windows 98. However, Windows 98 had very limited support for Unicode. So everything was compiled as ANSI and used the ANSI versions of functions like RegisterClass, CreateWindow and DefWindowProc to create and manage help windows. The lack of Unicode support in the helper window didn't cause any problems since the window never displayed a user interface and never processed text. The window was there to do things like listen to WM_SETTINGSCHANGE messages so it knew when to invalidate its caches.<\/p>\n<p>Later, most of the GDI+ library was recompiled simply as a Unicode component, not as an ANSI component. However, the notification window procedure contained an explicit call to DefWindowProcA. Most character set mismatches are detected by the compiler due to a type mismatch. However, the font dependency in DefWindowProc is not encoded in the parameter types. Therefore, this discrepancy was not detected by the compiler.<\/p>\n<p>This discrepancy was also not detected during testing, since the notification window does not output any text. The title of the window \"GDI+ Hook Window\" was simply truncated to \"G\". But since this title is not used for anything, it didn't matter, the window title is never displayed to the user. Only if the program hangs at shutdown, the truncated string G is used. The error described above is noticed. <\/p>\n<h2>A Fix comes for Windows 10 20H1<\/h2>\n<p>Microsoft's developers have included a fix for the problem in the announcement of <a href=\"https:\/\/blogs.windows.com\/windowsexperience\/2019\/10\/29\/announcing-windows-10-insider-preview-build-19013\/\" target=\"_blank\" rel=\"noopener noreferrer\">Windows 10 Insider Preview Build 19013<\/a>. Jen Gentleman pointed this out in this tweet at the end of October::<\/p>\n<blockquote class=\"twitter-tweet\">\n<p lang=\"en\" dir=\"ltr\">Have you ever tried shutting down, and seen a message saying \"G\" is preventing the operation, and thought \"What is G? \"<\/p>\n<p>We investigated this, and found&#8230;<a href=\"https:\/\/t.co\/RBzWGnEt0F\">https:\/\/t.co\/RBzWGnEt0F<\/a><a href=\"https:\/\/twitter.com\/hashtag\/WindowsInsiders?src=hash&amp;ref_src=twsrc%5Etfw\">#WindowsInsiders<\/a> <a href=\"https:\/\/t.co\/0sDJHkgIZv\">pic.twitter.com\/0sDJHkgIZv<\/a><\/p>\n<p>\u2014 Jen Gentleman  (@JenMsft) <a href=\"https:\/\/twitter.com\/JenMsft\/status\/1189327921783160832?ref_src=twsrc%5Etfw\">October 29, 2019<\/a><\/p><\/blockquote>\n<p><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script> <\/p>\n<p>The change log for the insider build 19013 already contains this reference to the correction of the bug:<\/p>\n<blockquote>\n<p>Some of you have reached out about when trying to shutdown, seeing a message saying that an app named \"G\" was preventing shutdown. We investigated and found an issue where windows related to <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/win32\/gdiplus\/-gdiplus-about-gdi--about\" target=\"_blank\" rel=\"noopener noreferrer\">GDI+<\/a> were only referenced as \"G.\" We've fixed this, so going forward, these will now have the name \"GDI+ Window (&lt;exe name&gt;)\", where &lt;exe name&gt; will show the .exe name of the app using GDI+.<\/p>\n<\/blockquote>\n<p>So a fix exactly the error mentioned above, so that from the Windows 10 release in spring 2020, the application that hangs on shutdown will also be correctly named.&nbsp; <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[German]Some users are annoyed by a strange behavior. The shutdown is blocked by a strange app 'G' &#8211; which makes many suspect a malware infection. It is simply a Windows bug that will soon be fixed.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[463,2],"tags":[47,194],"class_list":["post-12005","post","type-post","status-publish","format-standard","hentry","category-issue","category-windows","tag-issue","tag-windows"],"_links":{"self":[{"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/posts\/12005","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/comments?post=12005"}],"version-history":[{"count":0,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/posts\/12005\/revisions"}],"wp:attachment":[{"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/media?parent=12005"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/categories?post=12005"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/tags?post=12005"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}