Music hiccups when there is ANY change in network coverage.


Last Updated:

  1. Jakko

    Jakko Member This Topic's Starter

    Joined:
    Feb 21, 2010
    Messages:
    7
    Likes Received:
    0

    Advertisement
  2. jasonb1985

    jasonb1985 Well-Known Member

    Joined:
    Jan 5, 2010
    Messages:
    987
    Likes Received:
    67
    the hiccups in the audio are from the Dalvik virtual machine doing it's garbage collection. it's just how linux works, no way around it. yes it's annoying but it is what it is. download a program that shows you logcat in real time and you'll see what i mean.

    everytime you hear a hiccup you'll see it say "dalvikvm: GC freed xxxx objects / xxxx bytes in xxx ms".
     
  3. Jakko

    Jakko Member This Topic's Starter

    Joined:
    Feb 21, 2010
    Messages:
    7
    Likes Received:
    0
    Does this mean it also worked like this on all android devices before droid/milestone? I do not remember such a thing with my g1.
     
  4. jasonb1985

    jasonb1985 Well-Known Member

    Joined:
    Jan 5, 2010
    Messages:
    987
    Likes Received:
    67
    android is linux and this is just a side effect of linux. because it is always multitasking it is also doing very frequent garbage cleanups to free memory back up.

    i am not saying that it doesn't also hiccup when changing from 1x to 3g or whatever like you are saying. that may be true, but most of the hiccups you are hearing are probably from the virtual machine doing very slight pauses when clearing old data. the virtual machine has to very quickly pause every other process that is going on when it does it's garbage cleanup. usually it's a fraction of a second, could be as quick as 50ms (maybe even quicker) and could also be upwards of 250ms. a 250ms pause is only 1/4 of a second, but you'll definitely notice that.

    after i realized what was causing this and that it's never going to go away i just got used to it. i barely even notice it anymore.
     
  5. Jakko

    Jakko Member This Topic's Starter

    Joined:
    Feb 21, 2010
    Messages:
    7
    Likes Received:
    0
    Just to be clear, I do not notice any hickups whatsoever when flightmode is turned on, regardless of what I do in android. (open applications)
    And every single time a connection drops or is re-established there is a hickup.
    Does this mean garbage collection only occurs when connection-related changes happen?
     
  6. jasonb1985

    jasonb1985 Well-Known Member

    Joined:
    Jan 5, 2010
    Messages:
    987
    Likes Received:
    67
    no.

    most of the garbage collection cycles are to small to notice. some of the larger ones take more time and cause noticeable hiccups in the audio. the larger ones are pretty rare though.
     
  7. Jakko

    Jakko Member This Topic's Starter

    Joined:
    Feb 21, 2010
    Messages:
    7
    Likes Received:
    0
    According to some droid users I talked to, this is not an issue on the droid. Which is strange, does the droid not collect garbage?
     
  8. Jakko

    Jakko Member This Topic's Starter

    Joined:
    Feb 21, 2010
    Messages:
    7
    Likes Received:
    0
    So do droid users not visit these forums or is there noone willing to test this issue on their droid?
     
  9. alostpacket

    alostpacket Over Macho Grande? VIP Member

    Joined:
    Nov 29, 2009
    Messages:
    7,978
    Likes Received:
    3,603
    Dalvik is pretty aggressive in gc it seems. But that seems like a dalvik issue not Linux, no?
     
  10. jasonb1985

    jasonb1985 Well-Known Member

    Joined:
    Jan 5, 2010
    Messages:
    987
    Likes Received:
    67
    dalvik... linux... whatever. lol either way the droid is almost constantly doing garbage collection.
     
  11. alostpacket

    alostpacket Over Macho Grande? VIP Member

    Joined:
    Nov 29, 2009
    Messages:
    7,978
    Likes Received:
    3,603

    Indeed. I'm looking forward to it being more optimized. I'd really like them to removed the damn log messages too heh.
     
  12. homeopt

    homeopt New Member

    Joined:
    Dec 6, 2010
    Messages:
    1
    Likes Received:
    0
    I've only noticed the problem when I've lost data connection. Not sure if the analysis about garbage collection is accurate.
     

Share This Page

Loading...