Hi fadden, Nice to talk with you again.
I have a question and would like to ask you. When I running Dalvik, some times I meet the following exception: dalvik/vm/interp/InterpCore.h:2533 Stack overflow on method call (top=0x863f52c0 end=0x863b54c0 newB ot=0x863b51f0 size=262144 'nativeGetStackTrace') dalvik/vm/interp/Stack.c:1043 Stack overflow, expanding (0x863b54c0 to 0x863b52c0) dalvik/vm/interp/Stack.c:1085 Shrank stack (to 0x863b54c0, curFrame is 0x863f4f70) java.lang.ExceptionInInitializerError at java.util.logging.SimpleFormatter.format (SimpleFormatter.java:43) at java.util.logging.StreamHandler.publish(StreamHandler.java: 314) at java.util.logging.ConsoleHandler.publish (ConsoleHandler.java:72) at java.util.logging.Logger.log(Logger.java:1114) at java.util.logging.Logger.info(Logger.java:933) at java.io.BufferedReader.<init>(BufferedReader.java:80) at vnc.impl.http.VncViewer.exchange(VncViewer.java:69) at vnc.impl.http.HTTPTransport.start(HTTPTransport.java:181) at vnc.impl.http.VncServer$ServerThread.run(VncServer.java: 258) at java.lang.Thread.run(Thread.java:935) Caused by: java.lang.ExceptionInInitializerError at java.util.TimeZone.getDefault(TimeZone.java:179) at java.util.GregorianCalendar.<init>(GregorianCalendar.java: 192) at java.util.GregorianCalendar.<init>(GregorianCalendar.java: 151) at java.util.Date.getYear(Date.java:333) at java.util.Date.<clinit>(Date.java:44) ... 10 more Caused by: java.lang.StackOverflowError at java.lang.Throwable.getInternalStackTrace(Throwable.java: 215) at java.lang.Throwable.getStackTrace(Throwable.java:155) at java.util.logging.LogRecord.initSource(LogRecord.java:360) at java.util.logging.LogRecord.getSourceClassName (LogRecord.java:351) at java.util.logging.SimpleFormatter.format (SimpleFormatter.java:45) at java.util.logging.StreamHandler.publish(StreamHandler.java: 314) at java.util.logging.ConsoleHandler.publish (ConsoleHandler.java:72) at java.util.logging.Logger.log(Logger.java:1114) at java.util.logging.Logger.warning(Logger.java:918) at java.util.ZoneInfoDB.<clinit>(ZoneInfoDB.java:112) ... 15 more java.lang.NoClassDefFoundError: java.util.Date at java.util.logging.SimpleFormatter.format (SimpleFormatter.java:43) at java.util.logging.StreamHandler.publish(StreamHandler.java: 314) at java.util.logging.ConsoleHandler.publish (ConsoleHandler.java:72) at java.util.logging.Logger.log(Logger.java:1114) at java.util.logging.Logger.info(Logger.java:933) at java.io.BufferedReader.<init>(BufferedReader.java:80) at vnc.impl.http.VncViewer.exchange(VncViewer.java:69) at vnc.impl.http.HTTPTransport.start(HTTPTransport.java:181) at vnc.impl.http.VncServer$ServerThread.run(VncServer.java: 258) at java.lang.Thread.run(Thread.java:935) Would you advise me what problem I am facing with and how can I fix it? Thanks so much, Best regards, On Aug 2, 9:39 pm, Mercury <bao...@gmail.com> wrote: > Hi fadden, > > Thank you for your answer. > > I have tried to free allocated heap memory to avoid leak memory. > > I'm meeting another issue about libffi issue and would like to have > your comment about it. > > When Dalvik VM calls to libffi, it causese Dalvik crash with below > stack trace: > > stack trace information: > SP:0x8614c790(unknown stack base:0x8fa00000) > 0x80ca83cc:JNI_GetCreatedJavaVMs + 0x6d4 > 0x80c52220:Java_vnc_impl_http_ServerRequest_rawFrameBufferUpdate + > 0x208 -> JNI_GetCreatedJavaVMs() > 0x80c50ce4:ffi_call_N32 + 0x4fc -> > Java_vnc_impl_http_ServerRequest_rawFrameBufferUpdate() > > Would you advise me what is problem with my porting libffi issue? > > How to make sure whether my porting lbffi on MIPS works correctly or > not? > > Thanks so much, > Best regards > > On Jul 28, 2:18 am, fadden <fad...@android.com> wrote: > > > On Jul 27, 4:49 am, Mercury <bao...@gmail.com> wrote: > > > > Could you please advice me why I call free as the above implement > > > cause crash? > > > I don't know. > > > > If possible, could you tell me or share me a document about the design > > > of heap implement in Dalvik? > > > There isn't one. It uses the dlmalloc "mspace" stuff to manage the > > storage, and has some additional structures (e.g. the object "mark" > > bitmap) on top. You can find some documentation about dlmalloc on the > > web (e.g.http://g.oswego.edu/dl/html/malloc.html). > > --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---