Tobi823 / ffupdater

FFUpdater: Updater for privacy friendly browser
https://f-droid.org/en/packages/de.marmaro.krt.ffupdater
GNU General Public License v3.0
650 stars 32 forks source link

Crash on startup due to different Tor Browser version schema #514

Closed utzer closed 11 months ago

utzer commented 11 months ago

Describe the bug FFUpdater crashes after opeing it, it shortly seaeches for updates.

To Reproduce Steps to reproduce the behavior:

  1. Open it.
  2. It crashes. 😜

Expected behavior It uptates the found apps.

Error message from FFUpdater Please copy and paste the error message with the stacktrace and error log here:

Stacktrace:

java.lang.IllegalStateException: Can't find download url with regex pattern '\Qhttps://dist.torproject.org/torbrowser/\E([0-9.]{4,})\Q/tor-browser-\E[0-9.]{4,}+\Q-android-aarch64-multi.apk\E'.
    at de.marmaro.krt.ffupdater.app.impl.TorBrowser.findVersionAndDownloadUrl(TorBrowser.kt:72)
    at de.marmaro.krt.ffupdater.app.impl.TorBrowser.access$findVersionAndDownloadUrl(TorBrowser.kt:26)
    at de.marmaro.krt.ffupdater.app.impl.TorBrowser$findVersionAndDownloadUrl$1.invokeSuspend(TorBrowser.kt:0)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
    at android.os.Handler.handleCallback(Handler.java:942)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loopOnce(Looper.java:201)
    at android.os.Looper.loop(Looper.java:288)
    at android.app.ActivityThread.main(ActivityThread.java:7932)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:942)
    Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@cb4178f, Dispatchers.Main]

Logs:

java.lang.IllegalStateException: Can't find download url with regex pattern '\Qhttps://dist.torproject.org/torbrowser/\E([0-9.]{4,})\Q/tor-browser-\E[0-9.]{4,}+\Q-android-aarch64-multi.apk\E'.
    at de.marmaro.krt.ffupdater.app.impl.TorBrowser.findVersionAndDownloadUrl(TorBrowser.kt:72)
    at de.marmaro.krt.ffupdater.app.impl.TorBrowser.access$findVersionAndDownloadUrl(TorBrowser.kt:26)
    at de.marmaro.krt.ffupdater.app.impl.TorBrowser$findVersionAndDownloadUrl$1.invokeSuspend(TorBrowser.kt:0)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
    at android.os.Handler.handleCallback(Handler.java:942)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loopOnce(Looper.java:201)
    at android.os.Looper.loop(Looper.java:288)
    at android.app.ActivityThread.main(ActivityThread.java:7932)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:942)
    Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@cb4178f, Dispatchers.Main]
Device information: Key Value
FFUpdater version 78.2.4 (161) release Github
Device FP4 (FP4eea, FP4, FP4)
Manufacturer Fairphone (Fairphone)
Supported ABIs arm64-v8a, armeabi-v7a, armeabi
Android version 13 (SDK: 33)
OS c7a8912703df, android-new, release-keys, 1693908001000
utzer commented 11 months ago

Just to be sure, it worked 2 days ago.

jim3692 commented 11 months ago

I am also facing this issue. I think similar crashes have happened before. Would it be a good idea to show this kind of errors on the list (ex. on Tor entry show that it failed), instead of crashing the entire app?

Usland123 commented 11 months ago

update FFUpdater to 78.2.5 version

utzer commented 11 months ago

it crashes during update. :-P

PS: And F-Droid does not have the version you mention.

Tobi823 commented 11 months ago

The bug is fixed in version 78.2.5

@utzer If you are using the FFUpdater signed by me (aka the APK from Github / Gitlab / my F-Droid repository or the developer signed APK from F-Droid) you can either:

Tobi823 commented 11 months ago

If you are using the FFUpdater signed by F-Droid, you can either:

utzer commented 11 months ago

@Tobi823 thanks, I added the F-Droid Repo, which fixed the update and crash problem. Thanks.