Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #5690 Reply

    Jordan Hansen

    I am trying to render pages to a bitmap and I keep crashing.

    Code:
    public List<File> getImageFiles(File pdf, String pdfPassword, int startPage, int numPages, int quality, Bitmap.CompressFormat format) {
    List<File> files = new ArrayList<>();
    File outDir = getCacheDir(); // TODO implement DiskLRUCache
    for (int i = 0; i < numPages; i++) {
    File pageFile = new File(outDir, String.format(IMAGE_FILE_NAME_TEMPLATE, pdf.getName(), startPage + i));
    if (!pageFile.exists()) {
    OutputStream out = null;
    try {
    int width = getWidth();
    int pageIdx = startPage + i;
    log.d(TAG, “Opening PDF”);
    PDFDocument document = new PDFDocument(pdf.getAbsolutePath(), pdfPassword);
    log.d(TAG, “PDF Open PAGES: ” + document.getPageCount());
    PointF pageSize = document.getPageSize(pageIdx);
    int height = getHeight(width, pageSize);

    Bitmap bmp = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
    document.drawPage(pageIdx, bmp, width, height, 0, 0, width, height);
    log.d(TAG, “Drew Bitmap”);
    document.release();

    out = new FileOutputStream(pageFile);
    bmp.compress(format, quality, out);
    log.d(TAG, “Wrote bitmap to file”);

    bmp.recycle();
    } catch (Exception e) {
    log.e(TAG, “Failed to extract page”, e);
    return files;
    } finally {
    if (out != null) {
    fileUtil.closeStream(out);
    }
    }
    }
    files.add(pageFile);
    }
    return files;
    }

    private int getWidth() {
    if (width == null) {
    Point size = new Point();
    display.getSize(size);
    int rotation = display.getRotation();
    switch (rotation) {
    default:
    case Surface.ROTATION_0:
    case Surface.ROTATION_180:
    width = size.x;
    break;
    case Surface.ROTATION_90:
    case Surface.ROTATION_270:
    //noinspection SuspiciousNameCombination
    width = size.y;
    break;
    }

    }
    return width;
    }

    private int getHeight(int width, PointF pageSize) {
    float f = width / pageSize.x;
    return (int) (f * pageSize.y);
    }

    12-18 16:43:00.972 10301-10341/org.lds.ldsmusic A/libc﹕ Fatal signal 11 (SIGSEGV) at 0x0000000c (code=1), thread 10341 (ModernAsyncTask)
    12-18 16:43:01.022 9322-9322/? I/DEBUG﹕ *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    12-18 16:43:01.022 9322-9322/? I/DEBUG﹕ Build fingerprint: ‘google/occam/mako:4.4.3/KTU84L/1148727:user/release-keys’
    12-18 16:43:01.022 9322-9322/? I/DEBUG﹕ Revision: ’11’
    12-18 16:43:01.022 9322-9322/? I/DEBUG﹕ pid: 10301, tid: 10341, name: ModernAsyncTask >>> org.lds.ldsmusic <<<
    12-18 16:43:01.022 9322-9322/? I/DEBUG﹕ signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0000000c
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ r0 79471730 r1 79471738 r2 79471728 r3 7b9e8818
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ r4 75c6c454 r5 7b9e8650 r6 74fb5730 r7 0000000e
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ r8 7b9e8818 r9 77223952 sl 756369d1 fp 74fb5b04
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ ip 00000100 sp 79471700 lr 7562782b pc 0000000c cpsr 200e0010
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ d0 0000000000000000 d1 0000000000000000
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ d2 0000000000000000 d3 0000000000000000
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ d4 0000000000000000 d5 00000019d10d64a5
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ d6 0000003300000000 d7 4049800000000000
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ d8 3fe9800000000000 d9 3fd9800000000000
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ d10 3f70000000000000 d11 4075200000000000
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ d12 0000000000000000 d13 0000000000000000
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ d14 0000000000000000 d15 0000000000000000
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ d16 40411e3d591e0790 d17 3fdb7812aeef4b9f
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ d18 bda8fae9be8838d4 d19 3fa533e87f0f9385
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ d20 be9277b5de4d91c2 d21 bf56ae42547597f2
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ d22 3e21ea04b2724e4b d23 3ff0000000000000
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ d24 3fed18f6ead1b446 d25 3fb79462135ebae0
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ d26 3c88000000000000 d27 3f57065a7b1743bf
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ d28 3fed18f6ead1b446 d29 3e6777a5d0000000
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ d30 b5ad3435e90c01d1 d31 3ff921fb60000000
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ scr 20000012
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ backtrace:
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ #00 pc 0000000c <unknown>
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ #01 pc 00161829 /data/app-lib/org.lds.ldsmusic-1/libplugpdf.so (FT_Outline_Decompose+604)
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ #02 pc 0016fd91 /data/app-lib/org.lds.ldsmusic-1/libplugpdf.so
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ #03 pc 00170c4b /data/app-lib/org.lds.ldsmusic-1/libplugpdf.so
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ #04 pc 0016ffb5 /data/app-lib/org.lds.ldsmusic-1/libplugpdf.so
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ #05 pc 00170109 /data/app-lib/org.lds.ldsmusic-1/libplugpdf.so
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ #06 pc 001638d1 /data/app-lib/org.lds.ldsmusic-1/libplugpdf.so (FT_Render_Glyph_Internal+68)
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ #07 pc 000e6ab9 /data/app-lib/org.lds.ldsmusic-1/libplugpdf.so (Pdf_Font::render(Gf_Glyph*, int, Gf_Matrix, int)+240)
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ #08 pc 000db689 /data/app-lib/org.lds.ldsmusic-1/libplugpdf.so (Pdf_GlyphCache::renderGlyph(Gf_Glyph*, Pdf_FontR, int, Gf_Matrix, int)+280)
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ stack:
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 794716c0 00000970
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 794716c4 74fb5794 [anon:libc_malloc]
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 794716c8 00000090
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 794716cc 00000900
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 794716d0 74fb577c [anon:libc_malloc]
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 794716d4 00000000
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 794716d8 00000000
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 794716dc 75c6c454 /data/app-lib/org.lds.ldsmusic-1/libplugpdf.so
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 794716e0 7b9e8818 [anon:libc_malloc]
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 794716e4 74fb5730 [anon:libc_malloc]
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 794716e8 7722398a [anon:libc_malloc]
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 794716ec 7b9e8818 [anon:libc_malloc]
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 794716f0 74fb5b04 [anon:libc_malloc]
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 794716f4 756369d1 /data/app-lib/org.lds.ldsmusic-1/libplugpdf.so
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 794716f8 756369bf /data/app-lib/org.lds.ldsmusic-1/libplugpdf.so
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 794716fc 7562784b /data/app-lib/org.lds.ldsmusic-1/libplugpdf.so (FT_Outline_Decompose+638)
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ #00 79471700 00000000
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ …….. ……..
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ #01 79471700 00000000
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 79471704 79471720 [stack:10341]
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 79471708 79471728 [stack:10341]
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 7947170c 7722398a [anon:libc_malloc]
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 79471710 0000003a
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 79471714 74fb5b04 [anon:libc_malloc]
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 79471718 00000002
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 7947171c 000001bf
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 79471720 000001bf
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 79471724 0000025c
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 79471728 000001bf
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 7947172c 0000025c
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 79471730 00000162
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 79471734 00000173
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 79471738 000001bf
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 7947173c 000001b1
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ …….. ……..
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ #02 79471770 74fb5730 [anon:libc_malloc]
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 79471774 74fb5da0 [anon:libc_malloc]
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 79471778 00000001
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 7947177c 01c36800
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 79471780 00000000
    12-18 16:43:01.132 9322-9322/? I/DEBUG﹕ 79471784 75636c4f /data/app-lib/org.lds.ldsmusic-1/libplugpdf.so
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ memory near r0:
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 79471710 0000003a 74fb5b04 00000002 000001bf
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 79471720 000001bf 0000025c 000001bf 0000025c
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 79471730 00000162 00000173 000001bf 000001b1
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 79471740 000001bf 000001c8 00000000 74fb5730
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 79471750 0000000e 00000000 74fb5730 74fb5730
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 79471760 000000ff 00000005 00000001 75635d93
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 79471770 74fb5730 74fb5da0 00000001 01c36800
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 79471780 00000000 75636c4f 00000001 00000000
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 79471790 794717a8 00000000 00000001 00000000
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 794717a0 0000000e 0000000e 00000000 0000000e
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 794717b0 00000000 00000000 00000000 00000000
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 794717c0 00000000 00000000 00000000 00000000
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 794717d0 00000000 00000000 00000000 00000000
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 794717e0 00000000 00000000 00000000 00000000
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 794717f0 00000000 00000000 00000000 00000000
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 79471800 00000000 00000000 00000000 00000000
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ memory near r1:
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 79471718 00000002 000001bf 000001bf 0000025c
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 79471728 000001bf 0000025c 00000162 00000173
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 79471738 000001bf 000001b1 000001bf 000001c8
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 79471748 00000000 74fb5730 0000000e 00000000
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 79471758 74fb5730 74fb5730 000000ff 00000005
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 79471768 00000001 75635d93 74fb5730 74fb5da0
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 79471778 00000001 01c36800 00000000 75636c4f
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 79471788 00000001 00000000 794717a8 00000000
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 79471798 00000001 00000000 0000000e 0000000e
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 794717a8 00000000 0000000e 00000000 00000000
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 794717b8 00000000 00000000 00000000 00000000
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 794717c8 00000000 00000000 00000000 00000000
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 794717d8 00000000 00000000 00000000 00000000
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 794717e8 00000000 00000000 00000000 00000000
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 794717f8 00000000 00000000 00000000 00000000
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 79471808 00000000 00000000 00000000 00000000
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ memory near r2:
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 79471708 79471728 7722398a 0000003a 74fb5b04
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 79471718 00000002 000001bf 000001bf 0000025c
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 79471728 000001bf 0000025c 00000162 00000173
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 79471738 000001bf 000001b1 000001bf 000001c8
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 79471748 00000000 74fb5730 0000000e 00000000
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 79471758 74fb5730 74fb5730 000000ff 00000005
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 79471768 00000001 75635d93 74fb5730 74fb5da0
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 79471778 00000001 01c36800 00000000 75636c4f
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 79471788 00000001 00000000 794717a8 00000000
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 79471798 00000001 00000000 0000000e 0000000e
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 794717a8 00000000 0000000e 00000000 00000000
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 794717b8 00000000 00000000 00000000 00000000
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 794717c8 00000000 00000000 00000000 00000000
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 794717d8 00000000 00000000 00000000 00000000
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 794717e8 00000000 00000000 00000000 00000000
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 794717f8 00000000 00000000 00000000 00000000
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ memory near r3:
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e87f8 000000a8 00000178 0000011d 00000175
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e8808 00000162 00000173 000001bf 000001b1
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e8818 000001bf 000001c8 00000154 ffffff53
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e8828 0000010b ffffff53 000000d3 ffffff1f
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e8838 000000d3 fffffeba 000000d3 fffffe6f
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e8848 000000f8 fffffe33 00000145 fffffe33
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e8858 000001a5 fffffe33 000001c9 fffffe86
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e8868 00000157 00000147 000000fb 00000147
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e8878 000000af 00000116 000000af 000000b3
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e8888 000000af 0000006b 000000ef 0000003e
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e8898 0000010f 0000003b 00000143 00000036
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e88a8 0000016b 00000036 00000189 00000036
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e88b8 0000020b 00000036 0000022b 0000005a
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e88c8 0000022b 0000009d 0000022b 000000f9
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e88d8 000001d5 00000147 000000fe ffffff04
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e88e8 000001c9 fffffe0c 00000186 fffffe0c
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ memory near r4:
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 75c6c434 75c5d944 75c5db44 6f75746c 75634ed1
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 75c6c444 75635c6d 75634b95 75635a31 75634be9
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 75c6c454 756369d5 756369bf 756368ab 75636617
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 75c6c464 00000000 00000000 6f75746c 75635de7
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 75c6c474 75636e95 00000000 75636d1d 75635ddf
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 75c6c484 7573ba78 75c6c718 7573ba63 75c6c724
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 75c6c494 7573ba58 75c6c728 7573ba83 75c6c730
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 75c6c4a4 00000000 00000000 00000000 0000000c
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 75c6c4b4 7573bb15 00010000 00020000 75c6c6a4
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 75c6c4c4 00000000 00000000 7563995d 00000028
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 75c6c4d4 75637e09 75638ce5 75637e2b 75637e2f
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 75c6c4e4 75637f49 75637fbd 756388a3 756387f7
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 75c6c4f4 756385f1 0000000e 75639969 75637e35
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 75c6c504 0000002c 75637c07 00000000 75637d9f
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 75c6c514 75637db1 00000000 00000000 00000000
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 75c6c524 00000000 00000000 0000000d 75639b81
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ memory near r5:
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e8630 766b1410 766b1438 766b1450 400e21b8
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e8640 00000028 0000034b 000001bf 00000164
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e8650 0000018e 0000014e 00000168 0000013f
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e8660 00000134 0000013f 00000121 0000013f
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e8670 00000102 00000142 000000df 00000155
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e8680 0000007a 0000018a 00000041 000001a7
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e8690 0000000e 000001f5 0000000e 0000025e
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e86a0 0000000e 000002f4 0000005a 00000367
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e86b0 000000fb 00000367 00000119 00000367
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e86c0 0000013a 00000366 00000144 0000035e
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e86d0 000001c4 000002f3 000001be 0000035c
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e86e0 000001dc 0000035b 000001f8 00000359
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e86f0 00000216 00000359 00000233 00000359
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e8700 00000250 0000035b 0000027f 0000035c
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e8710 0000027f 0000033a 0000024a 00000337
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e8720 00000236 00000335 0000022a 00000331
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ memory near r6:
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 74fb5710 0c480349 0c00034a 0c10034c 0c18034e
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 74fb5720 0c180350 0c180353 00000000 0000400b
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 74fb5730 00000006 00000009 00000000 0000000a
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 74fb5740 00000000 00000003 0000000a 00000003
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 74fb5750 00000000 00000000 00000001 74fb5d40
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 74fb5760 0000039f 00000008 00000000 00000000
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 74fb5770 000006fc 00000970 00000900 000006fc
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 74fb5780 00000720 000006fc 000006c4 00000588
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 74fb5790 000005cc 00000474 000005d4 000006d9
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 74fb57a0 000001a0 000006bc 0000018c 00000688
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 74fb57b0 0000018c 0000047f 000001ab 000004a8
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 74fb57c0 000001e0 000004c5 00000220 000004e3
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 74fb57d0 00000260 000004f4 000002ab 000004f4
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 74fb57e0 00000300 00000293 00002440 00000299
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 74fb57f0 00002322 000002bc 000021f0 00000410
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 74fb5800 0000204a 0000040d 0000204b 0000040b
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ memory near r8:
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e87f8 000000a8 00000178 0000011d 00000175
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e8808 00000162 00000173 000001bf 000001b1
    12-18 16:43:01.142 9322-9322/? I/DEBUG﹕ 7b9e8818 000001bf 000001c8 00000154 ffffff53
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 7b9e8828 0000010b ffffff53 000000d3 ffffff1f
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 7b9e8838 000000d3 fffffeba 000000d3 fffffe6f
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 7b9e8848 000000f8 fffffe33 00000145 fffffe33
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 7b9e8858 000001a5 fffffe33 000001c9 fffffe86
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 7b9e8868 00000157 00000147 000000fb 00000147
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 7b9e8878 000000af 00000116 000000af 000000b3
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 7b9e8888 000000af 0000006b 000000ef 0000003e
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 7b9e8898 0000010f 0000003b 00000143 00000036
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 7b9e88a8 0000016b 00000036 00000189 00000036
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 7b9e88b8 0000020b 00000036 0000022b 0000005a
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 7b9e88c8 0000022b 0000009d 0000022b 000000f9
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 7b9e88d8 000001d5 00000147 000000fe ffffff04
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 7b9e88e8 000001c9 fffffe0c 00000186 fffffe0c
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ memory near r9:
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 77223930 06590659 3fd90659 041e041e 3fde041e
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 77223940 00000000 794720f8 3f800000 00000073
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 77223950 01020201 01010202 02010202 02020102
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 77223960 02010101 02020102 02010101 02020102
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 77223970 02010101 01010102 01010202 02010202
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 77223980 02020102 01020201 01010202 02010202
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 77223990 02020102 01020201 02010202 02020102
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 772239a0 01020201 02020102 01010101 01010202
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 772239b0 01020201 00010202 400e21d0 00000023
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 772239c0 00000000 7b9e9668 00000000 00000000
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 772239d0 7b9e5b04 7959cae0 00000020 0000001b
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 772239e0 75c77040 00020001 000000fa a5c37020
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 772239f0 77b5bb4c 00000013 795b70f8 00000000
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 77223a00 7ba7ea58 0000001b 00000001 00000001
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 77223a10 77223ed4 00000001 00000018 000001cb
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 77223a20 0000001f 30245004 0000001b 20244005
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ memory near sl:
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 756369b0 3e01fd2c 1c733c10 2000d1bf b508bdf8
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 756369c0 685a4603 68194608 00890092 fd1df7ff
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 756369d0 bd082000 4605b5f8 460c6a8b 6a4ab973
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 756369e0 43136a0b 4608d00a fbdef7ff 68826a23
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 756369f0 684218d3 6a636083 604318d3 4620682f
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 75636a00 68e3686e 00b600bf 42991239 4619bfa8
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 75636a10 123268a3 bfb84299 25001e59 60231acb
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 75636a20 62256923 62651ad3 02136063 64a362a5
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 75636a30 fc12f7ff 64666427 bdf84628 47f0e92d
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 75636a40 f9b04604 b0d823d6 33d8f8d0 eb032a00
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 75636a50 dc0505c2 60c32300 61436083 e02a6103
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 75636a60 60c2681a 685a6082 61026142 689ae011
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 75636a70 428a68db bfb868e1 428a60a2 60e2bfc8
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 75636a80 42936922 bfb86962 42936123 6163bfc8
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 75636a90 f1034603 68a10008 d8e84285 11896923
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 75636aa0 119b60a1 68e36123 119b333f 696360e3
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ memory near fp:
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 74fb5ae4 00000000 00000000 00000000 00000000
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 74fb5af4 00000000 00000000 00000000 00000000
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 74fb5b04 003b0002 7b9e8648 77223950 7b9e53f0
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 74fb5b14 00000004 0000000e 0000000a 0000000a
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 74fb5b24 7b9d06c0 00020100 00000000 00000000
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 74fb5b34 00000000 0000000a 0000000e 00010005
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 74fb5b44 000500ff 00ff0001 00010005 000500ff
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 74fb5b54 00ff0001 00010005 000500ff 00ff0001
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 74fb5b64 00010005 000500ff 00ff0001 00010005
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 74fb5b74 000500ff 00ff0001 00010005 000500ff
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 74fb5b84 00ff0001 00010005 000500ff 00ff0001
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 74fb5b94 00010005 000500ff 00ff0001 00010005
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 74fb5ba4 000500ff 00ff0001 00010005 000500ff
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 74fb5bb4 00ff0001 00010005 000500ff 00ff0001
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 74fb5bc4 00010005 000500ff 00ff0001 00010005
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 74fb5bd4 000500ff 00ff0001 00010005 000500ff
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ memory near sp:
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 794716e0 7b9e8818 74fb5730 7722398a 7b9e8818
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 794716f0 74fb5b04 756369d1 756369bf 7562784b
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 79471700 00000000 79471720 79471728 7722398a
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 79471710 0000003a 74fb5b04 00000002 000001bf
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 79471720 000001bf 0000025c 000001bf 0000025c
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 79471730 00000162 00000173 000001bf 000001b1
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 79471740 000001bf 000001c8 00000000 74fb5730
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 79471750 0000000e 00000000 74fb5730 74fb5730
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 79471760 000000ff 00000005 00000001 75635d93
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 79471770 74fb5730 74fb5da0 00000001 01c36800
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 79471780 00000000 75636c4f 00000001 00000000
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 79471790 794717a8 00000000 00000001 00000000
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 794717a0 0000000e 0000000e 00000000 0000000e
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 794717b0 00000000 00000000 00000000 00000000
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 794717c0 00000000 00000000 00000000 00000000
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 794717d0 00000000 00000000 00000000 00000000
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ code around pc:
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 00000000 ffffffff ffffffff ffffffff ffffffff
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 00000010 ffffffff ffffffff ffffffff ffffffff
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 00000020 ffffffff ffffffff ffffffff ffffffff
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 00000030 ffffffff ffffffff ffffffff ffffffff
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 00000040 ffffffff ffffffff ffffffff ffffffff
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 00000050 ffffffff ffffffff ffffffff ffffffff
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 00000060 ffffffff ffffffff ffffffff ffffffff
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 00000070 ffffffff ffffffff ffffffff ffffffff
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 00000080 ffffffff ffffffff ffffffff ffffffff
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 00000090 ffffffff ffffffff ffffffff ffffffff
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 000000a0 ffffffff ffffffff ffffffff ffffffff
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 000000b0 ffffffff ffffffff ffffffff ffffffff
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 000000c0 ffffffff ffffffff ffffffff ffffffff
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 000000d0 ffffffff ffffffff ffffffff ffffffff
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 000000e0 ffffffff ffffffff ffffffff ffffffff
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 000000f0 ffffffff ffffffff ffffffff ffffffff
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ code around lr:
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 75627808 47b84643 d1312800 0903f109 900cf8cd
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 75627818 68f7e008 a90ea80c 4643aa0a b014f8dd
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 75627828 e00e47b8 900cf8dd e001465f b014f8cd
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 75627838 f4ff4557 6873af46 4641a80a b014f8dd
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 75627848 b9984798 c010f8dd 0301f10c c018f8dd
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 75627858 0c01f10c c018f8cd 2000f9bb c018f8dd
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 75627868 f6ff4594 2000aec5 2014e000 e8bdb013
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 75627878 b5308ff0 d02b2800 3002f9b0 1000f9b0
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 75627888 0203ea51 2b00d022 2200bfcc 29002201
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 75627898 f042bfd8 b9da0201 f04f68c5 461034ff
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 756278a8 4614e000 2b02f935 bfcc42a2 24012400
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 756278b8 bfa8429a 0401f044 3001b964 dbf04288
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 756278c8 42821e58 2006bf14 bd302000 bd304610
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 756278d8 bd302006 bd302006 f1d0b570 46040601
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 756278e8 bf38460d 29002600 f046bf08 bb1e0601
    12-18 16:43:01.152 9322-9322/? I/DEBUG﹕ 756278f8 680b6802 d11f429a d01f4288 2002f9b4

    #5691 Reply

    Dr. Plug
    Moderator

    Hi Jordan,

    Thanks for your information and feedback. Please wait a moment so that our Team can investigate this issue. All of the code that you provided will take us a few moments to investigate. We will reach out to you again shortly.

    Thanks,

    Dr. Plug

    • This reply was modified 1 year, 11 months ago by  Dr. Plug.
    #5697 Reply

    Dr. Plug
    Moderator

    Hi Jordan,

    Sorry for your inconvenience. We tested with the modified code, below. We changed 2 lines of code because we found a compiling error with the method ‘getWidth()’ and the keyword ‘IMAGE_FILE_NAME_TEMPLATE’. The below code with changes is working. For more testing, would you please be able to send us the PDF file which crashed in your project?

    public List getImageFiles(File pdf, String pdfPassword, int startPage, int numPages, int quality, Bitmap.CompressFormat format) {
    List
    files = new ArrayList<>();
    File outDir = getCacheDir(); // TODO implement DiskLRUCache
    for (int i = 0; i < numPages; i++) { //Here is the line we changed for testing. File pageFile = new File(outDir, pdf.gatName() + (startPage +i)); if (!pageFile.exists()) {OutputStream out = null; try {int width = 1240; //Here is the line we changed for testing.int pageIdx = startPage + i;}}} Thanks a lot. Best regards, Dr. Plug

    #5782 Reply

    Jordan Hansen

    I found that the size was not the issue but trying to draw multiple bitmaps at the same time.
    Once I synchronized the getImageFiles() method I didn’t have any issues.

    #5783 Reply

    Dr. Plug
    Moderator

    Hi Jordan,

    Thanks very much for reporting back to us. We will make note of this, and if you have any other questions or ideas, please don’t hesitate to ask us.

    Cheers,

    Dr. Plug

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: SigSegv drawing to bitmap
Your information: