Xcode8打印问题,[] nw_host_stats_add_src recv too small, received 24, expected 28

2017-04-01 11:33:59.759142 BuDeJie[20240:1378514] [] nw_host_stats_add_src recv too small, received 24, expected 28
2017-04-01 11:33:59.759832 BuDeJie[20240:1378514] [] nw_host_stats_add_src recv too small, received 24, expected 28
2017-04-01 11:33:59.763372 BuDeJie[20240:1378509] [] nw_host_stats_add_src recv too small, received 24, expected 28
2017-04-01 11:33:59.768581 BuDeJie[20240:1378509] [] ____nwlog_simulate_crash_inner_block_invoke dlopen CrashReporterSupport failed
2017-04-01 11:33:59.768895 BuDeJie[20240:1378509] [] __nwlog_err_simulate_crash simulate crash failed "nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available"
2017-04-01 11:33:59.770022 BuDeJie[20240:1378509] [] nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available, dumping backtrace:
        [x86_64] libnetcore-856.30.16
    0   libsystem_network.dylib             0x00000001086cc666 __nw_create_backtrace_string + 123
    1   libnetwork.dylib                    0x0000000108b9f006 nw_socket_add_input_handler + 3164
    2   libnetwork.dylib                    0x0000000108b7c555 nw_endpoint_flow_attach_protocols + 3768
    3   libnetwork.dylib                    0x0000000108b7b572 nw_endpoint_flow_setup_socket + 563
    4   libnetwork.dylib                    0x0000000108b7a298 -[NWConcrete_nw_endpoint_flow startWithHandler:] + 2612
    5   libnetwork.dylib                    0x0000000108b95ae1 nw_endpoint_handler_path_change + 1261
    6   libnetwork.dylib                    0x0000000108b95510 nw_endpoint_handler_start + 570
    7   libnetwork.dylib                    0x0000000108bad1f9 nw_endpoint_resolver_start_next_child + 2240
    8   libdispatch.dylib                   0x0000000108449978 _dispatch_call_block_and_release + 12
    9   libdispatch.dylib                   0x00000001084730cd _dispatch_client_callout + 8
    10  libdispatch.dylib                   0x0000000108450e17 _dispatch_queue_serial_drain + 236
    11  libdispatch.dylib                   0x0000000108451b4b _dispatch_queue_invoke + 1073
    12  libdispatch.dylib                   0x0000000108454385 _dispatch_root_queue_drain + 720
    13  libdispatch.dylib                   0x0000000108454059 _dispatch_worker_thread3 + 123
    14  libsystem_pthread.dylib             0x000000010881c4de _pthread_wqthread + 1129
    15  libsystem_pthread.dylib             0x000000010881a341 start_wqthread + 13

解决办法:添加环境变量  OS_ACTIVIITY_MODE 赋值为disable

流程:

1.选择 Product -->Scheme-->Edit Scheme

2.选择 Arguments

3.在Run-->Arguments -->Environment Variables添加一个环境变量 OS_ACTIVITY_MODE 设置值为"disable"

参考网址:http://blog.csdn.net/xiaoyuwen1242466468/article/details/53333963

时间: 2024-10-15 17:07:56

Xcode8打印问题,[] nw_host_stats_add_src recv too small, received 24, expected 28的相关文章

解决Xcode8打印了nw_socket_handle_socket_event Event mask

[] -[NWConcrete_tcp_connection dealloc] 11 [] nw_socket_handle_socket_event Event mask: 0x4 [] nw_socket_handle_socket_event Socket received WRITE_CLOSE event [] nw_socket_handle_socket_event Event mask: 0x4 [] nw_socket_handle_socket_event Socket re

如何清除Xcode8打印的系统日志

Xcode升级成8之后,就会发现控制台打印的日志莫名其妙的变得超级多,最关键的是很多都是没有用的东西,而有些有用的东西却淹没在那无任何卵用的里面,在这我就说一下如何关掉这些没有用的日志. 1.直接快捷键,command + shift + <,接着点击Arguments 如图: 2.接着找到Environment Variables,点击加号,添加一个键值对, 键的名字叫做:OS_ACTIVITY_MODE 值得名字叫做:Disable 添加完之后就可以了. 如图:

打印沙漏

题目描述: 本题要求你写个程序把给定的符号打印成沙漏的形状.例如给定17个"*",要求按下列格式打印 ***** *** * *** ***** 所谓"沙漏形状",是指每行输出奇数个符号:各行符号中心对齐:相邻两行符号数差2:符号数先从大到小顺序递减到1,再从小到大顺序递增:首尾符号数相等. 给定任意N个符号,不一定能正好组成一个沙漏.要求打印出的沙漏能用掉尽可能多的符号. 输入格式: 输入在一行给出1个正整数N(<=1000)和一个符号,中间以空格分隔. 输

打印螺旋矩阵

1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<math.h> 4 5 #define MAX 64 6 7 void initArray(int array[][MAX], int n); 8 void printArray(int array[][MAX], int n); 9 10 int main() 11 { 12 int n; 13 int array[MAX][MAX]; 14 printf(&quo

60、剑指offer--把二叉树打印成多行

题目描述 从上到下按层打印二叉树,同一层结点从左至右输出.每一层输出一行. 解题思路:可以直到,每次打印一个结点,然后打印下一行时总是先打印其左子结点,然后打印其右子结点.先入先出,使用队列处理.使用toBeprint记录当前行打印的个数,每存入一个-1:nextlevel记录下一行打印结点个数:一行打印完,toBeprint = nextlevel:nextlevel = 0: 1 /* 2 struct TreeNode { 3 int val; 4 struct TreeNode *lef

转:C#并口热敏小票打印机打印位图

最近一直在研究并口小票打印机打印图片问题,这也是第一次和硬件打交道,不过还好,最终成功了. 这是DEMO的窗体: 下面是打印所需要调用的代码: [html] view plaincopy class LptControl { private string LptStr = "lpt1"; public LptControl(string l_LPT_Str) { LptStr = l_LPT_Str; } [StructLayout(LayoutKind.Sequential)] pr

打印控件Lodop

官网:http://www.lodop.net/demo.html Lodop.C-Lodop使用说明及样例   Lodop(标音:劳道谱,俗称:露肚皮)是专业WEB控件,用它既可裁剪输出页面内容,又可用程序代码直接实现 复杂打印.控件功能强大,却简单易用,所有调用如同JavaScript扩展语句,主要接口函数如下:   ● PRINT_INIT(strPrintTaskName)打印初始化 ● SET_PRINT_PAGESIZE(intOrient,intPageWidth,intPageH

Web打印连续的表格,自动根据行高分页

拿到这个需求,我已经蛋碎了一地,经过N天的攻克,终于是把它搞定了,只是不知道会不会在某种情况下出现BUG.表示我心虚没有敢做太多的测试.... ----------------------------------------------------------废话分割线----------------------------------------------------------- 注:我们的系统是基于ligerui这个一堆bug的插件的. 详细需求: 1.任意一个表格,行高不均匀且不相等:

C#并口热敏小票打印机打印位图包括芯片的写入

下面是打印所需要调用的代码: class LptControl { private string LptStr = "lpt1"; public LptControl(string l_LPT_Str) { LptStr = l_LPT_Str; } [StructLayout(LayoutKind.Sequential)] private struct OVERLAPPED { int Internal; int InternalHigh; int Offset; int OffSe