{"id":2191,"date":"2022-08-30T15:22:48","date_gmt":"2022-08-30T15:22:48","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/01\/04\/how-to-restart-a-crashed-chrome-app-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:22:48","modified_gmt":"2022-08-30T15:22:48","slug":"how-to-restart-a-crashed-chrome-app-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/how-to-restart-a-crashed-chrome-app-collection-of-common-programming-errors\/","title":{"rendered":"How to restart a crashed chrome app?-Collection of common programming errors"},"content":{"rendered":"<p>I have written a chrome app to work at a kiosk system which gets started by the <em>&#8211;app-id<\/em> command-line switch. Unfortunately it is crashing a very few times (like twice a day) and the crashes are non-repeatable. Now i am trying to ensure it will get restarted after crash. So i wrote a batch script which checks if chrome is running and will restart the app if it&#8217;s not.<\/p>\n<p>My problem is that if the app crashes it will become deactivated on chrome, so when the shortcut gets called, it only opens a browser window instead of running the (deactivated) app. The folowing options i have in mind to solve my problem:<\/p>\n<p>a) Disabling the behavour of chrome of disabling extensions which crashed<\/p>\n<p>b) Re-enabling my extension\/app on launch by command-line switch<\/p>\n<p>c) Using the <em>&#8211;load-and-launch-app<\/em> command-line switch<\/p>\n<p>With a) and b) i didn&#8217;t find a soultion with web search. At c) i don&#8217;t know how to set the path of <em>&#8211;load-and-launch-app<\/em> on Windows. It seems to expect a relative path but from which path? I tried every possibility but couldn&#8217;t get it. So furthermore i don&#8217;t know if it will solve my prob or if Chrome will also deactivate the app by it&#8217;s path?<\/p>\n<p>Does anybody have an idea how to solve this?<\/p>\n<p id=\"rop\"><small>Originally posted 2014-01-04 14:17:06. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I have written a chrome app to work at a kiosk system which gets started by the &#8211;app-id command-line switch. Unfortunately it is crashing a very few times (like twice a day) and the crashes are non-repeatable. Now i am trying to ensure it will get restarted after crash. So i wrote a batch script [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2191","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2191"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2191\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}