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

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
4886 次点击
所在节点    程序员
24 条回复
bookit
2020-03-27 21:05:03 +08:00
在自己写的重要函数开头结尾都加 log,打印进出信息,

在字符串操作上下都打印出字符串,然后再运行
Hamniba
2020-03-28 00:18:42 +08:00
建议重启 /换一台开发测试 iPhone
DCELL
2020-03-28 10:25:20 +08:00
先拿符号标,转化下;你这个堆栈只有真大神才搞的明白
xsen
2020-03-28 12:48:53 +08:00
其实就是内存访问问题,
1. 多线程,资源没做好同步
2. 越界

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

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

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

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

© 2021 V2EX