Skip to content
This repository has been archived by the owner on Nov 25, 2019. It is now read-only.

Unable to load dictionary #111

Closed
pukekoweka opened this issue Aug 8, 2014 · 8 comments
Closed

Unable to load dictionary #111

pukekoweka opened this issue Aug 8, 2014 · 8 comments

Comments

@pukekoweka
Copy link

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
Copy link
Member

itkach commented Aug 9, 2014

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
Copy link
Author

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
Copy link
Member

itkach commented Aug 12, 2014

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
Copy link
Author

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

@itkach
Copy link
Member

itkach commented Aug 17, 2014

@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
Copy link
Author

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

@itkach
Copy link
Member

itkach commented Aug 18, 2014

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

@pukekoweka
Copy link
Author

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

@itkach itkach closed this as completed May 9, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants