Open HyopeR opened 2 weeks ago
Hi!
Wow, thanks for huge updates, I'll check it
@kesha-antonov I hope you're doing well! Have you had a chance to review it yet?
@kesha-antonov I hope you're doing well! Have you had a chance to review it yet?
Hi Yes, I'll have time on this week for this PR 🙌
Hello again. The issues I mentioned below are only related to the Android platform.
I've been testing on real Android devices for 2 days. I performed the tests for the following. 1- In the released version. 3.1.3 2- In the pull request version.
The results are as follows: 1- The released version contains memory leaks for Android on both simulators and real devices. 2- The pull request version no memory leaks are observed in the simulators. On real devices, it seems like there are still things to be solved.
I'm currently looking at what I can do to fix this problem. Please feel free to share with me if you have any ideas before combining. The error I observed on real devices is as follows.
05-16 19:29:11.467 487 487 E ActivityThread: Service com.android.providers.downloads.DownloadJobService has leaked ServiceConnection android.media.MediaScannerConnection@7c89f84 that was originally bound here
05-16 19:29:11.467 487 487 E ActivityThread: android.app.ServiceConnectionLeaked: Service com.android.providers.downloads.DownloadJobService has leaked ServiceConnection android.media.MediaScannerConnection@7c89f84 that was originally bound here
05-16 19:29:11.467 487 487 E ActivityThread: at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:1538)
05-16 19:29:11.467 487 487 E ActivityThread: at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:1430)
05-16 19:29:11.467 487 487 E ActivityThread: at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1622)
05-16 19:29:11.467 487 487 E ActivityThread: at android.app.ContextImpl.bindService(ContextImpl.java:1574)
05-16 19:29:11.467 487 487 E ActivityThread: at android.content.ContextWrapper.bindService(ContextWrapper.java:697)
05-16 19:29:11.467 487 487 E ActivityThread: at android.media.MediaScannerConnection.connect(MediaScannerConnection.java:122)
05-16 19:29:11.467 487 487 E ActivityThread: at com.android.providers.downloads.DownloadScanner.requestScan(DownloadScanner.java:130)
05-16 19:29:11.467 487 487 E ActivityThread: at com.android.providers.downloads.DownloadScanner.requestScanBlocking(DownloadScanner.java:85)
05-16 19:29:11.467 487 487 E ActivityThread: at com.android.providers.downloads.DownloadThread.run(DownloadThread.java:817)
05-16 19:29:11.493 487 5124 E MediaScannerService: Exception in handleMessage
05-16 19:29:11.493 487 5124 E MediaScannerService: java.lang.NullPointerException: url
05-16 19:29:11.493 487 5124 E MediaScannerService: at com.android.internal.util.Preconditions.checkNotNull(Preconditions.java:128)
05-16 19:29:11.493 487 5124 E MediaScannerService: at android.content.ContentResolver.delete(ContentResolver.java:1635)
05-16 19:29:11.493 487 5124 E MediaScannerService: at com.android.providers.downloads.DownloadScanner.onScanCompleted(DownloadScanner.java:174)
05-16 19:29:11.493 487 5124 E MediaScannerService: at android.media.MediaScannerConnection$1.scanCompleted(MediaScannerConnection.java:55)
05-16 19:29:11.493 487 5124 E MediaScannerService: at com.android.providers.media.MediaScannerService$ServiceHandler.handleMessage(MediaScannerService.java:420)
05-16 19:29:11.493 487 5124 E MediaScannerService: at android.os.Handler.dispatchMessage(Handler.java:105)
05-16 19:29:11.493 487 5124 E MediaScannerService: at android.os.Looper.loop(Looper.java:164)
05-16 19:29:11.493 487 5124 E MediaScannerService: at com.android.providers.media.MediaScannerService.run(MediaScannerService.java:318)
05-16 19:29:11.493 487 5124 E MediaScannerService: at java.lang.Thread.run(Thread.java:764)
Hello. I was using old versions of this package in my projects in my broadcast environment. However, I could not find a solution to the slow download speeds I recently observed on the Android platform and decided to switch to the updated version you published.
On the Android side, DownloadManager started to be used instead of Fetch 2, and this gave really good results in download speeds. However, I observe memory leaks in the android side logs with new codes.
I've been following this project for a long time and have already submitted a few fixes. I worked on the project a bit to fix most of the bugs I could find in the new version.
Thanks for protecting this project.
What was done:
Android:
Ios:
Typescript:
Error log on Android: