We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Syncfusion PDF Viewer build issue on production

HI,

Once started using the syncfusion pdf viewer v20.2.43
production build fails with `Heap out of Memory` issues. The still continues even after 20 GB of RAM assigned to node. Its highly priority issue blocker for production builds.

Thanks

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 00007FF7E4F95D2F napi_wrap+133327
2: 00007FF7E4F2F606 SSL_get_quiet_shutdown+63062
3: 00007FF7E4F3049D node::OnFatalError+301
4: 00007FF7E5813E7E v8::Isolate::ReportExternalAllocationLimitReached+94
5: 00007FF7E57F8C6D v8::SharedArrayBuffer::Externalize+781
6: 00007FF7E56A246C v8::internal::Heap::EphemeronKeyWriteBarrierFromCode+1516
7: 00007FF7E56AD88A v8::internal::Heap::ProtectUnprotectedMemoryChunks+1258
8: 00007FF7E56AA9C9 v8::internal::Heap::PageFlagsAreConsistent+2457
9: 00007FF7E569F561 v8::internal::Heap::CollectGarbage+2049
10: 00007FF7E569D765 v8::internal::Heap::AllocateExternalBackingStore+1349
11: 00007FF7E56BDBDB v8::internal::Factory::NewFillerObject+203
12: 00007FF7E53EC421 v8::internal::interpreter::JumpTableTargetOffsets::iterator::operator=+1409
13: 00007FF7E589F2AD v8::internal::SetupIsolateDelegate::SetupHeap+474253
14: 000002F3417902AF
error Command failed with exit code 134.

1 Reply

CK Chinnamunia Karthik Chinna Thambi Syncfusion Team February 7, 2023 11:58 AM UTC

We suggest you to use only the required package. If you only use PDFViewer, for example, the @syncfusion/ej2-react-pdfviewer package is more than enough to render the PDF without importing all other syncfusion packages.


We also strongly recommend to use our latest PDF Viewer versions (V20.4.48). We have done various enhancements and stability improvements in our latest version.


Kindly try this and let us know if this helps.


Loader.
Live Chat Icon For mobile
Up arrow icon