Code Monkey home page Code Monkey logo

Comments (5)

ajwfrost avatar ajwfrost commented on July 18, 2024 2

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.

ajwfrost avatar ajwfrost commented on July 18, 2024 1

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.

marchbold avatar marchbold commented on July 18, 2024

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.

itlancer avatar itlancer commented on July 18, 2024

@ajwfrost, yes, it will be great.

from adobe-runtime-support.

marchbold avatar marchbold commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.