aarddict / android

Aard Dictionary for Android
GNU General Public License v3.0
85 stars 43 forks source link

Unable to load dictionary #111

Closed pukekoweka closed 9 years ago

pukekoweka commented 10 years ago

I tried to integrate the German dictionary compiled by MHBraun into my Android 2.3 phone. Only the first dictionary will not open. The error is "dewiki20140703.1of3.aar: Value too large for defined data type".

The dictionary works fine on the desktop version, so I would like to fix this issue. Is there maybe a conflict with the file system?

itkach commented 10 years ago

Looks like corrupted file, please verify that complete file was copied to the device and check data integrity - in Lookup screen go to menu, Dictionaties, long tap in the list on dictionary you want to check.

pukekoweka commented 10 years ago

The file is complete (checked MD5 sum) and works on an Android 4.2 phone. The data integrity is also fine. The issue does not make any sense to me.

itkach commented 10 years ago

Looks like the problem is with the file size of dewiki20140703.1of3.aar. It's 2147490595 bytes, which is larger than 231 - 1. Android 2 appears to have a file size limit of 231 - 1 (2Gb) for FAT32, even though max file size on FAT32 is supposed to be 232 - 1 (4Gb). Default max volume file size in dictionary compiler is set to 231 - 1, but apparently compiler failed to enforce it and dewiki20140703.1of3.aar ended up being bigger. This is probably the same issue as #105. I'll need to figure out why compiler allowed file bigger than default limit and dewiki will need to be recompiled or re-split into smaller volumes.

pukekoweka commented 10 years ago

That must be the reason. I will try to split the file. Thanks a lot for your help!

itkach commented 10 years ago

@pukekoweka check out new dewiki-20140802 at http://Bit.ly/MegaDewiki or http://Bit.ly/AardWikiDe (thanks to MarkusHBraun), all volumes are smaller than 231 - 1 so should work for you on Android 2.

pukekoweka commented 10 years ago

dewiki-20140802.1_of_3.aar is unfortunately 2.147.493.841 Bytes, so larger than 2^31

itkach commented 10 years ago

@pukekoweka Not sure where do you see that. dewiki-20140802.1_of_3.aar I've got is 2147419341

pukekoweka commented 10 years ago

You are right. I had the old version. The new one works!