Small lag at times

You can post your bug reports here. Please include at least the app version and your phone, and any useful information.
fekish
Posts: 37
Joined: Wed Oct 27, 2010 6:10 am
Phone: 0035799347957

Small lag at times

Post by fekish »

Hello,

i have been using the keyboard for around 10 months on the Milestone, and its the first time i am going to ask this question:

At some point as i am writing , there is a small lag of 1-2 seconds and then suddenly all the letters that i pressed appear in the line i was writing...

Does anyone else have this lag?

Thanks
User avatar
cyril
Developer
Posts: 2079
Joined: Tue Feb 02, 2010 4:02 pm
Phone: Nexus One 2.3
Location: Nice, France

Re: Small lag at times

Post by cyril »

Probably due to the garbage collector running at that time. The only way to know is to log at the phone logs at the time you had a lag
Cyril
fekish
Posts: 37
Joined: Wed Oct 27, 2010 6:10 am
Phone: 0035799347957

Re: Small lag at times

Post by fekish »

Garbage collector? ;)
User avatar
cyril
Developer
Posts: 2079
Joined: Tue Feb 02, 2010 4:02 pm
Phone: Nexus One 2.3
Location: Nice, France

Re: Small lag at times

Post by cyril »

Lines such as:
D/dalvikvm( 131): GC_FOR_MALLOC freed 29155 objects / 1945224 bytes in 141ms
in the phone logs

Garbage collection is the mechanism used in the Java language to free unused memory in the app. Unfortunately it happens in the main thread of the application, which means the user interface of the app is freezed while the GC is running, which can take a long time on a slow phone (up to 1s)
Cyril
fekish
Posts: 37
Joined: Wed Oct 27, 2010 6:10 am
Phone: 0035799347957

Re: Small lag at times

Post by fekish »

Ok thanks,

from where can i get the log from my phone in order to post it here?

So on your phone, if you write pretty fast press space write pretty fast (just press letters with no meaning), it will not have a lag?

thanks again
User avatar
cyril
Developer
Posts: 2079
Joined: Tue Feb 02, 2010 4:02 pm
Phone: Nexus One 2.3
Location: Nice, France

Re: Small lag at times

Post by cyril »

You can use "Log Collector" app
And no, there is no lag on my Nexus One, but there can be on my Hero ;)
Cyril
fekish
Posts: 37
Joined: Wed Oct 27, 2010 6:10 am
Phone: 0035799347957

Re: Small lag at times

Post by fekish »

ok, so it might be fault of Milestone then :)
User avatar
PROXIMO
Posts: 35
Joined: Thu Oct 14, 2010 7:07 pm
Phone: Wildfire

Re: Small lag at times

Post by PROXIMO »

This happens to everybody i think from time to time, but other thing that i notice is that when you press a letter like 10 or 20 times very vast, then u stop letters continue to pop up, because you enter them faster then they are written (but it remembers them).
Can you make it to stop as soon as u stop, or this is android issue not SK pro.
zBliz
Posts: 3
Joined: Tue Nov 02, 2010 1:25 am
Phone: Samsung Captivate

Re: Small lag at times

Post by zBliz »

I'm using a Samsung Captivate and also noticed lag when I'm typing. This is a recent problem that started in 3.8.1 I believe. Before that it was smooth and responsive. I've tried other keyboards and no other ones have the same problem with lag. This seems to be a keyboard issue, not an android issue.
User avatar
cyril
Developer
Posts: 2079
Joined: Tue Feb 02, 2010 4:02 pm
Phone: Nexus One 2.3
Location: Nice, France

Re: Small lag at times

Post by cyril »

"lag" means a lot of different things for everyone... can you explain exactly the symptoms? No change in 3.8.1 is supposed to be the cause of lags of any kind, so I'd like to understand better. Also, please try to uninstall/reinstall the app to check if it's better
Cyril
Post Reply