LiquidPlayer / LiquidCore

Node.js virtual machine for Android and iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

String length limitations?

merijndejonge opened this issue · comments

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?