Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ANR (Application Not Responding) Issue Occurs When Executing JavaScript Function in a For Loop (array size of 5000) #1470

Open
roshni-warrantylife opened this issue May 2, 2024 · 0 comments

Comments

@roshni-warrantylife
Copy link

When attempting to execute a JavaScript function within a for loop in the Android application, an ANR (Application Not Responding) error occurs. The issue arises specifically during the execution of JavaScript functions in a loop, leading to unresponsiveness in the application's UI.

Version: 1.7.14

Logs:
main (runnable) tid=1 systid=13810 Triggered ANR Root blocking org.mozilla.javascript.ScriptableObject.get (ScriptableObject.java:237) org.mozilla.javascript.IdScriptableObject.get (IdScriptableObject.java:367) org.mozilla.javascript.ScriptableObject.getProperty (ScriptableObject.java:2023) org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper (ScriptRuntime.java:2577) org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis (ScriptRuntime.java:2568) org.mozilla.javascript.Interpreter.interpretLoop (Interpreter.java:1658) org.mozilla.javascript.Interpreter.interpret (Interpreter.java:1053) org.mozilla.javascript.InterpretedFunction.call (InterpretedFunction.java:90) org.mozilla.javascript.ContextFactory.doTopCall (ContextFactory.java:380) org.mozilla.javascript.ScriptRuntime.doTopCall (ScriptRuntime.java:3868) org.mozilla.javascript.InterpretedFunction.call (InterpretedFunction.java:88)

I'm uncertain about the solution, but I'm hopeful that you might have some insights. Please let me know if you need further information or assistance in resolving this issue. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant