微信因频繁后台唤醒而被 ios13.2 杀死

2019-10-31 16:19:59 +08:00
 zhuangku556

quate: 经朋友提醒,找到了 WeChat 频繁进行 wakeup 调用而被 iOS 杀掉的证据。位置:iOS 系统设置-隐私-分析与改进-分析数据。

https://i.loli.net/2019/10/30/kAUEvoOGrhzW7BP.jpg

15730 次点击
所在节点    iOS
98 条回复
wclebb
2019-10-31 18:08:18 +08:00
@FallenTy #15 我也看了下分析……
13.1.3 还没升级。
然后 173 秒,260 次。

讲真,每天除了用它订麦当劳之外今天没打开过微信。260 是为了什么?……

感觉我升级后铁定杀得体无完肤。

——————

我不在乎……微信我真不常用。
zhouyou457
2019-10-31 18:09:57 +08:00
https://i.loli.net/2019/10/31/P8HuTDOAkKfYi3W.jpg

过去的 241 秒唤醒了 450001 次....
whileFalse
2019-10-31 18:12:08 +08:00
为什么要唤醒这么多次啊……一次把活儿干完不好吗。
LZSZ
2019-10-31 18:28:41 +08:00
搞不懂,苹果不是有推送通道吗?这个推送太慢?
deathscythe
2019-10-31 18:29:48 +08:00
那么要不要扒一下支付宝?
MisakiYui
2019-10-31 18:34:04 +08:00
国产都是这样,无解。Android 估计更惨。
CastleBUPT
2019-10-31 18:42:16 +08:00
这个结论有问题,我的手机是 XS Max, iOS13.2,淘宝的每秒唤醒次数是 295,比微信更高,为什么淘宝在 iOS13.2 上的后台能力明显比微信强很多。
venster
2019-10-31 18:43:59 +08:00
@Znf7 这有啥办法,张小龙布斯已经放出话,全国皆知了,还能再收回不成?
iPhoneXI
2019-10-31 19:00:15 +08:00
微信国内安卓版貌似也一堆 wakelock,

国际版老实多了,最近在谷歌 play 政策压力下,开了 beta 通道、编译了 64 位版、数据包和主程序分离、有 fcm 推送、非前台时进程都进缓存里
TashinV
2019-10-31 19:14:47 +08:00
我这 Safari 杀后台杀得比 WeChat 严重…………
shino996
2019-10-31 19:44:06 +08:00
额, 这个结论有问题, 换个其他软件也这样...
JCZ2MkKb5S8ZX9pq
2019-10-31 19:50:42 +08:00
@shino996 的确,这个 log 里,只要名字带 wakeup 的,好像都这样。
我这边还看到淘宝,还有我一个宝可梦游戏也这样。。。
tankaloha
2019-10-31 19:57:14 +08:00
Resource Limit [EXC_RESOURCE]
The process exceeded a resource consumption limit. This is a notification from the OS that the process is using too many resources. The exact resource is listed in the Exception Subtype field. If the Exception Note field contains NON-FATAL CONDITION, then the process was not killed even though a crash report was generated.

The exception subtype MEMORY indicates that the process has crossed a memory limit imposed by the system. This may be a precursor to termination for excess memory usage.
The exception subtype WAKEUPS indicates that threads in the process are being woken up too many times per second, which forces the CPU to wake up very often and consumes battery life.
Typically, this is caused by thread-to-thread communication (generally using peformSelector:onThread: or dispatch_async) that is unwittingly happening far more often than it should be. Because the sort of communication that triggers this exception is happening so frequently, there will usually be multiple background threads with very similar Backtraces - indicating where the communication is originating.
SeanChense
2019-10-31 20:02:06 +08:00
三十楼了,还没人站出来指出楼主朋友的错误吗?
我赌五块钱楼上骂张小龙垃圾的,对线程、进程的理解不如张小龙。
Bananana
2019-10-31 20:26:00 +08:00
按理说把 App 后台唤醒关了,不是应该不能 background fetch 了嘛?
Building
2019-10-31 20:26:34 +08:00
我觉得微信 iOS 程序组现在应该在比较慌地加班吧。
Bananana
2019-10-31 20:58:19 +08:00
@Building 微信好像 7.0.8 一个多月没更新版本了。。希望下个版本能把暗黑模式一起放出来(如果有)
billlee
2019-10-31 21:40:47 +08:00
@iPhoneXI #29 还有随机名字的 alarm. 不做限制的话能把 CPU 一直保持在运行状态。
ibegyourpardon
2019-10-31 21:49:17 +08:00
我只想说一句,不拦着各位喷。

在业务赶着上线的时候,先用脏手段满足需求,坑埋下,事往后拖,各位想想自己真的没做过吗?

然后有一天因为某些原因,这些东西不能不解决了,被用户喷,然后着急慌忙加班的事,都没经历过吗?

骂张小龙的,真觉得是张小龙一个人要求 iOS 开发组这么干的吗? 你们那些埋下的写死的参数,奇奇怪怪的变量,各种利用平台特性实现一些要求的事,完全没碰到吗?

如果你真没有,那我挺羡慕你。你压力真的少。
efaun
2019-10-31 22:15:46 +08:00
@MisakiYui #26 安卓 root 了就可以治了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/614915

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX