Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when use OkHttpDownloader, App will crash with OOM #654

Open
kanglongba opened this issue Feb 25, 2023 · 1 comment
Open

when use OkHttpDownloader, App will crash with OOM #654

kanglongba opened this issue Feb 25, 2023 · 1 comment

Comments

@kanglongba
Copy link

when use HttpUrlConnection Downloader, it works well.
but replace it by OkHttpDownloader, it crash with OOM every time :
E FATAL EXCEPTION: LibGlobalFetchLib--530481322
Process: com.hangzhou.me.floatview, PID: 5750
java.lang.OutOfMemoryError: OutOfMemoryError thrown while trying to throw an exception; no stack trace available

below is the entire log.
`
2023-02-25 18:18:38.650 ViewRootIm...rActivity] com.hangzhou.me.floatview I ViewPostIme pointer 0
2023-02-25 18:18:38.744 ViewRootIm...rActivity] com.hangzhou.me.floatview I ViewPostIme pointer 1
2023-02-25 18:18:38.761 edison.download com.hangzhou.me.floatview D onCompleted /storage/emulated/0/Download/iBiliPlayer-bili.apk
2023-02-25 18:18:38.761 edison.download com.hangzhou.me.floatview D return request
2023-02-25 18:18:38.917 ou.me.floatvie com.hangzhou.me.floatview I Compiler allocated 4546KB to compile void android.view.ViewRootImpl.performTraversals()
2023-02-25 18:18:42.877 ViewRootIm...rActivity] com.hangzhou.me.floatview I ViewPostIme pointer 0
2023-02-25 18:18:42.957 ViewRootIm...rActivity] com.hangzhou.me.floatview I ViewPostIme pointer 1
2023-02-25 18:18:42.992 edison.download com.hangzhou.me.floatview D onAdded /storage/emulated/0/Download/10040714_com.tencent.toaa_a2536548_1.100.1_nxqVpx.apk
2023-02-25 18:18:42.992 edison.download com.hangzhou.me.floatview D onQueued /storage/emulated/0/Download/10040714_com.tencent.toaa_a2536548_1.100.1_nxqVpx.apk
2023-02-25 18:18:42.992 edison.download com.hangzhou.me.floatview D return request
2023-02-25 18:18:43.501 okhttp.OkHttpClient com.hangzhou.me.floatview I --> GET https://cec482c83f0fcc2df0645ac7095de723.dlied1.cdntips.net/godlied4.myapp.com/myapp/1108179104/cos.release-77752/10040714_com.tencent.toaa_a2536548_1.100.1_nxqVpx.apk
2023-02-25 18:18:43.501 okhttp.OkHttpClient com.hangzhou.me.floatview I Range: bytes=0-
2023-02-25 18:18:43.501 okhttp.OkHttpClient com.hangzhou.me.floatview I Referer: https://cec482c83f0fcc2df0645ac7095de723.dlied1.cdntips.net
2023-02-25 18:18:43.501 okhttp.OkHttpClient com.hangzhou.me.floatview I --> END GET
2023-02-25 18:18:43.937 okhttp.OkHttpClient com.hangzhou.me.floatview I <-- 206 Partial Content https://cec482c83f0fcc2df0645ac7095de723.dlied1.cdntips.net/godlied4.myapp.com/myapp/1108179104/cos.release-77752/10040714_com.tencent.toaa_a2536548_1.100.1_nxqVpx.apk (435ms)
2023-02-25 18:18:43.937 okhttp.OkHttpClient com.hangzhou.me.floatview I Last-Modified: Wed, 22 Feb 2023 07:18:24 GMT
2023-02-25 18:18:43.937 okhttp.OkHttpClient com.hangzhou.me.floatview I Etag: "c344403a8d25a40e5a780b420e5eb9c9-12"
2023-02-25 18:18:43.938 okhttp.OkHttpClient com.hangzhou.me.floatview I Content-Type: application/vnd.android.package-archive
2023-02-25 18:18:43.938 okhttp.OkHttpClient com.hangzhou.me.floatview I Content-Range: bytes 0-1237436666/1237436667
2023-02-25 18:18:43.938 okhttp.OkHttpClient com.hangzhou.me.floatview I Content-Length: 1237436667
2023-02-25 18:18:43.938 okhttp.OkHttpClient com.hangzhou.me.floatview I X-NWS-LOG-UUID: 8942802802930699576
2023-02-25 18:18:43.938 okhttp.OkHttpClient com.hangzhou.me.floatview I Connection: keep-alive
2023-02-25 18:18:43.938 okhttp.OkHttpClient com.hangzhou.me.floatview I Server: lego_v4
2023-02-25 18:18:43.938 okhttp.OkHttpClient com.hangzhou.me.floatview I Date: Sat, 25 Feb 2023 10:18:43 GMT
2023-02-25 18:18:43.938 okhttp.OkHttpClient com.hangzhou.me.floatview I X-Cache-Lookup: Cache Hit
2023-02-25 18:18:43.938 okhttp.OkHttpClient com.hangzhou.me.floatview I X-CDN-ISP: CT
2023-02-25 18:18:43.939 okhttp.OkHttpClient com.hangzhou.me.floatview I X-CDN-IP: 183.131.133.105
2023-02-25 18:18:43.939 okhttp.OkHttpClient com.hangzhou.me.floatview I Content-disposition: attachment; filename=10040714_com.tencent.toaa_a2536548_1.100.1_nxqVpx.apk
2023-02-25 18:18:44.378 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:18:44.378 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:18:44.401 ou.me.floatvie com.hangzhou.me.floatview I Alloc young concurrent copying GC freed 22362(20MB) AllocSpace objects, 0(0B) LOS objects, 8% free, 228MB/249MB, paused 145us,17us total 22.805ms
2023-02-25 18:19:25.142 ou.me.floatvie com.hangzhou.me.floatview I Clamp target GC heap from 268MB to 256MB
2023-02-25 18:19:26.031 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:26.032 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:26.049 ou.me.floatvie com.hangzhou.me.floatview I Alloc young concurrent copying GC freed 1590(222KB) AllocSpace objects, 0(0B) LOS objects, 2% free, 250MB/256MB, paused 118us,23us total 17.276ms
2023-02-25 18:19:26.129 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:26.129 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:26.160 ou.me.floatvie com.hangzhou.me.floatview I Clamp target GC heap from 275MB to 256MB
2023-02-25 18:19:26.160 ou.me.floatvie com.hangzhou.me.floatview I Alloc concurrent copying GC freed 117(35KB) AllocSpace objects, 0(0B) LOS objects, 1% free, 251MB/256MB, paused 49us,17us total 31.321ms
2023-02-25 18:19:26.161 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:26.161 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:26.161 ou.me.floatvie com.hangzhou.me.floatview I Waiting for a blocking GC Alloc
2023-02-25 18:19:26.167 ou.me.floatvie com.hangzhou.me.floatview I Alloc young concurrent copying GC freed 12(15KB) AllocSpace objects, 0(0B) LOS objects, 1% free, 251MB/256MB, paused 27us,11us total 6.476ms
2023-02-25 18:19:26.167 ou.me.floatvie com.hangzhou.me.floatview I Forcing collection of SoftReferences for 24B allocation
2023-02-25 18:19:26.167 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:26.167 ou.me.floatvie com.hangzhou.me.floatview I Waiting for a blocking GC Alloc
2023-02-25 18:19:26.253 ou.me.floatvie com.hangzhou.me.floatview I Clamp target GC heap from 275MB to 256MB
2023-02-25 18:19:26.253 ou.me.floatvie com.hangzhou.me.floatview I Alloc concurrent copying GC freed 5297(210KB) AllocSpace objects, 0(0B) LOS objects, 1% free, 251MB/256MB, paused 24us,16us total 85.576ms
2023-02-25 18:19:26.253 ou.me.floatvie com.hangzhou.me.floatview I WaitForGcToComplete blocked Alloc on Alloc for 92.165ms
2023-02-25 18:19:26.253 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:26.253 ou.me.floatvie com.hangzhou.me.floatview I Forcing collection of SoftReferences for 24B allocation
2023-02-25 18:19:26.253 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:26.369 ou.me.floatvie com.hangzhou.me.floatview I Clamp target GC heap from 275MB to 256MB
2023-02-25 18:19:26.369 ou.me.floatvie com.hangzhou.me.floatview I Alloc concurrent copying GC freed 15(16KB) AllocSpace objects, 0(0B) LOS objects, 1% free, 251MB/256MB, paused 90us,23us total 115.990ms
2023-02-25 18:19:26.370 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:26.370 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:26.370 ou.me.floatvie com.hangzhou.me.floatview I Waiting for a blocking GC Alloc
2023-02-25 18:19:26.376 ou.me.floatvie com.hangzhou.me.floatview I Alloc young concurrent copying GC freed 31(6672B) AllocSpace objects, 0(0B) LOS objects, 1% free, 251MB/256MB, paused 40us,13us total 5.917ms
2023-02-25 18:19:26.376 ou.me.floatvie com.hangzhou.me.floatview I Forcing collection of SoftReferences for 24B allocation
2023-02-25 18:19:26.376 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:26.376 ou.me.floatvie com.hangzhou.me.floatview I Waiting for a blocking GC Alloc
2023-02-25 18:19:26.403 ou.me.floatvie com.hangzhou.me.floatview I Waiting for a blocking GC Alloc
2023-02-25 18:19:26.490 ou.me.floatvie com.hangzhou.me.floatview I Clamp target GC heap from 275MB to 256MB
2023-02-25 18:19:26.490 ou.me.floatvie com.hangzhou.me.floatview I Alloc concurrent copying GC freed 0(0B) AllocSpace objects, 0(0B) LOS objects, 1% free, 251MB/256MB, paused 20us,22us total 114.114ms
2023-02-25 18:19:26.491 ou.me.floatvie com.hangzhou.me.floatview W Throwing OutOfMemoryError "Failed to allocate a 24 byte allocation with 4746848 free bytes and 4635KB until OOM, target footprint 268435456, growth limit 268435456; failed due to fragmentation (largest possible contiguous allocation 0 bytes). Number of 256KB sized free regions are: 0" (VmSize 16676232 kB)
2023-02-25 18:19:26.491 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:26.491 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:26.491 ou.me.floatvie com.hangzhou.me.floatview I Waiting for a blocking GC Alloc
2023-02-25 18:19:26.491 ou.me.floatvie com.hangzhou.me.floatview I Waiting for a blocking GC Alloc
2023-02-25 18:19:26.495 ou.me.floatvie com.hangzhou.me.floatview I Forcing collection of SoftReferences for 32B allocation
2023-02-25 18:19:26.495 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:26.495 ou.me.floatvie com.hangzhou.me.floatview I Waiting for a blocking GC Alloc
2023-02-25 18:19:26.495 ou.me.floatvie com.hangzhou.me.floatview I Waiting for a blocking GC Alloc
2023-02-25 18:19:26.608 ou.me.floatvie com.hangzhou.me.floatview I Clamp target GC heap from 275MB to 256MB
2023-02-25 18:19:26.608 ou.me.floatvie com.hangzhou.me.floatview I Alloc concurrent copying GC freed 0(0B) AllocSpace objects, 0(0B) LOS objects, 1% free, 251MB/256MB, paused 22us,22us total 112.772ms
2023-02-25 18:19:26.608 ou.me.floatvie com.hangzhou.me.floatview W Throwing OutOfMemoryError "Failed to allocate a 32 byte allocation with 4746848 free bytes and 4635KB until OOM, target footprint 268435456, growth limit 268435456; failed due to fragmentation (largest possible contiguous allocation 0 bytes). Number of 256KB sized free regions are: 0" (VmSize 16676232 kB, recursive case)
2023-02-25 18:19:26.608 ou.me.floatvie com.hangzhou.me.floatview I WaitForGcToComplete blocked Alloc on Alloc for 237.937ms
2023-02-25 18:19:26.608 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:26.608 ou.me.floatvie com.hangzhou.me.floatview W "FinalizerDaemon" daemon prio=5 tid=11 Runnable
| group="system" sCount=0 ucsCount=0 flags=0 obj=0x12c460d8 self=0x708ce64a10
| sysTid=5775 nice=4 cgrp=top-app sched=0/0 handle=0x6eff763cb0
| state=R schedstat=( 343100473 703646 74 ) utm=19 stm=14 core=7 HZ=100
| stack=0x6eff660000-0x6eff662000 stackSize=1039KB
| held mutexes= "mutator lock"(shared held)
at com.android.internal.os.BinderInternal$GcWatcher.finalize(BinderInternal.java:64)
at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:291)
at java.lang.Daemons$FinalizerDaemon.runInternal(Daemons.java:278)
at java.lang.Daemons$Daemon.run(Daemons.java:139)
at java.lang.Thread.run(Thread.java:920)
2023-02-25 18:19:26.608 ou.me.floatvie com.hangzhou.me.floatview I Forcing collection of SoftReferences for 8208B allocation
2023-02-25 18:19:26.608 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:26.608 ou.me.floatvie com.hangzhou.me.floatview W "FinalizerDaemon" daemon prio=5 tid=11 Runnable
| group="system" sCount=0 ucsCount=0 flags=0 obj=0x12c460d8 self=0x708ce64a10
| sysTid=5775 nice=4 cgrp=top-app sched=0/0 handle=0x6eff763cb0
| state=R schedstat=( 343100473 703646 74 ) utm=19 stm=14 core=7 HZ=100
| stack=0x6eff660000-0x6eff662000 stackSize=1039KB
| held mutexes= "mutator lock"(shared held)
at com.android.internal.os.BinderInternal$GcWatcher.finalize(BinderInternal.java:64)
at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:291)
at java.lang.Daemons$FinalizerDaemon.runInternal(Daemons.java:278)
at java.lang.Daemons$Daemon.run(Daemons.java:139)
at java.lang.Thread.run(Thread.java:920)
2023-02-25 18:19:26.608 System com.hangzhou.me.floatview E Uncaught exception thrown by finalizer
2023-02-25 18:19:26.608 ou.me.floatvie com.hangzhou.me.floatview I Waiting for a blocking GC Alloc
2023-02-25 18:19:26.609 ou.me.floatvie com.hangzhou.me.floatview I Waiting for a blocking GC Alloc
2023-02-25 18:19:26.727 ou.me.floatvie com.hangzhou.me.floatview I Clamp target GC heap from 275MB to 256MB
2023-02-25 18:19:26.727 ou.me.floatvie com.hangzhou.me.floatview I Alloc concurrent copying GC freed 0(0B) AllocSpace objects, 0(0B) LOS objects, 1% free, 251MB/256MB, paused 35us,13us total 118.541ms
2023-02-25 18:19:26.727 ou.me.floatvie com.hangzhou.me.floatview W Throwing OutOfMemoryError "Failed to allocate a 8208 byte allocation with 4746848 free bytes and 4635KB until OOM, target footprint 268435456, growth limit 268435456; failed due to fragmentation (largest possible contiguous allocation 0 bytes). Number of 256KB sized free regions are: 0" (VmSize 16676232 kB)
2023-02-25 18:19:26.727 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:26.727 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:26.727 ou.me.floatvie com.hangzhou.me.floatview I Waiting for a blocking GC Alloc
2023-02-25 18:19:26.727 ou.me.floatvie com.hangzhou.me.floatview I Waiting for a blocking GC Alloc
2023-02-25 18:19:26.732 ou.me.floatvie com.hangzhou.me.floatview I Forcing collection of SoftReferences for 32B allocation
2023-02-25 18:19:26.732 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:26.732 ou.me.floatvie com.hangzhou.me.floatview I Waiting for a blocking GC Alloc
2023-02-25 18:19:26.732 ou.me.floatvie com.hangzhou.me.floatview I Waiting for a blocking GC Alloc
2023-02-25 18:19:26.838 ou.me.floatvie com.hangzhou.me.floatview I Clamp target GC heap from 275MB to 256MB
2023-02-25 18:19:26.838 ou.me.floatvie com.hangzhou.me.floatview I Alloc concurrent copying GC freed 0(0B) AllocSpace objects, 0(0B) LOS objects, 1% free, 251MB/256MB, paused 20us,15us total 105.730ms
2023-02-25 18:19:26.838 ou.me.floatvie com.hangzhou.me.floatview I WaitForGcToComplete blocked Alloc on Alloc for 229.133ms
2023-02-25 18:19:26.838 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:26.838 ou.me.floatvie com.hangzhou.me.floatview I Forcing collection of SoftReferences for 56B allocation
2023-02-25 18:19:26.838 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:26.838 ou.me.floatvie com.hangzhou.me.floatview I Waiting for a blocking GC Alloc
2023-02-25 18:19:26.838 ou.me.floatvie com.hangzhou.me.floatview W Throwing OutOfMemoryError "Failed to allocate a 32 byte allocation with 4746848 free bytes and 4635KB until OOM, target footprint 268435456, growth limit 268435456; failed due to fragmentation (largest possible contiguous allocation 0 bytes). Number of 256KB sized free regions are: 0" (VmSize 16676232 kB, recursive case)
2023-02-25 18:19:26.838 ou.me.floatvie com.hangzhou.me.floatview W "LibGlobalFetchLib--530481322" prio=5 tid=2 Runnable
| group="main" sCount=0 ucsCount=0 flags=0 obj=0x12c44640 self=0x708ce83eb0
| sysTid=5922 nice=0 cgrp=top-app sched=0/0 handle=0x6f03ccdcb0
| state=R schedstat=( 9283548371 905393117 16778 ) utm=606 stm=322 core=7 HZ=100
| stack=0x6f03bca000-0x6f03bcc000 stackSize=1039KB
| held mutexes= "mutator lock"(shared held)
at okio.Segment.(Segment.kt:62)
at okio.SegmentPool.take(SegmentPool.kt:87)
at okio.Buffer.writableSegment$okio(Buffer.kt:1796)
at okio.InputStreamSource.read(JvmOkio.kt:88)
at okio.AsyncTimeout$source$1.read(AsyncTimeout.kt:129)
at okio.RealBufferedSource.read(RealBufferedSource.kt:189)
at okhttp3.internal.http1.Http1ExchangeCodec$AbstractSource.read(Http1ExchangeCodec.kt:331)
at okhttp3.internal.http1.Http1ExchangeCodec$FixedLengthSource.read(Http1ExchangeCodec.kt:368)
at okhttp3.internal.connection.Exchange$ResponseBodySource.read(Exchange.kt:276)
at okio.RealBufferedSource.request(RealBufferedSource.kt:206)
at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.kt:247)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
at com.tonyodev.fetch2okhttp.OkHttpDownloader.execute(OkHttpDownloader.kt:76)
at com.tonyodev.fetch2.downloader.SequentialFileDownloaderImpl.run(SequentialFileDownloaderImpl.kt:78)
at com.tonyodev.fetch2.downloader.DownloadManagerImpl$start$$inlined$synchronized$lambda$1.run(DownloadManagerImpl.kt:103)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:920)
2023-02-25 18:19:26.838 ou.me.floatvie com.hangzhou.me.floatview W "LibGlobalFetchLib--530481322" prio=5 tid=2 Runnable
| group="main" sCount=0 ucsCount=0 flags=0 obj=0x12c44640 self=0x708ce83eb0
| sysTid=5922 nice=0 cgrp=top-app sched=0/0 handle=0x6f03ccdcb0
| state=R schedstat=( 9283548371 905393117 16778 ) utm=606 stm=322 core=7 HZ=100
| stack=0x6f03bca000-0x6f03bcc000 stackSize=1039KB
| held mutexes= "mutator lock"(shared held)
at okio.Segment.(Segment.kt:62)
at okio.SegmentPool.take(SegmentPool.kt:87)
at okio.Buffer.writableSegment$okio(Buffer.kt:1796)
at okio.InputStreamSource.read(JvmOkio.kt:88)
at okio.AsyncTimeout$source$1.read(AsyncTimeout.kt:129)
at okio.RealBufferedSource.read(RealBufferedSource.kt:189)
at okhttp3.internal.http1.Http1ExchangeCodec$AbstractSource.read(Http1ExchangeCodec.kt:331)
at okhttp3.internal.http1.Http1ExchangeCodec$FixedLengthSource.read(Http1ExchangeCodec.kt:368)
at okhttp3.internal.connection.Exchange$ResponseBodySource.read(Exchange.kt:276)
at okio.RealBufferedSource.request(RealBufferedSource.kt:206)
at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.kt:247)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
at com.tonyodev.fetch2okhttp.OkHttpDownloader.execute(OkHttpDownloader.kt:76)
at com.tonyodev.fetch2.downloader.SequentialFileDownloaderImpl.run(SequentialFileDownloaderImpl.kt:78)
at com.tonyodev.fetch2.downloader.DownloadManagerImpl$start$$inlined$synchronized$lambda$1.run(DownloadManagerImpl.kt:103)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:920)
2023-02-25 18:19:26.838 ou.me.floatvie com.hangzhou.me.floatview I Waiting for a blocking GC Alloc
2023-02-25 18:19:26.880 ou.me.floatvie com.hangzhou.me.floatview I Alloc concurrent copying GC freed 62754(246MB) AllocSpace objects, 0(0B) LOS objects, 53% free, 5236KB/11MB, paused 29us,16us total 42.661ms
2023-02-25 18:19:26.881 ou.me.floatvie com.hangzhou.me.floatview I WaitForGcToComplete blocked Alloc on Alloc for 477.702ms
2023-02-25 18:19:26.881 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:26.881 System com.hangzhou.me.floatview E java.lang.OutOfMemoryError: OutOfMemoryError thrown while trying to throw an exception; no stack trace available
2023-02-25 18:19:26.881 ou.me.floatvie com.hangzhou.me.floatview I WaitForGcToComplete blocked Alloc on Alloc for 42.942ms
2023-02-25 18:19:26.881 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:26.882 AndroidRuntime com.hangzhou.me.floatview E FATAL EXCEPTION: LibGlobalFetchLib--530481322
Process: com.hangzhou.me.floatview, PID: 5750
java.lang.OutOfMemoryError: OutOfMemoryError thrown while trying to throw an exception; no stack trace available
2023-02-25 18:19:26.884 okhttp.OkHttpClient com.hangzhou.me.floatview I --> GET https://cec482c83f0fcc2df0645ac7095de723.dlied1.cdntips.net/godlied4.myapp.com/myapp/1108179104/cos.release-77752/10040714_com.tencent.toaa_a2536548_1.100.1_nxqVpx.apk
2023-02-25 18:19:26.884 okhttp.OkHttpClient com.hangzhou.me.floatview I Range: bytes=0-
2023-02-25 18:19:26.884 okhttp.OkHttpClient com.hangzhou.me.floatview I Referer: https://cec482c83f0fcc2df0645ac7095de723.dlied1.cdntips.net
2023-02-25 18:19:26.884 okhttp.OkHttpClient com.hangzhou.me.floatview I --> END GET
2023-02-25 18:19:26.885 edison com.hangzhou.me.floatview D crashPath=/data/user/0/com.hangzhou.me.floatview/files/crash
2023-02-25 18:19:26.886 Compatibil...geReporter com.hangzhou.me.floatview D Compat change id reported: 147798919; UID 10450; state: ENABLED
2023-02-25 18:19:27.067 okhttp.OkHttpClient com.hangzhou.me.floatview I <-- 206 Partial Content https://cec482c83f0fcc2df0645ac7095de723.dlied1.cdntips.net/godlied4.myapp.com/myapp/1108179104/cos.release-77752/10040714_com.tencent.toaa_a2536548_1.100.1_nxqVpx.apk (182ms)
2023-02-25 18:19:27.067 okhttp.OkHttpClient com.hangzhou.me.floatview I Last-Modified: Wed, 22 Feb 2023 07:18:24 GMT
2023-02-25 18:19:27.067 okhttp.OkHttpClient com.hangzhou.me.floatview I Etag: "c344403a8d25a40e5a780b420e5eb9c9-12"
2023-02-25 18:19:27.067 okhttp.OkHttpClient com.hangzhou.me.floatview I Content-Type: application/vnd.android.package-archive
2023-02-25 18:19:27.067 okhttp.OkHttpClient com.hangzhou.me.floatview I Content-Range: bytes 0-1237436666/1237436667
2023-02-25 18:19:27.068 okhttp.OkHttpClient com.hangzhou.me.floatview I Content-Length: 1237436667
2023-02-25 18:19:27.068 okhttp.OkHttpClient com.hangzhou.me.floatview I X-NWS-LOG-UUID: 11102173568999071869
2023-02-25 18:19:27.068 okhttp.OkHttpClient com.hangzhou.me.floatview I Connection: keep-alive
2023-02-25 18:19:27.068 okhttp.OkHttpClient com.hangzhou.me.floatview I Server: lego_v4
2023-02-25 18:19:27.068 okhttp.OkHttpClient com.hangzhou.me.floatview I Date: Sat, 25 Feb 2023 10:19:26 GMT
2023-02-25 18:19:27.068 okhttp.OkHttpClient com.hangzhou.me.floatview I X-Cache-Lookup: Cache Hit
2023-02-25 18:19:27.068 okhttp.OkHttpClient com.hangzhou.me.floatview I X-CDN-ISP: CT
2023-02-25 18:19:27.068 okhttp.OkHttpClient com.hangzhou.me.floatview I X-CDN-IP: 183.131.133.105
2023-02-25 18:19:27.068 okhttp.OkHttpClient com.hangzhou.me.floatview I Content-disposition: attachment; filename=10040714_com.tencent.toaa_a2536548_1.100.1_nxqVpx.apk
2023-02-25 18:19:54.981 ou.me.floatvie com.hangzhou.me.floatview I Clamp target GC heap from 261MB to 256MB
2023-02-25 18:19:56.309 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:56.309 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:56.330 ou.me.floatvie com.hangzhou.me.floatview I Alloc young concurrent copying GC freed 2798(408KB) AllocSpace objects, 0(0B) LOS objects, 2% free, 250MB/256MB, paused 93us,24us total 20.788ms
2023-02-25 18:19:56.377 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:56.377 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:56.410 ou.me.floatvie com.hangzhou.me.floatview I Clamp target GC heap from 275MB to 256MB
2023-02-25 18:19:56.410 ou.me.floatvie com.hangzhou.me.floatview I Alloc concurrent copying GC freed 106(19KB) AllocSpace objects, 0(0B) LOS objects, 1% free, 251MB/256MB, paused 46us,15us total 32.639ms
2023-02-25 18:19:56.410 ou.me.floatvie com.hangzhou.me.floatview I Forcing collection of SoftReferences for 8208B allocation
2023-02-25 18:19:56.410 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:56.529 ou.me.floatvie com.hangzhou.me.floatview I Clamp target GC heap from 275MB to 256MB
2023-02-25 18:19:56.529 ou.me.floatvie com.hangzhou.me.floatview I Alloc concurrent copying GC freed 1601(59KB) AllocSpace objects, 0(0B) LOS objects, 1% free, 251MB/256MB, paused 23us,13us total 118.857ms
2023-02-25 18:19:56.530 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:56.530 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:56.535 ou.me.floatvie com.hangzhou.me.floatview I Forcing collection of SoftReferences for 8208B allocation
2023-02-25 18:19:56.535 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:56.620 ou.me.floatvie com.hangzhou.me.floatview I Waiting for a blocking GC Alloc
2023-02-25 18:19:56.644 ou.me.floatvie com.hangzhou.me.floatview I Clamp target GC heap from 275MB to 256MB
2023-02-25 18:19:56.644 ou.me.floatvie com.hangzhou.me.floatview I Alloc concurrent copying GC freed 0(0B) AllocSpace objects, 0(0B) LOS objects, 1% free, 251MB/256MB, paused 22us,14us total 109.040ms
2023-02-25 18:19:56.644 ou.me.floatvie com.hangzhou.me.floatview W Throwing OutOfMemoryError "Failed to allocate a 8208 byte allocation with 4635712 free bytes and 4527KB until OOM, target footprint 268435456, growth limit 268435456; failed due to fragmentation (largest possible contiguous allocation 0 bytes). Number of 256KB sized free regions are: 0" (VmSize 16676232 kB)
2023-02-25 18:19:56.644 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:56.644 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:56.644 ou.me.floatvie com.hangzhou.me.floatview I Waiting for a blocking GC Alloc
2023-02-25 18:19:56.649 ou.me.floatvie com.hangzhou.me.floatview I Forcing collection of SoftReferences for 32B allocation
2023-02-25 18:19:56.649 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:56.649 ou.me.floatvie com.hangzhou.me.floatview I Waiting for a blocking GC Alloc
2023-02-25 18:19:56.759 ou.me.floatvie com.hangzhou.me.floatview I Clamp target GC heap from 275MB to 256MB
2023-02-25 18:19:56.759 ou.me.floatvie com.hangzhou.me.floatview I Alloc concurrent copying GC freed 0(0B) AllocSpace objects, 0(0B) LOS objects, 1% free, 251MB/256MB, paused 19us,16us total 110.556ms
2023-02-25 18:19:56.759 ou.me.floatvie com.hangzhou.me.floatview W Throwing OutOfMemoryError "Failed to allocate a 32 byte allocation with 4635712 free bytes and 4527KB until OOM, target footprint 268435456, growth limit 268435456; failed due to fragmentation (largest possible contiguous allocation 0 bytes). Number of 256KB sized free regions are: 0" (VmSize 16676232 kB, recursive case)
2023-02-25 18:19:56.760 ou.me.floatvie com.hangzhou.me.floatview W "LibGlobalFetchLib--530481322" prio=5 tid=3 Runnable
| group="main" sCount=0 ucsCount=0 flags=0 obj=0x12c44610 self=0x708ce392c0
| sysTid=5923 nice=0 cgrp=top-app sched=0/0 handle=0x6f02bc3cb0
| state=R schedstat=( 14053021276 1318601434 14175 ) utm=840 stm=564 core=7 HZ=100
| stack=0x6f02ac0000-0x6f02ac2000 stackSize=1039KB
| held mutexes= "mutator lock"(shared held)
at okio.Segment.(Segment.kt:62)
at okio.SegmentPool.take(SegmentPool.kt:87)
at okio.Buffer.writableSegment$okio(Buffer.kt:1796)
at okio.InputStreamSource.read(JvmOkio.kt:88)
at okio.AsyncTimeout$source$1.read(AsyncTimeout.kt:129)
at okio.RealBufferedSource.read(RealBufferedSource.kt:189)
at okhttp3.internal.http1.Http1ExchangeCodec$AbstractSource.read(Http1ExchangeCodec.kt:331)
at okhttp3.internal.http1.Http1ExchangeCodec$FixedLengthSource.read(Http1ExchangeCodec.kt:368)
at okhttp3.internal.connection.Exchange$ResponseBodySource.read(Exchange.kt:276)
at okio.RealBufferedSource.request(RealBufferedSource.kt:206)
at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.kt:247)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
at com.tonyodev.fetch2okhttp.OkHttpDownloader.execute(OkHttpDownloader.kt:76)
at com.tonyodev.fetch2.downloader.SequentialFileDownloaderImpl.run(SequentialFileDownloaderImpl.kt:78)
at com.tonyodev.fetch2.downloader.DownloadManagerImpl$start$$inlined$synchronized$lambda$1.run(DownloadManagerImpl.kt:103)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:920)
2023-02-25 18:19:56.760 ou.me.floatvie com.hangzhou.me.floatview I WaitForGcToComplete blocked Alloc on Alloc for 139.935ms
2023-02-25 18:19:56.760 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:56.760 ou.me.floatvie com.hangzhou.me.floatview I Forcing collection of SoftReferences for 16B allocation
2023-02-25 18:19:56.760 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:56.760 ou.me.floatvie com.hangzhou.me.floatview W "LibGlobalFetchLib--530481322" prio=5 tid=3 Runnable
| group="main" sCount=0 ucsCount=0 flags=0 obj=0x12c44610 self=0x708ce392c0
| sysTid=5923 nice=0 cgrp=top-app sched=0/0 handle=0x6f02bc3cb0
| state=R schedstat=( 14053021276 1318601434 14175 ) utm=840 stm=564 core=7 HZ=100
| stack=0x6f02ac0000-0x6f02ac2000 stackSize=1039KB
| held mutexes= "mutator lock"(shared held)
at okio.Segment.(Segment.kt:62)
at okio.SegmentPool.take(SegmentPool.kt:87)
at okio.Buffer.writableSegment$okio(Buffer.kt:1796)
at okio.InputStreamSource.read(JvmOkio.kt:88)
at okio.AsyncTimeout$source$1.read(AsyncTimeout.kt:129)
at okio.RealBufferedSource.read(RealBufferedSource.kt:189)
at okhttp3.internal.http1.Http1ExchangeCodec$AbstractSource.read(Http1ExchangeCodec.kt:331)
at okhttp3.internal.http1.Http1ExchangeCodec$FixedLengthSource.read(Http1ExchangeCodec.kt:368)
at okhttp3.internal.connection.Exchange$ResponseBodySource.read(Exchange.kt:276)
at okio.RealBufferedSource.request(RealBufferedSource.kt:206)
at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.kt:247)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
at com.tonyodev.fetch2okhttp.OkHttpDownloader.execute(OkHttpDownloader.kt:76)
at com.tonyodev.fetch2.downloader.SequentialFileDownloaderImpl.run(SequentialFileDownloaderImpl.kt:78)
at com.tonyodev.fetch2.downloader.DownloadManagerImpl$start$$inlined$synchronized$lambda$1.run(DownloadManagerImpl.kt:103)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:920)
2023-02-25 18:19:56.760 ou.me.floatvie com.hangzhou.me.floatview I Waiting for a blocking GC Alloc
2023-02-25 18:19:56.803 ou.me.floatvie com.hangzhou.me.floatview I Alloc concurrent copying GC freed 62776(246MB) AllocSpace objects, 0(0B) LOS objects, 53% free, 5256KB/11MB, paused 31us,17us total 42.887ms
2023-02-25 18:19:56.803 ou.me.floatvie com.hangzhou.me.floatview I WaitForGcToComplete blocked Alloc on Alloc for 43.161ms
2023-02-25 18:19:56.803 ou.me.floatvie com.hangzhou.me.floatview I Starting a blocking GC Alloc
2023-02-25 18:19:56.804 AndroidRuntime com.hangzhou.me.floatview E FATAL EXCEPTION: LibGlobalFetchLib--530481322
Process: com.hangzhou.me.floatview, PID: 5750
java.lang.OutOfMemoryError: OutOfMemoryError thrown while trying to throw an exception; no stack trace available
2023-02-25 18:19:56.806 okhttp.OkHttpClient com.hangzhou.me.floatview I --> GET https://cec482c83f0fcc2df0645ac7095de723.dlied1.cdntips.net/godlied4.myapp.com/myapp/1108179104/cos.release-77752/10040714_com.tencent.toaa_a2536548_1.100.1_nxqVpx.apk
2023-02-25 18:19:56.806 okhttp.OkHttpClient com.hangzhou.me.floatview I Range: bytes=0-
2023-02-25 18:19:56.806 okhttp.OkHttpClient com.hangzhou.me.floatview I Referer: https://cec482c83f0fcc2df0645ac7095de723.dlied1.cdntips.net
2023-02-25 18:19:56.806 okhttp.OkHttpClient com.hangzhou.me.floatview I --> END GET
2023-02-25 18:19:56.807 edison com.hangzhou.me.floatview D crashPath=/data/user/0/com.hangzhou.me.floatview/files/crash
2023-02-25 18:19:56.955 okhttp.OkHttpClient com.hangzhou.me.floatview W A connection to https://cec482c83f0fcc2df0645ac7095de723.dlied1.cdntips.net/ was leaked. Did you forget to close a response body? To see where this was allocated, set the OkHttpClient logger level to FINE: Logger.getLogger(OkHttpClient.class.getName()).setLevel(Level.FINE);
2023-02-25 18:19:57.001 okhttp.OkHttpClient com.hangzhou.me.floatview I <-- 206 Partial Content https://cec482c83f0fcc2df0645ac7095de723.dlied1.cdntips.net/godlied4.myapp.com/myapp/1108179104/cos.release-77752/10040714_com.tencent.toaa_a2536548_1.100.1_nxqVpx.apk (194ms)
2023-02-25 18:19:57.001 okhttp.OkHttpClient com.hangzhou.me.floatview I Last-Modified: Wed, 22 Feb 2023 07:18:24 GMT
2023-02-25 18:19:57.001 okhttp.OkHttpClient com.hangzhou.me.floatview I Etag: "c344403a8d25a40e5a780b420e5eb9c9-12"
2023-02-25 18:19:57.001 okhttp.OkHttpClient com.hangzhou.me.floatview I Content-Type: application/vnd.android.package-archive
2023-02-25 18:19:57.002 okhttp.OkHttpClient com.hangzhou.me.floatview I Content-Range: bytes 0-1237436666/1237436667
2023-02-25 18:19:57.002 okhttp.OkHttpClient com.hangzhou.me.floatview I Content-Length: 1237436667
2023-02-25 18:19:57.002 okhttp.OkHttpClient com.hangzhou.me.floatview I X-NWS-LOG-UUID: 13583165567807295179
2023-02-25 18:19:57.002 okhttp.OkHttpClient com.hangzhou.me.floatview I Connection: keep-alive
2023-02-25 18:19:57.002 okhttp.OkHttpClient com.hangzhou.me.floatview I Server: lego_v4
2023-02-25 18:19:57.002 okhttp.OkHttpClient com.hangzhou.me.floatview I Date: Sat, 25 Feb 2023 10:19:56 GMT
2023-02-25 18:19:57.002 okhttp.OkHttpClient com.hangzhou.me.floatview I X-Cache-Lookup: Cache Hit
2023-02-25 18:19:57.002 okhttp.OkHttpClient com.hangzhou.me.floatview I X-CDN-ISP: CT
2023-02-25 18:19:57.002 okhttp.OkHttpClient com.hangzhou.me.floatview I X-CDN-IP: 183.131.133.105
2023-02-25 18:19:57.002 okhttp.OkHttpClient com.hangzhou.me.floatview I Content-disposition: attachment; filename=10040714_com.tencent.toaa_a2536548_1.100.1_nxqVpx.apk
2023-02-25 18:20:02.079 edison.download com.hangzhou.me.floatview D onError /storage/emulated/0/Download/10040714_com.tencent.toaa_a2536548_1.100.1_nxqVpx.apk

`

@kanglongba
Copy link
Author

I tried OkHttp 3.14.9 and 4.9.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant