关于homeFragment和sofaFragment视频tab页面加载卡死问题
来源:7-3 谜之沉浸式布局【经验技巧】

云遮秋燕
2022-01-27
如题,图片tab没问题了,视频tab一刷出来就会卡死,最多往下滑一次就卡死,控制台这边好像显示什么空闲空间不足。猜测是dataSource不停的在制造?请老师解法。
补一下运行日志:
E/homeviewmodel: loadAfter:
D/OkHttp: --> GET http://123.56.232.18:8080/serverdemo/feeds/queryHotFeedsList?pageCount=10&feedId=1578922823&feedType=video&userId=0 http/1.1
D/OkHttp: --> END GET
D/OverScrollerOptimization: fling time is flingTime = 2.898689037346533 velocity = 8263
fling time is flingTime = 2.898689037346533 velocity = 8263
D/OkHttp: <-- 200 http://123.56.232.18:8080/serverdemo/feeds/queryHotFeedsList?pageCount=10&feedId=1578922823&feedType=video&userId=0 (239ms)
Content-Type: application/json;charset=UTF-8
Transfer-Encoding: chunked
Date: Thu, 27 Jan 2022 03:06:40 GMT
D/OkHttp: {"status":200,"message":"成功","data":{"data":[{"id":1578922822,"itemId":1637214137710,"itemType":2,"createTime":1637214137710,"duration":0.0,"feeds_text":"来来来","authorId":1621818757,"activityIcon":null,"activityText":null,"width":720,"height":1280,"url":"https://pipijoke.oss-cn-hangzhou.aliyuncs.com/1637214076095.mp4","cover":"https://pipijoke.oss-cn-hangzhou.aliyuncs.com/1637214122426.jpeg","author":{"id":3118,"userId":1621818757,"name":"H","avatar":"http://qzapp.qlogo.cn/qzapp/101794421/805023CCAE2B78F51DEF0452796B5186/100","description":null,"likeCount":2,"topCommentCount":0,"followCount":1,"followerCount":2,"qqOpenId":"805023CCAE2B78F51DEF0452796B5186","expires_time":1629594757602,"score":0,"historyCount":135,"commentCount":23,"favoriteCount":2,"feedCount":0,"hasFollow":false},"topComment":null,"ugc":{"likeCount":2,"shareCount":0,"commentCount":3,"hasFavorite":false,"hasLiked":false,"hasdiss":false,"hasDissed":false}},{"id":1578922821,"itemId":1637204379599,"itemType":2,"createTime":1637204379599,"duration":0.0,"feeds_text":"未来互联网野蛮烧钱竞争的时代已经结束了,在互联网市场由增量转入存量的时代当中,精细化运营的时代到来了\n\n","authorId":1634365299,"activityIcon":null,"activityText":"放松时刻","width":720,"height":1280,"url":"https://pipijoke.oss-cn-hangzhou.aliyuncs.com/1637204332451.mp4","cover":"https://pipijoke.oss-cn-hangzhou.aliyuncs.com/1637204377255.jpeg","author":{"id":3332,"userId":1634365299,"name":"牛同學","avatar":"http://qzapp.qlogo.cn/qzapp/101794421/FC8514B341974ADFDCEA5FECA92E8C7A/100","description":null,"likeCount":4,"topCommentCount":0,"followCount":1,"followerCount":3,"qqOpenId":"FC8514B341974ADFDCEA5FECA92E8C7A","expires_time":1642141300838,"score":0,"historyCount":63,"commentCount":1,"favoriteCount":2,"feedCount":0,"hasFollow":false},"topComment":null,"ugc":{"likeCount":2,"shareCount":0,"commentCount":1,"hasFavorite":false,"hasLiked":false,"hasdiss":false,"hasDissed":false}},{"id":1578922805,"itemId":1635746507574,"itemType":2,"createTime":1635746507574,"duration":0.0,"feeds_text":"哈哈\uD83D\uDE04","authorId":1630724371,"activityIcon":null,"activityText":"放松时刻","width":720,"height":1280,"url":"https://pipijoke.oss-cn-hangzhou.aliyuncs.com/1635746469444.mp4","cover":"https://pipijoke.oss-cn-hangzhou.aliyuncs.com/1635746502831.jpeg","author":{"id":3271,"userId":1630724371,"name":"Autumn","avatar":"http://qzapp.qlogo.cn/qzapp/101794421/C3342EA89D5C42180DC3AE945A2D43A2/100","description":null,"likeCount":3,"topCommentCount":0,"followCount":5,"followerCount":1,"qqOpenId":"C3342EA89D5C42180DC3AE945A2D43A2","expires_time":1638500371021,"score":0,"historyCount":521,"commentCount":4,"favoriteCount":2,"feedCount":0,"hasFollow":false},"topComment":null,"ugc":{"likeCount":-3,"shareCount":0,"commentCount":1,"hasFavorite":false,"hasLiked":false,"hasdiss":false,"hasDissed":false}},{"id":1578922791,"itemId":1633491613542,"itemType":2,"createTime":1633491613542,"duration":0.0,"feeds_text":"嘻嘻","authorId":1633491584,"activityIcon":null,"activityText":null,"width":720,"height":1280,"url":"https://pipijoke.oss-cn-hangzhou.aliyuncs.com/1633491605304.mp4","cover":"https://pipijoke.oss-cn-hangzhou.aliyuncs.com/1633491611367.jpeg","author":{"id":3304,"userId":1633491584,"name":"S.H.I.E.L.D","avatar":"http://qzapp.qlogo.cn/qzapp/101794421/9BEC60B4F3BCF4BE7FD63A43CFD3370F/100","description":null,"likeCount":3,"topCommentCount":0,"followCount":0,"followerCount":1,"qqOpenId":"9BEC60B4F3BCF4BE7FD63A43CFD3370F","expires_time":1641267584305,"score":0,"historyCount":4,"commentCount":1,"favoriteCount":0,"feedCount":0,"hasFollow":false},"topComment":null,"ugc":{"likeCount":4,"shareCount":2,"commentCount":2,"hasFavorite":false,"hasLiked":false,"hasdiss":false,"hasDissed":false}},{"id":1578922782,"itemId":1632043052998,"itemType":2,"createTime":1632043052998,"duration":0.0,"feeds_text":null,"authorId":1598980194,"activityIcon":null,"activityText":null,"width":720,"height":1280,"url":"https://pipijoke.oss-cn-hangz
yuncs.com/1632043050647.jpeg","author":{"id":2164,"userId":1598980194,"name":"Oovikat","avatar":"http://qzapp.qlogo.cn/qzapp/101794421/AF43601B57F1FA623ED5BA73B4897DFD/100","description":null,"likeCount":4,"topCommentCount":0,"followCount":0,"followerCount":2,"qqOpenId":"AF43601B57F1FA623ED5BA73B4897DFD","expires_time":1606756193368,"score":0,"historyCount":3,"commentCount":0,"favoriteCount":0,"feedCount":0,"hasFollow":false},"topComment":null,"ugc":{"likeCount":4,"shareCount":2,"commentCount":0,"hasFavorite":false,"hasLiked":false,"hasdiss":false,"hasDissed":false}},{"id":1578922759,"itemId":1630412723450,"itemType":2,"createTime":1630412723450,"duration":0.0,"feeds_text":"吃VB不","authorId":1630400659,"activityIcon":null,"activityText":null,"width":720,"height":1280,"url":"https://pipijoke.oss-cn-hangzhou.aliyuncs.com/1630412603829.mp4","cover":"https://pipijoke.oss-cn-hangzhou.aliyuncs.com/1630412722402.jpeg","author":{"id":3264,"userId":1630400659,"name":"海绵、宝","avatar":"http://qzapp.qlogo.cn/qzapp/101794421/6D3ACA5BB0F9FD2AD30F32C6B3500E1F/100","description":null,"likeCount":2,"topCommentCount":0,"followCount":0,"followerCount":3,"qqOpenId":"6D3ACA5BB0F9FD2AD30F32C6B3500E1F","expires_time":1638176659771,"score":0,"historyCount":24,"commentCount":0,"favoriteCount":1,"feedCount":0,"hasFollow":false},"topComment":null,"ugc":{"likeCount":0,"shareCount":1,"commentCount":2,"hasFavorite":false,"hasLiked":false,"hasdiss":false,"hasDissed":false}},{"id":1578922758,"itemId":1630306759821,"itemType":2,"createTime":1630306759821,"duration":0.0,"feeds_text":"乐乐乐","authorId":1628835661,"activityIcon":null,"activityText":"2020新年快乐","width":720,"height":1280,"url":"https://pipijoke.oss-cn-hangzhou.aliyuncs.com/1630306739343.mp4","cover":"https://pipijoke.oss-cn-hangzhou.aliyuncs.com/1630306759358.jpeg","author":{"id":3238,"userId":1628835661,"name":"*雪梅红海","avatar":"http://qzapp.qlogo.cn/qzapp/101794421/F93A0449517A146D4607A87AB65E85DD/100","description":null,"likeCount":4,"topCommentCount":0,"followCount":2,"followerCount":2,"qqOpenId":"F93A0449517A146D4607A87AB65E85DD","expires_time":1636611662552,"score":0,"historyCount":29,"commentCount":3,"favoriteCount":0,"feedCount":0,"hasFollow":false},"topComment":null,"ugc":{"likeCount":-1,"shareCount":0,"commentCount":2,"hasFavorite":false,"hasLiked":false,"hasdiss":false,"hasDissed":false}},{"id":1578922757,"itemId":1630292346840,"itemType":2,"createTime":1630292346840,"duration":0.0,"feeds_text":"阿富汗---4","authorId":1603875126,"activityIcon":null,"activityText":"2020新年快乐","width":720,"height":1280,"url":"https://pipijoke.oss-cn-hangzhou.aliyuncs.com/1630292304093.mp4","cover":"https://pipijoke.oss-cn-hangzhou.aliyuncs.com/1630292343455.jpeg","author":{"id":2314,"userId":1603875126,"name":"南山","avatar":"http://qzapp.qlogo.cn/qzapp/101794421/7DCF05F4FF8E740599E6284EC4587D9A/100","description":null,"likeCount":5,"topCommentCount":0,"followCount":2,"followerCount":0,"qqOpenId":"7DCF05F4FF8E740599E6284EC4587D9A","expires_time":1611651128362,"score":0,"historyCount":124,"commentCount":8,"favoriteCount":0,"feedCount":0,"hasFollow":false},"topComment":null,"ugc":{"likeCount":0,"shareCount":0,"commentCount":0,"hasFavorite":false,"hasLiked":false,"hasdiss":false,"hasDissed":false}},{"id":1578922756,"itemId":1630291623634,"itemType":2,"createTime":1630291623634,"duration":0.0,"feeds_text":"uu一样","authorId":1603875126,"activityIcon":null,"activityText":"2019高光时刻","width":720,"height":1280,"url":"https://pipijoke.oss-cn-hangzhou.aliyuncs.com/1630291587034.mp4","cover":"https://pipijoke.oss-cn-hangzhou.aliyuncs.com/1630291620203.jpeg","author":{"id":2314,"userId":1603875126,"name":"南山","avatar":"http://qzapp.qlogo.cn/qzapp/101794421/7DCF05F4FF8E740599E6284EC4587D9A/100","description":null,"likeCount":5,"topCommentCount":0,"followCount":2,"followerCount":0,"qqOpenId":"7DCF05F4FF8E740599E6284EC4587D9A","expires_time":1611651128362,"score":0,"historyCount":124,"commentCount":8,"favoriteCount":0,"feedC
hasFollow":false},"topComment":null,"ugc":{"likeCount":-1,"shareCount":1,"commentCount":0,"hasFavorite":false,"hasLiked":false,"hasdiss":false,"hasDissed":false}},{"id":1578922755,"itemId":1629971072954,"itemType":2,"createTime":1629971072954,"duration":0.0,"feeds_text":"测试","authorId":1579588471,"activityIcon":null,"activityText":null,"width":720,"height":1280,"url":"https://pipijoke.oss-cn-hangzhou.aliyuncs.com/1629971061717.mp4","cover":"https://pipijoke.oss-cn-hangzhou.aliyuncs.com/1629971070186.jpeg","author":{"id":1278,"userId":1579588471,"name":"羽化","avatar":"http://qzapp.qlogo.cn/qzapp/101794421/61B862E867810135D7CEBC3BD8E130C2/100","description":null,"likeCount":2,"topCommentCount":0,"followCount":0,"followerCount":0,"qqOpenId":"61B862E867810135D7CEBC3BD8E130C2","expires_time":1587364470958,"score":0,"historyCount":39,"commentCount":1,"favoriteCount":0,"feedCount":0,"hasFollow":false},"topComment":null,"ugc":{"likeCount":0,"shareCount":1,"commentCount":0,"hasFavorite":false,"hasLiked":false,"hasdiss":false,"hasDissed":false}}]}}
<-- END HTTP (9269-byte body)
D/LoadData: loadData: key: 1578922823
W/le.activitydem: Accessing hidden method Landroid/media/AudioTrack;->getLatency()I (greylist, reflection, allowed)
I/ExoPlayerImpl: Init 98d814e [ExoPlayerLib/2.10.4] [HWEML, EML-AL00, HUAWEI, 29]
I/le.activitydem: Background concurrent copying GC freed 34329(1170KB) AllocSpace objects, 1(504KB) LOS objects, 49% free, 10MB/20MB, paused 32.907ms total 565.035ms
I/le.activitydem: Background young concurrent copying GC freed 186(210KB) AllocSpace objects, 1(504KB) LOS objects, 0% free, 21MB/21MB, paused 32.850ms total 363.340ms
I/le.activitydem: Background concurrent copying GC freed 322(166KB) AllocSpace objects, 1(504KB) LOS objects, 49% free, 23MB/46MB, paused 30.818ms total 443.457ms
D/: [ZeroHung]zrhung_send_event: wp = 257, ret = 0
D/: [ZeroHung]zrhung_send_event: wp = 258, ret = 0
I/le.activitydem: Background young concurrent copying GC freed 756(192KB) AllocSpace objects, 0(0B) LOS objects, 0% free, 48MB/48MB, paused 20.996ms total 469.014ms
I/le.activitydem: Background concurrent copying GC freed 94(33KB) AllocSpace objects, 0(0B) LOS objects, 31% free, 51MB/75MB, paused 30.481ms total 515.286ms
I/le.activitydem: Background young concurrent copying GC freed 494(212KB) AllocSpace objects, 0(0B) LOS objects, 0% free, 76MB/76MB, paused 21.198ms total 380.858ms
D/: [ZeroHung]zrhung_send_event: wp = 260, ret = 0
I/le.activitydem: Background concurrent copying GC freed 164(53KB) AllocSpace objects, 0(0B) LOS objects, 23% free, 80MB/104MB, paused 30.377ms total 560.650ms
I/le.activitydem: Background young concurrent copying GC freed 495(239KB) AllocSpace objects, 0(0B) LOS objects, 0% free, 106MB/106MB, paused 21.529ms total 398.556ms
I/le.activitydem: Background concurrent copying GC freed 980(61KB) AllocSpace objects, 0(0B) LOS objects, 17% free, 109MB/133MB, paused 30.044ms total 617.951ms
1回答
-
LovelyChubby
2022-01-27
有没有日志贴一下看看
012022-01-27
相似问题