mugurelspineci / hackerskeyboard

Automatically exported from code.google.com/p/hackerskeyboard
0 stars 0 forks source link

UserDictionaryProvider eating a lot of memory #232

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I disabled everything related to dictionaries, like suggesting, 
auto-correction, etc. I do not have additional dictionaries installed as well. 
I am using English input which has some built-in dictionary that I can't get 
rid of. Anyway, the problem is that when I go into Running Services, I see 
Hacker's Keyboard using 30-40 mb of memory. On my device which only has 160 mb 
RAM, it's insane. If I go and see details, there's a process 
org.pocketworkstation.pckeyboard using 6-18 mb and android.process.acore using 
21 mb with commentary "Provider UserDictionaryProvider in use". I am wondering, 
why Hakser's Keyboard using this provider even though all dictionary functions 
are completely disabled? How can I make it never use this provider and stop 
eating so much memory?

What version of Hacker's Keyboard are you using?
v1.31 from market

On what phone or tablet?
Samsung Galaxy Gio with latest official firmware

Original issue reported on code.google.com by burning....@gmail.com on 12 Apr 2012 at 2:23

Attachments:

GoogleCodeExporter commented 9 years ago
I'm investigating building a version where the user dictionary is fully 
disabled. I had inherited this code from the original Gingerbread keyboard and 
am not very familiar with that part, but I agree that 30-40 MB is unreasonable.

FYI, in "theme and label settings", try setting "drawing method" to "direct 
draw". This should help conserve graphics memory, especially if you have a 
high-resolution display.

Original comment by Klaus.We...@gmail.com on 23 Aug 2012 at 4:47

GoogleCodeExporter commented 9 years ago
I turned on direct draw then rebooted. The memory went from 40M to 7M.  Then I 
started using the keyboard more and more and noticed a steady increase in 
memory.  Looks to me as if there is a memory leak.  I only use the english 
dictionary on mine.

Original comment by jasonsco...@gmail.com on 23 Aug 2012 at 6:31

GoogleCodeExporter commented 9 years ago
Nice, thank you!
I checked that setting and it's unchangeable on my device.

Original comment by burning....@gmail.com on 24 Aug 2012 at 12:28