Failed to allocate a 234360012 byte allocation with 9607496 free bytes and 178 MB until OOM

Kindly help me to remove This ERROR…When i am trying to Open a PDF File from device storage.

Can you try to disable the Web_Viewer3.Web View String block and try again?

this seems to be a very large pdf file…
how many MB does it have?
how many pages?
your device might be not powerful enough to handle that monster pdf…
what happens if you try a smaller pdf file?

Taifun

1 Like

pdf contains only 1 page with 2.2 MB Size Only.

you are using my pdf extension…
try my pdf example app and replace one of the pdf files from the assets by your pdf file to test opening and rendering your pdf without downloading it

Taifun

1 Like

Not working with hidden directory.

what is a hidden directory?

did you try the example app?
a good test would be to use it as it is to see if it is working for you

  1. using the companion app and
  2. after building

a further test would be as already mentioned

also again

  1. using the companion app and
  2. after building

Taifun

You have to check your logic and form them well, this error is as a result to many repeating hard task and cause the device to be out of memory (OOM)

You can start checking from the last event before you saw that error. this has happened to me and that was how i solved :wink: