2013-04-25 3 views
1

UITextField 사용자 입력을 받아 서버 측에서 콘텐츠를 검색했습니다. 영어 만 입력하면 모든 것이 잘 진행됩니다. 그리고 중국어 입력을 시도 할 때 응용 프로그램이 중단되었습니다 (매번 변경되는 것은 아닙니다).iOS 6.1에서 중국어 입력시 UIKeyboard가 충돌 함

Thread 0 name: Dispatch queue: com.apple.main-thread 
Thread 0 Crashed: 
0 CoreGraphics     0x33a72568 argb32_image_mark + 1732 
1 CoreGraphics     0x33a97f6c argb32_shade + 380 
2 libRIP.A.dylib     0x33dd625c ripl_BltShade + 1116 
3 libRIP.A.dylib     0x33dd578c ripc_DrawShading + 4812 
4 CoreGraphics     0x33a9738e CGContextDrawLinearGradient + 170 
5 UIKit       0x35915a4a UIKBDrawLinearGradient + 38 
6 UIKit       0x35c63abe -[UIKeyboardCandidateUnsplitKeyboardToggleButton toggleButtonBackgroundImageWithHighlight:] + 302 
7 UIKit       0x35c63938 -[UIKeyboardCandidateUnsplitKeyboardToggleButton updateBackgroundImages] + 48 
8 UIKit       0x35c63bd4 -[UIKeyboardCandidateUnsplitKeyboardToggleButton setDrawsBackground:] + 44 
9 UIKit       0x35c636e8 -[UIKeyboardCandidateUnsplitKeyboardToggleButton initWithFrame:] + 108 
10 UIKit       0x35bc05ca -[UIKeyboardCandidateGridHeader initWithFrame:] + 434 
11 UIKit       0x35c605e0 -[UIKeyboardCandidateView_iPhone_Bar initWithFrame:] + 324 
12 UIKit       0x35c5ed72 +[UIKeyboardCandidateView sharedInstance] + 242 
13 UIKit       0x35a5022c -[UIKeyboardImpl updateTextCandidateView] + 340 
14 UIKit       0x358fd648 -[UIKeyboardImpl setCandidates:] + 296 
15 UIKit       0x35a4fda2 -[UIKeyboardImpl updateCandidateDisplayAsyncWithCandidates:forInputManager:] + 146 
16 TextInput      0x394aa802 -[TIWordSearchOperationGetCandidates completeSearchOnMainThreadWithResults:] + 94 
17 Foundation      0x3431049c __NSThreadPerformPerform + 456 
18 CoreFoundation     0x339cd8f4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12 
19 CoreFoundation     0x339cd158 __CFRunLoopDoSources0 + 208 
20 CoreFoundation     0x339cbf2a __CFRunLoopRun + 642 
21 CoreFoundation     0x3393f238 CFRunLoopRunSpecific + 352 
22 CoreFoundation     0x3393f0c4 CFRunLoopRunInMode + 100 
23 GraphicsServices    0x3751e336 GSEventRunModal + 70 
24 UIKit       0x3585b2b4 UIApplicationMain + 1116 

충돌 로그는 응용 프로그램이 충돌 할 때마다 거의 동일합니다

나는 다음과 같은 스택 추적을 얻었다. 며칠을 보냈으나 해결책을 찾지 못했습니다.

누구에게도이 사실을 알 수 있습니까?

-

이 문제가 발생할 수있는 것으로 나타났습니다.

내 프로젝트에서 ARC를 사용하고 루트보기 컨트롤러의 - [viewDidLoad] 메시지에서 하위보기 컨트롤러를 만들고 자식보기 컨트롤러 - [viewDidLoad] 메시지에서 NSTimer를 만들고 다음에 추가하십시오. 현재 실행 루프는 자식보기 컨트롤러에서 하위 레이어를 새로 고칩니다.

NSTimer 만들기 코드에 주석을 달고 나면 충돌이 사라집니다.

나는 그것을 연구하고 그 이유를 찾으려고 노력할 것이다.

+0

시뮬레이터 또는 장치에? 기기 및 시뮬레이터의 –

+0

모두 충돌하는 경우가 있습니다. 스택 트레이스는 동일합니다. –

+0

은 iOS에 종속적입니다. 다른 iOS에서 사용해 보셨습니까? –

답변

0

UIGraphicsBeginImageContextWithOptions를 사용하고 UIGraphicsEndImageContext에 의해 Context를 해제하지 않았습니까? 또는 비슷한 것.

관련 문제