Gmail suddenly crashes, cannot clear data - Nexus 6P Q&A, Help & Troubleshooting

Tonight I was in the gmail app doing a search through my work inbox. It showed me some results, but that wasn't old enough so I said "Load more". Repeated that step a few times and suddenly gmail crashed out ("Unfortunately, Gmail has stopped working"). Relaunching it ever-so-briefly makes the list of mail messages appear but then crashes again.
I completely powered off and rebooted - same thing happened when I opened gmail again.
I went into Settings -> Apps, selected Gmail and went to storage. Cleared the cache and then tried opening it -> same result.
Clear Cache, reboot before opening -> same result.
The Clear Data button appears enabled in the same green color as Clear Cache, however nothing happens when I click it. Clear Cache gets a shadow / ripple effect where I click it. Nothing like that on Clear Data, it's like it doesn't recognize it is "touchable".
I also note that when I go into the Gmail app (before going into the separate screen where Clear Data / Clear Cache are), that the Disable button and Force Stop buttons are both greyed out / disabled.
From the home screen, I tapped the button to bring up the list of open windows/apps and swiped Gmail off to close it that way, but again no change in behavior.
Phone is stock ROM. I did unlock the bootloader in anticipation of rooting it, but I ended up never going that next step and have just been taking the OTAs since then (am currently on 6.0.1, January 1 security patch level).
Any other ideas?
Thanks

try removing your work account from the device.

OK, doing it that way seemed to clear it up. I've re-added the account and it has now sync'd, things seem to be back to normal. That was annoying. Any ideas why the clear data doesn't do anything?

Not one that I have a real explanation for. Glad it's back up and running though.
Sent from my Nexus 6P using Tapatalk

Same here on pure nexus 9 , have tried reboot, , remove cache/date, re-install, ti-back recovery.
Still crash after in gamil app "search".
Then I removing the google working account and re-add it, still the same, now try to reboot without google account then re-add after boot again

Hello everyone!
Here is what I did as follows.
First of all, the data cannot be cleared, which will induce this issue with the 'crashing' app.
What could help is updating the application. It works perfectly for me (even without removing my account)
I hope this will be useful and help for your problem with Gmail!
Cheers!

Related

G-mail Sync B0rked

Hi All,
I'm running CyanogenMod 4.11.1.1 (but have been having this problem since 4.0.4). My G-mail sync is semi-b0rked. It never updates anymore, even if I manually select the "refresh" option it doesn't update. The only thing that works is, if I go in to Gmail's settings, select "labels" and modify the # of days to sync for, it will magically update. So, I've been manually toggling it between 3 and 4 days of sync time just to get it to update whenever I'm expecting a new e-mail, but it's quite annoying that it stopped working on its own.
My guess is that some library or system file related to gmail got nuked during the cyanogen upgrade, but I've upgraded to several other versions (and even tried restoring a nanroid backup) but gmail still isn't syncing.
Yes, I've double-checked all the settings and everything's set to sync properly (I'd never disabled it in the first place, either).
Any hints on what I can do (I've tried wiping) to get this to work again would be greatly appreciated.
Go in to Settings>Apps>Manage Apps, find GMail and GMail storage and tap the clear data and clear cache buttons for both. Reboot.
jashsu said:
Go in to Settings>Apps>Manage Apps, find GMail and GMail storage and tap the clear data and clear cache buttons for both. Reboot.
Click to expand...
Click to collapse
Cheers mate, that did it!
I'm actually having the same exact issue. Manual syncing works fine but the phone refuses to sync automatically. The only piece of advice I've found is clearing the cache for Gmail and Gmail Storage. I've done this and it has no effect. I'm running Cyanogen 4.04 stable. It's driving me nuts and makes this phone pretty much useless for me since I rely on it to receive dispatch e-mails. Any other thoughts? I'm ready to just say f it and go back to a stock ROM.
Wrrryyy said:
I'm actually having the same exact issue. Manual syncing works fine but the phone refuses to sync automatically. The only piece of advice I've found is clearing the cache for Gmail and Gmail Storage. I've done this and it has no effect. I'm running Cyanogen 4.04 stable. It's driving me nuts and makes this phone pretty much useless for me since I rely on it to receive dispatch e-mails. Any other thoughts? I'm ready to just say f it and go back to a stock ROM.
Click to expand...
Click to collapse
Are you clearing both data and cache? That has always fixed this issue for me - and I've had it on even stock ROMs.
Wrrryyy said:
The only piece of advice I've found is clearing the cache for Gmail and Gmail Storage.
Click to expand...
Click to collapse
Did you clear both the data and the cache or just the cache?
Weaseal said:
Hi All,
I'm running CyanogenMod 4.11.1.1 (but have been having this problem since 4.0.4). My G-mail sync is semi-b0rked. It never updates anymore, even if I manually select the "refresh" option it doesn't update. The only thing that works is, if I go in to Gmail's settings, select "labels" and modify the # of days to sync for, it will magically update. So, I've been manually toggling it between 3 and 4 days of sync time just to get it to update whenever I'm expecting a new e-mail, but it's quite annoying that it stopped working on its own.
My guess is that some library or system file related to gmail got nuked during the cyanogen upgrade, but I've upgraded to several other versions (and even tried restoring a nanroid backup) but gmail still isn't syncing.
Yes, I've double-checked all the settings and everything's set to sync properly (I'd never disabled it in the first place, either).
Any hints on what I can do (I've tried wiping) to get this to work again would be greatly appreciated.
Click to expand...
Click to collapse
go to your settings>sd card> at the bottom hit the reset button..it says it deletes your info but it hasnt not once .. it just clears everything.. try it
Yer mine comes and goes, tried a few Hero's, stock cupcake/donut ROM, cyanogen 4.0.4 thru to 4.1.11.1
Works for a few hours, stop working. Found gTalk works fine, but the Market will only work if gmail is syncing properly. usually will work every 2 days or so, for 4~20 hours... really really strange.

Gmail push

My gmail account stopped pushing my emails to my handset. I thought it might be because of root, but I've reinstalled original soft and no joy. Would it be because of different sim inserted, than the ones registered to send forgotten password?
Plus when I use the online synchronization option on gmail, there is a little exclamation mark in a triangle just for a little less than a second, and no error is displayed.
Any ideas what's wrong?
Regards, masterofp
All of the options are definitely ticked, right? I'm sure you checked this, but I made the mistake of glancing at the Google Mail box and seeing a tick recently, but then wondering why it wasn't pushing. It was because it was just the light grey tick I was looking at, not the proper white one. Make sure everything is ticked in the Data Synchronisation/Google sync menu, and then when you come back out you should have the option to 'Synchronise with Google Mail' too, tick that.
I'm sure you know all this, but just in case...
Yeah, everything is marked. The emails do come, only when I hit refresh in gmail app...
Regards, masterofp
You have to clear the cache for the gmail app and the app datastore, had the exact same problem and found the fix on here, can't mind where though
Will see if I can find clearer instructions for you
found it
http://forum.xda-developers.com/showthread.php?p=6378171&highlight=gmail+clear+cache#post6378171
Tried this now, still no joy. Could I've messed it up totally?
Regards, masterofp
That link stated that you clear cache only, I cleared the data as well, took that before mine started working.
No cache to clear on my mobile.
Regards, masterofp
So did you clear the data and still no joy?
Nope. Always that exclamation mark still showing on the rotary arrows.
Regards, masterofp

Gapps + Acore FC

I've tried lots of stuff, I factory reset and cleared all caches.. and reflashed my rom used supercharger (which doesn't stick) nothing works -.- I'm on EH17 Urban Vendetta rom. Any ideas to fix?
Sent from my SPH-D700 using XDA App
Also a google services frameworks error as well
Sent from my SPH-D700 using XDA App
Had this problem a hundred thousand times before I enabled journaling. I forget exactly what I did. What I cleared exactly. But I think on mine I cleared cache of contacts in titanium. And then google services framework. Sorry I can't be more help but that's roughly how I fixed it. Don't worry to much, it's very annoying but it is fixable. And also when you do get it sorted flash journaling on zip. Fyi I found all the info I needed with a few google searches.
Sent from my Nexus S 4G using Tapatalk
You basically have two options, you can Odin and start again or wipe everything 3x and re-flash the ROM. once it boots, you can power down, wipe everything 3x and restore a nandroid backup. Some people have had success wiping app data then booting to recovery and wiping cache and Dalvik. That works sometimes but the other two methods will eliminate the error. Make sure you are running journal on for stability
Sent from my SPH-D710 using xda premium
I reflashed and wiped the first few times that happened. After that I got away with clearing contacts and google service. So 3 options atleast in my experience.
Sent from my Nexus S 4G using Tapatalk
Are you restoring data? It may be corrupted. Restore an older backup after all the wipes or best yet don't restore anything and download your apps fresh from the market and don't forget to enable journaling.
Sent from my SPH-D700 using XDA App
I had this problem span over to good nands that I knew for a fact were good backups (restored many times). The only way to fix it is use Odin, once this was done my nands were good again, free of FC's, go figure o_0 .
Same thing as the op....urban vendetta...ill try to odin/repartition to try to fix nand errors
Great advice guys, honestly I didn't feel like using Odin XD but I cleared eerything x3 and cleared cache w/ Titanium, and it worked! Then. Flashed a Journaling.zip so I think I'm good now. Thanks! I really didn't wan switch from this rom, it's been working really well for me.
Edit: Wait spoke to soon I'm getting acore FC'S Again -.-
Flashed caches in recovery and it stopped so far.
Sent from my SPH-D700 using XDA App
i have this problem too, just started happening after switching launchers on E17. I ditched TW to use ADW and Gapps started force closing. I tried to clear data for gapps but the option is greyed out in the Manage Apps menu.
Oddly enough, i'm not in the mood for a reflash either.
know.patience said:
i have this problem too, just started happening after switching launchers on E17. I ditched TW to use ADW and Gapps started force closing. I tried to clear data for gapps but the option is greyed out in the Manage Apps menu.
Oddly enough, i'm not in the mood for a reflash either.
Click to expand...
Click to collapse
Try using titaniumbackup to wipe data
Sent from my SPH-D700 using xda premium
One fix for the GAPPs FC on Epic.
I recently fixed a problem like this that had me pulling out my hair. I Odin'ed a new modem, reflashed SRF. I finally resorted to a stock ROM and still no joy. Phone would ring and not answer, calls had no volume, Google framework crashed repeatedly.
For some reason, I plugged in a set of earbuds and suddenly the sound worked and it quit crashing. Everything back to normal.
Why? I think there was grit and moisture stuck in the earphone jack. Plugging in the earphones dislodged it. Strange but true.
If you just clear data on google framework with titanium backup you should resolve the problem.
Sent from my SPH-D700 using XDA App
It happens if you pull battery while phone is on or when phone battery dies while phone performing some task.
1 Turn off the phone before battery dies
2 Dont pull battery while phone is on,unless theres no other choice
3 Have journaling on
If you follow these rules you will almost never get these fc's.
brewdude said:
If you just clear data on google framework with titanium backup you should resolve the problem.
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
Didn't work for me. Neither did 3x cache wipe and dalvik wipe.
I also have a podcast I downloaded randomly play. Weird thing is, I DL'd it months ago and deleted it! It's weird.
Muckrak3r said:
Didn't work for me. Neither did 3x cache wipe and dalvik wipe.
I also have a podcast I downloaded randomly play. Weird thing is, I DL'd it months ago and deleted it! It's weird.
Click to expand...
Click to collapse
Flash journaling on?
Sent from my SPH-D700 using xda premium
Fire n mage said:
Flash journaling on?
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
How do I know or check that?
I am on SFR 1.2 with Genocide kernel.
---------- Post added at 09:07 PM ---------- Previous post was at 08:56 PM ----------
I found a post on google.com's support. I believe I have the problem narrowed down to syncing Gmail contacts and syncing Facebook. I can't remove my Gmail account unless I wipe the phone and I don't want to have to do that.
I cleared FB data and re-synced and it gives a FC and then a sync error.
I should be okay with both of these items not syncing contacts, as I really only add contacts to my phone anyways. Here is the text from the post I found:
user dchoule01 from this link http://www.google.com/support/forum/p/Google+Mobile/thread?tid=23c329285968cd2e&hl=en
"Lowly and chrs are closest to understanding the problem. From everything I've seen this can happen on pretty much any model of phone, any carrier, and because of email, contacts, calendar. If you google this gapps force close you'll find every combination, but there's always one thing in common... a phone tries to sync some tidbit (an email, event, contact) and fails with this error. Everyone suggests backing up and deleting and restoring and copying and yada yada yada. Other solutions work for one person but not another because for me it was a bad calendar event and for you it was a bad contact. For me I'm syncing two external calendars to my phone and you're syncing three. For me I'm syncing X days of calendar and you're syncing Y Days. I deleted records server side and you did it on the phone. I cleared data and you didn't. It's endless. All these variables cause tons of confusion.
Bottom line is this...
Turn the sync off for all accounts on your phone (gmail account, facebook account, exchange account, whatever accounts you have.) Under each account there are individual services, like the gmail account syncs contacts, calendar, email, and picassa, while my exchange account syncs a second email and calendar. Turn off (uncheck) sync for each individual service.
Feel free to backup data from those apps if you want, can't hurt, but resyncing later should put it all back... unless you've created something solely on your phone like local calendar events or local contacts. When I create calendar events and contacts on my phone I always attach them to my server side gmail account so they're available both on the phone and on the internet (when adding a new contact on the phone I choose "save to google" and for calendar it's the calendar you choose - "my calendar" is the local one and your google email is the server side calendar.) If you have purely local stuff then you'll want to back that up because it'll be lost, it's not synced to anything server side.
Go into apps - manage - each app (gmail, calendar storage, etc) and clear data & cache. Depending on the app you may have to put account info back in later, like if you clear data in email you'll have to log back in the next time you open the app. Same with facebook. If you clear data for something like an exchange account you'll have to re-enter the account info because that's stored in the app's data storage along with cached emails. Just be ready after clearing data & cache that you may need to re-enter login info for that specific thing.
Now go back to accounts, pick one, drill down into its services, and turn on each service one by one by checking the green checkmark to turn sync back on. Let the wheel spin until it's done. Sometimes helps to be connected to wifi prior so syncs happen faster. As you turn on each sync and let it *completely* finish you will eventually run across one of them that causes the 1-3 buzz and gapps force close. For me it's always been calendar but other people have seen emails and contacts cause this. Another thread here ended with google support saying they had corrected the problem in gmail for people running 2.1 but I haven't seen them address 2.2 or calendar / contacts.
Okay, so all you've really done now is narrow down the problem to the offending app, and it could be one of several possibles, so I won't detail each individual fix for each app, but basically what you now do is compare records on you're phone to records on the server side. Maybe you do that by syncing contacts and see where it chokes, maybe you visually compare calendar events on the phone to the ones in google calendar. However you do it, you'll eventually find a record that's in one place and not the other, or it's in both places but some attribute doesn't match. You've found your perpetrator. That's the record that gapps is choking on. There may be more than one record choking, but I've only ever seen it happen to one at a time.
For that one app, once again, turn off sync, clear data & cache, and then before turning sync back on, delete that one record from the server side (it's already gone from the phone when you cleared data.)
When you turn sync back on it should re-sync all the happy records and that bad record will be gone, it's not server side and it's not on the phone, so it shouldn't choke on it anymore. You can then recreate that one record bad on the server side and it should push down to the phone just fine.
In a nutshell it appears that there is some problem with google's sync that creates a bad record, or a bad pointer to a record, and the phone can't sync to that one record, so it chokes each time it tries. Sometimes the bad record is on the phone and it can't push up, sometimes it's on the server and it can't pull down. To make things more confusing the sync function sleeps for a while after force closing, so it can appear to be fixed. And if you have juicedefender or something that kills data connection when the screen is off you might think you've fixed the problem, only to see it come back later when you're using your phone on some unrelated screen and sync wakes up in the background and retries that bad record. It makes it look like Memo or Browser is causing the gapps force close but that's only because you're viewing that app when sync wakes up in the background.
I've found this problem occurs most when I add, edit, or delete events, contacts, email from the phone. Creating records on the internet in google normally works fine. But in every case the fix always seems to be the same thing... isolate the offending app, normally calendar, gmail, or contacts, then isolate the offending record within that app, shut off syncing for that service, clear data on the phone, delete the record on the server, turn sync back on, everything is fine, re-create the bad record. I've had to do this three times now since Froyo was released on the Epic and the problem has been corrected with this method each time, at least until I get calendar happy and edit too many events on the phone at once instead of using google on the internet, then the problem comes back. But now that I realize what this is, I've figured out that if I see this problem come back I can just go delete the last few records (normally a cal event) that I've added / edited in the last day or so, clear data from the phone, and re-sync. That fix consistently works for me."
I don't wanna quote an delete that stuff XD. But I've read a lot that it can be due to syncing errors as well, but that wasn't the fix for me. =/ it may work for you though. When I say flash 'journaling on' I mean that there's a zip file called "journalingon.zip" floating around and flashing it often fixes these errors. =P also try fixing permissions in recovery (CWM). Surely one of these plus the instructions you've posted will fix the error.
I would upload the journalingon.zip for you to download.. but I dunno how! XD
Sent from my SPH-D700 using xda premium
Do you have the ICS Google+ leaked app installed? If so, that is the culprit. Happened to me. Try removing it.
Sent from my SPH-D700 using XDA App
No google + here.

I stopped receiving email notifications!

Sometime within the last week, I noticed that I stopped receiving email notifications on my phone. I can still retrieve email manually (both through Inbox and the Gmail app), but unless I open the app it won't refresh. I've tried messing with the notification settings - none of which were turned off or disabled - and I've even removed and re-added my Google accounts. No effect!
I'm not sure what else I should be trying, or why this would even be occurring. I haven't noticed any other apps giving me the same issues; for instance, Facebook and my Twitter client (Fenix) both continue to push notifications just fine. Any advice on what I could try next? Thanks in advance!
Have you wiped data of Google play services by any chance? That will cause this every time without fail.
It should sort itself out eventually, I found a good article describing what happens when Google play services data is wiped and it causes mayhem with syncing your Google account.
Sent from my Nexus 6P using Tapatalk
I know I have before, but I don't think it was recently. That's really good to know now! I'm contemplating just doing a full wipe because all these tiny problems are starting to get at me. Removing your Google account plays havoc with apps now.
I used to have this same issue when I used Inbox on my last device and never really came across any fix while searching for answers. Never had it happen with Gmail, so that's odd you're having that same issue. Only thing I can recommend is trying another email app. I use BlueMail now and have no issues with not getting notifications.
With app issues, specially with Google Apps, I recommend rebooting to Safe Mode and testing the app.
1. Hold Power Button until Power Off shows.
2. Hold Power Off until "Reboot to Safe Mode" appears.
3. Click "Reboot to Safe Mode".
4. See if the issue persists.
Check the sync
Also, check if you jave restricted the background data at the data usage
I checked everything you guys recommended, nothing seemed to help. In a rage I factory reset the phone, and everything is peachy now. Instant emails galore. No idea what that implicates as the cause.
greycobalt said:
I checked everything you guys recommended, nothing seemed to help. In a rage I factory reset the phone, and everything is peachy now. Instant emails galore. No idea what that implicates as the cause.
Click to expand...
Click to collapse
I think that the April factory image definitely has issues. Mine was battery problems, but all is fine after flashing Mays image. There was a sync issue with all Gmail users for a while but that seems to be fixed now as well.

gmail no longer auto-syncing (Nougat)

Since the Nougat update, my gmail account no longer auto-syncs or receives pushed messages, even if the gmail app is open when the message should arrive. If I sync manually, I immediately see the pending messages.
Power-saving is not on. I've double-checked the phone's auto-sync toggle and the notification settings for the gmail app and for this particular gmail account, in the app and in the Application Manager. Other devices receive push messages in gmail for the same account. Other apps (such as Google Voice) successfully push messages to the phone, resulting in immediate notification. Doze optimization is turned off for gmail. I tried clearing data and cache for gmail and then reestablishing the account, but that didn't help.
Does anyone else have this problem or know how to fix it?
If you haven't tried already, reboot to recovery and wipe cache partition, it's worth a try.
Do you have any apps disabled?
Sent from my SM-G935T using XDA-Developers Legacy app
Gary02468 said:
Since the Nougat update, my gmail account no longer auto-syncs or receives pushed messages, even if the gmail app is open when the message should arrive. If I sync manually, I immediately see the pending messages.
Power-saving is not on. I've double-checked the phone's auto-sync toggle and the notification settings for the gmail app and for this particular gmail account, in the app and in the Application Manager. Other devices receive push messages in gmail for the same account. Other apps (such as Google Voice) successfully push messages to the phone, resulting in immediate notification. Doze optimization is turned off for gmail. I tried clearing data and cache for gmail and then reestablishing the account, but that didn't help.
Does anyone else have this problem or know how to fix it?
Click to expand...
Click to collapse
For what it's worth, I'm having the exact same issue on my phone since the Nougat update! It also happens with my AT&T (home) voicemail viewer. I used to get notifications immediately when I got a message at home, now it never tells me unless I open the app.
Quickvic30 said:
If you haven't tried already, reboot to recovery and wipe cache partition, it's worth a try.
Do you have any apps disabled?]
Click to expand...
Click to collapse
Thanks for the suggestions. Wiping the cache in recovery didn't help. The only disabled apps are DirecTV and Fullscreen (and no task/power manager apps are in use).
I've noticed that it's not just incoming messages that don't auto-sync; it doesn't auto-sync in the other direction either. If I delete or archive a message in the gmail app, I don't see that change on other devices until I manually sync the gmail app.
As a workaround, Samsung's Email app is auto-syncing properly.
Now I'm seeing the same problem with Samsung's Email app too.
I was able to fix this problem (and also the absence of my phone from the Android Device Manager listings) using some combination of these methods:
https://productforums.google.com/forum/#!topic/play/X3f4PmL7Zf8
http://forums.androidcentral.com/an...vice-manager-how-fix-devices-not-showing.html
I solved the problem uninstalling all the gmail updates and stopping the autoupdates from the play store. If I use the original version of gmail (first installation on the phone before udates) it syncs perfectly. Hope this can help. And hope samsung and google can solve the problem!
I noticed this issue only goes away when you turn off power saving...
@ Isidrology is right, for the S7 with nougat I went to settings, device maintenance, battery, battery usage, hit the 3 dots in upper right corner, optimize battery usage, change drop down to all apps, and deselect gmail and whatever else you don't want doze messing with your phone. I deselected google opinion rewards as well and 10 minutes later I got a new survey!
Thanks William5, it was well hidden but it seems to work
Isidrology said:
I noticed this issue only goes away when you turn off power saving...
Click to expand...
Click to collapse
Thanks! This seems to have solved the problem on my Sprint S7.
In Android 7.0 Nougat Samsung Galaxy S8+, there is no GMail under Device Management-->Battery-->Unmonitored Apps
I have had this phone for 6 months and email only gets refreshed manually. Even when refreshing manually I usually have to do it twice for any email to appear. I have tried every other setting I can find.

Categories

Resources