erickok / transdroid

Manage your torrents from your Android device
GNU General Public License v3.0
1.28k stars 201 forks source link

Force-Close when torrent list not empty (qBittorrent server on Android) #550

Closed dariusz-goc closed 2 years ago

dariusz-goc commented 3 years ago

Exception code:

java.lang.ArrayIndexOutOfBoundsException: length=1; index=1 at org.transdroid.daemon.Qbittorrent.QbittorrentAdapter.parseSize(QbittorrentAdapter.java:4) at org.transdroid.daemon.Qbittorrent.QbittorrentAdapter.parseJsonTorrents(QbittorrentAdapter.java:29) at org.transdroid.daemon.Qbittorrent.QbittorrentAdapter.executeTask(QbittorrentAdapter.java:112) at org.transdroid.daemon.task.DaemonTask.execute(DaemonTask.java:1) at org.transdroid.core.gui.TorrentsActivity.refreshTorrents(TorrentsActivity.java:5) at org.transdroid.core.gui.TorrentsActivity_.access$701(TorrentsActivity_.java:1) at org.transdroid.core.gui.TorrentsActivity_$10.execute(TorrentsActivity_.java:1) at org.androidannotations.api.BackgroundExecutor$Task.run(BackgroundExecutor.java:4) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764)

erickok commented 3 years ago

What version of qBittorrent ae you using?

dariusz-goc commented 3 years ago

I use ZetaTorrent on Nvidia SHIELD TV. The app doesn't specify which version it is, but it's free to install. The app itself recommends Transdroid as a remote.

erickok commented 3 years ago

Can you confirm that this is still happening on Transdroid 2.5.18?

dariusz-goc commented 3 years ago

Yes, it started with 2.5.17 and is still an issue in 2.5.18.

erickok commented 3 years ago

Ah I see it's the zetaTorrent app that offers a qBittorrent-like API but that might not be 100% compatible. It's ok, I can probably ignore the missing data and just not supply them in the app. That would at least fix your crashes.

dariusz-goc commented 3 years ago

I'm happy to test any fixes you might have :D

dariusz-goc commented 3 years ago

I just parked installed latest version (2.5.19) and the bug is still there:

java.lang.ArrayIndexOutOfBoundsException: length=1; index=1 at org.transdroid.daemon.Qbittorrent.QbittorrentAdapter.parseSpeed(QbittorrentAdapter.java:4) at org.transdroid.daemon.Qbittorrent.QbittorrentAdapter.parseJsonTorrents(QbittorrentAdapter.java:33) at org.transdroid.daemon.Qbittorrent.QbittorrentAdapter.executeTask(QbittorrentAdapter.java:112) at org.transdroid.daemon.task.DaemonTask.execute(DaemonTask.java:1) at org.transdroid.core.gui.TorrentsActivity.refreshTorrents(TorrentsActivity.java:5) at org.transdroid.core.gui.TorrentsActivity.access$701(TorrentsActivity.java:1) at org.transdroid.core.gui.TorrentsActivity$10.execute(TorrentsActivity.java:1) at org.androidannotations.api.BackgroundExecutor$Task.run(BackgroundExecutor.java:4) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764)

erickok commented 3 years ago

Yeah I was fixing one, only for a new one to show up. I'll have to test against ZetaTorrent directly.

dariusz-goc commented 3 years ago

Hi, just as a follow up, did you manage to fix this issue?

erickok commented 2 years ago

Seems zetaTorrent is dead. Shame.

dariusz-goc commented 2 years ago

Seems zetaTorrent is dead. Shame.

I see that it has been pulled, but it still works for those who have it installed... I can supply you with the apk. The force-close is still there in newer versions of transdroid, I was hoping this would be fixed by now. Older versions work fine.

erickok commented 2 years ago

Yup you can send me this and I will debug. I didn't want to download from a random apk 'backup' site as I don't really trust those.

dariusz-goc commented 2 years ago

Yup you can send me this and I will debug. I didn't want to download from a random apk 'backup' site as I don't really trust those.

Here are the original Play Store links:

ZetaTorrent: https://play.google.com/store/apps/details?id=com.teeonsoft.ztorrent

ZetaTorrent Pro: https://play.google.com/store/apps/details?id=com.teeonsoft.ztorrentpro

The app is "hidden" from search, but I can still install those on my account, worth checking if you can do the same.

I'm also attaching SAI backups of split apks for arm64, 480 dpi, English + Polish. I can download 320 dpi on my tablet or arm32 on my OnePlus One if you need those, just let me know. Rename to .apks and install with SAI.

zetaTorrent_com,teeonsoft,ztorrent_3,7,9.apks.zip zetaTorrent Pro_com,teeonsoft,ztorrentpro_3,7,9.apks.zip

erickok commented 2 years ago

Nope those Play Store links do not work for me. I will install from your zip.