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

ArrayIndexOutOfBoundsException calling into javascript function #216

Open
gshahbazian opened this issue Aug 12, 2021 · 0 comments
Open

ArrayIndexOutOfBoundsException calling into javascript function #216

gshahbazian opened this issue Aug 12, 2021 · 0 comments

Comments

@gshahbazian
Copy link

We have a javascript function being called many times in our application and occasionally see this exception being thrown:

     Caused by: java.lang.ArrayIndexOutOfBoundsException: src.length=126 srcPos=116 dst.length=126 dstPos=117 length=10
        at java.lang.System.arraycopy(Native Method)
        at androidx.collection.LongSparseArray.put(LongSparseArray.java:285)
        at org.liquidplayer.javascript.JNIJSValue.fromRef(JNIJSValue.java:123)
        at org.liquidplayer.javascript.JNIJSObject.fromRef(JNIJSObject.java:80)
        at org.liquidplayer.javascript.JNIJSContext.make(JNIJSContext.java:73)
        at org.liquidplayer.javascript.JSObject.<init>(JSObject.java:134)
        at org.liquidplayer.javascript.JSObject.<init>(JSObject.java:235)
        at org.liquidplayer.javascript.JSObjectPropertiesMap.<init>(JSObjectPropertiesMap.java:57)
        at org.liquidplayer.javascript.JSValue.<init>(JSValue.java:62)
        at org.liquidplayer.javascript.JSArray.<init>(JSArray.java:96)
        at org.liquidplayer.javascript.JSArray.<init>(JSArray.java:132)
        at org.liquidplayer.javascript.JSValue.<init>(JSValue.java:64)
        at org.liquidplayer.javascript.JSFunction.argsToValueRefs(JSFunction.java:393)
        at org.liquidplayer.javascript.JSFunction.apply(JSFunction.java:414)
        at org.liquidplayer.javascript.JSFunction.call(JSFunction.java:377)
...

Calling the same function with the same arguments on a re-launch of the app succeeds normally.

Is there anything here that points to something we may be doing incorrectly?

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