Tuesday, 15 January 2013

android - application does not respond and give exception Could not lock surface java.lang.IllegalArgumentException -


I am downloading many videos and showing its progress in the list items. I am saving every 5% of the download information in my SDCD files so that there is enough information in the user's apparent data to show pending progress still. I am using code to show progress:

But after downloading I hung the whole UI by putting 5 or 6 videos and after some time the app crashed. In my log cat it only shows

  03-18 10: 19: 42.651 25120-25626 / toteflix.com w / system. Er: java.io.IOException: Open failed: amphipile (very many open files) 03-18 10: 19: 42.651 25120-25626 / toteflix.com w / system. Er: on java.io.file.createNewFile (file. Jawaः 9 41) 03-18 10: 19: 42.651 25120- 25,626 / toteflix.com w / System.err: com.intersoft.youngcutsmovies.AppActivity $ writeTo.doInBackground ( AppActivity.java:162) on 03-18 Aktubr: 19: 42.651 25,120-25,626 / toteflix.com w / System.err: com.intersoft.youngcutsmovies.AppActivity $ writeTo.doInBackground (AppActivity.java:123) in 03-18 10: 19: 42.651 25,120-25,626 / toteflix.com w / System.err: on android.os.AsyncTask $ 2.call (AsyncTask.java, 8888) 03-18 10: 19: 42.651 25120-25626 / toteflix.com W / Systems Er: java.util.concurrent.FutureTask.run (FutureTask.javathing37) 03-18 10: 19: 42.651 25,120-25,626 / toteflix.com w / System.err: android.os.AsyncTask $ SerialExecutor $ 1.run (AsyncTask .java: 231) in October 18-18: 19: 42.651 25,120-25,626 / toteflix.com W / Systems. Er: on java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1112) 03-18 Aktubr: 19: 42.651 25,120-25,626 / toteflix.com w / System.err: java.util.concurrent.ThreadPoolExecutor $ Worker. Run on (ThreadPoolExecutor.java tithi87) 03-18 10: 19: 42.651 25120-25626 / toteflix.com w / system. Er: On java.lang.Thread.run (Thread.Java: 818) 03-18 10:19: 42.651 25,120-25,626 / toteflix.com w / System.err: android.system.ErrnoException: failed to open due to Has been: EMFILE (too many files open) 03-18 October: 19: 42.651 25,120-25,626 / toteflix.com w / system .err: 19 :: 42.651 25,120-25,626 / toteflix.com w / System.err: libcore. io.BlockGuardOs.open (BlockGuardOs.java:186 libcore.io.Posix.open (Native method) 03-18 October) 03-18 10: 1 9: 42.651 25120-25626 / toteflix.com w / system. Er: On java.io.file.createNewFile (File: Java: 9 34) 03-18 10: 19: 42.651 25120-25626 / TetFlix .com W / System.err: ... 8 more  


No comments:

Post a Comment