Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

Find everything you need for the Galaxy S5 and discuss it in our S5 forum!
Have you seen that OnePlus One's awesome camera?? The forum is over here!

test: Reply
 
LinkBack Thread Tools
Old November 6th, 2012, 07:47 PM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Nov 2012
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default The bug issue!

I'm currently working on a cool Android game which was about to be released real soon. Some of our beta testers started complaining that the game crashes with the “too many open files” error message. I've tried simulating this problem on the AVD emulator but couldn't reproduce the error.

Afterwards, I realized that only our Galaxy S3 and Asus Nexus 7 testers were complaining.

I found this bug issue on Android's bug tracker and it sounds quite similar to what is happening to me:
Issue 39002 - android - Devices with internal SD cards are limited to only 1024 open file descriptors - Android - An Open Handset Alliance Project - Google Project Hosting
This sounds like a serious architecture problem which effects all Internal SD cards devices.

These devices are limited to 1024 file descriptors only!
Can anybody confirm this problem?

outcast_no5 is offline  
Reply With Quote
sponsored links
Old November 7th, 2012, 02:19 AM   #2 (permalink)
Junior Member
 
Join Date: Apr 2012
Location: London
Posts: 98
 
Device(s): ZTE Skate, Ainol Novo7 Aurora
Carrier: Not Provided

Thanks: 2
Thanked 24 Times in 23 Posts
Default

Do you really have 1024 files open (in which case I think you probably have a few architectural problems of your own)? Or are you forgetting to close your file handles and leaking them?
GeorgeN is offline  
Reply With Quote
Old November 7th, 2012, 02:48 AM   #3 (permalink)
Junior Member
 
Join Date: Apr 2012
Location: London
Posts: 98
 
Device(s): ZTE Skate, Ainol Novo7 Aurora
Carrier: Not Provided

Thanks: 2
Thanked 24 Times in 23 Posts
Default

If you don't already know which files are open (or you want to trackdown a leak) and you have access to a rooted device with busybox, you can run the "lsof" (list open file descriptors) command from "adb shell" or a terminal emulator application (you need to run it as root).

This command will list all the files which the sdcard process has open:
Code:
lsof | grep ^sdcard
And this command will count the number of file descriptors the sdcard process has open:
Code:
lsof | grep ^sdcard -c
On my Nexus 7 (with a few apps running in the background) the sdcard process only has 23 open files.
GeorgeN is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:10 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.