frostwire / frostwire-jlibtorrent

A swig Java interface for libtorrent by the makers of FrostWire. Develop libtorrent based apps with the joy of coding in Java.
http://www.frostwire.com
MIT License
451 stars 138 forks source link

version mismatch #266

Closed XiongKe94 closed 2 years ago

XiongKe94 commented 2 years ago

The so file has been packed in, with the latest version of the library (1.2.14.2), with the old version of the library (1.2.11.0), do not know what is going on?

2021-12-07 10:32:05.577 9234-9260/xxxx I/System.out: Trying jlibtorrent.<so|dylib>...
2021-12-07 10:32:05.581 9234-9260/xxxx W/System.err: java.lang.UnsatisfiedLinkError: dlopen failed: library "libjlibtorrent.so" not found
2021-12-07 10:32:05.582 9234-9260/xxxx W/System.err:     at java.lang.Runtime.loadLibrary0(Runtime.java:1087)
2021-12-07 10:32:05.582 9234-9260/xxxx W/System.err:     at java.lang.Runtime.loadLibrary0(Runtime.java:1008)
2021-12-07 10:32:05.582 9234-9260/xxxx W/System.err:     at java.lang.System.loadLibrary(System.java:1664)
2021-12-07 10:32:05.582 9234-9260/xxxx W/System.err:     at com.frostwire.jlibtorrent.swig.libtorrent_jni.<clinit>(libtorrent_jni.java:25)
2021-12-07 10:32:05.582 9234-9260/xxxx W/System.err:     at com.frostwire.jlibtorrent.swig.libtorrent_jni.new_byte_vector(Native Method)
2021-12-07 10:32:05.582 9234-9260/xxxx W/System.err:     at com.frostwire.jlibtorrent.swig.byte_vector.<init>(byte_vector.java:40)
2021-12-07 10:32:05.582 9234-9260/xxxx W/System.err:     at com.frostwire.jlibtorrent.Vectors.bytes2byte_vector(Vectors.java:38)
2021-12-07 10:32:05.582 9234-9260/xxxx W/System.err:     at com.frostwire.jlibtorrent.TorrentInfo.bdecode0(TorrentInfo.java:679)
2021-12-07 10:32:05.582 9234-9260/xxxx W/System.err:     at com.frostwire.jlibtorrent.TorrentInfo.bdecode(TorrentInfo.java:654)
2021-12-07 10:32:05.582 9234-9260/xxxx W/System.err:     at com.apkmatrix.components.ultradownloader.torrentstream.TorrentUtils.parseTorrentInfo(TorrentUtils.kt:125)
2021-12-07 10:32:05.582 9234-9260/xxxx W/System.err:     at com.apkmatrix.components.ultradownloader.torrentstream.TorrentStream$startDownload$1$1.invokeSuspend(TorrentStream.kt:93)
2021-12-07 10:32:05.582 9234-9260/xxxx W/System.err:     at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
2021-12-07 10:32:05.583 9234-9260/xxxx W/System.err:     at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
2021-12-07 10:32:05.583 9234-9260/xxxx W/System.err:     at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
2021-12-07 10:32:05.583 9234-9260/xxxx W/System.err:     at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
2021-12-07 10:32:05.583 9234-9260/xxxx W/System.err:     at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
2021-12-07 10:32:05.583 9234-9260/xxxx W/System.err:     at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
2021-12-07 10:32:05.587 9234-9260/xxxx I/System.out: Loaded jlibtorrent-1.2.14.2

屏幕快照 2021-12-07 10 33 09

gubatron commented 2 years ago

interesting, will investigate

XiongKe94 commented 2 years ago

Excuse me, my code, TorrentInfo.bdecode (byteArray), threw the exception above me, then this code, has thrown the exception but returned a torrentinfo structure, I am a little confused?

XiongKe94 commented 2 years ago

Every time I request the network will return a seeded bytes I will convert to torrentinfo and the above exception is thrown and the older version doesn t report an error.

gubatron commented 2 years ago

We're about to make a new release and I will make sure there are no version mismatches, so this error should go away

gubatron commented 2 years ago

@XiongKe94 Please check if this is still an issue with 1.2.15.1 https://github.com/frostwire/frostwire-jlibtorrent/releases/tag/release%2F1.2.15.1

If not please close the issue.

Thank you @XiongKe94

XiongKe94 commented 2 years ago

@gubatron Still the same problem with the new version of 1.2.15.1 is still unresolved

gubatron commented 2 years ago

can you be more specific which is the actual problem you still have on 1.2.15.1, I see that this ticket has multiple issues, and it's confusing.

Version mismatch? or Some exception on TorrentInfo.bdecode(byteArray)?

gubatron commented 2 years ago

Excuse me, my code, TorrentInfo.bdecode (byteArray), threw the exception above me, then this code, has thrown the exception but returned a torrentinfo structure, I am a little confused?

This is the code of bdecode0 (used by bdecode(byteArray) { return new TorrentInfo(bdecode0(byteArray)); })

private static torrent_info bdecode0(byte[] data) {
        byte_vector buffer = Vectors.bytes2byte_vector(data);
        bdecode_node n = new bdecode_node();
        error_code ec = new error_code();
        int ret = bdecode_node.bdecode(buffer, n, ec);

        if (ret == 0) {
            ec.clear();
            torrent_info ti = new torrent_info(n, ec);
            buffer.clear(); // prevents GC
            if (ec.value() != 0) {
                throw new IllegalArgumentException("Can't decode data: " + ec.message());
            }
            return ti;
        } else {
            throw new IllegalArgumentException("Can't decode data: " + ec.message());
        }
    }

are you getting an IllegalArgumentException or some other exception?

it couldn't possibly return anything if it's throwing an exception. Perhaps you're catching some other exception, or you're just looking at some other torrent info object?

gubatron commented 2 years ago
Screen Shot 2022-01-19 at 9 13 09 AM

version seems fine.

XiongKe94 commented 2 years ago

Thank you for paying very close attention to my question. This is the old version 1.2.11.0 log.

2022-01-20 09:47:33.627 30369-30473/com.xxxx.xx D/OpenGLRenderer: endAllActiveAnimators on 0x76e6c1ff70 (RippleDrawable) with handle 0x75f6c50310
2022-01-20 09:47:35.984 30369-30369/com.xxxx.xx D/UltDownloadService: new_start
2022-01-20 09:47:35.992 30369-30369/com.xxxx.xx D/UltDownloadService: -113277403 Instagram onStart 
2022-01-20 09:47:35.993 30369-30369/com.xxxx.xx D/CompatibilityChangeReporter: Compat change id reported: 160794467; UID 10292; state: DISABLED
2022-01-20 09:47:39.781 30369-30369/com.xxxx.xx D/UltDownloadService: -113277403 Instagram onTorrentFile ByteArray size 3412 isNetwork true 
2022-01-20 09:47:39.779 30369-30369/com.xxxx.xx W/downloader.demo: type=1400 audit(0.0:6821): avc: granted { bind } for scontext=u:r:untrusted_app_29:s0:c36,c257,c512,c768 tcontext=u:r:untrusted_app_29:s0:c36,c257,c512,c768 tclass=netlink_route_socket app=com.xxxx.xx
2022-01-20 09:47:39.779 30369-30369/com.xxxx.xx W/downloader.demo: type=1400 audit(0.0:6822): avc: granted { nlmsg_readpriv } for scontext=u:r:untrusted_app_29:s0:c36,c257,c512,c768 tcontext=u:r:untrusted_app_29:s0:c36,c257,c512,c768 tclass=netlink_route_socket app=com.xxxx.xx
2022-01-20 09:47:39.790 30369-30369/com.xxxx.xx D/UltDownloadService: -113277403 Instagram torrentConfig
2022-01-20 09:47:39.800 30369-30369/com.xxxx.xx D/UltDownloadService: -113277403 Instagram torrentAdded
2022-01-20 09:47:39.805 30369-30369/com.xxxx.xx D/UltDownloadService: -113277403 Instagram onStreamResumed
2022-01-20 09:47:42.811 30369-30551/com.xxxx.xx I/SessionManager: Error calling alert listener: divide by zero
2022-01-20 09:47:44.801 30369-30369/com.xxxx.xx D/UltDownloadService: -113277403 Instagram onStreamProgress: StreamStatus(progress=10.096877, totalDownload=4259309, totalSize=42184421, speedSize=2121728, speedStr=2.0 MB/s)
2022-01-20 09:47:45.807 30369-30369/com.xxxx.xx D/UltDownloadService: -113277403 Instagram onStreamProgress: StreamStatus(progress=10.174555, totalDownload=4292077, totalSize=42184421, speedSize=1425408, speedStr=1.4 MB/s)
2022-01-20 09:47:46.034 2300-2387/? D/PeopleSpaceWidgetMgr: Sbn doesn't contain valid PeopleTileKey: null/0/com.xxxx.xx
2022-01-20 09:47:46.832 30369-30369/com.xxxx.xx D/UltDownloadService: -113277403 Instagram onStreamProgress: StreamStatus(progress=10.174555, totalDownload=4292077, totalSize=42184421, speedSize=1069056, speedStr=1.0 MB/s)
2022-01-20 09:47:46.862 2300-2387/? D/PeopleSpaceWidgetMgr: Sbn doesn't contain valid PeopleTileKey: null/0/com.xxxx.xx
2022-01-20 09:47:47.106 30369-30369/com.xxxx.xx D/CompatibilityChangeReporter: Compat change id reported: 147798919; UID 10292; state: DISABLED
2022-01-20 09:47:47.143 30369-30369/com.xxxx.xx D/UltDownloadService: stop
2022-01-20 09:47:47.808 30369-30369/com.xxxx.xx D/UltDownloadService: -113277403 Instagram onStreamStopped
2022-01-20 09:47:47.818 2300-2387/? D/PeopleSpaceWidgetMgr: Sbn doesn't contain valid PeopleTileKey: null/0/com.xxxx.xx

This is the new version 1.2.15.1 log.

2022-01-20 09:51:46.397 31065-31065/com.xxxx.xx D/UltDownloadService: new_start
2022-01-20 09:51:46.417 31065-31065/com.xxxx.xx D/UltDownloadService: -771975362 Facebook onStart 
2022-01-20 09:51:46.420 31065-31065/com.xxxx.xx D/CompatibilityChangeReporter: Compat change id reported: 160794467; UID 10293; state: DISABLED
2022-01-20 09:51:49.374 31065-31100/com.xxxx.xx I/System.out: Trying jlibtorrent.<so|dylib>...
2022-01-20 09:51:49.395 31065-31100/com.xxxx.xx W/System.err: java.lang.UnsatisfiedLinkError: dlopen failed: library "libjlibtorrent.so" not found
2022-01-20 09:51:49.395 31065-31100/com.xxxx.xx W/System.err:     at java.lang.Runtime.loadLibrary0(Runtime.java:1077)
2022-01-20 09:51:49.395 31065-31100/com.xxxx.xx W/System.err:     at java.lang.Runtime.loadLibrary0(Runtime.java:998)
2022-01-20 09:51:49.395 31065-31100/com.xxxx.xx W/System.err:     at java.lang.System.loadLibrary(System.java:1656)
2022-01-20 09:51:49.395 31065-31100/com.xxxx.xx W/System.err:     at com.frostwire.jlibtorrent.swig.libtorrent_jni.<clinit>(libtorrent_jni.java:42)
2022-01-20 09:51:49.395 31065-31100/com.xxxx.xx W/System.err:     at com.frostwire.jlibtorrent.swig.libtorrent_jni.new_byte_vector(Native Method)
2022-01-20 09:51:49.395 31065-31100/com.xxxx.xx W/System.err:     at com.frostwire.jlibtorrent.swig.byte_vector.<init>(byte_vector.java:40)
2022-01-20 09:51:49.395 31065-31100/com.xxxx.xx W/System.err:     at com.frostwire.jlibtorrent.Vectors.bytes2byte_vector(Vectors.java:38)
2022-01-20 09:51:49.395 31065-31100/com.xxxx.xx W/System.err:     at com.frostwire.jlibtorrent.TorrentInfo.bdecode0(TorrentInfo.java:679)
2022-01-20 09:51:49.395 31065-31100/com.xxxx.xx W/System.err:     at com.frostwire.jlibtorrent.TorrentInfo.bdecode(TorrentInfo.java:654)
2022-01-20 09:51:49.395 31065-31100/com.xxxx.xx W/System.err:     at com.apkmatrix.components.ultradownloader.torrentstream.TorrentUtils.parseTorrentInfo(TorrentUtils.kt:125)
2022-01-20 09:51:49.395 31065-31100/com.xxxx.xx W/System.err:     at com.apkmatrix.components.ultradownloader.torrentstream.TorrentStream$startDownload$1$1.invokeSuspend(TorrentStream.kt:93)
2022-01-20 09:51:49.395 31065-31100/com.xxxx.xx W/System.err:     at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
2022-01-20 09:51:49.395 31065-31100/com.xxxx.xx W/System.err:     at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
2022-01-20 09:51:49.395 31065-31100/com.xxxx.xx W/System.err:     at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
2022-01-20 09:51:49.395 31065-31100/com.xxxx.xx W/System.err:     at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
2022-01-20 09:51:49.396 31065-31100/com.xxxx.xx W/System.err:     at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
2022-01-20 09:51:49.396 31065-31100/com.xxxx.xx W/System.err:     at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
2022-01-20 09:51:49.400 31065-31100/com.xxxx.xx I/System.out: Loaded jlibtorrent-1.2.15.1
2022-01-20 09:51:49.457 31065-31065/com.xxxx.xx D/UltDownloadService: -771975362 Facebook onTorrentFile ByteArray size 3972 isNetwork true 
2022-01-20 09:51:49.467 31065-31065/com.xxxx.xx D/UltDownloadService: -771975362 Facebook torrentConfig
2022-01-20 09:51:49.469 31065-31065/com.xxxx.xx W/downloader.demo: type=1400 audit(0.0:6835): avc: granted { nlmsg_readpriv } for scontext=u:r:untrusted_app_29:s0:c37,c257,c512,c768 tcontext=u:r:untrusted_app_29:s0:c37,c257,c512,c768 tclass=netlink_route_socket app=com.xxxx.xx
2022-01-20 09:51:49.479 31065-31065/com.xxxx.xx D/UltDownloadService: -771975362 Facebook torrentAdded
2022-01-20 09:51:49.483 31065-31065/com.xxxx.xx D/UltDownloadService: -771975362 Facebook onStreamResumed
2022-01-20 09:51:56.465 2300-2387/? D/PeopleSpaceWidgetMgr: Sbn doesn't contain valid PeopleTileKey: null/0/com.xxxx.xx
截屏2022-01-20 上午9 54 43
XiongKe94 commented 2 years ago

Remove the logs I added and print the logs in the alert method,

2022-01-20 10:08:17.611 32669-32766/com.xxxx.xx W/downloader.dem: Accessing hidden method Lcom/android/org/conscrypt/ConscryptEngineSocket;->setUseSessionTickets(Z)V (max-target-q,core-platform-api, reflection, allowed)
2022-01-20 10:08:17.611 32669-32766/com.xxxx.xx W/downloader.dem: Accessing hidden method Lcom/android/org/conscrypt/ConscryptEngineSocket;->setHostname(Ljava/lang/String;)V (max-target-q,core-platform-api, reflection, allowed)
2022-01-20 10:08:17.611 32669-32766/com.xxxx.xx W/downloader.dem: Accessing hidden method Lcom/android/org/conscrypt/OpenSSLSocketImpl;->setAlpnProtocols([B)V (max-target-q,core-platform-api, reflection, allowed)
2022-01-20 10:08:17.747 32669-32766/com.xxxx.xx W/downloader.dem: Accessing hidden method Lcom/android/org/conscrypt/OpenSSLSocketImpl;->getAlpnSelectedProtocol()[B (max-target-q,core-platform-api, reflection, allowed)
2022-01-20 10:08:17.818 32669-32747/com.xxxx.xx D/OpenGLRenderer: endAllActiveAnimators on 0x76e6bf8890 (RippleDrawable) with handle 0x75f6c46530
2022-01-20 10:08:22.581 32669-32747/com.xxxx.xx D/OpenGLRenderer: endAllActiveAnimators on 0x76e6c3a850 (RippleDrawable) with handle 0x75f6c4f740
2022-01-20 10:08:25.339 32669-32669/com.xxxx.xx D/CompatibilityChangeReporter: Compat change id reported: 160794467; UID 10293; state: DISABLED
2022-01-20 10:08:28.291 32669-32693/com.xxxx.xx I/System.out: Trying jlibtorrent.<so|dylib>...
2022-01-20 10:08:28.295 32669-32693/com.xxxx.xx W/System.err: java.lang.UnsatisfiedLinkError: dlopen failed: library "libjlibtorrent.so" not found
2022-01-20 10:08:28.295 32669-32693/com.xxxx.xx W/System.err:     at java.lang.Runtime.loadLibrary0(Runtime.java:1077)
2022-01-20 10:08:28.295 32669-32693/com.xxxx.xx W/System.err:     at java.lang.Runtime.loadLibrary0(Runtime.java:998)
2022-01-20 10:08:28.295 32669-32693/com.xxxx.xx W/System.err:     at java.lang.System.loadLibrary(System.java:1656)
2022-01-20 10:08:28.295 32669-32693/com.xxxx.xx W/System.err:     at com.frostwire.jlibtorrent.swig.libtorrent_jni.<clinit>(libtorrent_jni.java:42)
2022-01-20 10:08:28.295 32669-32693/com.xxxx.xx W/System.err:     at com.frostwire.jlibtorrent.swig.libtorrent_jni.new_byte_vector(Native Method)
2022-01-20 10:08:28.295 32669-32693/com.xxxx.xx W/System.err:     at com.frostwire.jlibtorrent.swig.byte_vector.<init>(byte_vector.java:40)
2022-01-20 10:08:28.296 32669-32693/com.xxxx.xx W/System.err:     at com.frostwire.jlibtorrent.Vectors.bytes2byte_vector(Vectors.java:38)
2022-01-20 10:08:28.296 32669-32693/com.xxxx.xx W/System.err:     at com.frostwire.jlibtorrent.TorrentInfo.bdecode0(TorrentInfo.java:679)
2022-01-20 10:08:28.296 32669-32693/com.xxxx.xx W/System.err:     at com.frostwire.jlibtorrent.TorrentInfo.bdecode(TorrentInfo.java:654)
2022-01-20 10:08:28.296 32669-32693/com.xxxx.xx W/System.err:     at com.apkmatrix.components.ultradownloader.torrentstream.TorrentUtils.parseTorrentInfo(TorrentUtils.kt:125)
2022-01-20 10:08:28.296 32669-32693/com.xxxx.xx W/System.err:     at com.apkmatrix.components.ultradownloader.torrentstream.TorrentStream$startDownload$1$1.invokeSuspend(TorrentStream.kt:93)
2022-01-20 10:08:28.296 32669-32693/com.xxxx.xx W/System.err:     at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
2022-01-20 10:08:28.296 32669-32693/com.xxxx.xx W/System.err:     at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
2022-01-20 10:08:28.296 32669-32693/com.xxxx.xx W/System.err:     at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
2022-01-20 10:08:28.296 32669-32693/com.xxxx.xx W/System.err:     at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
2022-01-20 10:08:28.296 32669-32693/com.xxxx.xx W/System.err:     at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
2022-01-20 10:08:28.296 32669-32693/com.xxxx.xx W/System.err:     at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
2022-01-20 10:08:28.301 32669-32693/com.xxxx.xx I/System.out: Loaded jlibtorrent-1.2.15.1
2022-01-20 10:08:28.342 32669-32669/com.xxxx.xx W/downloader.demo: type=1400 audit(0.0:6850): avc: granted { nlmsg_readpriv } for scontext=u:r:untrusted_app_29:s0:c37,c257,c512,c768 tcontext=u:r:untrusted_app_29:s0:c37,c257,c512,c768 tclass=netlink_route_socket app=com.xxxx.xx
2022-01-20 10:08:28.363 32669-329/com.xxxx.xx D/Torrent_alert->: ADD_TORRENT - add_torrent - added torrent: 68089c035227da42719cbf45b98674fd99d54f69_4e70c5e_apkpure.com.XAPK
2022-01-20 10:08:28.369 32669-329/com.xxxx.xx D/Torrent_alert->: TORRENT_RESUMED - torrent_resumed - 68089c035227da42719cbf45b98674fd99d54f69_4e70c5e_apkpure.com.XAPK resumed
2022-01-20 10:08:29.355 32669-329/com.xxxx.xx D/Torrent_alert->: STATS - stats - 68089c035227da42719cbf45b98674fd99d54f69_4e70c5e_apkpure.com.XAPK: [1906] 0 0 0 0 0 0
2022-01-20 10:08:30.354 32669-329/com.xxxx.xx D/Torrent_alert->: STATS - stats - 68089c035227da42719cbf45b98674fd99d54f69_4e70c5e_apkpure.com.XAPK: [1001] 0 0 0 0 40 0
2022-01-20 10:08:31.355 32669-329/com.xxxx.xx D/Torrent_alert->: STATS - stats - 68089c035227da42719cbf45b98674fd99d54f69_4e70c5e_apkpure.com.XAPK: [1001] 0 0 0 0 0 0
2022-01-20 10:08:32.360 32669-329/com.xxxx.xx D/Torrent_alert->: STATS - stats - 68089c035227da42719cbf45b98674fd99d54f69_4e70c5e_apkpure.com.XAPK: [1004] 0 0 0 0 0 0
2022-01-20 10:08:33.362 32669-329/com.xxxx.xx D/Torrent_alert->: STATS - stats - 68089c035227da42719cbf45b98674fd99d54f69_4e70c5e_apkpure.com.XAPK: [1001] 0 0 0 0 0 0
2022-01-20 10:08:34.362 32669-329/com.xxxx.xx D/Torrent_alert->: STATS - stats - 68089c035227da42719cbf45b98674fd99d54f69_4e70c5e_apkpure.com.XAPK: [1000] 0 0 0 0 0 0
gubatron commented 2 years ago

it seems that in the end it does find the library.

The thing is that I have multiple ways of trying to find the shared library, as this library is not only for android, it also works on Windows, Linux and Mac.

I'm going to try to silence that error output if the function eventually manages to load the library, that error is just happening on one of the library loading attempts.

It seems that your torrent gets added and resumed after all.

2022-01-20 10:08:28.301 32669-32693/com.xxxx.xx I/System.out: Loaded jlibtorrent-1.2.15.1
2022-01-20 10:08:28.342 32669-32669/com.xxxx.xx W/downloader.demo: type=1400 audit(0.0:6850): avc: granted { nlmsg_readpriv } for scontext=u:r:untrusted_app_29:s0:c37,c257,c512,c768 tcontext=u:r:untrusted_app_29:s0:c37,c257,c512,c768 tclass=netlink_route_socket app=com.xxxx.xx
2022-01-20 10:08:28.363 32669-329/com.xxxx.xx D/Torrent_alert->: ADD_TORRENT - add_torrent - added torrent: 68089c035227da42719cbf45b98674fd99d54f69_4e70c5e_apkpure.com.XAPK
2022-01-20 10:08:28.369 32669-329/com.xxxx.xx D/Torrent_alert->: TORRENT_RESUMED - torrent_resumed - 68089c035227da42719cbf45b98674fd99d54f69_4e70c5e_apkpure.com.XAPK resumed
2022-01-20 10:08:29.355 32669-329/com.xxxx.xx D/Torrent_alert->: STATS - stats - 68089c035227da42719cbf45b98674fd99d54f69_4e70c5e_apkpure.com.XAPK: [1906] 0 0 0 0 0 0
2022-01-20 10:08:30.354 32669-329/com.xxxx.xx D/Torrent_alert->: STATS - stats - 68089c035227da42719cbf45b98674fd99d54f69_4e70c5e_apkpure.com.XAPK: [1001] 0 0 0 0 40 0
2022-01-20 10:08:31.355 32669-329/com.xxxx.xx D/Torrent_alert->: STATS - stats - 68089c035227da42719cbf45b98674fd99d54f69_4e70c5e_apkpure.com.XAPK: [1001] 0 0 0 0 0 0
2022-01-20 10:08:32.360 32669-329/com.xxxx.xx D/Torrent_alert->: STATS - stats - 68089c035227da42719cbf45b98674fd99d54f69_4e70c5e_apkpure.com.XAPK: [1004] 0 0 0 0 0 0
2022-01-20 10:08:33.362 32669-329/com.xxxx.xx D/Torrent_alert->: STATS - stats - 68089c035227da42719cbf45b98674fd99d54f69_4e70c5e_apkpure.com.XAPK: [1001] 0 0 0 0 0 0
2022-01-20 10:08:34.362 32669-329/com.xxxx.xx D/Torrent_alert->: STATS - stats - 68089c035227da42719cbf45b98674fd99d54f69_4e70c5e_apkpure.com.XAPK: [1000] 0 0 0 0 0 0
gubatron commented 2 years ago

I'll make it so it doesn't complain along the way, and only if it cannot load the library.

gubatron commented 2 years ago

This is the error you're seeing https://github.com/frostwire/frostwire-jlibtorrent/blob/master/swig/libtorrent.i#L101

I'll refactor that so it won't print that error unless it fails completely. (or perhaps you want to submit a patch :) )

Screen Shot 2022-01-20 at 11 43 48 AM

XiongKe94 commented 2 years ago

So why can't the seeds be downloaded? The old version is ok, should not be the seed problem, is I didn't set up what?

gubatron commented 2 years ago

did the refactor to not show much error output when loading jlibtorrent, will upload android binaries for you in a few minutes.

https://github.com/frostwire/frostwire-jlibtorrent/commit/61ba0717ded996f10e493d760ed90fa141689b01

gubatron commented 2 years ago

So why can't the seeds be downloaded? The old version is ok, should not be the seed problem, is I didn't set up what?

We'll take a look at that with the new build, one thing at the time please.

gubatron commented 2 years ago

Here's a new build (only arm and arm64, as all your screenshots show only arm) that should fix the error messages when loading the library:

jlibtorrent-1.2.15.2.jar

jlibtorrent-android-arm-1.2.15.2.jar

jlibtorrent-android-arm64-1.2.15.2.jar

gubatron commented 2 years ago

if this fixes the issue with the version mismatch and loading errors, go ahead and close the ticket.

And then we can talk about the seeding issues you're having in another ticket.

1 ticket for 1 issue please.

XiongKe94 commented 2 years ago

Load so error prompt is gone, but still can not download, do not know why?The old version is ok

2022-01-23 10:15:06.902 19796-19823/com.xxx I/System.out: jlibtorrent: Trying to load jlibtorrent without version number: jlibtorrent.<so|dylib>...
2022-01-23 10:15:06.907 19796-19823/com.xxx I/System.out: jlibtorrent: FAILED: Trying to load jlibtorrent with version number: jlibtorrent-1.2.15.2
2022-01-23 10:15:06.911 19796-19823/com.xxx I/System.out: jlibtorrent: SUCCESS: Loaded jlibtorrent-1.2.15.2
2022-01-23 10:15:06.968 19796-19796/com.xxx W/downloader.demo: type=1400 audit(0.0:3336): avc: granted { nlmsg_readpriv } for scontext=u:r:untrusted_app_29:s0:c120,c257,c512,c768 tcontext=u:r:untrusted_app_29:s0:c120,c257,c512,c768 tclass=netlink_route_socket app=com.xxx
2022-01-23 10:15:06.977 19796-20028/com.xxx D/Torrent_alert->: ADD_TORRENT - add_torrent - added torrent: 1c4ddf2f2dd0e03bd7ad8cccff810cec634d156c_2fba1d3_apkpure.com.APK
2022-01-23 10:15:06.984 19796-20028/com.xxx D/Torrent_alert->: TORRENT_RESUMED - torrent_resumed - 1c4ddf2f2dd0e03bd7ad8cccff810cec634d156c_2fba1d3_apkpure.com.APK resumed
2022-01-23 10:15:07.981 19796-20028/com.xxx D/Torrent_alert->: STATS - stats - 1c4ddf2f2dd0e03bd7ad8cccff810cec634d156c_2fba1d3_apkpure.com.APK: [1924] 0 0 0 0 0 0
2022-01-23 10:15:08.981 19796-20028/com.xxx D/Torrent_alert->: STATS - stats - 1c4ddf2f2dd0e03bd7ad8cccff810cec634d156c_2fba1d3_apkpure.com.APK: [1000] 0 0 0 0 40 0
2022-01-23 10:15:09.982 19796-20028/com.xxx D/Torrent_alert->: STATS - stats - 1c4ddf2f2dd0e03bd7ad8cccff810cec634d156c_2fba1d3_apkpure.com.APK: [1001] 0 0 0 0 0 0
2022-01-23 10:15:10.983 19796-20028/com.xxx D/Torrent_alert->: STATS - stats - 1c4ddf2f2dd0e03bd7ad8cccff810cec634d156c_2fba1d3_apkpure.com.APK: [1001] 0 0 0 0 0 0
2022-01-23 10:15:11.985 19796-20028/com.xxx D/Torrent_alert->: STATS - stats - 1c4ddf2f2dd0e03bd7ad8cccff810cec634d156c_2fba1d3_apkpure.com.APK: [1001] 0 0 0 0 0 0
2022-01-23 10:15:12.985 19796-20028/com.xxx D/Torrent_alert->: STATS - stats - 1c4ddf2f2dd0e03bd7ad8cccff810cec634d156c_2fba1d3_apkpure.com.APK: [1000] 0 0 0 0 0 0
2022-01-23 10:15:13.989 19796-20028/com.xxx D/Torrent_alert->: STATS - stats - 1c4ddf2f2dd0e03bd7ad8cccff810cec634d156c_2fba1d3_apkpure.com.APK: [1003] 0 0 0 0 0 0
2022-01-23 10:15:14.144 2183-2183/? D/InterruptionStateProvider: No bubble up: not allowed to bubble: 0|com.xxx|-1498623815|null|10376
2022-01-23 10:15:14.145 2183-2183/? D/InterruptionStateProvider: No heads up: unimportant notification: 0|com.xxx|-1498623815|null|10376
2022-01-23 10:15:14.146 2183-2271/? D/PeopleSpaceWidgetMgr: Sbn doesn't contain valid PeopleTileKey: null/0/com.xxx
2022-01-23 10:15:14.991 19796-20028/com.xxx D/Torrent_alert->: STATS - stats - 1c4ddf2f2dd0e03bd7ad8cccff810cec634d156c_2fba1d3_apkpure.com.APK: [1001] 0 0 0 0 0 0
2022-01-23 10:15:15.994 19796-20028/com.xxx D/Torrent_alert->: STATS - stats - 1c4ddf2f2dd0e03bd7ad8cccff810cec634d156c_2fba1d3_apkpure.com.APK: [1003] 0 0 0 0 0 0
2022-01-23 10:15:16.997 19796-20028/com.xxx D/Torrent_alert->: STATS - stats - 1c4ddf2f2dd0e03bd7ad8cccff810cec634d156c_2fba1d3_apkpure.com.APK: [1002] 0 0 0 0 0 0
2022-01-23 10:15:18.000 19796-20028/com.xxx D/Torrent_alert->: STATS - stats - 1c4ddf2f2dd0e03bd7ad8cccff810cec634d156c_2fba1d3_apkpure.com.APK: [1002] 0 0 0 0 0 0
2022-01-23 10:15:18.999 19796-20028/com.xxx D/Torrent_alert->: STATS - stats - 1c4ddf2f2dd0e03bd7ad8cccff810cec634d156c_2fba1d3_apkpure.com.APK: [1000] 0 0 0 0 0 0
2022-01-23 10:15:19.999 19796-20028/com.xxx D/Torrent_alert->: STATS - stats - 1c4ddf2f2dd0e03bd7ad8cccff810cec634d156c_2fba1d3_apkpure.com.APK: [1000] 0 0 0 0 40 0
2022-01-23 10:15:21.001 19796-20028/com.xxx D/Torrent_alert->: STATS - stats - 1c4ddf2f2dd0e03bd7ad8cccff810cec634d156c_2fba1d3_apkpure.com.APK: [1001] 0 0 0 0 0 0
2022-01-23 10:15:22.005 19796-20028/com.xxx D/Torrent_alert->: STATS - stats - 1c4ddf2f2dd0e03bd7ad8cccff810cec634d156c_2fba1d3_apkpure.com.APK: [1002] 0 0 0 0 0 0
2022-01-23 10:15:23.006 19796-20028/com.xxx D/Torrent_alert->: STATS - stats - 1c4ddf2f2dd0e03bd7ad8cccff810cec634d156c_2fba1d3_apkpure.com.APK: [1001] 0 0 0 0 0 0
2022-01-23 10:15:24.008 19796-20028/com.xxx D/Torrent_alert->: STATS - stats - 1c4ddf2f2dd0e03bd7ad8cccff810cec634d156c_2fba1d3_apkpure.com.APK: [1001] 0 0 0 0 0 0
2022-01-23 10:15:25.008 19796-20028/com.xxx D/Torrent_alert->: STATS - stats - 1c4ddf2f2dd0e03bd7ad8cccff810cec634d156c_2fba1d3_apkpure.com.APK: [1000] 0 0 0 0 0 0
2022-01-23 10:15:26.011 19796-20028/com.xxx D/Torrent_alert->: STATS - stats - 1c4ddf2f2dd0e03bd7ad8cccff810cec634d156c_2fba1d3_apkpure.com.APK: [1001] 0 0 0 0 0 0
2022-01-23 10:15:27.010 19796-20028/com.xxx D/Torrent_alert->: STATS - stats - 1c4ddf2f2dd0e03bd7ad8cccff810cec634d156c_2fba1d3_apkpure.com.APK: [1000] 0 0 0 0 0 0
2022-01-23 10:15:28.011 19796-20028/com.xxx D/Torrent_alert->: STATS - stats - 1c4ddf2f2dd0e03bd7ad8cccff810cec634d156c_2fba1d3_apkpure.com.APK: [1000] 0 0 0 0 0 0
2022-01-23 10:15:29.014 19796-20028/com.xxx D/Torrent_alert->: STATS - stats - 1c4ddf2f2dd0e03bd7ad8cccff810cec634d156c_2fba1d3_apkpure.com.APK: [1002] 0 0 0 0 0 0
2022-01-23 10:15:30.014 19796-20028/com.xxx D/Torrent_alert->: STATS - stats - 1c4ddf2f2dd0e03bd7ad8cccff810cec634d156c_2fba1d3_apkpure.com.APK: [1001] 0 0 0 0 40 0
2022-01-23 10:15:31.017 19796-20028/com.xxx D/Torrent_alert->: STATS - stats - 1c4ddf2f2dd0e03bd7ad8cccff810cec634d156c_2fba1d3_apkpure.com.APK: [1002] 0 0 0 0 0 0
2022-01-23 10:15:32.016 19796-20028/com.xxx D/Torrent_alert->: STATS - stats - 1c4ddf2f2dd0e03bd7ad8cccff810cec634d156c_2fba1d3_apkpure.com.APK: [1000] 0 0 0 0 0 0
2022-01-23 10:15:33.017 19796-20028/com.xxx D/Torrent_alert->: STATS - stats - 1c4ddf2f2dd0e03bd7ad8cccff810cec634d156c_2fba1d3_apkpure.com.APK: [1000] 0 0 0 0 0 0
2022-01-23 10:15:34.021 19796-20028/com.xxx D/Torrent_alert->: STATS - stats - 1c4ddf2f2dd0e03bd7ad8cccff810cec634d156c_2fba1d3_apkpure.com.APK: [1002] 0 0 0 0 0 0
2022-01-23 10:15:35.023 19796-20028/com.xxx D/Torrent_alert->: STATS - stats - 1c4ddf2f2dd0e03bd7ad8cccff810cec634d156c_2fba1d3_apkpure.com.APK: [1002] 0 0 0 0 0 0
2022-01-23 10:15:36.026 19796-20028/com.xxx D/Torrent_alert->: STATS - stats - 1c4ddf2f2dd0e03bd7ad8cccff810cec634d156c_2fba1d3_apkpure.com.APK: [1002] 0 0 0 0 0 0
2022-01-23 10:15:37.025 19796-20028/com.xxx D/Torrent_alert->: STATS - stats - 1c4ddf2f2dd0e03bd7ad8cccff810cec634d156c_2fba1d3_apkpure.com.APK: [1000] 0 0 0 0 0 0
2022-01-23 10:15:38.033 19796-20028/com.xxx D/Torrent_alert->: STATS - stats - 1c4ddf2f2dd0e03bd7ad8cccff810cec634d156c_2fba1d3_apkpure.com.APK: [1006] 0 0 0 0 0 0
gubatron commented 2 years ago

Ok, I'll close this ticket and let's move the download issues to a new one.

Include this last log, include android version, phone model and CPU its using, and exactly what's happening, are you sure the torrent is seeded, are you sure your local wifi router or firewall isn't blocking frostwire from opening ports?

XiongKe94 commented 2 years ago

The same code, in a local area network, is compiled on the "Android studio", the same mobile phone, the mobile phone is Android 12, and then it cannot be downloaded? I can t use the latest version or only use the old version library. @gubatron