Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Planned SDK features
  • Page:
  • 1
  • 2

TOPIC:

Memory Problems in device with Android 5.0.2 2 years 8 months ago #15605

  • jomart
  • jomart's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 15
  • Thank you received: 1
This is happening when the user is paginating PDF files and after some of them the app is closing with an OOM.

Please Log in or Create an account to join the conversation.

Memory Problems in device with Android 5.0.2 2 years 8 months ago #15606

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
dear user:
have you invoke PDFLayoutView.Close() before activity closed?
codes of demo:
@Override
protected void onDestroy() {
RadaeePluginCallback.getInstance().willCloseReader();

final PDFViewController vctrl = m_controller;
final Document doc = m_doc;
final PDFLayoutView view = m_view;
final PDFAssetStream astr = m_asset_stream;
final PDFHttpStream hstr = m_http_stream;
m_controller = null;
m_doc = null;
m_view = null;
m_asset_stream = null;
m_http_stream = null;
if(view != null) view.PDFCloseOnUI();
new Thread(){
@Override
public void run() {
if (vctrl != null) vctrl.onDestroy();
if (view != null) view.PDFClose();
if (doc != null) doc.Close();
if (astr != null) astr.close();
if (hstr != null) hstr.close();
Global.RemoveTmp();
synchronized (PDFViewAct.this) { PDFViewAct.this.notify(); }
}
}.start();
synchronized (this)
{
try { wait(1500); }
catch(Exception ignored) { }
}
super.onDestroy();
RadaeePluginCallback.getInstance().didCloseReader();
}
 

Please Log in or Create an account to join the conversation.

Last edit: by radaee.

Memory Problems in device with Android 5.0.2 2 years 8 months ago #15607

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
we just found an crashed issue relate CCITT decoding.
you can update libraries from:
www.radaeetz.com/20210827_1_android.libs.zip
 

Please Log in or Create an account to join the conversation.

Memory Problems in device with Android 5.0.2 2 years 8 months ago #15609

  • jomart
  • jomart's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 15
  • Thank you received: 1
Hello, Support.

The above code is from the new SDK version? Because we can't find that code in SDK version 3.55.5, what means CCITT decoding?, this link www.radaeetz.com/20210827_1_android.libs.zip is the newest RadaeePDF SDK?.

Please Log in or Create an account to join the conversation.

Memory Problems in device with Android 5.0.2 2 years 8 months ago #15610

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
yes, please download 3.60.2
the libraries are same to link here.
do not forgot to replace codes for package "com.radaee.pdf"
CCITT decoding, mainly is 1 bit image.

Please Log in or Create an account to join the conversation.

Last edit: by radaee.
  • Page:
  • 1
  • 2
Powered by Kunena Forum