各路开发大神吗,展现你们的聪明才智时候到了

2020-03-27 18:05:14 +08:00
 OneMan
总是随机崩溃,SIGABRT, 在 Dispatch queue: com.apple.network.connections 线程。关键这是系统的呀。
谁能解决或帮忙啊,有什么思路呢,求各种意见~~
有偿求助也可!

Thread 22 name: Dispatch queue: com.apple.network.connections
Thread 22 Crashed:
0 libsystem_kernel.dylib 0x00000001953edec4 __pthread_kill + 8
1 libsystem_pthread.dylib 0x000000019530d724 pthread_kill$VARIANT$armv81 + 216
2 libsystem_c.dylib 0x000000019525d844 abort + 100
3 libsystem_malloc.dylib 0x00000001952f6b80 _malloc_put + 0
4 libsystem_malloc.dylib 0x00000001952f6d38 malloc_report + 60
5 libsystem_malloc.dylib 0x00000001952ec124 free + 532
6 libnetwork.dylib 0x0000000197b900f8 -[NWConcrete_nw_endpoint dealloc] + 96
7 libnetwork.dylib 0x0000000197b8d310 -[NWConcrete_nw_address_endpoint dealloc] + 72
8 libnetwork.dylib 0x0000000197c120ac -[OS_nw_array dealloc] + 60
9 libnetwork.dylib 0x0000000197a83220 nw_protocol_definition_deallocate_cache_entry + 80
10 libnetwork.dylib 0x00000001979e62f8 __nw_association_is_empty_block_invoke + 76
11 libnetwork.dylib 0x0000000197af0b74 nw_hash_table_apply + 332
12 libnetwork.dylib 0x00000001979e604c nw_association_is_empty + 204
13 libnetwork.dylib 0x0000000197ba53b0 __nw_endpoint_has_associations_block_invoke + 28
14 libnetwork.dylib 0x0000000197af0b74 nw_hash_table_apply + 332
15 libnetwork.dylib 0x0000000197ba4f98 nw_endpoint_has_associations + 172
16 libnetwork.dylib 0x0000000197899cc4 __nw_context_purge_endpoints_block_invoke_2.88 + 40
17 libnetwork.dylib 0x0000000197af0b74 nw_hash_table_apply + 332
18 libnetwork.dylib 0x0000000197899b64 __nw_context_purge_endpoints_block_invoke.87 + 108
19 libnetwork.dylib 0x0000000197af0b74 nw_hash_table_apply + 332
20 libnetwork.dylib 0x00000001978994d8 nw_context_purge_endpoints + 984
21 libdispatch.dylib 0x00000001952c3184 _dispatch_client_callout + 16
22 libdispatch.dylib 0x000000019529ce8c _dispatch_continuation_pop$VARIANT$armv81 + 404
23 libdispatch.dylib 0x00000001952ad02c _dispatch_source_invoke$VARIANT$armv81 + 1232
24 libdispatch.dylib 0x00000001952a227c _dispatch_workloop_invoke$VARIANT$armv81 + 1736
25 libdispatch.dylib 0x00000001952aa43c _dispatch_workloop_worker_thread + 576
26 libsystem_pthread.dylib 0x0000000195312b88 _pthread_wqthread + 276
27 libsystem_pthread.dylib 0x0000000195315760 start_wqthread + 8
4885 次点击
所在节点    程序员
24 条回复
OneMan
2020-03-27 18:11:08 +08:00
自顶一个
wysnylc
2020-03-27 18:16:44 +08:00
是不是在放大图像?
vanton
2020-03-27 18:18:30 +08:00
前面的信息是啥,app specific info 是啥?
Chaidu
2020-03-27 18:19:28 +08:00
赏金多少?
OneMan
2020-03-27 18:22:03 +08:00
@wysnylc 从何而出?
OneMan
2020-03-27 18:22:16 +08:00
@Chaidu 你开价呀
OneMan
2020-03-27 18:25:27 +08:00
详细 crash report 在: https://www.v2ex.com/notes/40843
OneMan
2020-03-27 18:27:11 +08:00
OneMan
2020-03-27 18:31:48 +08:00
自顶一个
vanton
2020-03-27 18:35:06 +08:00
@OneMan #8
没权限打开
OneMan
2020-03-27 18:38:05 +08:00
@vanton 太蛋疼了,怎么上传日志呢
OneMan
2020-03-27 18:44:19 +08:00
across
2020-03-27 18:48:35 +08:00
系统随机崩溃,八成是内存问题。
oc/cpp 写的?这么看不如翻代码提交记录查起来快。
OneMan
2020-03-27 19:10:16 +08:00
@across 也不该崩溃在系统吧
across
2020-03-27 19:11:29 +08:00
@OneMan
·····没写过 cpp ?
OneMan
2020-03-27 19:12:41 +08:00
@across 有 cpp 的
bookit
2020-03-27 19:16:44 +08:00
内存写越界了。如果是自己写的程序,在写内存的附近多加断点,lldb 调试之
bookit
2020-03-27 19:20:05 +08:00
看了 log,

感觉是 fileURLWithPath 这里,你传入的路径字符串是不是有问题,然后这里挂了?

打断点,仔细看内存
OneMan
2020-03-27 19:34:38 +08:00
@bookit 其他 log 又不是这里了
OneMan
2020-03-27 19:35:21 +08:00
另外一个 log
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 CoreFoundation 0x00000001954eb4cc -[CFPrefsPlistSource synchronize] + 20
1 CoreFoundation 0x00000001954f0324 -[__NSFrozenDictionaryM __apply:context:] + 128
2 CoreFoundation 0x00000001954db108 -[_CFXPreferences synchronizeEverything] + 148
3 CoreFoundation 0x000000019562e86c _CFPrefsSynchronizeForProcessTermination + 84
4 Foundation 0x00000001958aea5c -[NSUserDefaults+ 31324 (NSUserDefaults) synchronize] + 64
5 theapp 0x000000010540dd58 0x104eac000 + 5643608
6 theapp 0x000000010540eba4 0x104eac000 + 5647268
7 theapp 0x00000001052e1b18 0x104eac000 + 4414232
8 theapp 0x00000001052c429c 0x104eac000 + 4293276
9 theapp 0x0000000104fbea28 0x104eac000 + 1124904
10 theapp 0x0000000104fbe6c8 0x104eac000 + 1124040
11 theapp 0x0000000104fbe3ac 0x104eac000 + 1123244
12 theapp 0x0000000105995388 0x104eac000 + 11441032
13 Foundation 0x00000001959e0028 __NSFireTimer + 64
14 CoreFoundation 0x000000019557503c __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28
15 CoreFoundation 0x0000000195574d78 __CFRunLoopDoTimer + 880
16 CoreFoundation 0x0000000195574448 __CFRunLoopDoTimers + 276
17 CoreFoundation 0x000000019556f584 __CFRunLoopRun + 1920
18 CoreFoundation 0x000000019556eadc CFRunLoopRunSpecific + 464
19 GraphicsServices 0x000000019f50f328 GSEventRunModal + 104
20 UIKitCore 0x000000019967c63c UIApplicationMain + 1936
21 theapp 0x00000001052c4688 0x104eac000 + 4294280
22 libdyld.dylib 0x00000001953f8360 start + 4

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

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

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

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

© 2021 V2EX