The application Gallery (process com.cooliris.media) has stopped unexpectedly

Search This thread

acem77

Senior Member
Nov 2, 2006
137
1
This is so annoying,
I have tried everything I could find online,

I removed the SD card to eliminate that as an option related to a corrupt image/ card.

I cleared Gallery the data under manage applications.

With ES file explorer

I deleted the com.cooliris.media folder multiple times

I renamed all dirs to hide them from the Gallery indexing.
Example renamed “DCIM” to ”.DCIM”

I opened and examined the file chunk_0 in
/com.cooliris.media/cache/local-album-cache
I was hoping i could see how far or were it crashed by the last dir it indexed.
After hiding all the dirs. I got it to this.

Data in “chunk_0(this file will grow as dirs are scanned and files are found)” opened in a hex editor.

..US..en............./...........4.......4...........b..intro..video/mp4.......................4.........O.{.....O.u...w..............:.............../

Not sure if this is a hit on what is crashing the gallery?
 

acem77

Senior Member
Nov 2, 2006
137
1
Have not done that, dont want to reconfigure the phone from scratch.
I always like to know the root of the real issue. seems kind of common.
 

Kaleptik

Inactive Recognized Developer
Jun 3, 2009
3,801
1,229
30
www.acidhazardrom.com
I never use Gallery. Ever. So I wouldn't have an exact idea why it was going crazy.
Are you rooted and do you have Titanium Backup Free/Pro?
If so, back up the gallery app. Then delete it from the /system.
Restart your phone and restore the Gallery app and make it a system app again.
 

acem77

Senior Member
Nov 2, 2006
137
1
its rooted and i have Titanium Backup Pro.
i did not know you can delete the gallary.

I did download another gallery like app for now.
but i may give that a try.
 

acem77

Senior Member
Nov 2, 2006
137
1
i made the back up of the gallery, uninstalled it, when i try to recover/install it from the back up the phone stays in an install loop.
I have to reboot the phone.

now i deleted it how do i reinstall it?
I have gallery apk from the backup and the original is still under /system/app/com.cooliris.media.apk

when run the apk i get an error, application not installed.

I tried to use adb with no luck.

F:\~droid\root backup restore files\SuperOneClickv2.1.1-ShortFuse\ADB>adb instal
l gal.apk
993 KB/s (458660 bytes in 0.451s)
pkg: /data/local/tmp/gal.apk
Failure [INSTALL_FAILED_DEXOPT]


any pointers?
 

Kaleptik

Inactive Recognized Developer
Jun 3, 2009
3,801
1,229
30
www.acidhazardrom.com
Follow the exact steps.

  1. Open Titanium Backup
  2. Wipe Gallery data (From Titanium Backup)
  3. Uninstall Gallery (From Titanium Backup)
  4. Restart phone
  5. Restore App of Gallery (From Titanium Backup)
  6. Restart phone
  7. Try using gallery
 

acem77

Senior Member
Nov 2, 2006
137
1
I don’t think titanium is an option now.

as it never finishes installing. i let it go all night.
The Gallery has been deleted and i only have the option to restore. My only options are to restore App only or App+Data. both don’t finish.

so i have been reading you can force/push installs. i must be doing something wrong as it seems a restriction is preventing the other install methods,

at this point the only reason i care is i cant view images in 3d.
 

Kaleptik

Inactive Recognized Developer
Jun 3, 2009
3,801
1,229
30
www.acidhazardrom.com
I don’t think titanium is an option now.

as it never finishes installing. i let it go all night.
The Gallery has been deleted and i only have the option to restore. My only options are to restore App only or App+Data. both don’t finish.

so i have been reading you can force/push installs. i must be doing something wrong as it seems a restriction is preventing the other install methods,

at this point the only reason i care is i cant view images in 3d.

Using adb

adb shell
su
mount -o remount,rw /dev/block/stl9 /system
exit
exit
adb push Gallery.apk /system/app

Reboot the phone.

Sent from my Samsung Galaxy S II
 

acem77

Senior Member
Nov 2, 2006
137
1
thanks but the phone does not seem to install it after the reboot.

F:\~droid\root backup restore files\SuperOneClickv2.1.1-ShortFuse\ADB>adb shell

$
$ su
su
# mount -o remount,rw /dev/block/stl9 /system
mount -o remount,rw /dev/block/stl9 /system
# exit
exit
$ exit
exit

F:\~droid\root backup restore files\SuperOneClickv2.1.1-ShortFuse\ADB>adb push g
al.apk /system/app
1321 KB/s (458660 bytes in 0.339s)

maybe it not 100% uninstalled? could have been an issue with how Titanium removed it.
if the os thinks its still there it wont install over it.
 
Last edited:

acem77

Senior Member
Nov 2, 2006
137
1
crap i created file called "\" now they systems treats it like a dir. i cant delete it

this is how i created it...fat fingered
F:\~droid\root backup restore files\SuperOneClickv2.1.1-ShortFuse\ADB>adb push c
om.cooliris.media.apk /system/app/\

ES file Explorer shows it as a 447.91kb file the same size as the com.cooliris.media.apk file...

if select delete in ES i starts to tally the root dir as if it will delete everything under "system"

I guess it can stay ....

I am still trying to get com.cooliris.media.apk to reinstall. will i see any installing action once i reboot the phone after pushing it?

I dont see any sign of it installing other than it appearing in the apps dir.
how does push really work should the Os install any apk in the app dir if missing?
 

acem77

Senior Member
Nov 2, 2006
137
1
this is just getting a annoying if the app is under /system/app
more or less thats it right? what would stop it from being seen by the phone...
been messing with the thing for hours.

then its crap i cant restore the gallery backup i made with out titanium get stuck...
 

acem77

Senior Member
Nov 2, 2006
137
1
I've never used it. Does ES File Explorer have root permissions?

yes i can hit any dir like system, and it can change all attributes.
I have been using it now to move files from my pc over the wifi and network shares.
I can have app.apk on my pc see it on the network with ES, and copy it to /system/app
 

acem77

Senior Member
Nov 2, 2006
137
1
i put a another version of gallery from another phone i found online in /system/app

after a reboot it showed up. not sure it thats a real sign as i can manual run and install it if i wish.

also this does no good in the long run as you cant view photos in 3d, as they are displayed side by side in this version of gallery.

maybe i need a fresh copy if the lg thrill gallery?
 
Last edited:

acem77

Senior Member
Nov 2, 2006
137
1
ok i found a ver of gallery from a custom cooked rom posting.
it shows up now,
http://xdaforums.com/showthread.php?t=1309114&highlight=gallery

but it still crashes like the original one did at the start of all this lol....:p

atleast i can view my pictures in 3d again.

i dont know what is causing the crash, but what causes it is at the end of scanning all the images. the more picutes i have the longer it takes to crash.
if i have zero images it crash instantly.

I guess my backup of the original gallery is corrupt?