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

String length limitations? #226

Open
merijndejonge opened this issue Dec 22, 2021 · 0 comments
Open

String length limitations? #226

merijndejonge opened this issue Dec 22, 2021 · 0 comments

Comments

@merijndejonge
Copy link

Hello,

We're using liquidcore in our android project. Recently, we encountered Fatal signal 6 (SIGABRT) errors when making a call to one of our javascript functions. This function has two string parameters, one of which can be quite long (i.e. around 100K).

I can reproduce the error by making subsequent calls with arguments that grow in size. It shows the following logs:

2021-12-22 12:41:34.562 3547-3547/io.myapp.app D/myapp: Iteration: 1 length: 102
2021-12-22 12:41:34.564 3547-3547/io.myapp.app D/myapp: Iteration: 2 length: 205
2021-12-22 12:41:34.566 3547-3547/io.myapp.app D/myapp: Iteration: 3 length: 411
2021-12-22 12:41:34.568 3547-3547/io.myapp.app D/myapp: Iteration: 4 length: 823
2021-12-22 12:41:34.570 3547-3547/io.myapp.app D/myapp: Iteration: 5 length: 1647
2021-12-22 12:41:34.573 3547-3547/io.myapp.app D/myapp: Iteration: 6 length: 3295
2021-12-22 12:41:34.575 3547-3547/io.myapp.app D/myapp: Iteration: 7 length: 6591
2021-12-22 12:41:34.578 3547-3547/io.myapp.app D/myapp: Iteration: 8 length: 13183
2021-12-22 12:41:34.581 3547-3547/io.myapp.app D/myapp: Iteration: 9 length: 26367
2021-12-22 12:41:34.584 3547-3547/io.myapp.app D/myapp: Iteration: 10 length: 52735
2021-12-22 12:41:34.589 3547-3547/io.myapp.app D/myapp: Iteration: 11 length: 105471
2021-12-22 12:41:34.596 3547-3547/io.myapp.app D/myapp: Iteration: 12 length: 210943
2021-12-22 12:41:34.605 3547-3547/io.myapp.app D/myapp: Iteration: 13 length: 421887
2021-12-22 12:41:34.629 3547-3547/io.myapp.app D/myapp: Iteration: 14 length: 843775
    
    --------- beginning of crash
2021-12-22 12:41:34.653 3547-3547/io.myapp.app A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 3547 (myapp.app), pid 3547 (myapp.app)

Where length denotes the length of the string that I pass to the liquidcore interpreter.

This makes me feel that there is a length restriction on stings in liquidcore.

Is that true? If so, can we change this? If not true, what else could cause the Fatal signal 6 errors?

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