Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Vista becomes hysterical!

Vista becomes hysterical!

Scheduled Pinned Locked Moved The Lounge
helpquestion
30 Posts 15 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Judah Gabriel Himango

    My psychic debugging skills tell me a plugin on one of the webpages crashed -- remember, Chrome runs plugins like Flash and Silverlight and Java in their own process. I bet a plugin process crashed (I've seen this many times with both Flash and Silverlight in Chrome), and since the plugin process is named "chrome.exe", Vista reported Chrome as having crashed, even though the main Chrome process was running and even though all the pages were still up.

    Deyan Georgiev wrote:

    If(GetCurrentBrowser(browserRef) == GOOGLE_FUCKING_CHROME)

    Kind of hard to do, considering Chrome wasn't around when Vista was released.

    Religiously blogging on the intarwebs since the early 21st century: Kineti L'Tziyon Judah Himango

    S Offline
    S Offline
    Shog9 0
    wrote on last edited by
    #21

    Judah Himango wrote:

    Kind of hard to do, considering Chrome wasn't around when Vista was released.

    SP2 was released just to give Chrome feature parity with IE8! :rolleyes: Seriously though, your explanation makes good sense. +5

    1 Reply Last reply
    0
    • S Shog9 0

      Well... you're less wrong. The documentation is pretty specific on what Windows considers an unresponsive program though:

      IsHungAppWindow():

      An application is considered to be not responding if it is not waiting for input, is not in startup processing, and has not called PeekMessage within the internal timeout period of 5 seconds.

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #22

      My response was specific to his statement - "Task manager sends a message to every running process, every 5 seconds" (I had quoted it as well). And I said there's no such thing. The API you linked to comes into picture, only if you are talking about a "Window" (NOT a process - or rather processes that have window(s)). Note that the API is taking in a handle to a window, and not a handle to a process. And when does the window stops responding: hasn't retrieved several messages from the message loop, hasn't peeked to check for messages, etc.,. - Which is essentially what I said in my previous post. What about those processes that have no window?! This API is irrelevant in such cases and therefore cannot be applied for all running processes. Also, this has nothing to do with Task manager sending any message to any process. Added: BTW, I hadn't known that the default timeout for applications to peek for arrival of new messages in the loop were 5 seconds. Thanks, I know it now. :)

      It is a crappy thing, but it's life -^ Carlo Pallini

      modified on Wednesday, July 29, 2009 12:08 PM

      S 1 Reply Last reply
      0
      • J Judah Gabriel Himango

        Browser plugins run in separate processes, too. My bet is that Flash or some other plugin crashed. You didn't notice it because it was used for an ad or something small on a page.

        Religiously blogging on the intarwebs since the early 21st century: Kineti L'Tziyon Judah Himango

        M Offline
        M Offline
        Mark_Wallace
        wrote on last edited by
        #23

        So, when viewing a typical modern page in Chrome, you can expect up to 20 "Hey, Bub, it's crashed" messages, for all the inlaid advertising cr@p?

        I wanna be a eunuchs developer! Pass me a bread knife!

        1 Reply Last reply
        0
        • R Rajesh R Subramanian

          My response was specific to his statement - "Task manager sends a message to every running process, every 5 seconds" (I had quoted it as well). And I said there's no such thing. The API you linked to comes into picture, only if you are talking about a "Window" (NOT a process - or rather processes that have window(s)). Note that the API is taking in a handle to a window, and not a handle to a process. And when does the window stops responding: hasn't retrieved several messages from the message loop, hasn't peeked to check for messages, etc.,. - Which is essentially what I said in my previous post. What about those processes that have no window?! This API is irrelevant in such cases and therefore cannot be applied for all running processes. Also, this has nothing to do with Task manager sending any message to any process. Added: BTW, I hadn't known that the default timeout for applications to peek for arrival of new messages in the loop were 5 seconds. Thanks, I know it now. :)

          It is a crappy thing, but it's life -^ Carlo Pallini

          modified on Wednesday, July 29, 2009 12:08 PM

          S Offline
          S Offline
          Shog9 0
          wrote on last edited by
          #24

          Rajesh R Subramanian wrote:

          What about those processes that have no window?! This API is irrelevant in such cases and therefore cannot be applied for all running processes.

          To the best of my knowledge, Task Manager has no concept of an unresponsive application for windowless apps. Things like services also have scenarios where they're expected to respond within a timeframe or be killed, but these are largely separate from Task Manager, and completely unrelated to the "unresponsive" indicator displayed in that applet.

          Rajesh R Subramanian wrote:

          Also, this has nothing to do with Task manager sending any message to any process.

          Mostly, yes. The "unresponsive" flag is set by the window manager, based on the criteria i quoted above. Task Manager reads it. Task manager can trigger messages for an application window in response to certain user requests, but it does not do so arbitrarily. John had the timeframe right (5 sec) - the criteria is based on time, not number of messages posted. You correctly surmised that Windows doesn't send messages for the specific purpose of detecting this. And you were closer to the method by which Windows handles this... though strictly speaking Windows doesn't really do much beyond setting that flag and painting the window (pre-XP) or displaying a placeholder window (XP and later) - if the user tries to close the placeholder, then they get the choice of terminating the process it belongs to or continuing to wait.

          R 1 Reply Last reply
          0
          • S Single Step Debugger

            Yesterday evening I was browsing internet using Chrome. I was opened several tabs enjoying some nice turboprop airplanes pictures when suddenly the Vista’s crash window shows up. You know – this one which reads something like: “The Google Chrome application is not responding and need to be shut down…do you want to restart the program?…” or something similar. So I closed the error prompt and…continue with browsing the current page without any problems! The Chrome doesn’t crashed, there was no crashed tabs…everything was just okay! So I’m puzzled WTF was that? Either Vista for some reasons needs to fake Chrome crashes or there is the following source code somewhere inside the last updates:

            private void CHandleWithCompetitors::Hook CurrentBrowser(LPDISPATCH *browserRef)
            {
            If(GetCurrentBrowser(browserRef) == GOOGLE_FUCKING_CHROME)
            {
            If(!BrowserTryCrash(browserRef))
            {
            throw CInternalEx(“BrowserUncrashableExseption”);
            }
            }
            }

            The narrow specialist in the broad sense of the word is a complete idiot in the narrow sense of the word. Advertise here – minimum three posts per day are guaranteed.

            H Offline
            H Offline
            Henry Minute
            wrote on last edited by
            #25

            Don't worry! It's about to become Historical. :-D

            Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

            S 1 Reply Last reply
            0
            • S Shog9 0

              Rajesh R Subramanian wrote:

              What about those processes that have no window?! This API is irrelevant in such cases and therefore cannot be applied for all running processes.

              To the best of my knowledge, Task Manager has no concept of an unresponsive application for windowless apps. Things like services also have scenarios where they're expected to respond within a timeframe or be killed, but these are largely separate from Task Manager, and completely unrelated to the "unresponsive" indicator displayed in that applet.

              Rajesh R Subramanian wrote:

              Also, this has nothing to do with Task manager sending any message to any process.

              Mostly, yes. The "unresponsive" flag is set by the window manager, based on the criteria i quoted above. Task Manager reads it. Task manager can trigger messages for an application window in response to certain user requests, but it does not do so arbitrarily. John had the timeframe right (5 sec) - the criteria is based on time, not number of messages posted. You correctly surmised that Windows doesn't send messages for the specific purpose of detecting this. And you were closer to the method by which Windows handles this... though strictly speaking Windows doesn't really do much beyond setting that flag and painting the window (pre-XP) or displaying a placeholder window (XP and later) - if the user tries to close the placeholder, then they get the choice of terminating the process it belongs to or continuing to wait.

              R Offline
              R Offline
              Rajesh R Subramanian
              wrote on last edited by
              #26

              Shog9 wrote:

              Task Manager has no concept of an unresponsive application for windowless apps.

              Exactly! Therefore my reply to John. So, I woke up the native lang beast in you, Shog? :)

              It is a crappy thing, but it's life -^ Carlo Pallini

              S 1 Reply Last reply
              0
              • R Rajesh R Subramanian

                Shog9 wrote:

                Task Manager has no concept of an unresponsive application for windowless apps.

                Exactly! Therefore my reply to John. So, I woke up the native lang beast in you, Shog? :)

                It is a crappy thing, but it's life -^ Carlo Pallini

                S Offline
                S Offline
                Shog9 0
                wrote on last edited by
                #27

                Rajesh R Subramanian wrote:

                So, I woke up the native lang beast in you, Shog?

                Sadly, this (native Win32) is where i spend most of my time. I don't talk about it much because, well, when i'm here it's 'cause i need a break! :-O

                1 Reply Last reply
                0
                • S Single Step Debugger

                  Yesterday evening I was browsing internet using Chrome. I was opened several tabs enjoying some nice turboprop airplanes pictures when suddenly the Vista’s crash window shows up. You know – this one which reads something like: “The Google Chrome application is not responding and need to be shut down…do you want to restart the program?…” or something similar. So I closed the error prompt and…continue with browsing the current page without any problems! The Chrome doesn’t crashed, there was no crashed tabs…everything was just okay! So I’m puzzled WTF was that? Either Vista for some reasons needs to fake Chrome crashes or there is the following source code somewhere inside the last updates:

                  private void CHandleWithCompetitors::Hook CurrentBrowser(LPDISPATCH *browserRef)
                  {
                  If(GetCurrentBrowser(browserRef) == GOOGLE_FUCKING_CHROME)
                  {
                  If(!BrowserTryCrash(browserRef))
                  {
                  throw CInternalEx(“BrowserUncrashableExseption”);
                  }
                  }
                  }

                  The narrow specialist in the broad sense of the word is a complete idiot in the narrow sense of the word. Advertise here – minimum three posts per day are guaranteed.

                  T Offline
                  T Offline
                  TheGreatAndPowerfulOz
                  wrote on last edited by
                  #28

                  chrome self-recovers from it's crashes.

                  S 1 Reply Last reply
                  0
                  • H Henry Minute

                    Don't worry! It's about to become Historical. :-D

                    Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

                    S Offline
                    S Offline
                    Single Step Debugger
                    wrote on last edited by
                    #29

                    :-D

                    The narrow specialist in the broad sense of the word is a complete idiot in the narrow sense of the word. Advertise here – minimum three posts per day are guaranteed.

                    1 Reply Last reply
                    0
                    • T TheGreatAndPowerfulOz

                      chrome self-recovers from it's crashes.

                      S Offline
                      S Offline
                      Single Step Debugger
                      wrote on last edited by
                      #30

                      Just like a virus! :)

                      The narrow specialist in the broad sense of the word is a complete idiot in the narrow sense of the word. Advertise here – minimum three posts per day are guaranteed.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups