OutOfMemoryError high screen resolution - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Here you should submit your bug reports with logcat.
  • Page:
  • 1
  • 2

TOPIC: OutOfMemoryError high screen resolution

OutOfMemoryError high screen resolution 5 years 4 months ago #3104

  • angelredondo
  • angelredondo's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Karma: 1
  • Thank you received: 0
I prepare the final beta test, and test in some devices is OK, but I found issues in devices of high screen resolution, Samsung Galaxy SIII and Asus Transformer, crash app OutOfMemory.

My configuration Global.java, only change def_view=3 or def_view=0.

Go to PDF and zoom in the page its OK, pan and goto pages its Ok, but I intent zoom out, CRASH.

I use last estable 2.9.1 (2.8.3 same problem).

In initial test of your SDK 2.7.2, not found this issue, the old system, crop the page, the new render all page.

How I get solution? I can't access to PDFVPage java for veriry iusse.

Thanks.

[**LogCat**]
07-09 13:56:08.009: D/dalvikvm(23598): GC_FOR_ALLOC freed 2827K, 47% free 30885K/57671K, paused 22ms, total 22ms
07-09 13:56:08.014: I/dalvikvm-heap(23598): Forcing collection of SoftReferences for 10481368-byte allocation
07-09 13:56:08.054: D/dalvikvm(23598): GC_BEFORE_OOM freed 10K, 47% free 30874K/57671K, paused 40ms, total 40ms
07-09 13:56:08.054: E/dalvikvm-heap(23598): Out of memory on a 10481368-byte allocation.
07-09 13:56:08.054: I/dalvikvm(23598): "main" prio=5 tid=1 RUNNABLE
07-09 13:56:08.054: I/dalvikvm(23598):   | group="main" sCount=0 dsCount=0 obj=0x40ee4508 self=0x40ed4468
07-09 13:56:08.054: I/dalvikvm(23598):   | sysTid=23598 nice=0 sched=0/0 cgrp=apps handle=1075158832
07-09 13:56:08.054: I/dalvikvm(23598):   | schedstat=( 4712432648 780470511 7048 ) utm=341 stm=130 core=2
07-09 13:56:08.054: I/dalvikvm(23598):   at android.graphics.Bitmap.nativeCreate(Native Method)
07-09 13:56:08.054: I/dalvikvm(23598):   at android.graphics.Bitmap.createBitmap(Bitmap.java:640)
07-09 13:56:08.059: I/dalvikvm(23598):   at android.graphics.Bitmap.createBitmap(Bitmap.java:620)
07-09 13:56:08.059: I/dalvikvm(23598):   at com.radaee.view.PDFVPage.CreateBmp(PDFVPage.java:207)
07-09 13:56:08.059: I/dalvikvm(23598):   at com.radaee.view.PDFView.motionNormal(PDFView.java:616)
07-09 13:56:08.059: I/dalvikvm(23598):   at com.radaee.view.PDFView.vTouchEvent(PDFView.java:653)
07-09 13:56:08.059: I/dalvikvm(23598):   at com.radaee.reader.PDFReader.onTouchEvent(PDFReader.java:488)
07-09 13:56:08.059: I/dalvikvm(23598):   at android.view.View.dispatchTouchEvent(View.java:7337)
07-09 13:56:08.059: I/dalvikvm(23598):   at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2416)
07-09 13:56:08.059: I/dalvikvm(23598):   at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2159)
07-09 13:56:08.059: I/dalvikvm(23598):   at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2416)
07-09 13:56:08.059: I/dalvikvm(23598):   at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2159)
07-09 13:56:08.059: I/dalvikvm(23598):   at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2416)
07-09 13:56:08.059: I/dalvikvm(23598):   at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2159)
07-09 13:56:08.064: I/dalvikvm(23598):   at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2416)
07-09 13:56:08.064: I/dalvikvm(23598):   at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2159)
07-09 13:56:08.064: I/dalvikvm(23598):   at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2115)
07-09 13:56:08.064: I/dalvikvm(23598):   at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1468)
07-09 13:56:08.064: I/dalvikvm(23598):   at android.app.Activity.dispatchTouchEvent(Activity.java:2487)
07-09 13:56:08.064: I/dalvikvm(23598):   at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2063)
07-09 13:56:08.064: I/dalvikvm(23598):   at android.view.View.dispatchPointerEvent(View.java:7520)
07-09 13:56:08.064: I/dalvikvm(23598):   at android.view.ViewRootImpl.deliverPointerEvent(ViewRootImpl.java:3376)
07-09 13:56:08.064: I/dalvikvm(23598):   at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:3308)
07-09 13:56:08.069: I/dalvikvm(23598):   at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:4402)
07-09 13:56:08.069: I/dalvikvm(23598):   at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:4380)
07-09 13:56:08.069: I/dalvikvm(23598):   at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:4484)
07-09 13:56:08.069: I/dalvikvm(23598):   at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:171)
07-09 13:56:08.069: I/dalvikvm(23598):   at android.os.MessageQueue.nativePollOnce(Native Method)
07-09 13:56:08.069: I/dalvikvm(23598):   at android.os.MessageQueue.next(MessageQueue.java:125)
07-09 13:56:08.069: I/dalvikvm(23598):   at android.os.Looper.loop(Looper.java:124)
07-09 13:56:08.069: I/dalvikvm(23598):   at android.app.ActivityThread.main(ActivityThread.java:4898)
07-09 13:56:08.069: I/dalvikvm(23598):   at java.lang.reflect.Method.invokeNative(Native Method)
07-09 13:56:08.069: I/dalvikvm(23598):   at java.lang.reflect.Method.invoke(Method.java:511)
07-09 13:56:08.069: I/dalvikvm(23598):   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
07-09 13:56:08.069: I/dalvikvm(23598):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
07-09 13:56:08.069: I/dalvikvm(23598):   at dalvik.system.NativeStart.main(Native Method)
07-09 13:56:08.069: E/InputEventReceiver(23598): Exception dispatching input event.
07-09 13:56:08.069: E/MessageQueue-JNI(23598): Exception in MessageQueue callback: handleReceiveCallback
07-09 13:56:08.089: E/MessageQueue-JNI(23598): java.lang.OutOfMemoryError
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at android.graphics.Bitmap.nativeCreate(Native Method)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at android.graphics.Bitmap.createBitmap(Bitmap.java:640)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at android.graphics.Bitmap.createBitmap(Bitmap.java:620)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at com.radaee.view.PDFVPage.CreateBmp(PDFVPage.java:207)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at com.radaee.view.PDFView.motionNormal(PDFView.java:616)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at com.radaee.view.PDFView.vTouchEvent(PDFView.java:653)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at com.radaee.reader.PDFReader.onTouchEvent(PDFReader.java:488)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at android.view.View.dispatchTouchEvent(View.java:7337)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2416)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2159)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2416)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2159)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2416)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2159)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2416)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2159)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2115)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1468)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at android.app.Activity.dispatchTouchEvent(Activity.java:2487)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2063)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at android.view.View.dispatchPointerEvent(View.java:7520)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at android.view.ViewRootImpl.deliverPointerEvent(ViewRootImpl.java:3376)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:3308)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:4402)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:4380)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:4484)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:171)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at android.os.MessageQueue.nativePollOnce(Native Method)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at android.os.MessageQueue.next(MessageQueue.java:125)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at android.os.Looper.loop(Looper.java:124)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at android.app.ActivityThread.main(ActivityThread.java:4898)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at java.lang.reflect.Method.invokeNative(Native Method)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at java.lang.reflect.Method.invoke(Method.java:511)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
07-09 13:56:08.089: E/MessageQueue-JNI(23598): 	at dalvik.system.NativeStart.main(Native Method)
07-09 13:56:08.089: D/AndroidRuntime(23598): Shutting down VM
07-09 13:56:08.089: W/dalvikvm(23598): threadid=1: thread exiting with uncaught exception (group=0x40ee32a0)
07-09 13:56:08.099: E/AndroidRuntime(23598): FATAL EXCEPTION: main
07-09 13:56:08.099: E/AndroidRuntime(23598): java.lang.OutOfMemoryError
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at android.graphics.Bitmap.nativeCreate(Native Method)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at android.graphics.Bitmap.createBitmap(Bitmap.java:640)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at android.graphics.Bitmap.createBitmap(Bitmap.java:620)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at com.radaee.view.PDFVPage.CreateBmp(PDFVPage.java:207)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at com.radaee.view.PDFView.motionNormal(PDFView.java:616)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at com.radaee.view.PDFView.vTouchEvent(PDFView.java:653)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at com.radaee.reader.PDFReader.onTouchEvent(PDFReader.java:488)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at android.view.View.dispatchTouchEvent(View.java:7337)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2416)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2159)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2416)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2159)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2416)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2159)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2416)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2159)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2115)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1468)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at android.app.Activity.dispatchTouchEvent(Activity.java:2487)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2063)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at android.view.View.dispatchPointerEvent(View.java:7520)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at android.view.ViewRootImpl.deliverPointerEvent(ViewRootImpl.java:3376)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:3308)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:4402)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:4380)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:4484)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:171)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at android.os.MessageQueue.nativePollOnce(Native Method)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at android.os.MessageQueue.next(MessageQueue.java:125)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at android.os.Looper.loop(Looper.java:124)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at android.app.ActivityThread.main(ActivityThread.java:4898)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at java.lang.reflect.Method.invokeNative(Native Method)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at java.lang.reflect.Method.invoke(Method.java:511)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
07-09 13:56:08.099: E/AndroidRuntime(23598): 	at dalvik.system.NativeStart.main(Native Method)

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

OutOfMemoryError high screen resolution 5 years 4 months ago #3105

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 846
  • Karma: 43
  • Thank you received: 12
replace these codes in PDFVPage:
	protected void CreateBmp()
	{
		if( m_cache == null || m_cache.m_status != 1 || m_bmp != null ) return;
		float scale = 1;
		if( m_cache.m_dibw * m_cache.m_dibh > (1<<20) )
			scale = FloatMath.sqrt( (float)(1<<20) / (m_cache.m_dibw * m_cache.m_dibh) );
		int w = (int)(m_cache.m_dibw * scale);
		int h = (int)(m_cache.m_dibh * scale);
		try
		{
			m_bmp = Bitmap.createBitmap(w, h, Config.ARGB_8888);
			int bmp = Global.lockBitmap(m_bmp);
			Global.drawToBmp2(bmp, m_cache.m_dib, 0, 0, w, h);
			Global.unlockBitmap(m_bmp, bmp);
		}
		catch(Exception e)
		{
		}
		m_cache.Clear();
		m_cache = null;
		if( m_sel != null )
		{
			m_sel.Clear();
			m_sel = null;
		}
	}

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

Last edit: by .

OutOfMemoryError high screen resolution 5 years 4 months ago #3106

  • angelredondo
  • angelredondo's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Karma: 1
  • Thank you received: 0
The class PDFVPage is compiled in "com.radaee.pdfex_view.jar". I can't edit PDFVPage.java, You can send me?

Thanks

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

OutOfMemoryError high screen resolution 5 years 4 months ago #3107

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 846
  • Karma: 43
  • Thank you received: 12
oh.. sorry.
source codes can be obtained by professional or premium licensed user.
you can wait next beta version, shall be coming today or tomorrow.

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

OutOfMemoryError high screen resolution 5 years 4 months ago #3141

  • angelredondo
  • angelredondo's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Karma: 1
  • Thank you received: 0
Perfect, version 2.9.2 fix the error.

Thank you!

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

OutOfMemoryError high screen resolution 5 years 4 months ago #3143

  • angelredondo
  • angelredondo's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Karma: 1
  • Thank you received: 0
Upps, I'm sorry, the SDK 2.9.2 no fix the outOfMemory.
I bought professional licence for apply the change, and see the SDK 2.9.2 no apply this.

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

  • Page:
  • 1
  • 2
Powered by Kunena Forum