Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,781,898 Members 50,512 Now Online
XDA Developers Android and Mobile Development Forum

[TIP] IndexService Error Solution ...

Tip us?
 
PeterGuru
Old
(Last edited by PeterGuru; 13th October 2013 at 02:28 PM.)
#1  
PeterGuru's Avatar
Senior Member - OP
Thanks Meter 1,147
Posts: 1,415
Join Date: Mar 2008
Location: Ontario, Canada

 
DONATE TO ME
Default [TIP] IndexService Error Solution ...

As some of you may remember, my first Note 3, which I got a week ago yesterday, was returned for a full refund the next day due to a Nandroid restore failure through TWRP.

However, some of you may also remember that I had an extremely annoying error message pop up continually for the entire 24 hours I had the device.

The error: Unfortunately IndexService has stopped

This error revealed itself every 1-2 minutes. I could not figure out why as there was little information anywhere on the Internet.

However, after picking up a new Note 3 yesterday, and after many hours of trial-and-error file transfers, I think I found the reason ... a corrupt or otherwise damaged/flawed PDF file.

All other files, Word, Excel, Images, Videos, etc., were NOT the cause, and it had nothing to do with the SDCard. It doesn’t matter if you use a 64MB, 32MB, Class 6, Class 10, or UHS-1 type card. The card is not the problem. I know this because, this time, with my new Note 3, I never put in an SDCard. I transferred all files directly to internal storage and, unfortunately, the IndexService error still appeared … every 1-2 minutes.

This time, however, I noticed that the error message appeared only AFTER I transferred all my files to the device, so I knew it had to do with these files, and that’s where I focused my attention.

It took about 9 hours last night and early this morning. I began by deleting all personal files from the device. Result: No error messages. Then, directory-by-directory (I have 12,554 files and 371 directories), I transferred them back to the device, each time waiting about 3-4 minutes to see if the error message would appear. I read in other forums that the problem might be related to PDF files, so I first transferred all other file types. Result: No error messages. Then I begin transferring PDF files. I did so in groups of about 50 at a time. Yes, I have many PDF files; about 2,100 of them. It all came down to two PDF files. Wow, 2 out of 2,100! I can’t explain why, but when I transferred those two files to the device, the error message appeared, and when I deleted them, the error message disappeared.

Fortunately, the two files were not important, so I permanently deleted them; however, before doing so, I thought that they might have originally been written using a very old version of Adobe, and that they simply couldn’t be “read” by the Adobe reader on the Note 3. With this in mind, I opened them in the latest version of Adobe on my PC, and then re-saved them with a new file name; however, the result was the same. They still caused the indexing error. So, at this point I have no idea why they are causing the problem.

Finally, after all my files were transferred to internal storage, without the 2 problem files, I waited 1 hour. No error message. I then put in my Sandisk 32GB UHS-1 card, copied all the files over, and then waited another 30 minutes. No error message. This morning I deleted all the files from internal storage so that I only had them on the SDCard. No error message. It has now been over 24 hours, and still no error message.

SUMMARY:

1) The indexing error is NOT caused by the external SDCard.
2) The indexing error is PROBABLY caused by a problem PDF file(s)
3) The size of the PDF file is irrelevant. My problem files were each about 10MB; however, all smaller sizes, and even the remaining larger-sized PDF files do not cause a problem.
4) Others have suggested that I turn OFF a particular service, but it didn’t work for me.
5) Others have suggested that the error relates to files larger than 200MB. This does NOT appear to be the case in my situation. I have many files that are more than 200MB, and there isn’t a problem.
6) Another xda member said to create a file called .nomedia and place it in the root of the directory where the problem files are located. I tried this, but I still get the error message.

I hope this helps others.

Peter
MODEL: ....OnePlus One (Global)
VERSION: ..A0001 (64GB Sandstone)
RECOVERY: .TWRP v2.7.1.0
ANDROID: ..4.4.4
ROM/BUILD: CM11-20140821-NIGHTLY-bacon
KERNEL: ...3.4.0-g41804e5
RADIO: ....M8974AAAAANPZM-1


"Science will eventually answer ALL questions, thus ending religion's wretched grasp on humanity."
The Following 7 Users Say Thank You to PeterGuru For This Useful Post: [ Click to Expand ]
 
lance_lascari
Old
#2  
Junior Member
Thanks Meter 0
Posts: 3
Join Date: May 2011
Quote:
Originally Posted by PeterGuru View Post
As some of you may remember, my first Note 3, which I got a week ago yesterday, was returned for a full refund the next day due to a Nandroid restore failure through TWRP.

However, some of you may also remember that I had an extremely annoying error message pop up continually for the entire 24 hours I had the device.

The error: Unfortunately IndexService has stopped

This error revealed itself every 1-2 minutes. I could not figure out why as there was little information anywhere on the Internet.

However, after picking up a new Note 3 yesterday, and after many hours of trial-and-error file transfers, I think I found the reason ... a corrupt or otherwise damaged/flawed PDF file.

All other files, Word, Excel, Images, Videos, etc., were NOT the cause, and it had nothing to do with the SDCard. It doesnít matter if you use a 64MB, 32MB, Class 6, Class 10, or UHS-1 type card. The card is not the problem. I know this because, this time, with my new Note 3, I never put in an SDCard. I transferred all files directly to internal storage and, unfortunately, the IndexService error still appeared Ö every 1-2 minutes.

This time, however, I noticed that the error message appeared only AFTER I transferred all my files to the device, so I knew it had to do with these files, and thatís where I focused my attention.

It took about 9 hours last night and early this morning. I began by deleting all personal files from the device. Result: No error messages. Then, directory-by-directory (I have 12,554 files and 371 directories), I transferred them back to the device, each time waiting about 3-4 minutes to see if the error message would appear. I read in other forums that the problem might be related to PDF files, so I first transferred all other file types. Result: No error messages. Then I begin transferring PDF files. I did so in groups of about 50 at a time. Yes, I have many PDF files; about 2,100 of them. It all came down to two PDF files. Wow, 2 out of 2,100! I canít explain why, but when I transferred those two files to the device, the error message appeared, and when I deleted them, the error message disappeared.

Fortunately, the two files were not important, so I permanently deleted them; however, before doing so, I thought that they might have originally been written using a very old version of Adobe, and that they simply couldnít be ďreadĒ by the Adobe reader on the Note 3. With this in mind, I opened them in the latest version of Adobe on my PC, and then re-saved them with a new file name; however, the result was the same. They still caused the indexing error. So, at this point I have no idea why they are causing the problem.

Finally, after all my files were transferred to internal storage, without the 2 problem files, I waited 1 hour. No error message. I then put in my Sandisk 32GB UHS-1 card, copied all the files over, and then waited another 30 minutes. No error message. This morning I deleted all the files from internal storage so that I only had them on the SDCard. No error message. It has now been about 6 hours, and still no error message.

SUMMARY:

1) The indexing error is NOT caused by the external SDCard.
2) The indexing error is PROBABLY caused by a problem PDF file(s)
3) The size of the PDF file is irrelevant. My problem files were each about 10MB; however, all smaller sizes, and even the remaining larger-sized PDF files do not cause a problem.
4) Others have suggested that I turn OFF a particular service, but it didnít work for me.
5) Others have suggested that the error relates to files larger than 200MB. This does NOT appear to be the case in my situation. I have many files that are more than 200MB, and there isnít a problem.
6) Another xda member said to create a file called .nomedia, and place it in the root of the directory where the culprit files are located. I tried this, but I still get the error message.

I hope this helps others.

Peter

I have been trying to get this problem solved as well -- thanks for spelling out what *isn't* working; I've tried several of these things as well. Killing the app/service, asking the s-finder not to index files, putting the .nomedia files in place have all failed to make it go away. It is a little mind boggling that this is an issue as I've had the same loaded SDcard data (fresh card now, same data) on a note1 and note2 and never had this sort of trouble.

Even when I've killed the indexing service it seems to come back without power cycling, perhaps there is something triggering it to come back.

Hopefully there is an official answer on this soon, the phone becomes unresponsive for seconds all too regularly.

Lance
 
PeterGuru
Old
#3  
PeterGuru's Avatar
Senior Member - OP
Thanks Meter 1,147
Posts: 1,415
Join Date: Mar 2008
Location: Ontario, Canada

 
DONATE TO ME
Default Looks like we've gone through the same thing ...

Quote:
Originally Posted by lance_lascari View Post
I have been trying to get this problem solved as well -- thanks for spelling out what *isn't* working; I've tried several of these things as well. Killing the app/service, asking the s-finder not to index files, putting the .nomedia files in place have all failed to make it go away. It is a little mind boggling that this is an issue as I've had the same loaded SDcard data (fresh card now, same data) on a note1 and note2 and never had this sort of trouble.

Even when I've killed the indexing service it seems to come back without power cycling, perhaps there is something triggering it to come back.

Hopefully there is an official answer on this soon, the phone becomes unresponsive for seconds all too regularly.

Lance
It looks like we've gone through the same thing. Sadly, when the IndexService error exists, it REALLY sucks battery power.

I hope you get yours resolved.

Peter

P.S. So far today ... no errors.
MODEL: ....OnePlus One (Global)
VERSION: ..A0001 (64GB Sandstone)
RECOVERY: .TWRP v2.7.1.0
ANDROID: ..4.4.4
ROM/BUILD: CM11-20140821-NIGHTLY-bacon
KERNEL: ...3.4.0-g41804e5
RADIO: ....M8974AAAAANPZM-1


"Science will eventually answer ALL questions, thus ending religion's wretched grasp on humanity."
 
force70
Old
#4  
force70's Avatar
Senior Member
Thanks Meter 1,640
Posts: 2,907
Join Date: Jan 2012
Location: toronto
Peter a big thank you for the effort on this one. Im not having the issue(yet) but i had been wondering about the cause after reading your posts.

Sent from my SM-N900W8 using xda premium
RESISTANCE IS FUTILE.


Current devices :S4, Note 3, G2
The Following User Says Thank You to force70 For This Useful Post: [ Click to Expand ]
 
lance_lascari
Old
#5  
Junior Member
Thanks Meter 0
Posts: 3
Join Date: May 2011
Quote:
Originally Posted by PeterGuru View Post
It looks like we've gone through the same thing. Sadly, when the IndexService error exists, it REALLY sucks battery power.

I hope you get yours resolved.

Peter

P.S. So far today ... no errors.

Since I'm going to be travelling this week and need the phone to be reliable, I tried just deleting my document archives for now ( ~ four thousand PDF files mostly)... and what a difference in battery life and keeping that error message away. I hope they fix it so I can have my docs back.

Lance
 
PeterGuru
Old
#6  
PeterGuru's Avatar
Senior Member - OP
Thanks Meter 1,147
Posts: 1,415
Join Date: Mar 2008
Location: Ontario, Canada

 
DONATE TO ME
Default I'm not sure if they will fix it ...

Quote:
Originally Posted by lance_lascari View Post
Since I'm going to be travelling this week and need the phone to be reliable, I tried just deleting my document archives for now ( ~ four thousand PDF files mostly)... and what a difference in battery life and keeping that error message away. I hope they fix it so I can have my docs back.

Lance
To be honest, I'm not sure if "they" will ever fix it.

At least you know, for sure, that it has to do with your PDF files, just like my situation. Perhaps you can now do what I did, and start copying all the PDF files back to your device, but in large groups ... perhaps 100 at a time. Then wait about 5 minutes, and try another 100.

Logically speaking, though, it would be best to try half your PDF files, so about 2000 first. Then, if you get the error message, remove them all, and re-copy 1000 of them. Slowly but surely you'll narrow down the culprit files. Yes, it may take you a few to several hours, but it can be done, and you'll probably discover that it's simply a few files, or even just ONE file that's causing all the problems.

Peter
MODEL: ....OnePlus One (Global)
VERSION: ..A0001 (64GB Sandstone)
RECOVERY: .TWRP v2.7.1.0
ANDROID: ..4.4.4
ROM/BUILD: CM11-20140821-NIGHTLY-bacon
KERNEL: ...3.4.0-g41804e5
RADIO: ....M8974AAAAANPZM-1


"Science will eventually answer ALL questions, thus ending religion's wretched grasp on humanity."
 
lance_lascari
Old
#7  
Junior Member
Thanks Meter 0
Posts: 3
Join Date: May 2011
Quote:
Originally Posted by PeterGuru View Post
To be honest, I'm not sure if "they" will ever fix it.

At least you know, for sure, that it has to do with your PDF files, just like my situation. Perhaps you can now do what I did, and start copying all the PDF files back to your device, but in large groups ... perhaps 100 at a time. Then wait about 5 minutes, and try another 100.

Logically speaking, though, it would be best to try half your PDF files, so about 2000 first. Then, if you get the error message, remove them all, and re-copy 1000 of them. Slowly but surely you'll narrow down the culprit files. Yes, it may take you a few to several hours, but it can be done, and you'll probably discover that it's simply a few files, or even just ONE file that's causing all the problems.

Peter
Peter,

I appreciate your comment -- but the issue is pretty widespread and I suspect the noise level will rise as people start really using their devices (only released on Verizon in the US this past week). They would be unwise not to fix it; the two previous generations of the stock note phones did not show this problem. A bit selling point is the ability to have so much storage (between internal and SD). It is possible that I will someday put the effort in to find any specific files that cause the problem, but the whole directory is synchronized with dropbox and I don't want to have to separate it and lose sync just to work around samsung's bug.

I guess I will give some of it a shot, at least I will copy the folder with mostly books (large files, a few hundred) before the archives of technical literature -- that is a start to see if I can narrow it down. I'll have my nexus7 with me, which happily deals with the same files...

Cheers,
Lance
 
McIringer
Old
#8  
Member
Thanks Meter 3
Posts: 37
Join Date: Jun 2012
So if I let this service to run long enough to do its job, will it ever finish? As I noticed it runs only when the screen in on. And the culprit pdf (600Mb) in my case is the only one I really need. Is there any way to block it without root access and permanently?
Thanks!
 
Dumbo53
Old
#9  
Senior Member
Thanks Meter 35
Posts: 140
Join Date: Nov 2012
Location: San Francisco
I think if you add a file named .nomedia to a folder it will prevent any indexing in that folder. A very similar problem can occur with a corrupt music or video file. In that case also, the battery life is killed quickly since it can't complete its scanning. Best to identify the bad files and get rid of them, but if that's not an option, add a .nomedia file to the directory.

Sent from my SAMSUNG-SGH-I317
 
PeterGuru
Old
#10  
PeterGuru's Avatar
Senior Member - OP
Thanks Meter 1,147
Posts: 1,415
Join Date: Mar 2008
Location: Ontario, Canada

 
DONATE TO ME
This is what I was going to suggest; however, it doesn't always work ... but give it a try.

The ".nomedia" file should be created within your device.

Peter

Sent from my mobile device
MODEL: ....OnePlus One (Global)
VERSION: ..A0001 (64GB Sandstone)
RECOVERY: .TWRP v2.7.1.0
ANDROID: ..4.4.4
ROM/BUILD: CM11-20140821-NIGHTLY-bacon
KERNEL: ...3.4.0-g41804e5
RADIO: ....M8974AAAAANPZM-1


"Science will eventually answer ALL questions, thus ending religion's wretched grasp on humanity."

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes