in Search

Have You Ever Seen "A Problem Has Occurred With Gwes.exe"?

Last post 02-08-2010 5:49 PM by Todd Allcock. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 02-05-2010 4:27 PM

    Have You Ever Seen "A Problem Has Occurred With Gwes.exe"?

    This is the first time I've seen this message in Windows Mobile, but apparently it's not uncommon. I simply started up my AT&T Pure, running 6.5, and after a long pause on a totally black screen (except for the top notification and status icons), I saw an error window with options to view the details and send them to MSFT. Which I did.

    I was curious, so I checked MSDN for more information on "Gwes.exe," and here's some of what I found. Enjoy!

    What is GWES?

    Gwes is the Graphical Windowing and Event Subsystem. It’s one little program that draws all the controls on the device like scrollbars, buttons, and checkboxes. It also handles passing window messages back and forth between applications and manages the WndProcs of all of the programs on the device that are displaying UI.

    So why does it crash all the time?

    A crash dump (“Watson dump”) is usually triggered by an unhandled exception in a program. It packages up a callstack and some diagnostics and queues it for transmission up to our Windows Error Reporting database.

    If a program (let’s call it test.exe) crashes inside WinMain, the exception gets out to the unhandled exception trap in the kernel which creates the Watson dump and then terminates test.exe.

    But what if test.exe crashes inside its WndProc? The exception travels up the callstack. The next process up the callstack is GWES – GWES is the process that calls each WndProc in the first place, because it’s marshalling the window messages throughout the system.

    What if GWES didn’t handle exceptions that were thrown from your WndProc? Then any crashing WndProc would crash GWES without fail and take down the entire system. That doesn’t happen, so we know that’s not true. GWES handles exceptions thrown out of other WndProcs. So GWES is responsible for triggering a Watson dump when another program crashes in a WndProc.

    The problem is that when the Watson dump is created, it sees that GWES is at the top of the callstack, so GWES gets the place of honor in the Watson UI that you see in the screenshot above. We have fixed this for future versions of the system [edit: including WM6] - crashes inside a WndProc will show the correct process name in the "We're Sorry..." UI.

    My Pure continued starting up and worked normally after the error, so it does seem to be the case that something besides Gwes.exe was the crash culprit. Still, it sounds as if the confusion was supposed to have been fixed - wonder if it has anything to do with the fact that the Pure runs a version of TouchFLO 3D, which starts up when the phone powers up...

    • Post Points: 20
  • 02-05-2010 4:40 PM In reply to

    • Laura Rooke
    • Top 10 Contributor
    • Joined on 03-27-2008
    • Northern California
    • Posts 4,274
    • Points 42,228
    • 4_ambassador
      Microsoft Windows Mobile MVP
      Moderator
      Small Business Specialist
      Specialist

    Re: Have You Ever Seen "A Problem Has Occurred With Gwes.exe"?

    Thanks for this info, Bill - I shall watch out for this on my Pure...

    Laura Rooke
    MVP - Mobile Devices
    My Devices..........
    IPAQ 3650
    IPAQ 5450
    IPAQ 4700
    IPAQ 2795
    Jasjar
    Motorola Q
    T-Mobile Dash
    AT&T TILT
    Advantage 7510
    HTC Pure
    HTC Diamond2
    Motorola Backflip
    • Post Points: 5
  • 02-07-2010 9:53 AM In reply to

    Re: Have You Ever Seen "A Problem Has Occurred With Gwes.exe"?

     My money would be on something AT&T has put on your device Bill. I've used just about every version of TouchFlo released over the years and never seen this issue.

    Dave Parker
    Microsoft M.V.P. Mobile Devices
    Reviewer & Moderator - www.smartphonegurus.com
    My Blog - Guru Meditation
    • Post Points: 5
  • 02-08-2010 5:49 PM In reply to

    Re: Have You Ever Seen "A Problem Has Occurred With Gwes.exe"?

    I composed a reply here a couple of days ago, but it never showed up. Weird. Turbulence in the interwebs, I guess! Wink

    Anyway, the gist of my post was to see if you have Error Reporting turned on. My old WM5 Wizard used to get that error several times a day, (not a problem- you tapped ok to clear it and went on with your life.) When a quick search suggested turning error reporting off, the problem went away. I suspect whatever caused the error was still going on in the background, but the device handled it silently from then on, rather than nag me about it.

    --
    Todd Allcock [MS MVP - Mobile Devices]

    Current Devices:
    Sony Ericsson X1i (T-Mobile USA)
    T-Mobile MDA (T-Mobile 2 Go Prepaid)
    T-Mobile Dash (T-Mobile 2 Go Prepaid)
    Samsung SCH-i730 (Page Plus Cellular)
    Samsung SCH-i600 (Page Plus Cellular)
    Dell Axim X5
    Audiovox Maestro
    NEC MP780 HPC
    Zune 30



    • Post Points: 5
Page 1 of 1 (4 items)
  * SHARE YOUR FEEDBACK ABOUT THE SITE USING OUR NEW FEEDBACK FORM *