Comments (5)
I think it may be best to output the Java exception stack trace only for debug builds? per the above if we have the 'debuggable' attribute on the app, we can print this out via logcat..
from adobe-runtime-support.
I'd see no reason not to include it in a release too.
It has to be said, it's pretty trivial to do this for all code, so if there are no major objections, we'll just do that...
jEnv->ExceptionDescribe();
results in:
2024-02-28 15:34:40.085 23154-23154 AdobeAIR air.com.harman.air.TestPAD E Warning: exception thrown from ANE function: returning a null value to ActionScript
2024-02-28 15:34:40.085 23154-23154 System.err air.com.harman.air.TestPAD W java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.adobe.fre.FREObject.getAsString()' on a null object reference
2024-02-28 15:34:40.085 23154-23154 System.err air.com.harman.air.TestPAD W at com.harman.PlayAssetDelivery.OpenInstallTimeAsset.call(OpenInstallTimeAsset.java:47)
2024-02-28 15:34:40.086 23154-23154 System.err air.com.harman.air.TestPAD W at com.adobe.air.customHandler.nativeOnTouchCallback(Native Method)
2024-02-28 15:34:40.086 23154-23154 System.err air.com.harman.air.TestPAD W at com.adobe.air.customHandler.handleMessage(customHandler.java:39)
2024-02-28 15:34:40.086 23154-23154 System.err air.com.harman.air.TestPAD W at android.os.Handler.dispatchMessage(Handler.java:106)
2024-02-28 15:34:40.086 23154-23154 System.err air.com.harman.air.TestPAD W at android.os.Looper.loopOnce(Looper.java:226)
2024-02-28 15:34:40.086 23154-23154 System.err air.com.harman.air.TestPAD W at android.os.Looper.loop(Looper.java:313)
2024-02-28 15:34:40.086 23154-23154 System.err air.com.harman.air.TestPAD W at android.app.ActivityThread.main(ActivityThread.java:8762)
2024-02-28 15:34:40.086 23154-23154 System.err air.com.harman.air.TestPAD W at java.lang.reflect.Method.invoke(Native Method)
2024-02-28 15:34:40.086 23154-23154 System.err air.com.harman.air.TestPAD W at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)
2024-02-28 15:34:40.086 23154-23154 System.err air.com.harman.air.TestPAD W at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
Actually all that you need I guess is what's above the com.adobe.air.customHandler
part, but hopefully this is useful anyway.
thanks
from adobe-runtime-support.
You can catch most things in your java / kotlin code and should be able to handle them there. This error normally means you have an unhandled exception occurring within the FREFunction.
I do agree however it probably would be helpful if AIR logged the stack trace of the exception that occurred.
from adobe-runtime-support.
@ajwfrost, yes, it will be great.
from adobe-runtime-support.
I'd see no reason not to include it in a release too. Can be helpful when debugging a live app, though honestly these particular errors normally only occur while developing so happy for either.
from adobe-runtime-support.
Related Issues (20)
- [Windows] Non-embedded fonts displayed without anti-aliasing (smoothing)
- TextField: Incorrect double-click behavior HOT 2
- adl quit unexpectedly HOT 8
- [AIR SDK 50.2.5.1][Linux] `Worker::start()` cause crash HOT 2
- Error on constructing XML from a file created by Visual Studio HOT 1
- AIR 50.2.5 Crashing in Debug Mode on Mac OS HOT 4
- i am using air sdk 50.2.25 , getting error while publish for android HOT 1
- i am using air sdk 50.2.2.5 , getting error while publishing for android HOT 2
- [Linux] `NativeWindow` creation cause crash without adl in some cases HOT 2
- [AIR 51.0.0.4][Linux] AIR applications doesn't work before Ubuntu 22.04 HOT 1
- After updating AIR SDK to version 50.2.4.5 Huge Spike in Crashes on iOS devices HOT 14
- [Issue] Context3d fail to initialize on Android
- ABB and armv7? HOT 2
- [ISSUE] Digest and Encryption not working on IOS HOT 2
- When using SDK 50.2.4.5, error #2004 occurs in NetStream.play(). HOT 7
- [Feature Request] Support for stageScaleMode and stageAlign in [SWF] metadata tag
- IOS Photo Library Access
- ANR extremely high on CPU: ARM Cortex-A53 (3,40%) HOT 3
- [ISSUE] TextField (input) issue on IOS HOT 1
- [AIR 51.0.1.1] Using `Stage` from native extension cause "`Error #2070: Security sandbox violation`" while `NetStream` in "Data Generation Mode" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adobe-runtime-support.