Hi Jacob
Thanks for u reply. I have downloaded apertium toolkit for java jar file
lttoolbox.jar f. Here we are doing translation for Sanskrit to Hindi(
http://sanskrit.uohyd.ac.in/scl/). We have compiled bin file for Sanskrit.
Let me explain what actually am doing.Am trying to get morph information of
a word from bin file it size around 17MB. Initially i did integration
apertium code with my code and its runs fine in eclipse. While coming to
android am getting out of memory error. Please find the logcat of my
android applications. I was posted in android forums also about this
error. Later i think apertium also released apertium translator for
android. This is reason i have posted my query apertium.
Sorry for if context has any mistakes(Spelling and sentence formation).
Thanks & Regards
M. Karunakar
University of Hyderabad,Hyd,
9491388035.
On Mon, Mar 18, 2013 at 2:54 PM, Jacob Nordfalk <jacob.nordf...@gmail.com>wrote:
>
>
> 2013/3/18 karunakar medamoni <kannaiah.chi...@gmail.com>
>
>> I was successfully integrate java-lttoolbox with my programs and it runs
>> fine in eclipse. When i try to run same code in android device am getting
>> out of memory exception. I saw the apertium android app for offline
>> translator. Can any one suggest how to use apertium in less heap space
>> devices.
>>
>
> Hi Karunakar,
>
> What device are you testing on?
> And which language pairs have you downloaded?
> Does it still crash if you uninstall all other pairs and just use this par?
> What is the stack trace/logcat?
>
> Could you please also install
> https://play.google.com/store/apps/details?id=org.apertium.android* *on
> this device and make it crash with the out of memory exception? In this way
> I'll get a stack trace to work with, together with device info.
>
> You are also very welcome to post your code and the logcat showing the
> stack trace somewhere.
>
> Yours,
> Jacob
>
>
> --
> Jacob Nordfalk <http://profiles.google.com/jacob.nordfalk>
> javabog.dk
> Androidudvikler og -underviser på
> DTU<http://cv.ihk.dk/diplomuddannelser/itd/vf/MAU>og
> Lund&Bendsen<https://www.lundogbendsen.dk/undervisning/beskrivelse/LB1809/>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_mar
> _______________________________________________
> Apertium-stuff mailing list
> Apertium-stuff@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/apertium-stuff
>
>
03-14 04:47:42.618: D/dalvikvm(360): GC_FOR_ALLOC freed 47K, 3% free
6358K/6531K, paused 41ms
03-14 04:47:42.618: I/dalvikvm-heap(360): Grow heap (frag case) to 6.789MB for
513744-byte allocation
03-14 04:47:42.707: D/dalvikvm(360): GC_FOR_ALLOC freed <1K, 3% free
6859K/7047K, paused 55ms
03-14 04:47:42.807: D/dalvikvm(360): GC_CONCURRENT freed <1K, 3% free
6859K/7047K, paused 4ms+2ms
03-14 04:47:43.378: D/szipinf(360): Initializing inflate state
03-14 04:47:43.378: D/szipinf(360): Initializing zlib to inflate
03-14 04:47:51.408: V/TLINE(360): new: android.text.TextLine@4062c768
03-14 04:47:54.797: V/TLINE(360): new: android.text.TextLine@406f4e40
03-14 04:48:04.887: D/dalvikvm(360): GC_CONCURRENT freed 347K, 6% free
7055K/7495K, paused 4ms+3ms
03-14 04:48:05.168: D/dalvikvm(360): GC_CONCURRENT freed 508K, 8% free
7080K/7687K, paused 4ms+4ms
03-14 04:48:05.298: D/dalvikvm(360): GC_FOR_ALLOC freed 225K, 8% free
7105K/7687K, paused 46ms
03-14 04:48:05.558: D/dalvikvm(360): GC_CONCURRENT freed 467K, 8% free
7191K/7751K, paused 7ms+6ms
03-14 04:48:05.757: D/dalvikvm(360): GC_CONCURRENT freed 496K, 8% free
7216K/7815K, paused 8ms+3ms
03-14 04:48:05.988: D/dalvikvm(360): GC_CONCURRENT freed 408K, 7% free
7339K/7879K, paused 4ms+5ms
03-14 04:48:06.258: D/dalvikvm(360): GC_CONCURRENT freed 150K, 4% free
7764K/8007K, paused 5ms+6ms
03-14 04:48:06.528: D/dalvikvm(360): GC_CONCURRENT freed 136K, 3% free
8163K/8391K, paused 9ms+7ms
03-14 04:48:06.847: D/dalvikvm(360): GC_CONCURRENT freed 200K, 4% free
8674K/8967K, paused 4ms+10ms
03-14 04:48:07.208: D/dalvikvm(360): GC_CONCURRENT freed 179K, 4% free
9230K/9543K, paused 3ms+9ms
03-14 04:48:07.617: D/dalvikvm(360): GC_CONCURRENT freed 334K, 5% free
9948K/10375K, paused 10ms+13ms
03-14 04:48:07.757: D/dalvikvm(360): GC_FOR_ALLOC freed 7K, 4% free
9991K/10375K, paused 114ms
03-14 04:48:07.757: I/dalvikvm-heap(360): Forcing collection of SoftReferences
for 6106300-byte allocation
03-14 04:48:07.907: D/dalvikvm(360): GC_BEFORE_OOM freed 11K, 4% free
9980K/10375K, paused 153ms
03-14 04:48:07.907: E/dalvikvm-heap(360): Out of memory on a 6106300-byte
allocation.
03-14 04:48:07.917: I/dalvikvm(360): "main" prio=5 tid=1 RUNNABLE
03-14 04:48:07.917: I/dalvikvm(360): | group="main" sCount=0 dsCount=0
obj=0x4001e6b0 self=0x115b8
03-14 04:48:07.917: I/dalvikvm(360): | sysTid=360 nice=0 sched=0/0
cgrp=default handle=-1342909328
03-14 04:48:07.917: I/dalvikvm(360): | schedstat=( 11326621181 2865067409 897
) utm=676 stm=456 core=0
03-14 04:48:07.917: I/dalvikvm(360): at
org.apertium.lttoolbox.process.TransExe.read(TransExe.java:~70)
03-14 04:48:07.917: I/dalvikvm(360): at
org.apertium.lttoolbox.process.FSTProcessor.load(FSTProcessor.java:617)
03-14 04:48:07.917: I/dalvikvm(360): at
org.apertium.lttoolbox.LTProc.main(LTProc.java:192)
03-14 04:48:07.917: I/dalvikvm(360): at
com.samsaadhani.sandhi1.Morph$1.onClick(Morph.java:60)
03-14 04:48:07.917: I/dalvikvm(360): at
android.view.View.performClick(View.java:3100)
03-14 04:48:07.917: I/dalvikvm(360): at
android.view.View$PerformClick.run(View.java:11644)
03-14 04:48:07.917: I/dalvikvm(360): at
android.os.Handler.handleCallback(Handler.java:587)
03-14 04:48:07.917: I/dalvikvm(360): at
android.os.Handler.dispatchMessage(Handler.java:92)
03-14 04:48:07.917: I/dalvikvm(360): at
android.os.Looper.loop(Looper.java:126)
03-14 04:48:07.917: I/dalvikvm(360): at
android.app.ActivityThread.main(ActivityThread.java:3997)
03-14 04:48:07.927: I/dalvikvm(360): at
java.lang.reflect.Method.invokeNative(Native Method)
03-14 04:48:07.927: I/dalvikvm(360): at
java.lang.reflect.Method.invoke(Method.java:491)
03-14 04:48:07.927: I/dalvikvm(360): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
03-14 04:48:07.927: I/dalvikvm(360): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
03-14 04:48:07.927: I/dalvikvm(360): at dalvik.system.NativeStart.main(Native
Method)
03-14 04:48:07.927: D/AndroidRuntime(360): Shutting down VM
03-14 04:48:07.927: W/dalvikvm(360): threadid=1: thread exiting with uncaught
exception (group=0x40014760)
03-14 04:48:07.938: E/AndroidRuntime(360): FATAL EXCEPTION: main
03-14 04:48:07.938: E/AndroidRuntime(360): java.lang.OutOfMemoryError
03-14 04:48:07.938: E/AndroidRuntime(360): at
org.apertium.lttoolbox.process.TransExe.read(TransExe.java:70)
03-14 04:48:07.938: E/AndroidRuntime(360): at
org.apertium.lttoolbox.process.FSTProcessor.load(FSTProcessor.java:617)
03-14 04:48:07.938: E/AndroidRuntime(360): at
org.apertium.lttoolbox.LTProc.main(LTProc.java:192)
03-14 04:48:07.938: E/AndroidRuntime(360): at
com.samsaadhani.sandhi1.Morph$1.onClick(Morph.java:60)
03-14 04:48:07.938: E/AndroidRuntime(360): at
android.view.View.performClick(View.java:3100)
03-14 04:48:07.938: E/AndroidRuntime(360): at
android.view.View$PerformClick.run(View.java:11644)
03-14 04:48:07.938: E/AndroidRuntime(360): at
android.os.Handler.handleCallback(Handler.java:587)
03-14 04:48:07.938: E/AndroidRuntime(360): at
android.os.Handler.dispatchMessage(Handler.java:92)
03-14 04:48:07.938: E/AndroidRuntime(360): at
android.os.Looper.loop(Looper.java:126)
03-14 04:48:07.938: E/AndroidRuntime(360): at
android.app.ActivityThread.main(ActivityThread.java:3997)
03-14 04:48:07.938: E/AndroidRuntime(360): at
java.lang.reflect.Method.invokeNative(Native Method)
03-14 04:48:07.938: E/AndroidRuntime(360): at
java.lang.reflect.Method.invoke(Method.java:491)
03-14 04:48:07.938: E/AndroidRuntime(360): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
03-14 04:48:07.938: E/AndroidRuntime(360): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
03-14 04:48:07.938: E/AndroidRuntime(360): at
dalvik.system.NativeStart.main(Native Method)
03-14 04:48:10.458: I/Process(360): Sending signal. PID: 360 SIG: 9
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Apertium-stuff mailing list
Apertium-stuff@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/apertium-stuff