Closed mianharisali closed 7 years ago
Thanks for the info, it looks very similar the error in the links, what version of android/device is this?
android 7.1 , nexus 6p i think it appears on some kind of string. i get this error randomly.
@aldenml i tested again , its on this function peer.getClient()
here are few samples of client name strings on which it crashed.
Sample 1 string: '�Torrent 1.6.1' input: '<0xb5> 0x54 0x6f 0x72 0x72 0x65 0x6e 0x74 0x20 0x31 0x2e 0x36 0x2e 0x31'
Sample 2 string: '-XL0012-���lk[P>���D' input: '0x2d 0x58 0x4c 0x30 0x30 0x31 0x32 0x2d 0x06 <0xff> 0xb2 0x6c 0x6b 0x5b 0x50 0x3e 0xae 0xfe 0x97 0x44'
i think the c code is failing to convert the string in java readable string.
I expect this to fix the issue: https://github.com/frostwire/frostwire-jlibtorrent/commit/638d56452f0e397ff2c2592dbdc65f742fb4fa69
It exposes the internal "string" as a byte array in java and avoids any UTF-8 conversion, now you need to perform the string conversion.
Great , once it releases i will test it and let you know.
hi, 1.2.0.6-beta4
is out, can you test it?
@aldenml this issue is gone now :) thanks.
Fixed in 1.2.0.6-RC1
----------Sample Code:----------