X Tutup
The Wayback Machine - https://web.archive.org/web/20210112131657/https://github.com/CoderMJLee/MJExtension/issues/736
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

关于 iOS 13 崩溃问题统一声明 #736

Closed
wolfcon opened this issue Sep 25, 2019 · 20 comments
Closed

关于 iOS 13 崩溃问题统一声明 #736

wolfcon opened this issue Sep 25, 2019 · 20 comments

Comments

@wolfcon
Copy link
Collaborator

@wolfcon wolfcon commented Sep 25, 2019

请更新至 3.2.1 的版本.

不要再使用老版本了

请将过期方法都清除改为新的 mj_ 开头的方法. 旧的过期方法已经在 3.1.0 中删除

注意: Model 中的相应方法请注意!

@Jamis-11
Copy link

@Jamis-11 Jamis-11 commented Oct 22, 2019

目前已经升级至 3.1.2 版本, 发现仍然会出现闪退的问题
屏幕快照 2019-10-22 下午5 00 46

@Jamis-11

This comment has been hidden.

@wolfcon

This comment was marked as off-topic.

@Jamis-11

This comment has been hidden.

@allan304

This comment has been hidden.

@wolfcon

This comment has been hidden.

Repository owner deleted a comment from allan304 Oct 28, 2019
@qinyeios
Copy link

@qinyeios qinyeios commented Nov 4, 2019

我这边也遇到了和楼上类似的问题,已经升级到了最新的版本,也都带有mj_前缀。但是之前崩溃的bug还在。因为测试的时候好的,所以崩溃的原因和位置无法得到准确的定位。只是知道在启动页就崩溃了,并在bugtags生成了崩溃的日志。大佬一直在强调传demo,估计楼上很多人也是不知道demo该传什么上来吧。

Thread 0 Crashed:
0 CoreFoundation 0x00000001a3ed558c 0x1a3e45000 + 591244 (_CFGetTSDCreateIfNeeded + 108)
1 CoreFoundation 0x00000001a3f0e21c 0x1a3e45000 + 823836 ( + 96)
2 CoreFoundation 0x00000001a3f0ee98 0x1a3e45000 + 827032 (_CFStringCreateWithBytesNoCopy + 44)
3 Foundation 0x00000001a4332a1c 0x1a4221000 + 1120796 (NSStringFromClass + 84)
4 0x0000000101483858 0x100c4c000 + 8616024 (+[NSObject(Property) mj_properties] + 72)
5 0x00000001014836bc 0x100c4c000 + 8615612 (+[NSObject(Property) mj_enumerateProperties:] + 108)
6 0x0000000101481290 0x100c4c000 + 8606352 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)
7 0x000000010148151c 0x100c4c000 + 8607004 (__57-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:]_block_invoke + 480)
8 0x000000010148374c 0x100c4c000 + 8615756 (+[NSObject(Property) mj_enumerateProperties:] + 252)
9 0x0000000101481290 0x100c4c000 + 8606352 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)
10 0x000000010148151c 0x100c4c000 + 8607004 (__57-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:]_block_invoke + 480)
11 0x000000010148374c 0x100c4c000 + 8615756 (+[NSObject(Property) mj_enumerateProperties:] + 252)
......

@kiroInn

This comment has been hidden.

@wolfcon
Copy link
Collaborator Author

@wolfcon wolfcon commented Nov 5, 2019

@kiroInn @qinyeios @594438666233 @czt-github

写一个跟你们项目无关只导入 MJExtension 的项目, 写出你们崩溃例子的数据源和调用方法, 把 Demo 打包成 Zip . 拖动到这个聊天框等待上传完成即可.

@wolfcon

This comment has been hidden.

@wolfcon wolfcon closed this Nov 14, 2019
@yisRookie

This comment has been hidden.

@ripperhe

This comment was marked as off-topic.

@wolfcon

This comment has been hidden.

@msh940620
Copy link

@msh940620 msh940620 commented Dec 18, 2019

我们项目也遇到一样问题 Stack overflow in +[NSObject(Property) mj_properties] 我们这统计崩溃率千五左右 目前没找到必现方式,仔细检查过 应该没有遗漏代码 emmm

@wolfcon
Copy link
Collaborator Author

@wolfcon wolfcon commented Dec 18, 2019

我们项目也遇到一样问题 Stack overflow in +[NSObject(Property) mj_properties] 我们这统计崩溃率千五左右 目前没找到必现方式,仔细检查过 应该没有遗漏代码 emmm

@msh940620 麻烦传个全一点的 crash log, 应用的版本号.(该版本所用的 MJExtension 的版本是多少)

@msh940620
Copy link

@msh940620 msh940620 commented Dec 19, 2019

Hardware Model: iPhone12,1
Code Type: ARM-64
Parent Process: ? [1]

Date/Time: 2019-12-02 10:26:15.628 +0800
OS Version: iOS 13.1.3 (17A878)
Report Version: 104

Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: 0x00000000 at 0x000000016dc53ff0
Crashed Thread: 0

Thread 0 Crashed:
0 CoreFoundation 0x00000001b8e9760c 0x1b8e03000 + 607756 ( + 4)
1 CoreFoundation 0x00000001b8ed1380 0x1b8e03000 + 844672 ( + 100)
2 CoreFoundation 0x00000001b8ed2054 0x1b8e03000 + 847956 (_CFStringCreateWithBytesNoCopy + 48)
3 Foundation 0x00000001b9302ec0 0x1b91e8000 + 1158848 (NSStringFromClass + 88)
4 应用名字 0x00000001028e78d8 0x1020b0000 + 8616152 (+[NSObject(Property) mj_properties] + 72)
5 应用名字 0x00000001028e773c 0x1020b0000 + 8615740 (+[NSObject(Property) mj_enumerateProperties:] + 108)
6 应用名字 0x00000001028e5310 0x1020b0000 + 8606480 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)
7 应用名字 0x00000001028e559c 0x1020b0000 + 8607132 (__57-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:]_block_invoke + 480)
8 应用名字 0x00000001028e77cc 0x1020b0000 + 8615884 (+[NSObject(Property) mj_enumerateProperties:] + 252)
9 应用名字 0x00000001028e5310 0x1020b0000 + 8606480 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)
10 应用名字 0x00000001028e559c 0x1020b0000 + 8607132 (__57-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:]_block_invoke + 480)
11 应用名字 0x00000001028e77cc 0x1020b0000 + 8615884 (+[NSObject(Property) mj_enumerateProperties:] + 252)
12 应用名字 0x00000001028e5310 0x1020b0000 + 8606480 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)
13 应用名字 0x00000001028e559c 0x1020b0000 + 8607132 (__57-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:]_block_invoke + 480)
14 应用名字 0x00000001028e77cc 0x1020b0000 + 8615884 (+[NSObject(Property) mj_enumerateProperties:] + 252)
15 应用名字 0x00000001028e5310 0x1020b0000 + 8606480 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)
16 应用名字 0x00000001028e559c 0x1020b0000 + 8607132 (__57-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:]_block_invoke + 480)
17 应用名字 0x00000001028e77cc 0x1020b0000 + 8615884 (+[NSObject(Property) mj_enumerateProperties:] + 252)
18 应用名字 0x00000001028e5310 0x1020b0000 + 8606480 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)
19 应用名字 0x00000001028e559c 0x1020b0000 + 8607132 (__57-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:]_block_invoke + 480)
20 应用名字 0x00000001028e77cc 0x1020b0000 + 8615884 (+[NSObject(Property) mj_enumerateProperties:] + 252)
21 应用名字 0x00000001028e5310 0x1020b0000 + 8606480 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)
22 应用名字 0x00000001028e559c 0x1020b0000 + 8607132 (__57-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:]_block_invoke + 480)
23 应用名字 0x00000001028e77cc 0x1020b0000 + 8615884 (+[NSObject(Property) mj_enumerateProperties:] + 252)
24 应用名字 0x00000001028e5310 0x1020b0000 + 8606480 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)
25 应用名字 0x00000001028e559c 0x1020b0000 + 8607132 (__57-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:]_block_invoke + 480)
26 应用名字 0x00000001028e77cc 0x1020b0000 + 8615884 (+[NSObject(Property) mj_enumerateProperties:] + 252)
27 应用名字 0x00000001028e5310 0x1020b0000 + 8606480 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)
28 应用名字 0x00000001028e559c 0x1020b0000 + 8607132 (__57-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:]_block_invoke + 480)
29 应用名字 0x00000001028e77cc 0x1020b0000 + 8615884 (+[NSObject(Property) mj_enumerateProperties:] + 252)
30 应用名字 0x00000001028e5310 0x1020b0000 + 8606480 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)
31 应用名字 0x00000001028e559c 0x1020b0000 + 8607132 (__57-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:]_block_invoke + 480)
32 应用名字 0x00000001028e77cc 0x1020b0000 + 8615884 (+[NSObject(Property) mj_enumerateProperties:] + 252)
33 应用名字 0x00000001028e5310 0x1020b0000 + 8606480 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)
34 应用名字 0x00000001028e559c 0x1020b0000 + 8607132 (__57-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:]_block_invoke + 480)
35 应用名字 0x00000001028e77cc 0x1020b0000 + 8615884 (+[NSObject(Property) mj_enumerateProperties:] + 252)
36 应用名字 0x00000001028e5310 0x1020b0000 + 8606480 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)
37 应用名字 0x00000001028e559c 0x1020b0000 + 8607132 (__57-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:]_block_invoke + 480)
38 应用名字 0x00000001028e77cc 0x1020b0000 + 8615884 (+[NSObject(Property) mj_enumerateProperties:] + 252)
39 应用名字 0x00000001028e5310 0x1020b0000 + 8606480 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)
40 应用名字 0x00000001028e559c 0x1020b0000 + 8607132 (__57-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:]_block_invoke + 480)
41 应用名字 0x00000001028e77cc 0x1020b0000 + 8615884 (+[NSObject(Property) mj_enumerateProperties:] + 252)
42 应用名字 0x00000001028e5310 0x1020b0000 + 8606480 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)
43 应用名字 0x00000001028e559c 0x1020b0000 + 8607132 (__57-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:]_block_invoke + 480)
44 应用名字 0x00000001028e77cc 0x1020b0000 + 8615884 (+[NSObject(Property) mj_enumerateProperties:] + 252)
45 应用名字 0x00000001028e5310 0x1020b0000 + 8606480 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)
46 应用名字 0x00000001028e559c 0x1020b0000 + 8607132 (__57-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:]_block_invoke + 480)
47 应用名字 0x00000001028e77cc 0x1020b0000 + 8615884 (+[NSObject(Property) mj_enumerateProperties:] + 252)
48 应用名字 0x00000001028e5310 0x1020b0000 + 8606480 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)
49 应用名字 0x00000001028e559c 0x1020b0000 + 8607132 (__57-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:]_block_invoke + 480)
50 应用名字 0x00000001028e77cc 0x1020b0000 + 8615884 (+[NSObject(Property) mj_enumerateProperties:] + 252)
51 应用名字 0x00000001028e5310 0x1020b0000 + 8606480 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)
52 应用名字 0x00000001028e559c 0x1020b0000 + 8607132 (__57-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:]_block_invoke + 480)
53 应用名字 0x00000001028e77cc 0x1020b0000 + 8615884 (+[NSObject(Property) mj_enumerateProperties:] + 252)
54 应用名字 0x00000001028e5310 0x1020b0000 + 8606480 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)
55 应用名字 0x00000001028e559c 0x1020b0000 + 8607132 (__57-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:]_block_invoke + 480)
56 应用名字 0x00000001028e77cc 0x1020b0000 + 8615884 (+[NSObject(Property) mj_enumerateProperties:] + 252)
57 应用名字 0x00000001028e5310 0x1020b0000 + 8606480 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)
58 应用名字 0x00000001028e559c 0x1020b0000 + 8607132 (__57-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:]_block_invoke + 480)
59 应用名字 0x00000001028e77cc 0x1020b0000 + 8615884 (+[NSObject(Property) mj_enumerateProperties:] + 252)
60 应用名字 0x00000001028e5310 0x1020b0000 + 8606480 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)
61 应用名字 0x00000001028e559c 0x1020b0000 + 8607132 (__57-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:]_block_invoke + 480)
62 应用名字 0x00000001028e77cc 0x1020b0000 + 8615884 (+[NSObject(Property) mj_enumerateProperties:] + 252)
63 应用名字 0x00000001028e5310 0x1020b0000 + 8606480 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)
64 应用名字 0x00000001028e559c 0x1020b0000 + 8607132 (__57-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:]_block_invoke + 480)
65 应用名字 0x00000001028e77cc 0x1020b0000 + 8615884 (+[NSObject(Property) mj_enumerateProperties:] + 252)
66 应用名字 0x00000001028e5310 0x1020b0000 + 8606480 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)
67 应用名字 0x00000001028e559c 0x1020b0000 + 8607132 (__57-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:]_block_invoke + 480)
68 应用名字 0x00000001028e77cc 0x1020b0000 + 8615884 (+[NSObject(Property) mj_enumerateProperties:] + 252)
69 应用名字 0x00000001028e5310 0x1020b0000 + 8606480 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)
70 应用名字 0x00000001028e559c 0x1020b0000 + 8607132 (__57-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:]_block_invoke + 480)
71 应用名字 0x00000001028e77cc 0x1020b0000 + 8615884 (+[NSObject(Property) mj_enumerateProperties:] + 252)
72 应用名字 0x00000001028e5310 0x1020b0000 + 8606480 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)
73 应用名字 0x00000001028e559c 0x1020b0000 + 8607132 (__57-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:]_block_invoke + 480)
74 应用名字 0x00000001028e77cc 0x1020b0000 + 8615884 (+[NSObject(Property) mj_enumerateProperties:] + 252)
75 应用名字 0x00000001028e5310 0x1020b0000 + 8606480 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)
76 应用名字 0x00000001028e559c 0x1020b0000 + 8607132 (__57-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:]_block_invoke + 480)
77 应用名字 0x00000001028e77cc 0x1020b0000 + 8615884 (+[NSObject(Property) mj_enumerateProperties:] + 252)
78 应用名字 0x00000001028e5310 0x1020b0000 + 8606480 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)
79 应用名字 0x00000001028e559c 0x1020b0000 + 8607132 (__57-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:]_block_invoke + 480)
80 应用名字 0x00000001028e77cc 0x1020b0000 + 8615884 (+[NSObject(Property) mj_enumerateProperties:] + 252)
81 应用名字 0x00000001028e5310 0x1020b0000 + 8606480 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)
82 应用名字 0x00000001028e559c 0x1020b0000 + 8607132 (__57-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:]_block_invoke + 480)
83 应用名字 0x00000001028e77cc 0x1020b0000 + 8615884 (+[NSObject(Property) mj_enumerateProperties:] + 252)
84 应用名字 0x00000001028e5310 0x1020b0000 + 8606480 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)
85 应用名字 0x00000001028e559c 0x1020b0000 + 8607132 (__57-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:]_block_invoke + 480)
86 应用名字 0x00000001028e77cc 0x1020b0000 + 8615884 (+[NSObject(Property) mj_enumerateProperties:] + 252)
87 应用名字 0x00000001028e5310 0x1020b0000 + 8606480 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)
88 应用名字 0x00000001028e559c 0x1020b0000 + 8607132 (__57-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:]_block_invoke + 480)
89 应用名字 0x00000001028e77cc 0x1020b0000 + 8615884 (+[NSObject(Property) mj_enumerateProperties:] + 252)
90 应用名字 0x00000001028e5310 0x1020b0000 + 8606480 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)
91 应用名字 0x00000001028e559c 0x1020b0000 + 8607132 (__57-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:]_block_invoke + 480)
92 应用名字 0x00000001028e77cc 0x1020b0000 + 8615884 (+[NSObject(Property) mj_enumerateProperties:] + 252)
93 应用名字 0x00000001028e5310 0x1020b0000 + 8606480 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)
94 应用名字 0x00000001028e559c 0x1020b0000 + 8607132 (__57-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:]_block_invoke + 480)
95 应用名字 0x00000001028e77cc 0x1020b0000 + 8615884 (+[NSObject(Property) mj_enumerateProperties:] + 252)
96 应用名字 0x00000001028e5310 0x1020b0000 + 8606480 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)
97 应用名字 0x00000001028e559c 0x1020b0000 + 8607132 (__57-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:]_block_invoke + 480)
98 应用名字 0x00000001028e77cc 0x1020b0000 + 8615884 (+[NSObject(Property) mj_enumerateProperties:] + 252)
99 应用名字 0x00000001028e5310 0x1020b0000 + 8606480 (-[NSObject(MJKeyValue) mj_keyValuesWithKeys:ignoredKeys:] + 476)

CrashDoctor Diagnosis: Stack overflow in +[NSObject(Property) mj_properties]

@wolfcon
Copy link
Collaborator Author

@wolfcon wolfcon commented Dec 19, 2019

@msh940620 应用的版本号.(该版本所用的 MJExtension 的版本是多少)

@msh940620
Copy link

@msh940620 msh940620 commented Dec 19, 2019

@msh940620 应用的版本号.(该版本所用的 MJExtension 的版本是多少)

  • MJExtension (3.2.1)
    MJExtension: 635f2c663dcb1bf76fa4b715b2570a5710aec545
    @wolfcon 麻烦了。
@wolfcon
Copy link
Collaborator Author

@wolfcon wolfcon commented Dec 19, 2019

单开一个 issue 不要在这里讨论.

@msh940620 你这个像是出现了死循环. 这个问题你仔细检查下, 不是旧的版本的日志么...
如果没问题的话, 那就得依赖你的特殊结构去复现一下了...无法复现定位不到问题.

  • 使用崩溃 App 对应版本的 dSYM 文件解析一下 log.
  • 方便的话抽出出问题的 model, 改一下, 写个 demo. 传上来.
  • 最好试着去复现一下或者索性将部分解析代码消除敏感信息后, 写个全点的 Demo 方便定位问题(比如引入的系统库, 引入的第三方库等等. 越详细越好)
@wolfcon wolfcon linked a pull request that will close this issue Oct 15, 2020
@thneng

This comment was marked as off-topic.

@wolfcon wolfcon unpinned this issue Oct 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

9 participants
You can’t perform that action at this time.
X Tutup