android-platform

[Prev] Thread [Next]  |  [Prev] Date [Next]

Dalvik crashes when loading class Mercury Thu Jun 25 10:00:38 2009

Dear everyone,

I am trying to port Dalvik on Vxwork, MIPS CPU on my board. At the
current, I meet the following error:

dalvik/vm/InternalNative.c:1007 --- Explicit class load 'vnc/impl/
ProtocolVersion' 0x87b73930
dalvik/vm/InternalNative.c:1007 --- Explicit class load 'vnc/api/
ProtocolMessage' 0x87b73930
dalvik/vm/InternalNative.c:1007 --- Explicit class load 'vnc/impl/
Security33' 0x87b73930
dalvik/vm/InternalNative.c:1007 --- Explicit class load 'vnc/impl/
Security37' 0x87b73930
dalvik/vm/InternalNative.c:1007 --- Explicit class load 'vnc/impl/
ClientInit' 0x87b73930
dalvik/vm/InternalNative.c:1007 --- Explicit class load 'vnc/api/
PixelFormat' 0x87b73930
dalvik/vm/InternalNative.c:1007 --- Explicit class load 'vnc/impl/
ServerInit' 0x87b73930
dalvik/vm/InternalNative.c:1007 --- Explicit class load 'vnc/impl/
ClientRequest' 0x87b73930
dalvik/vm/InternalNative.c:1007 --- Explicit class load 'vnc/impl/
ServerRequest' 0x87b73930
setPixelFormat() bitsPerPixel=8,depth=8,bigEndian=0,trueColor=1
dalvik/vm/InternalNative.c:1007 --- Explicit class load 'vnc/impl/
UpCallEventDispatcher$FBEvent' 0x8
7b73930
rawFramebufferUpdate():
fm.bitsPerPixel=8,bigEndian=0,n=1,x=0,y=0,width=640,height=480
dalvik/vm/InternalNative.c:1007 --- Explicit class load 'vnc/impl/
RawPixelEncoder' 0x87b73930
dalvik/vm/InternalNative.c:1007 --- Explicit class load 'vnc/api/
PixelEncoder' 0x87b73930

when it load class 'vnc/api/PixelEncoder' ( it is class of my
application), Dalvik crashes and the board automatically reboot. Here
is the exception:

core0:
exception cause        :TLB exception(store) (0x3)
exception error counter:1
time stamp             :THU JAN 01 00:07:19 1970
errno                  :0x00000000

MIPS32 R4K CP0 registers:
   Status:0x50008ce3      EPC:0x80c42918    Cause:0x0000000c
 BadVAddr:0x1ce50294 ErrorEPC:0x94dfb37f
    Debug:0x00018000     DEPC:0x00000000   DeSave:0xbfeeebb7

    Cause: BD:0 IP:0x00 ExcCode:0x03
   Status: CU:05 RE:0 BEV:0 SR:0 NMI:0
           IM:0x8c UM:0 ERL:0 EXL:1 IE:1

system special registers:

MIPS32 R4K CPU registers:
     LO:0x0000000000000000   HI:0xffffffffffffffff
   zero:0x0000000000000000   at:0xffffffff81c90000
     v0:0x0000000000000006   v1:0x000000001ce50290
     a0:0x000000001ce60fd8   a1:0x0000000000010d49
     a2:0x0000000000010d4a   a3:0xffffffff874042f8
     t0:0xfffffffffffffffa   t1:0x0000000000000002
     t2:0x0000000000000008   t3:0x0000000000000001
     t4:0x0000000000000000   t5:0x0000000000000000
     t6:0x0000000000000000   t7:0x0000000000000000
     s0:0xffffffff876042c0   s1:0xffffffff876042c0
     s2:0x000000001ce5028e   s3:0x0000000000010d72
     s4:0xffffffff874042f8   s5:0x0000000000000018
     s6:0xffffffff876042f0   s7:0x0000000000000006
     t8:0x0000000000000000   t9:0x0000000000000000
     k0:0x0000000000000001   k1:0x0000000000000000
     gp:0xffffffff81c92a90   sp:0xffffffff86898650
     s8:0x0000000000000001   ra:0xffffffff80c44dd8

stack trace information:
    SP:0x86898650(unknown stack base:0x8fa00000)
    0x80c42918:property_set + 0x150
    0x80c44dd8:mspace_malloc + 0x1048 -> property_set()
    0x80c456c4:mspace_calloc + 0x3c -> mspace_malloc()
    0x80cbdf74:dvmHeapSourceAlloc + 0x6c -> mspace_calloc()
    0x80c739a8:dvmMalloc + 0x148 -> dvmHeapSourceAlloc()
    0x80cd8d6c:dvmAllocArray + 0x44 -> dvmMalloc()
    0x80cd8f28:dvmAllocPrimitiveArray + 0xf0 -> dvmAllocArray()
    0x80c81364:dvmInterpretStd + 0x340c -> dvmAllocPrimitiveArray()
    0x80c75440:dvmInterpret + 0xf8 -> dvmInterpretStd()
    0x80cccbe8:dvmCallMethodV + 0x168 -> dvmInterpret()
    0x80cccc28:dvmCallMethod + 0x28 -> dvmCallMethodV()
    0x80cb96d0:dvmAttachCurrentThread + 0x6e0 -> dvmCallMethod()
    0x8004c1a0:pthread_testcancel + 0x80 -> dvmAttachCurrentThread()
    0x80072b68:vxTaskEntry + 0x14 -> pthread_testcancel()


as we can see in the stack trace info, Dalvik seems crash at
dvmAttachCurrentThread function. Could everybody  advise me a reason
why Dalvik crash with above stack trace info and which I should change
to overcome this issue? and would you advice me how can I add debug to
investigate this issue. It seems that the more bigger application, the
more ability Dalvik crashes.

Thanks so much

BR,

Mercury
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-platform" group.
To post to this group, send email to [EMAIL PROTECTED]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/android-platform?hl=en
-~----------~----~----~----~------~----~------~--~---