-
Notifications
You must be signed in to change notification settings - Fork 42
makeDictionary doesn't allow creating big dictionaries #7
Comments
What's interesting, when I limit the words.xml to 49 words, no exception is thrown. My words.xml has 652988 words. |
Ok, I see that my frequencies are much bigger than 255. May this be the source of a problem? I managed to get a more meaningful stack trace: http://pastebin.com/HwiYeb0e |
Ok, I see, the culprit is the following line: https://github.com/AnySoftKeyboard/AnySoftKeyboardTools/blob/master/makedictionary/src/main/groovy/com/anysoftkeyboard/tools/makedictionary/MakeBinaryDictionary.java#L244 The number of words in a dictionary seems to be a hard limit. What's interesting, I only have 652988 words in my words.xml |
Another update: if I have 1024 * 1024 / 4 words in my |
I can confirm this issue and it has been existing for a while now see: #4 I think that the dictionary size limit is somehow hard coded to 4mb=4,194,304. |
For your info, I tried changing the limit in the code as you can see here: https://github.com/kertase/AnySoftKeyboardTools |
Came across the same problem, hoping for an update |
If this is a duplicate of #4 then please close this issue. Workaround for now is to limit the number of words. |
I generated a
words.xml
and then ran thegradle build
task. ThenmakeDictionary
randomly fails:Ran it again:
Once again, with stacktrace:
Using gradle 3.2.1, with the 2.2.0 Android gradle plugin.
The text was updated successfully, but these errors were encountered: