wonday / react-native-pdf

A <Pdf /> component for react-native
MIT License
1.6k stars 557 forks source link

Android: Native crash app error "PDF renderer" #847

Open kumarPraveen08 opened 4 months ago

kumarPraveen08 commented 4 months ago

What react-native version are you using? 0.74.2

What react-native-pdf version are you using? 6.7.5

What platform does your issue occur on? (android/ios/both) Android

// android/app/build.gradle def enableProguardInReleaseBuilds = true

After launching the application on play store, it is showing native crash error:

error logs:

Build fingerprint: 'google/redfin/redfin:11/RQ3A.211001.001/7641976:user/release-keys' Revision: 'MP1.0' ABI: 'arm64' Timestamp: 2024-06-25 22:19:18-0700 pid: 22844, tid: 27413, name: PDF renderer >>> com.packagename <<< uid: 10275 signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x88 Cause: null pointer dereference x0 b40000750a283e50 x1 0000000000000000 x2 000000739954d538 x3 0000000000000048 x4 0000000000000010 x5 000000740a0f2580 x6 000000743a11c080 x7 000000743a134600 x8 0000000000000000 x9 0000000000000060 x10 0000000000001f44 x11 ae49000000048105 x12 00000000f3d9ea82 x13 ae49000000048105 x14 000000000000c000 x15 00000000ebad6a89 x16 00000072838e4f70 x17 00000072837bfb58 x18 00000073978cc000 x19 b40000750a283e50 x20 b40000756a019758 x21 b40000755a38fcb8 x22 b40000755a318298 x23 b40000755a38ecb8 x24 000000738c3ec560 x25 000000739954f000 x26 000000000000092b x27 0000000000000003 x28 000000739954d730 x29 000000739954d4d0 lr 000000728376b060 sp 000000739954d4d0 pc 00000072837bfb84 pst 0000000060000000 backtrace:

00 pc 00000000003edb84 /data/app/~~alypmSSf_csALBpsj5707Q==/com.packagename-zgsaYVcZo8epa5rusKfDeA==/split_config.arm64_v8a.apk!libpdfium.cr.so (offset 0xb70000) (FT_Done_Face+44) (BuildId: 991a8c73152ed28c)

I don't know what to do, please help!!

mbpictures commented 4 months ago

Not sure if this is related, but I got a quite similar crash with symbols:

          Crashed: Thread: SIGSEGV  0x4201f33342240000
#00 pc 0x34a5dc libpdfium.cr.so (CPDF_Document::MaybePurgeImage(unsigned int)) (BuildId: 991a8c73152ed28c)
#01 pc 0x328bec libpdfium.cr.so (CPDF_ImageObject::MaybePurgeCache()) (BuildId: 991a8c73152ed28c)
#02 pc 0x328b78 libpdfium.cr.so (CPDF_ImageObject::~CPDF_ImageObject()) (BuildId: 991a8c73152ed28c)
#03 pc 0x328c30 libpdfium.cr.so (CPDF_ImageObject::~CPDF_ImageObject()) (BuildId: 991a8c73152ed28c)
#04 pc 0x32ef18 libpdfium.cr.so (CFPF_SkiaPathFont::~CFPF_SkiaPathFont()) (BuildId: 991a8c73152ed28c)
#05 pc 0x32e558 libpdfium.cr.so (CPDF_PageObjectHolder::~CPDF_PageObjectHolder()) (BuildId: 991a8c73152ed28c)
#06 pc 0x32e4f0 libpdfium.cr.so (CPDF_PageObjectHolder::~CPDF_PageObjectHolder()) (BuildId: 991a8c73152ed28c)
#07 pc 0x32b6bc libpdfium.cr.so (CPDF_Page::~CPDF_Page()) (BuildId: 991a8c73152ed28c)
#08 pc 0x16984 libpdfiumandroid.so (Java_io_legere_pdfiumandroid_PdfPage_nativeClosePage) (BuildId: 9e0f386dec845b7ef29ae68ba37ebfcceec87832)
#09 pc 0x762d915f14
rahulrajsbkk commented 3 months ago

Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x2f6665722f678e in tid 24894 (PDF renderer), pid 23950 (dar.development)

wency-yang commented 2 months ago

@mbpictures How is the crash going? Has it been resolved?

deepktp commented 3 weeks ago

we have also had this issue on around 0.4% devices. On play store Crash reports, we are getting same issue.

we are able to recreate this issue

  1. if you have a very long pdf like 40+ page and then you scroll very fast
  2. if you switch screens between view pdf and any other very fast this crash happen

pid: 0, tid: 9478 >>> com.maxcode.srjajoriya <<<

backtrace:

00 pc 0x00000000003edb84 /data/app/~~78eiRoLZxxc_9lnE_UAnew==/com.maxcode.srjajoriya-t43RsE5UN-rWFfHjdffjCQ==/split_config.arm64_v8a.apk!libpdfium.cr.so (FT_Done_Face+44) (BuildId: 991a8c73152ed28c)

01 pc 0x000000000039905c /data/app/~~78eiRoLZxxc_9lnE_UAnew==/com.maxcode.srjajoriya-t43RsE5UN-rWFfHjdffjCQ==/split_config.arm64_v8a.apk!libpdfium.cr.so (CFX_Face::~CFX_Face()+40) (BuildId: 991a8c73152ed28c)

02 pc 0x0000000000399088 /data/app/~~78eiRoLZxxc_9lnE_UAnew==/com.maxcode.srjajoriya-t43RsE5UN-rWFfHjdffjCQ==/split_config.arm64_v8a.apk!libpdfium.cr.so (CFX_Face::~CFX_Face()+20) (BuildId: 991a8c73152ed28c)

03 pc 0x000000000039f8c0 /data/app/~~78eiRoLZxxc_9lnE_UAnew==/com.maxcode.srjajoriya-t43RsE5UN-rWFfHjdffjCQ==/split_config.arm64_v8a.apk!libpdfium.cr.so (CFX_GlyphCache::~CFX_GlyphCache()+44) (BuildId: 991a8c73152ed28c)

04 pc 0x000000000039f8ec /data/app/~~78eiRoLZxxc_9lnE_UAnew==/com.maxcode.srjajoriya-t43RsE5UN-rWFfHjdffjCQ==/split_config.arm64_v8a.apk!libpdfium.cr.so (CFX_GlyphCache::~CFX_GlyphCache()+20) (BuildId: 991a8c73152ed28c)

05 pc 0x000000000039a684 /data/app/~~78eiRoLZxxc_9lnE_UAnew==/com.maxcode.srjajoriya-t43RsE5UN-rWFfHjdffjCQ==/split_config.arm64_v8a.apk!libpdfium.cr.so (CFX_Font::~CFX_Font()+92) (BuildId: 991a8c73152ed28c)

06 pc 0x000000000048af90 /data/app/~~78eiRoLZxxc_9lnE_UAnew==/com.maxcode.srjajoriya-t43RsE5UN-rWFfHjdffjCQ==/split_config.arm64_v8a.apk!libpdfium.cr.so (CPDF_Font::~CPDF_Font()+116) (BuildId: 991a8c73152ed28c)

07 pc 0x0000000000486f80 /data/app/~~78eiRoLZxxc_9lnE_UAnew==/com.maxcode.srjajoriya-t43RsE5UN-rWFfHjdffjCQ==/split_config.arm64_v8a.apk!libpdfium.cr.so (CPDF_CIDFont::~CPDF_CIDFont()+20) (BuildId: 991a8c73152ed28c)

08 pc 0x000000000033d5a8 /data/app/~~78eiRoLZxxc_9lnE_UAnew==/com.maxcode.srjajoriya-t43RsE5UN-rWFfHjdffjCQ==/split_config.arm64_v8a.apk!libpdfium.cr.so (CPDF_TextState::TextData::~TextData()+20) (BuildId: 991a8c73152ed28c)

09 pc 0x00000000003266e8 /data/app/~~78eiRoLZxxc_9lnE_UAnew==/com.maxcode.srjajoriya-t43RsE5UN-rWFfHjdffjCQ==/split_config.arm64_v8a.apk!libpdfium.cr.so (CPDF_GraphicStates::~CPDF_GraphicStates()+52) (BuildId: 991a8c73152ed28c)

10 pc 0x000000000033c1b8 /data/app/~~78eiRoLZxxc_9lnE_UAnew==/com.maxcode.srjajoriya-t43RsE5UN-rWFfHjdffjCQ==/split_config.arm64_v8a.apk!libpdfium.cr.so (CPDF_TextObject::~CPDF_TextObject()+20) (BuildId: 991a8c73152ed28c)

11 pc 0x000000000032ef18 /data/app/~~78eiRoLZxxc_9lnE_UAnew==/com.maxcode.srjajoriya-t43RsE5UN-rWFfHjdffjCQ==/split_config.arm64_v8a.apk!libpdfium.cr.so (BuildId: 991a8c73152ed28c)

12 pc 0x000000000032e558 /data/app/~~78eiRoLZxxc_9lnE_UAnew==/com.maxcode.srjajoriya-t43RsE5UN-rWFfHjdffjCQ==/split_config.arm64_v8a.apk!libpdfium.cr.so (BuildId: 991a8c73152ed28c)

13 pc 0x000000000032e4f0 /data/app/~~78eiRoLZxxc_9lnE_UAnew==/com.maxcode.srjajoriya-t43RsE5UN-rWFfHjdffjCQ==/split_config.arm64_v8a.apk!libpdfium.cr.so (CPDF_PageObjectHolder::~CPDF_PageObjectHolder()+48) (BuildId: 991a8c73152ed28c)

14 pc 0x000000000032b6bc /data/app/~~78eiRoLZxxc_9lnE_UAnew==/com.maxcode.srjajoriya-t43RsE5UN-rWFfHjdffjCQ==/split_config.arm64_v8a.apk!libpdfium.cr.so (CPDF_Page::~CPDF_Page()+20) (BuildId: 991a8c73152ed28c)

15 pc 0x0000000000016984 /data/app/~~78eiRoLZxxc_9lnE_UAnew==/com.maxcode.srjajoriya-t43RsE5UN-rWFfHjdffjCQ==/split_config.arm64_v8a.apk!libpdfiumandroid.so (Java_io_legere_pdfiumandroid_PdfPage_nativeClosePage+40) (BuildId: 9e0f386dec845b7ef29ae68ba37ebfcceec87832)

16 pc 0x00000000003f03e0 /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (art_jni_trampoline+112)