Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

OutOfMemory errors while loading files

More
IP: 192.168.0.71 11 years 5 months ago - 11 years 5 months ago #7368 by jorisk
Hello,

I have few problems to load PDF files (probably heavy ones) the first time. When they finished to be downloaded in the internal memory, I try to load them, but I have OutOfMemoryError which come from the PDFReader.java file. The app is closed, but when I reload it, the (already downloaded) files load normally.
Do you know what kind of problem can cause this?

Many thanks by advance!

P.S. : I am unable to post the Logs as Attachments directly in the post, so here are the links:
- First error: hpics.li/5ba3aac
- Second error: hpics.li/df7d55c
Last edit: 11 years 5 months ago by manchu. Reason: Logs pictures
More
IP: 192.168.0.71 11 years 5 months ago - 11 years 5 months ago #7369 by jorisk
The first error seems to be caused by this part in PDFReader.java:
Code:
@Override protected void onSizeChanged( int w, int h, int oldw, int oldh ) { super.onSizeChanged(w,h,oldw,oldh); if( m_view == null ) return; PDFPos pos = m_view.vGetPos(0, 0); m_view.vResize(w, h); // THIS LINE if( m_goto_pageno >= 0 ) { m_view.vGotoPage(m_goto_pageno); m_goto_pageno = -1; } else if( pos != null ) { m_view.vSetPos(pos, 0, 0); } }
And the second one is caused by this part in PDFThumbView.java:
Code:
@Override protected void onSizeChanged( int w, int h, int oldw, int oldh ) { if( m_thumb != null ) m_thumb.vResize(w, h); // THIS LINE }

Any ideas?
Last edit: 11 years 5 months ago by manchu.
More
IP: 192.168.0.71 11 years 5 months ago #7432 by jorisk
Time to create page: 0.398 seconds
Powered by Kunena Forum