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

Aard error opening large files on reader Sony PRS-T1 #105

Closed
ReaderSony opened this issue Jul 5, 2014 · 6 comments
Closed

Aard error opening large files on reader Sony PRS-T1 #105

ReaderSony opened this issue Jul 5, 2014 · 6 comments

Comments

@ReaderSony
Copy link

On my rooted reader Sony PRS-T1 I perfectly browse all the files downloaded from your link "Italian Wikipedia sister project compiled by bittachi".
Also it's ok Wikipedia italiano volume 2.
When I try to to load Wikipedia volume 1 (2 gb) I get the error:
"Value too large for defined data type"
I've tried whit Deutsch wikipedia volume 1 (2 gb too): I've got the same error.
Splittimg large files maybe the solution but I don't know how to do this procedure.
Thanks for any replies

@itkach
Copy link
Member

itkach commented Jul 9, 2014

Indeed, file size appears to be the problem, although without access to the device or detailed information about it's OS it's hard to tell what exactly is going on. Large dictionaries are split into volumes just under 2Gb precisely because larger files are not supported on many older systems, including Android 2.x. We've been using 232-1 as max volume size for a long time now (actual file size being lower than this) and it seems to be working fine everywhere. Not sure why PRS-T1 is special in this regard.

You can try split the dictionaries into smaller volumes with aardtools as described in the docs.

@ReaderSony
Copy link
Author

My rooted reader os is android 2.2.1
The problem is the 2 GB size. Or the small internal memory of 1.4 GB, but I've downloaded enwiktionary-20140221.aar which is 1.781.832 kb and work fine.
Unfortunately I don't have a linux pc and I cannot use aardtools. I'll look around to see if someone has already splitted itwiki,
Many thanks for your reply.

@itkach
Copy link
Member

itkach commented Jul 10, 2014

Unfortunately I don't have a linux pc and I cannot use aardtools.

You don't need to have a linux pc. Linux virtual machine is sufficient. You can create one using, for example, free VirtualBox and Ubuntu disk image.

@ReaderSony
Copy link
Author

Many thanks for suggesting me to use Virtualbox, a great platform that I'll always use in the future.
I have installed Ubuntu 12.10 and after several attempts I have installed Aard Tools without any error.
But I cannot split files with aardc command. Here is the ERROR:

(env-aard)rik@rik-VirtualBox:~/aarddict$ aardc aard itwiktionary-20131129.aar -o itdic-split.aar -s 10m
usage: aardc [-h] [--version] [-o OUTPUT_FILE] [-s MAX_FILE_SIZE] [-d] [-q]
[--work-dir WORK_DIR] [--show-legend] [--log-file LOG_FILE]
[--metadata METADATA] [--license LICENSE] [--copyright COPYRIGHT]
[--dict-ver DICT_VER] [--dict-update DICT_UPDATE]
{wiki,xdxf,wordnet,aard,mwcouch,dummy} ...
aardc: error: unrecognized arguments: -o itdic-split.aar -s 10m

p.s.: I've tried "aardc aard itwiktionary-20131129.aar" without options and I've got no errors.

@itkach
Copy link
Member

itkach commented Jul 14, 2014

aardc aard itwiktionary-20131129.aar -o itdic-split.aar -s 10m

try

aardc -o itdic-split.aar aard itwiktionary-20131129.aar  -s 10m

instead. -o option is a common compiler option, not specific to aard converter (that part of documentation is outdated)

@ReaderSony
Copy link
Author

D O N E !
with a little correction

aardc -o itdic-split.aar -s 10m aard itwiktionary-20131129.aar

and then, after solving some memory problems and increasing
the virtual Ubuntu partition, I was able to split the italian
Wikipedia.
Now , while I'm reading books on my reader Sony and when necessary, I
may access to Wikipedia: a great option.
Without your support I would never be able to solve the problem.

Many, many thanks.

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