• Welcome to DictionaryForMids Forum.
 

SVN version crashes the emulator

Started by jn0101, 23. October 2010, 23:29:41

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jn0101

Achim,

I just downloaded the SVN version.
It seems it crashes the emulator if you download a large dictionary (> 1.5 MB).
Can you confirm that?

Jacob

axin

Hi Jacob,

it works fine here. Just a little slow, but that's a known problem...

Can you provide some more details about your setup? What emulator/target are you using? I just installed a 4MB dictionary (English-Czech??) on an emulator running Android 2.1. Does DDMS give you some output when the emulator crashes? Is there anything in the logs?

Cheers,
Achim

jn0101

Ive of course looked but I cant say for sure what happens.
There is a lot of memory garbage collection going on and suddenly a lot of services die, whereafter the emulator reboots.

Probably its some sort of memory leak or massive memory consumption. Ive inserted debug statements (you have absolutely no logging in your code - how can you live like that?) and I think its during unpacking of the ZIP files.

Im working on the non-free esperanto-Danish dictionary.
You can try yourself:

   public static DownloadDictionaryItem bickLarsen =
      new DownloadDictionaryItem(1000,
         "Dansk-Esperanto ordbog", "http://javabog.dk/esperanto/Dansk-Esperanto_BickLarsen.zip", "Dansk-Esperanto", 1575696);

....

      dictionaries.add(bickLarsen);


Im running Android 2.2 without Google APIs

Yours,
Jacob

axin

Hi Jacob,

I was not able to reproduce the crash you described. On my machine, your sample works fine using 2.2. Not sure what may cause the problem. You could try tracing, maybe this tells us which method goes crazy and crashes the emulator.

Quote from: jn0101 on 25. October 2010, 18:25:48
you have absolutely no logging in your code - how can you live like that?
The advanced debugging features in Eclipse are just great :)
With Android, for most bugs I prefer breakpoints to logging. But I can see why in your case logging makes sense.

Cheers,
Achim