when ashmem_create_region fails the uid and guid is system(1000) and the open call to /dev/ashmem fails. The previous calls to /dev/ashmem as root succeeds.
E/ashmem-dev( 946): FXP: ashmem_create_region enter (dalvik-heap- bitmap/objects) uid 0 euid 0 pid 946 FXP: ashmem_ioctl 548 FXP: ashmem_ioctl 559 FXP: ashmem_ioctl 562 asma->file 00000000 arg 00039000 FXP: ashmem_mmap 212 FXP: ashmem_mmap 218 FXP: ashmem_mmap 224 FXP: ashmem_mmap 244 E/dalvikvm( 946): FXP: dalvik/vm/alloc/HeapSource.c 362 E/dalvikvm( 946): FXP: dalvik/vm/alloc/HeapSource.c 373 I/dalvikvm( 946): System server process 1080 has been created I/Zygote ( 946): Accepting command socket connections E/dalvikvm( 1080): FXP: dalvik/vm/alloc/HeapSource.c 328 E/mspace ( 1080): FXP: create_contiguous_mspace_with_name enter E/mspace ( 1080): FXP: calling ashmem_create_region with (mspace/ dalvik-heap/2) E/ashmem-dev( 1080): FXP: ashmem_create_region enter (mspace/dalvik- heap/2) uid 1000 euid 1000 pid 1080 On Jan 20, 3:53 pm, mowgli <[email protected]> wrote: > The errno returend is 13 which is permission denied. > > Here is further logs: > E/mspace ( 1078): FXP: create_contiguous_mspace_with_name enter > E/mspace ( 1078): FXP: calling ashmem_create_region with (mspace/ > dalvik-heap/2) > E/ashmem-dev( 1078): FXP: ashmem_create_region enter (mspace/dalvik- > heap/2) > E/ashmem-dev( 1078): FXP: ashmem_create_region open failed (mspace/ > dalvik-heap/2) > E/mspace ( 1078): FXP: ashmem_create_region failed (mspace/dalvik- > heap/2) fd -1 errno 13 > E/dalvikvm-heap( 1078): Can't create VM heap of size 262144 > 14610448 > E/dalvikvm( 1078): FXP: dalvik/vm/alloc/HeapSource.c 346 > E/dalvikvm( 1078): error in post-zygote initialization > E/dalvikvm( 1078): VM aborting > I/dalvikvm( 903): System server process 1078 has been created > I/Zygote ( 903): Accepting command socket connections > D/Zygote ( 903): Process 1078 terminated by signal (11) > I/Zygote ( 903): Exit zygote because system server (1078) has > terminated > > On Jan 15, 3:51 pm, fadden <[email protected]> wrote: > > > On Jan 14, 5:11 pm, fadden <[email protected]> wrote: > > > > The VM is calling create_contiguous_mspace_with_name(), which in turn > > > is calling ashmem_create_region(). So it sounds like the ashmem > > > driver is unhappy about something. > > > Check the errno value after ashmem_create_region() fails. If it's > > ENFILE or EMFILE then you simply have too many files open. --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
