Tobi823 / ffupdater

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

Error after finishing downloaded 'update' file #319

Closed Universalizer closed 1 year ago

Universalizer commented 1 year ago

Stacktrace:

de.marmaro.krt.ffupdater.network.exceptions.NetworkException: Download of https://github.com/brave/brave-browser/releases/download/v1.49.24/BraveMonoarm.apk failed.
    at de.marmaro.krt.ffupdater.network.FileDownloader$downloadBigFileAsync$deferred$1.invokeSuspend(SourceFile:166)
    at z3.a.resumeWith(Unknown Source:8)
    at l4.l0.run(Unknown Source:100)
    at p4.e.run(Unknown Source:11)
    at r4.j.run(Unknown Source:2)
    at r4.a$a.run(SourceFile:82)
Caused by: java.net.SocketTimeoutException: timeout
    at c5.r$c.j(Unknown Source:4)
    at c5.r$c.l(Unknown Source:8)
    at c5.r$b.read(SourceFile:137)
    at z4.c$b.read(SourceFile:16)
    at h5.r.read(SourceFile:4)
    at h5.i.read(Unknown Source:7)
    at de.marmaro.krt.ffupdater.network.ProgressResponseBody$trackTransmittedBytes$1.read(Unknown Source:5)
    at h5.r$a.read(SourceFile:4)
    at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:347)
    at java.io.FilterInputStream.read(FilterInputStream.java:107)
    at androidx.activity.m.k(Unknown Source:9)
    at de.marmaro.krt.ffupdater.network.FileDownloader.downloadBigFileInternal(Unknown Source:135)
    at de.marmaro.krt.ffupdater.network.FileDownloader.access$downloadBigFileInternal(Unknown Source:0)
    at de.marmaro.krt.ffupdater.network.FileDownloader$downloadBigFileInternal$1.invokeSuspend(Unknown Source:12)
    ... 5 more
Device information: Key Value
FFUpdater version 77.6.3 (125) release
Device SM-J600G (j6ltedx, j6lte, exynos7870)
Manufacturer samsung (samsung)
Supported ABIs armeabi-v7a, armeabi
Android version 10 (SDK: 29)
OS dpi, release-keys,
Tobi823 commented 1 year ago

Did the app crash or is it just the detailed error message?

Universalizer commented 1 year ago

Just the detailed error message report, within the app itself.

But System's status bar / notification panel ; message that 'this error should rarely occur.' (Something like that).

Universalizer commented 1 year ago

But System's status bar / notification panel ; message that 'this error should rarely occur.' (Something like that).

Noticed this



Surprisingly⁉️, Even didn't found "cached downloaded .apk" file in app's folder.

Tobi823 commented 1 year ago

The new version should handle this type of error better.

Tobi823 commented 1 year ago

Surprisinglyinterrobang, Even didn't found "cached downloaded .apk" file in app's folder.

The old FFUpdater version uses only one file or downloading and cache => If you start a download, the cache will be cleared. But this is also improved in the latest version.

Universalizer commented 1 year ago

Stacktrace:

java.lang.IllegalStateException: LifecycleOwner de.marmaro.krt.ffupdater.DownloadActivity@954945c is attempting to register while current state is RESUMED. LifecycleOwners must call register before they are STARTED.
    at androidx.activity.result.f.c(SourceFile:92)
    at de.marmaro.krt.ffupdater.installer.impl.IntentInstaller.onCreate(Unknown Source:21)
    at androidx.lifecycle.FullLifecycleObserverAdapter.a(Unknown Source:42)
    at androidx.lifecycle.p$a.a(SourceFile:18)
    at androidx.lifecycle.p.a(SourceFile:115)
    at de.marmaro.krt.ffupdater.DownloadActivity.installApp(Unknown Source:104)
    at de.marmaro.krt.ffupdater.DownloadActivity.postProcessDownload(Unknown Source:157)
    at de.marmaro.krt.ffupdater.DownloadActivity.startDownload(SourceFile:490)
    at de.marmaro.krt.ffupdater.DownloadActivity.access$startDownload(Unknown Source:0)
    at de.marmaro.krt.ffupdater.DownloadActivity$startDownload$1.invokeSuspend(Unknown Source:11)
    at w3.a.resumeWith(Unknown Source:8)
    at i4.l0.run(Unknown Source:102)
    at android.os.Handler.handleCallback(Handler.java:883)
    at android.os.Handler.dispatchMessage(Handler.java:100)
    at android.os.Looper.loop(Looper.java:237)
    at android.app.ActivityThread.main(ActivityThread.java:7948)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1075)
    Suppressed: i4.j0: [p1{Cancelling}@396f2dd, Dispatchers.Main]
Timestamp: 2023-01-31T23:44:11.633
Device information: Key Value
FFUpdater version 77.7.0 (126) release
Device SM-J600G (j6ltedx, j6lte, exynos7870)
Manufacturer samsung (samsung)
Supported ABIs armeabi-v7a, armeabi
Android version 10 (SDK: 29)
OS dpi, release-keys,

Such 4 or 5 times error occurred, for other Browser's updates also, but luckily cached was collected for each and every update, So no problem.

Thank You.

Tobi823 commented 1 year ago

Thanks :)

The problem was, that I registered a component to late. But for ever reason this mistake did not crash the app in the emulator or my real device (Fairphone 4)