Just a couple of other pointers: 1) It's really easy to produce a native crash in Skia by unleashing two concurrent threads onto a single Bitmap. 2) There are some significant defects in the general bitmap functions associated with ALPHA_8 bitmaps
Further to (2) see these for examples: http://code.google.com/p/android/issues/detail?id=2463 http://code.google.com/p/android/issues/detail?id=2421 (I'm hoping that 2.0 will have addressed these, but I haven't had time to check.) Tom. 2009/11/5 fadden <[email protected]> > On Nov 4, 9:39 pm, manoj <[email protected]> wrote: > > I have taken simple example AlphaBitmap given in api demos. > [...] > > From the below log I am not understanding where I am doing wrong. And > > one thing clearly notifying is that there is a memory problem. > > Looks like a native crash in the Skia graphics library: > > pid: 749, tid: 767 >>> com.myapp <<< > signal 11 (SIGSEGV), fault addr 3f80001c > r0 00000180 r1 454f76e8 r2 00000074 r3 00000180 > r4 00000080 r5 fffffff4 r6 beab6144 r7 00000180 > r8 001f34c8 r9 ffffff80 10 beab6144 fp 00000200 > ip 3f800000 sp 454f7698 lr ac03e01c pc ac043db0 > > Stack Trace: > RELADDR > FUNCTION > FILE:LINE > v------> > ClampX_ClampY_nofilter_scale > / > usr/local/google/buildbot/buildroot/device/external/skia/src/core/ > SkBitmapProcState_matrix.h:28 > 00043db0 ClampX_ClampY_nofilter_scale(SkBitmapProcState const&, > unsigned int*, int, int, int) /usr/local/ > google/buildbot/buildroot/device/external/skia/src/core/ > SkBitmapProcState_matrix.h:28 > 0003e018 SkBitmapProcShader::shadeSpan(int, int, unsigned int*, > int) /usr/local/ > google/buildbot/buildroot/device/external/skia/src/core/ > SkBitmapProcShader.cpp:141 > 0004e910 SkARGB32_Shader_Blitter::blitH(int, int, > int) / > usr/local/google/buildbot/buildroot/device/external/skia/src/core/ > SkBlitter_ARGB32.cpp:381 > 00047e4c SkBlitter::blitRect(int, int, int, > int) > / > usr/local/google/buildbot/buildroot/device/external/skia/src/core/ > SkBlitter.cpp:65 > v------> > antifillrect > / > usr/local/google/buildbot/buildroot/device/external/skia/src/core/ > SkScan_Antihair.cpp:540 > 00075d64 antifillrect(SkIRect const&, > SkBlitter*) > / > usr/local/google/buildbot/buildroot/device/external/skia/src/core/ > SkScan_Antihair.cpp:540 > v------> > antifillrect > / > usr/local/google/buildbot/buildroot/device/external/skia/src/core/ > SkScan_Antihair.cpp:600 > 000767d4 SkScan::AntiFillRect(SkRect const&, SkRegion const*, > SkBlitter*) /usr/ > local/google/buildbot/buildroot/device/external/skia/src/core/ > SkScan_Antihair.cpp:600 > 0005b3e8 SkDraw::drawRect(SkRect const&, SkPaint const&) > const /usr/ > local/google/buildbot/buildroot/device/external/skia/src/core/ > SkDraw.cpp:705 > 00054b80 SkCanvas::drawRect(SkRect const&, SkPaint > const&) / > usr/local/google/buildbot/buildroot/device/external/skia/src/core/ > SkCanvas.cpp:1058 > 00052204 SkCanvas::drawRectCoords(float, float, float, float, > SkPaint const&) /usr/ > local/google/buildbot/buildroot/device/external/skia/src/core/ > SkCanvas.cpp:1299 > 0003e388 android::SkCanvasGlue::drawRect__FFFFPaint(_JNIEnv*, > _jobject*, SkCanvas*, float, float, float, float, SkPaint*) /usr/ > local/google/buildbot/buildroot/device/frameworks/base/core/jni/ > android/graphics/Canvas.cpp:404 > 0000e3b4 > dvmPlatformInvoke > / > usr/local/google/buildbot/buildroot/device/dalvik/vm/arch/arm/ > CallEABI.S:242 > > > If you have an APK that reliably reproduces this crash, please file a > bug on b.android.com and attach it. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" 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-developers?hl=en

