[G2 and Desire Z Q&A, Help & Troubleshooting] heybobitsme:
On my wife's non-rooted stock G2, all of a sudden the Email app, the secondary one, is all of a sudden force closing. This started yesterday when she noticed she didn't have any emails and went to check it. I've, of course, tried a simple reboot and thencleared data and re-input the login info and no joy. Interestingly, it doesn't FC when doing the login, but when it's syncing. She has her regular gmail going through this app while her work email, which is gmail also, goes through the main Gmail app. Don't ask me why she does this, it's just how she likes it.

My question is, has anyone experienced this and have a possible fix, or is this more of a server issue or something else?

Sent from my HTC Vision

Edit: Logcat:

D/dalvikvm( 3964): GC_FOR_MALLOC freed 7428 objects / 394976 bytes in 61ms
W/Email ( 3964): Line 9: Unexpected end of headers detected. Boundary detected in header or EOF reached.
W/Email ( 3964): Line 9: Body part ended prematurely. Higher level boundary detected or EOF reached.
W/Email ( 3964): Line 10: Unexpected end of headers detected. Boundary detected in header or EOF reached.
W/Email ( 3964): Line 10: Body part ended prematurely. Higher level boundary detected or EOF reached.
W/Email ( 3964): Line 8: Unexpected end of headers detected. Boundary detected in header or EOF reached.
W/Email ( 3964): Line 8: Body part ended prematurely. Higher level boundary detected or EOF reached.
W/Email ( 3964): Line 9: Unexpected end of headers detected. Boundary detected in header or EOF reached.
W/Email ( 3964): Line 9: Body part ended prematurely. Higher level boundary detected or EOF reached.
D/dalvikvm( 3964): GC_FOR_MALLOC freed 5064 objects / 414952 bytes in 39ms
W/Email ( 3964): Line 10: Unexpected end of headers detected. Boundary detected in header or EOF reached.
W/Email ( 3964): Line 10: Body part ended prematurely. Higher level boundary detected or EOF reached.
W/Email ( 3964): Exception detected: unable to parse ' 13259 398 NIL NIL NIL)(' as integer
W/Email ( 3964): Last network activities:
W/Email ( 3964): * OK Gimap ready for requests from
W/Email ( 3964): 1 CAPABILITY
W/Email ( 3964): * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA XLIST CHILDREN XYZZY SASL-IR AUTH=XOAUTH
W/Email ( 3964): 1 OK Thats all she wrote! s40if680880weq.172
W/Email ( 3964): 2 ID ("name" "com.android.email" "os" "android" "os-version" "2.2; FRF91" "vendor" "HTC" "x-android-device-model" "T-Mobile G2" "x-android-mobile-net-operator" "T-Mobile" "AGUID" "6bx3iqqmftamvbcb7rCcWaboVP8=")
W/Email ( 3964): 2 BAD Unknown command s40if680880weq.172
W/Email ( 3964): [IMAP command redacted]
W/Email ( 3964): * CAPABILITY IMAP4rev1 UNSELECT LITERAL+ IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE
W/Email ( 3964): 3 OK @gmail.com authenticated (Success)
W/Email ( 3964): 4 SELECT "INBOX"
W/Email ( 3964): * FLAGS (\Answered \Flagged \Draft \Deleted \Seen)
W/Email ( 3964): * OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen \*)]
W/Email ( 3964): * OK [UIDVALIDITY 2]
W/Email ( 3964): * 7624 EXISTS
W/Email ( 3964): * 0 RECENT
W/Email ( 3964): * OK [UIDNEXT 15412]
W/Email ( 3964): 4 OK [READ-WRITE] INBOX selected. (Success)
W/Email ( 3964): 5 UID SEARCH 7600:7624 NOT DELETED
W/Email ( 3964): * SEARCH 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 15409 15410 15411
W/Email ( 3964): 5 OK SEARCH completed (Success)
W/Email ( 3964): 6 UID FETCH 15387,15389,15402,15404,15409,15411 (UID FLAGS INTERNALDATE RFC822.SIZE BODY.PEEK[HEADER.FIELDS (date subject from content-type to cc message-id)])
W/Email ( 3964): * 7600 FETCH (UID 15387 RFC822.SIZE 168587 INTERNALDATE "16-Feb-2011 08:12:28 +0000" FLAGS () BODY[HEADER.FIELDS (date subject from content-type to cc message-id)] {371}
W/Email ( 3964): )
W/Email ( 3964): * 7602 FETCH (UID 15389 RFC822.SIZE 50598 INTERNALDATE "16-Feb-2011 11:21:27 +0000" FLAGS () BODY[HEADER.FIELDS (date subject from content-type to cc message-id)] {454}
W/Email ( 3964): )
W/Email ( 3964): * 7615 FETCH (UID 15402 RFC822.SIZE 153240 INTERNALDATE "17-Feb-2011 01:14:15 +0000" FLAGS () BODY[HEADER.FIELDS (date subject from content-type to cc message-id)] {305}
W/Email ( 3964): )
W/Email ( 3964): * 7617 FETCH (UID 15404 RFC822.SIZE 154982 INTERNALDATE "17-Feb-2011 02:17:51 +0000" FLAGS () BODY[HEADER.FIELDS (date subject from content-type to cc message-id)] {361}
W/Email ( 3964): )
W/Email ( 3964): * 7622 FETCH (UID 15409 RFC822.SIZE 49695 INTERNALDATE "17-Feb-2011 11:23:46 +0000" FLAGS () BODY[HEADER.FIELDS (date subject from content-type to cc message-id)] {454}
W/Email ( 3964): )
W/Email ( 3964): * 7624 FETCH (UID 15411 RFC822.SIZE 95624 INTERNALDATE "17-Feb-2011 13:07:07 +0000" FLAGS (\Seen) BODY[HEADER.FIELDS (date subject from content-type to cc message-id)] {293}
W/Email ( 3964): )
W/Email ( 3964): 6 OK Success
W/Email ( 3964): 7 UID FETCH 15387,15388,15389,15390,15391,15392,15393,15394,15395,15396,15397,15398,15399,15400,15401,15402,15403,15404,15405,15406,15407,15408,15409,15410,15411 (UID FLAGS)
W/Email ( 3964): * 7600 FETCH (UID 15387 FLAGS ())
W/Email ( 3964): * 7601 FETCH (UID 15388 FLAGS ())
W/Email ( 3964): * 7602 FETCH (UID 15389 FLAGS ())
W/Email ( 3964): * 7603 FETCH (UID 15390 FLAGS ())
W/Email ( 3964): * 7604 FETCH (UID 15391 FLAGS ())
W/Email ( 3964): * 7605 FETCH (UID 15392 FLAGS ())
W/Email ( 3964): * 7606 FETCH (UID 15393 FLAGS ())
W/Email ( 3964): * 7607 FETCH (UID 15394 FLAGS (\Seen))
W/Email ( 3964): * 7608 FETCH (UID 15395 FLAGS (\Seen))
W/Email ( 3964): * 7609 FETCH (UID 15396 FLAGS ())
W/Email ( 3964): * 7610 FETCH (UID 15397 FLAGS (\Seen))
W/Email ( 3964): * 7611 FETCH (UID 15398 FLAGS ())
W/Email ( 3964): * 7612 FETCH (UID 15399 FLAGS ())
W/Email ( 3964): * 7613 FETCH (UID 15400 FLAGS (\Seen))
W/Email ( 3964): * 7614 FETCH (UID 15401 FLAGS (\Seen))
W/Email ( 3964): * 7615 FETCH (UID 15402 FLAGS ())
W/Email ( 3964): * 7616 FETCH (UID 15403 FLAGS ())
W/Email ( 3964): * 7617 FETCH (UID 15404 FLAGS ())
W/Email ( 3964): * 7618 FETCH (UID 15405 FLAGS (\Seen))
W/Email ( 3964): * 7619 FETCH (UID 15406 FLAGS (\Seen))
W/Email ( 3964): * 7620 FETCH (UID 15407 FLAGS ())
W/Email ( 3964): * 7621 FETCH (UID 15408 FLAGS ())
W/Email ( 3964): * 7622 FETCH (UID 15409 FLAGS ())
W/Email ( 3964): * 7623 FETCH (UID 15410 FLAGS ())
W/Email ( 3964): * 7624 FETCH (UID 15411 FLAGS (\Seen))
W/Email ( 3964): 7 OK Success
W/Email ( 3964): 8 UID FETCH 15387,15389,15402,15404,15409,15411 (UID BODYSTRUCTURE)
W/Email ( 3964): * 7600 FETCH (UID 15387 BODYSTRUCTURE ((("TEXT" "PLAIN" ("CHARSET" "utf-8") NIL NIL "QUOTED-PRINTABLE" 2121 28 NIL NIL NIL)("TEXT" "HTML" ("CHARSET" "utf-8") NIL NIL "QUOTED-PRINTABLE" 105556 1385 NIL NIL NIL) "ALTERNATIVE" ("BOUNDARY" "_=ALT_=aspNetEmail=_bc895275ec284fbeb6b5dea820d33e79") NIL NIL)("IMAGE" "GIF" ("NAME" "CiscoLogo.gif") "<cbCisco>" NIL "BASE64" 1208 NIL NIL NIL)("IMAGE" "GIF" ("NAME" "3inLine.gif") "<cb3InLine>" NIL "BASE64" 1742 NIL NIL NIL)("IMAGE" "GIF" ("NAME" "logo_cb.gif") "<cbLogo>" NIL "BASE64" 5112 NIL NIL NIL)("IMAGE" "GIF" ("NAME" "werecmail.gif") "<cbWelcome>" NIL "BASE64" 1470 NIL NIL NIL)("IMAGE" "GIF" ("NAME" "SGtiny.gif") "<cbSG>" NIL "BASE64" 342 NIL NIL NIL)("IMAGE" "GIF" ("NAME" "1inLine.gif") "<cb1InLine>" NIL "BASE64" 1712 NIL NIL NIL)("IMAGE" "GIF" ("NAME" "CRtiny.gif") "<cbCR>" NIL "BASE64" 18204 NIL NIL NIL)("IMAGE" "GIF" ("NAME" "starGold.gif") "<cbStarGold>" NIL "BASE64" 416 NIL NIL NIL)("IMAGE" "GIF" ("NAME" "starGrey.gif") "<cbStarGrey>" NIL "BASE64" 408 NIL NIL NIL)("IMAGE" "GIF" ("NAME" "5inLine.gif") "<cb5InLine>" NIL "BASE64" 1622 NIL NIL NIL)("IMAGE" "JPEG" ("NAME" "bg_masthead.jpg") "<mastHead>" NIL "BASE64" 10272 NIL NIL NIL)("IMAGE" "JPEG" ("NAME" "bg_footer2.jpg") "<bgFooter>" NIL "BASE64" 5388 NIL NIL NIL)("IMAGE" "GIF" ("NAME" "btnMyCB.gif") "<cbBtnMC>" NIL "BASE64" 1812 NIL NIL NIL)("IMAGE" "GIF" ("NAME" "btnPostRes.gif") "<cbBtnPR>" NIL "BASE64" 1684 NIL NIL NIL)("IMAGE" "GIF" ("NAME" "btnFindJobs.gif") "<cbBtnFJ>" NIL "BASE64" 1520 NIL NIL NIL)("IMAGE" "GIF" ("NAME" "btnJobRec.gif") "<cbBtnJR>" NIL "BASE64" 1868 NIL NIL NIL) "RELATED" ("BOUNDARY" "_=aspNetEmail=_bc895275ec284fbeb6b5dea820d33e79" "TYPE" "multipart/alternative") NIL NIL))
W/Email ( 3964): * 7602 FETCH (UID 15389 BODYSTRUCTURE (("TEXT" "PLAIN" ("CHARSET" "us-ascii") NIL NIL "7BIT\"" 13259 398 NIL NIL NIL)("TEXT" "HTML" ("CHARSET" "us-ascii") NIL NIL "7BIT\"" 34430 454 NIL NIL NIL) "ALTERNATIVE" ("BOUNDARY" "----000000000000000000000000000000000000000000000000000000000000000") NIL NIL))
W/dalvikvm( 3964): threadid=7: thread exiting with uncaught exception (group=0x4001d7e0)
E/AndroidRuntime( 3964): FATAL EXCEPTION: Thread-8
E/AndroidRuntime( 3964): java.lang.NumberFormatException: unable to parse ' 13259 398 NIL NIL NIL)(' as integer
E/AndroidRuntime( 3964):	at java.lang.Integer.parse(Integer.java:433)
E/AndroidRuntime( 3964):	at java.lang.Integer.parseInt(Integer.java:422)
E/AndroidRuntime( 3964):	at java.lang.Integer.parseInt(Integer.java:382)
E/AndroidRuntime( 3964):	at com.android.email.mail.store.ImapResponseParser$ImapList.getNumber(ImapResponseParser.java:382)
E/AndroidRuntime( 3964):	at com.android.email.mail.store.ImapStore$ImapFolder.parseBodyStructure(ImapStore.java:1053)
E/AndroidRuntime( 3964):	at com.android.email.mail.store.ImapStore$ImapFolder.parseBodyStructure(ImapStore.java:1007)
E/AndroidRuntime( 3964):	at com.android.email.mail.store.ImapStore$ImapFolder.fetchInternal(ImapStore.java:917)
E/AndroidRuntime( 3964):	at com.android.email.mail.store.ImapStore$ImapFolder.fetch(ImapStore.java:801)
E/AndroidRuntime( 3964):	at com.android.email.MessagingController.synchronizeMailboxGeneric(MessagingController.java:786)
E/AndroidRuntime( 3964):	at com.android.email.MessagingController.synchronizeMailboxSynchronous(MessagingController.java:390)
E/AndroidRuntime( 3964):	at com.android.email.MessagingController.access$400(MessagingController.java:75)
E/AndroidRuntime( 3964):	at com.android.email.MessagingController$2.run(MessagingController.java:366)
E/AndroidRuntime( 3964):	at com.android.email.MessagingController.run(MessagingController.java:171)
E/AndroidRuntime( 3964):	at java.lang.Thread.run(Thread.java:1096)
W/ActivityManager( 1290): Force finishing activity com.android.email/.activity.MessageList
D/Launcher( 1448): onResume+
D/Launcher.DragController( 1448): +endDrag: false
D/Launcher.DragController( 1448): mDragging == false
D/Launcher.DragController( 1448): -endDrag: false
D/Launcher( 1448): onResume-
V/RenderScript_jni( 1448): surfaceCreated
D/Launcher.AllApps3D( 1448): +super.surfaceChanged
V/RenderScript_jni( 1448): surfaceChanged
D/Launcher.AllApps3D( 1448): -super.surfaceChanged
D/dalvikvm( 1448): GC_EXPLICIT freed 1089 objects / 116560 bytes in 115ms
I/ActivityManager( 1290): No longer want com.joelapenna.foursquared (pid 2753): hidden #16
I/Process ( 3964): Sending signal. PID: 3964 SIG: 9
I/ActivityManager( 1290): Process com.android.email (pid 3964) has died.

I removed the IP address and email address and name from logcat for security reasons. Hope it helps.