distriqt / ane-memory Goto Github PK
View Code? Open in Web Editor NEWLow Memory Warning ANE for Adobe AIR applications on iOS
Home Page: https://airnativeextensions.com
License: MIT License
Low Memory Warning ANE for Adobe AIR applications on iOS
Home Page: https://airnativeextensions.com
License: MIT License
Update the extension to include support for Android 64bit
Starting August 1, 2019, your apps published on Google Play will need to support 64-bit architectures. 64-bit CPUs deliver faster, richer experiences for your users. Adding a 64-bit version of your app provides performance improvements, makes way for future innovation, and sets you up for devices with 64-bit-only hardware.
The memory event is not being dispatched, ie the following code will never call the event listener:
Memory.service.addEventListener( MemoryEvent.LOW_MEMORY_WARNING, lowMemoryWarningHandler );
Memory trim events on Android come with additional information about the amount of trimming the system suggests the application performs in order to keep memory available for the system.
This information should be added to the MemoryEvent.LOW_MEMORY_WARNING
event
There is java.lang.IllegalArgumentException in this ANE causing crash in our app. This is quiet high right now. Top 4 reason for app to crash more than 3000 user crash reports in last 30 days. We actually don't have repro steps but we can share some stacktraces and aggregated data which will hopefully help you identify the problem
Android version | number of crashes | percentage
Android 8.0 | 837 | 28.3%
Android 5.0 | 817 | 27.6%
Android 4.4 | 459 | 15.5%
Android 8.1 | 294 | 9.9%
Android 7.0 | 207 | 7.0%
Android 5.1 | 144 | 4.9%
Android 6.0 | 104 | 3.5%
Android 7.1 | 86 | 2.9%
Android 4.3 | 7 | 0.2%
#1
java.lang.IllegalArgumentException:
at com.adobe.fre.FREContext.dispatchStatusEventAsync (Native Method)
at com.distriqt.extension.memory.MemoryContext.dispatchEvent (MemoryContext.java:96)
at com.distriqt.extension.memory.controller.MemoryController.onTrimMemory (MemoryController.java:121)
at android.app.Application.onTrimMemory (Application.java:134)
at android.app.ActivityThread.handleTrimMemory (ActivityThread.java:4461)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1551)
at android.os.Handler.dispatchMessage (Handler.java:102)
at android.os.Looper.loop (Looper.java:148)
at android.app.ActivityThread.main (ActivityThread.java:5491)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:728)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:618)
#2
java.lang.IllegalArgumentException:
at com.adobe.fre.FREContext.dispatchStatusEventAsync (Native Method)
at com.distriqt.extension.memory.MemoryContext.dispatchEvent (MemoryContext.java:96)
at com.distriqt.extension.memory.controller.MemoryController.onTrimMemory (MemoryController.java:121)
at android.app.Application.onTrimMemory (Application.java:160)
at android.app.ActivityThread.handleTrimMemory (ActivityThread.java:5656)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1931)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loop (Looper.java:164)
at android.app.ActivityThread.main (ActivityThread.java:7000)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:441)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1408)
#3
java.lang.IllegalArgumentException:
at com.adobe.fre.FREContext.dispatchStatusEventAsync (Native Method)
at com.distriqt.extension.memory.MemoryContext.dispatchEvent (MemoryContext.java:96)
at com.distriqt.extension.memory.controller.MemoryController.onTrimMemory (MemoryController.java:121)
at android.app.Application.onTrimMemory (Application.java:152)
at android.app.ActivityThread.handleTrimMemory (ActivityThread.java:5641)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1894)
at android.os.Handler.dispatchMessage (Handler.java:102)
at android.os.Looper.loop (Looper.java:145)
at android.app.ActivityThread.main (ActivityThread.java:6873)
at java.lang.reflect.Method.invoke (Native Method)
at java.lang.reflect.Method.invoke (Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1404)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1199)
#4
java.lang.IllegalArgumentException:
at com.adobe.fre.FREContext.dispatchStatusEventAsync (Native Method)
at com.distriqt.extension.memory.MemoryContext.dispatchEvent (MemoryContext.java:96)
at com.distriqt.extension.memory.controller.MemoryController.onTrimMemory (MemoryController.java:121)
at android.app.Application.onTrimMemory (Application.java:147)
at android.app.ActivityThread.handleTrimMemory (ActivityThread.java:6137)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2230)
at android.os.Handler.dispatchMessage (Handler.java:108)
at android.os.Looper.loop (Looper.java:166)
at android.app.ActivityThread.main (ActivityThread.java:7523)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:245)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:921)
All exception stack trace ends in com.adobe.fre.FREContext.dispatchStatusEventAsync which is called from MemoryContext.dispatchEvent <- MemoryController.onTrimMemory
Please check if you supply method with correct arguments
Is it possible to attach the current memory usage in the MemoryEvent?
Hello
Could you recreate this ANE? with AIR version 32
Thank you in advance
java.lang.IllegalArgumentException:
at com.adobe.fre.FREContext.dispatchStatusEventAsync (Native Method)
at com.distriqt.extension.memory.MemoryContext.dispatchEvent (MemoryContext.java:96)
at com.distriqt.extension.memory.controller.MemoryController.onTrimMemory (MemoryController.java:121)
at android.app.Application.onTrimMemory (Application.java:148)
at android.app.ActivityThread.handleTrimMemory (ActivityThread.java:4369)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1491)
at android.os.Handler.dispatchMessage (Handler.java:102)
at android.os.Looper.loop (Looper.java:136)
at android.app.ActivityThread.main (ActivityThread.java:5590)
at java.lang.reflect.Method.invokeNative (Native Method)
at java.lang.reflect.Method.invoke (Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1280)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1096)
at dalvik.system.NativeStart.main (Native Method)
Adobe AIR 25
Samsung Galaxy J1 Ace (j1pop3g)
Android 4.4
In use ANES (Versions are from extension.xml)
com.distriqt.InAppBilling 1 -> This is wrong in the xml, but it's the previous version the one without the iOS 11 features.
com.distriqt.Dialog 5.1.124
com.distriqt.Application 4.2.049
com.distriqt.Image 3.0.038
com.distriqt.androidsupport.V4 26.0.0
com.distriqt.androidsupport.CustomTabs 26.0.0
com.distriqt.androidsupport.AppCompatV7 26.0.0
com.distriqt.Core 2.5.074
com.distriqt.ApplicationRater 3.2.015
com.distriqt.Memory 2.0.009
com.distriqt.NativeWebView 2.1.009
com.distriqt.Share 1 -> this is wrong in the xml but it's the new one
com.distriqt.AppGroupDefaults 1.1.023
com.distriqt.IDFA 1.0.017
com.distriqt.Notifications 4.4.054
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.