NSConcreteAttributedString initWithString:: nil value

quick-x V3.2

player运行报异常,xcode运行没问题,因为代码涉及好几个类,没法贴。不知道是代码问题还是 player问题?大家又遇到过没,多谢。

异常如下:
NSConcreteAttributedString initWithString:: nil value

报完这个异常,再点击就报下面异常,程序卡主了。

2014-10-25 18:58:14.542 player3 NSConcreteAttributedString initWithString:: nil value
2014-10-25 18:58:15.628 player3 NSConcreteAttributedString initWithString:: nil value
2014-10-25 18:58:15.630 player3 (
0 CoreFoundation 0x00007fff8f97d25c __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff886a1e75 objc_exception_throw + 43
2 CoreFoundation 0x00007fff8f97d10c + + 204
3 Foundation 0x00007fff8fe2c6b5 - + 124
4 Foundation 0x00007fff8fe2c575 - + 30
5 player3 0x0000000100a8e73e - + 398
6 player3 0x0000000100a7584a - + 218
7 CoreFoundation 0x00007fff8f94be0c CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 12
8 CoreFoundation 0x00007fff8f83fa6d _CFXNotificationPost + 2893
9 Foundation 0x00007fff8fdf27ba - + 68
10 Foundation 0x00007fff8feeb450 _performFileHandleSource + 1548
11 CoreFoundation 0x00007fff8f8ae731 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
12 CoreFoundation 0x00007fff8f89fea2 __CFRunLoopDoSources0 + 242
13 CoreFoundation 0x00007fff8f89f62f __CFRunLoopRun + 831
14 CoreFoundation 0x00007fff8f89f0b5 CFRunLoopRunSpecific + 309
15 HIToolbox 0x00007fff8eccea0d RunCurrentEventLoopInMode + 226
16 HIToolbox 0x00007fff8ecce7b7 ReceiveNextEventCommon + 479
17 HIToolbox 0x00007fff8ecce5bc _BlockUntilNextEventMatchingListInModeWithFilter + 65
18 AppKit 0x00007fff851e23de _DPSNextEvent + 1434
19 AppKit 0x00007fff851e1a2b - + 122
20 AppKit 0x00007fff851d5b2c - + 553
21 AppKit 0x00007fff851c0913 NSApplicationMain + 940
22 player3 0x0000000100a6d0d2 main + 34
23 libdyld.dylib 0x00007fff85fdf5fd start + 1
)

3.3rc1 也碰到同样的问题了

兄弟是怎么解决的?

— Begin quote from ____

引用第2楼longolder于2015-01-15 16:33发表的 :
兄弟是怎么解决的? http://www.cocoachina.com/bbs/job.php?action=topost&tid=236138&pid=1222346

— End quote

是C++的问题。你查看下C++代码有错误没

额 我找到问题了!是string.sub的问题,如果把一个完整的字符分开的话就会报这个错

— Begin quote from ____

引用第4楼longolder于2015-01-15 20:17发表的 回 3楼(饿了吃个馍) 的帖子 :
额 我找到问题了!是string.sub的问题,如果把一个完整的字符分开的话就会报这个错 http://www.cocoachina.com/bbs/job.php?action=topost&tid=236138&pid=1222495

— End quote

好,恭喜你

楼主你是怎么解决的?

检查下你处理字符串的代码

我的问题是这样的http://www.cocoachina.com/bbs/read.php?tid-285744.html

我遇到的不是socket问题。我看你的应该是出现了空的字符串,具体情况我也不清楚:7:

https://github.com/cocos2d/cocos2d-x/issues/11211