Closed gubatron closed 6 years ago
Ok, let me take a look at it, possible a memory handling issue
The problem is that this native method convert a native std::string
to a java String
, but that's not correct, I will delete that method. You can either use PeerInfo#client
or Vectors.byte_vector2bytes(peer.get_client())
and perform the String decode with ASCII
and handle the potential errors.
You can either use PeerInfo#client or Vectors.byte_vector2bytes(peer.get_client()) and perform the String decode with ASCII and handle the potential errors.
Thanks! I'll adjust the code on both clients. Indeed the crash had to do with getting clients with weirdly encoded names.
Also this reminds me of a request for you, let's start sending as torrent client: "jlibtorrent/
Just caught this guy on desktop while playing with peer info on Mac (
compile "com.frostwire:jlibtorrent:1.2.0.18-RC7"
)Let me zoom in for you:
Full crashlog: