[android-developers] Re: Garbage Collection Infinit Loop: clamp GC FOR MALLOC Grow heap loop

2010-07-08 Thread TjerkW
I am still not 100% sure what caused it but i solved it as follows. I created a Service with a Handler. However that Handler was not in its own thread. So i had someting like: public class ImageUploadService extends IntentService { private Handler handler = new Handler() The service was not

[android-developers] Re: Garbage Collection Infinit Loop: clamp GC FOR MALLOC Grow heap loop

2010-07-07 Thread fadden
On Jul 6, 6:43 am, TjerkW tje...@gmail.com wrote: Basically this stops me from properly implementing a background file upload. Anybody has an idea what is going on here? Looks like the heap is full. What's taking up all that space? Is something catching and ignoring OOM? -- You received

[android-developers] Re: Garbage Collection Infinit Loop: clamp GC FOR MALLOC Grow heap loop

2010-07-06 Thread TjerkW
Basically this stops me from properly implementing a background file upload. Anybody has an idea what is going on here? On Jul 6, 12:02 pm, TjerkW tje...@gmail.com wrote: I have a Service which uploads a big file to a webserver. This works fine on the emulator (android 2.1). But if i run it

[android-developers] Re: Garbage Collection Infinit Loop: clamp GC FOR MALLOC Grow heap loop

2010-07-06 Thread sws-vinpa
TjerkW: I am wondering, are you using sockets for this type of application? I have run into a similar problem where a front-end application written on Android in Java connects through a socket to a back-end server (not a Service, in Android terms) written in C. During stress-testing, I killed

[android-developers] Re: Garbage Collection

2009-08-19 Thread Carl Whalley
You don't have to call it yourself, but you can if you want to give it a hint that right now would be a good time to clean up. Even then, there is no guarantee it will do anything. Heres an example - say you have an action game which does the minimum possible (but still some) allocations during

[android-developers] Re: Garbage Collection

2009-08-19 Thread fadden
On Aug 18, 5:56 pm, vanquisher sinner vanquisher.sin...@gmail.com wrote: For every application there seems to be a HeapWorker thread which does all the GC. The HeapWorker thread runs finalizers and occasionally releases empty 4K pages back to the system. The GC runs when an allocation bumps

[android-developers] Re: Garbage Collection

2009-08-18 Thread Yusuf Saib (T-Mobile USA)
No, you do not have to make calls to it. You are correct, the JVM does that on its own. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of

[android-developers] Re: Garbage Collection

2009-08-18 Thread vanquisher sinner
For every application there seems to be a HeapWorker thread which does all the GC. On Tue, Aug 18, 2009 at 2:56 PM, Yusuf Saib (T-Mobile USA)yusuf.s...@t-mobile.com wrote: No, you do not have to make calls to it. You are correct, the JVM does that on its own. Yusuf Saib Android ·T· ·