Author Topic: SVN version crashes the emulator  (Read 2391 times)

0 Members and 1 Guest are viewing this topic.

jn0101

  • Developer
  • *****
  • Posts: 85
    • View Profile
SVN version crashes the emulator
« on: 23. October 2010, 22:29:41 »
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

  • Developer
  • *****
  • Posts: 128
    • View Profile
Re: SVN version crashes the emulator
« Reply #1 on: 24. October 2010, 22:58:43 »
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

  • Developer
  • *****
  • Posts: 85
    • View Profile
Re: SVN version crashes the emulator
« Reply #2 on: 25. October 2010, 17:25:48 »
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

  • Developer
  • *****
  • Posts: 128
    • View Profile
Re: SVN version crashes the emulator
« Reply #3 on: 28. October 2010, 11:30:39 »
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.

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