14

I have a Samsung Galaxy S6 Edge (64GB) running Android Lollipop 5.0.2 which I've had since release day (April 10th 2015) and as the title mentions, there seems to be an issue in that my images are no longer displaying in the default gallery app. I also have quite a lot of music on the phone which doesn't display in the "Music Player" anymore. I'm not sure what causes the photos and music to disappear as it seems to be totally random. I can still see the files in the default file manager "My Files".

The first time it happened I thought that it may have been a glitch so did a factory reset and everything was fine again (although it does take about 3 hours for me to get the phone just how I like it). It then happened a second time a few days later and so I did another factory reset. When it happened the third time I was getting pretty annoyed and took it to my local Samsung Repair Centre where they said it was a software problem and they would have to reinstall Android and it would be sorted. However, 5 days later it happened again so I went back to Carphone Warehouse where I purchased the contract from and demanded a new phone as it had to be an issue with the phone as I couldn't find a record of it happening to anyone else and Samsung had already eliminated a software problem.

NOW, 2 weeks after I got a new phone IT HAS HAPPENED AGAIN! The images were there this morning and come this evening they have all disappeared from the gallery and again the music has disappeared. I've done nothing out of the ordinary with my phone today so cannot identify what has happened.

If I take new pictures on the camera, they appear in the gallery fine, but the old ones do not. If I look in "My Files" I can see that the old images are in the exact same location as the new photo that I've just taken... It's almost like they are hidden from the gallery. If I install an app such as QuickPic all the images are displayed in there, both new and old however I cannot use this for sharing images to facebook etc so it's not ideal.

The same applies to the music files that I have. If I look in "My Files" I can see them but they do not appear in "Music Player" which means that all my alarm tones have been set back to their default tracks i.e. "Morning Flower".

The screenshots below shows all the images that are currently in the Camera folder where only the top one appears in the gallery and only the top one is in the Images Category in "My Files".

enter image description here

I've had a play around with all sorts of settings, cleared the cache partition, clicked "Show Hidden Files" in "My Files" and rebooted the phone several times but there still seems to be an issue. I've also deleted the "Media Data" from the "Media Storage App" which emptied my gallery but on reboot didn't do a rescan (or at least didn't get any results). As it's an S6 Edge there is no SD card so it shouldn't be an issue with mounting the disk (although it wouldn't make sense since the new files are in the same location as the old ones).

I've managed to find a couple of people with a similar issue on AE but they've not had a response see here and here.

Is there some sort of debug log that I can create and upload to somewhere? Could it be a specific combination of apps that I've got since there are minimal people with the same issue?

I'd be grateful for any ideas as it's driving me insane!

Thanks in advance,

Adam.

EDIT: I've linked up my phone to the computer and run adb logcat but the log is huge and I'm not sure what I'm looking for. The following error appears fairly frequently:

< 6>[18330.193843] [6:MediaScannerSer:22775] binder: 3874:22775 transaction failed 29189, size 416-0

If there is a specific bit in the log that would be helpful, please let me know and I'll do my best to extract it.

EDIT 2: Is there a procedure that I can follow to create a bug report that I can then send to Google or Samsung?

  • possible duplicate of Force Media Update? – ce4 May 20 '15 at 8:16
  • Not really... There is no external storage on the S6, my issue happens randomly and a reboot doesn't fix it... – Adam Holmes May 20 '15 at 8:28
  • SDrescan & co also work on "non-microSD card" phones, as the underlying mechanisms are transparent to the used file-system (in your case: /sdcard is made available through a fuse layer, which is part of Android since 4.0 to emulate the old FAT32 characteristics). – ce4 May 20 '15 at 8:47
  • Seems indeed to be a Samsung software bug. Can you try to "delete data" of the Media Storage app (find it here: Settings=>Apps=>all apps=>"media storage"=>"delete data"). external howto here. – ce4 May 20 '15 at 8:53
  • 1
    You could able to select which app to open to select those photos from the tw/fb apps..May be you have selected "Always" when selecting the options..clear the defaults for tw/fb apps and you will be able to selected from which app you want to list those albums and based on the app you installed you can select the photos from it and you wont rely on the default gallery app anymore.. – Lucky May 27 '15 at 17:44
6
+50

Updated answer:

Check if you have a hidden file named .nomedia (double check also for uppercase name) on device memory (storage folder) and delete.

Go to Settings > Apps -> ALL -< Media Storage. Select Clear data + Clear defaults. Disable the App.

Reboot the device. Now enable again Settings > Apps -> ALL -< Media Storage. Wait a couple of minutes (so it should reindex files). I think all files should be now again in Gallery. Note: Do not try to run any rescan App, just follow the above steps.

Old answer:

The error you got in logcat is related to a specific function for processing/scaling up images. It is a known fact: Binder transaction buffer has limited and fixed memory (1MB). This buffer is used by all transactions and shared across process. For e.g., If you have a big number of large images files and some of them are corrupted (either by poor, bad transfer via computer and device, computer and SD card, and so on), or some of them are not recognized by your app (in your case Gallery), once this app tries to create thumbnails or previews for your files and actually scale down/up one of those files, the process may fail.

The same case must be with a number of files (like ringtones or .wav diles, or .ogg, or any type of music) which have problems either in content, size, signature.

Because you said the problem comes back, I suspect this kind of strange behavior from your apps. I don't even think to a bug in kernel or something like this.

So, for your own safety:

  • Try to put back all those files on your pc;
  • Clear from SD card/phone memory;
  • Verify in PC for the 'bad' files, then put back 'correct' files in your device.

Take in consideration this fact also: a .gif, .jpg, .png or whatever kind of image you have, may be rendered as 'correct' in your computer or device, but actually may have 'bad' content (disrupted content). Remember, all operation related to process images inside your Android device are based on compress/decompress them (for the most common operations) and those are made 'bit-by-bit' if I can say so. Forcing an app to render incorrect type or content (wrong height/width/file lenght) should outcast a TransactionTooLargeException (this is what MediaScanner throws in logcat).

  • 2
    As you suggested I copied all the images back to my PC, removed them from the phone and then copied a few files back. My Gallery is now totally empty and not displaying any images. I've run the rescan app again and also rebooted the device. Still empty. – Adam Holmes May 27 '15 at 17:54
  • I have updated my answer. Do not try to run any rescan app, just follow the steps. – user3344236 May 28 '15 at 11:29
  • It works for me also. The problem is not specific to Samsung. I have a Motorola E2 and was having the same problem. Do the steps above. First you will feel like it is not working. But wait for 5- 10 minutes for the reindexing to complete. Then your files will become visible. – Syam Kumar S Sep 18 '15 at 13:58
  • Followed on updated answer and waited for more than 10 minutes but still not working. Lenovo K5+ – vee Mar 25 '17 at 19:03
  • Tried on 2017-09-16 Clear data and clear cache on Media Storage, Gallery, Music apps without disable them and then restart. After restarted wait for few minutes and check on the music app, or gallery app, or settings > ring & vibrate > tone list for call, message, notification. If there is some list appears then it is currently working just wait for it. – vee Sep 15 '17 at 18:20
5

This same thing has happened to me and I've only had my s6 Edge a little over a week. I went through each file in my files and device storage and deleted ".nomedia" files. All of my pictures are now back in the gallery.

0

Its media scanner most likely. Thing is, on modern android versions very few media scanner apps are there in play store (especially for lollipop) and hence most apps will either crash or simply not work. So best thing is you can only try some apps and see if they work using hit and trial (I personally dont use lollipop so cant test). For ex, try this app maybe?

On side note, you can also try kicking media scanner through adb->

adb shell am broadcast android.intent.action.MEDIA_MOUNTED

Another method to try out is go to settings and clear data and cache for your gallery app so it re-analyzes all media.

  • I will try the adb command when I get home. As for deleting the media cache it just deletes it but never regenerates! – Adam Holmes May 28 '15 at 8:35
  • Ok, try this too-> Delete the data and cache for gallery. Enter adb logcat but dont press enter yet (I mean dont start logging yet). Open gallery and as soon as you press on it start adb logcat, let it run for 5 secs. Maybe it will reveal something better.... – Jaskaranbir Singh May 28 '15 at 8:41
0
  • Make a New folder for your Images/Music
  • Move all your Images/Music files to new folder
  • Delete the old empty folder

I know it is very low quality answer without description of how it works. But I've shared it because it worked for me on my mobile and I have faced this problem once.

0

This have solved my problem. Thanks.

I just removed the file '.nomedia' from android root directory. All my files are back again on gallery apps.

I am pretty sure that this file was created after installing google photos.

  • 1
    Using .nomedia file is Android's native way of allowing users to exclude a directory from mapping the images inside it. You can see such file in Android folder as well. – Firelord Jun 9 '15 at 16:41
0

I have had this issue for a long time and I just found something that works:

  1. go to your file manager (i use Explorer, if it matters)
  2. navigate to /sdcard
  3. select every file and directory
  4. CUT all of them and immediately paste them all back in the same place

Apparently, you need to touch the modification date, and I found this easier than writing a shell script or renaming all of the files. They should immediately be back in the gallery once you succeed. Note: if there is an issue during the move operation, you will probably have data loss. Use at your own risk.

0

My Gallery didn't show my SD card pictures anymore after Xperia update to 6.0.1.

After multiple reboot attempts and ejecting the SD card once I found that the Gallery App has the following under its settings: Help > Find and fix problems (paraphrased from my German version)

After running this, everything is OK again.

Note: Files were always visible in file browser, so I guess it was some media scanner issue.

-1

Use media scanner apps(such as force media scanner) to initiate media scan manually.

  • 2
    I've just tried both "force media scan" and "rescan media" which just crash as soon as I click start... – Adam Holmes May 20 '15 at 6:10

Not the answer you're looking for? Browse other questions tagged or ask your own question.