Thursday 15 January 2015

iphone - Is this a UIKit bug? -


I'm not sure whether this bug actually comes from my app or is actually a UIKit bug. Maybe someone can explain here.

There is a tableview, each cell provides a disclosure button with a "setting" screen which is a model view. The modal view can be closed using the "Close" button.

There is a UITextview in the model view.

Now the bug comes here: the user holds a key that provides the same letter (example: A -> AAA A ...). When the user holds that key, the letters are found and the blue color is first selected. If the user keeps this button and simultaneously clicks on the "off" button the modal view disappears and the table view is visible. The keyboard goes away, but the {a ä à} menu for one second is still visible then the app crashes.

This can only be done again on the device, because you can not press two buttons simultaneously.

Here is a stack trace

  date / time: 2009-12-01 17: 39: 31.048 +0100 OS version: iPhone OS 3.0.1 (7A) 400) Report version: 104 Exception type: EXC_BAD_ACCESS (SIBBS) Exception code: 0x00000008 Carren_ PROTECTION_FAILURE Crash Thread: 0 Thread 0 Crashed: 0 libobjc.A.dylib 0x300102ac objc_msgseend + 16 1 UIKit 0x308ffda0 - [Text marked in UIKeyboardImpl] 20 2 UIKit 0x309161b2 - [UIKeyboardImpl updateShiftState] + 230 3 UIKit 0x309224c0 - [UIKeyboardImpl Handbuster Callback] + 72 4 UIKit 0x30922466 Supervisor Callback + 14 5 CoreFoundation 0x3020bf38 __CFRunLoopDoObservers + 420 6 CoreFoundation 0x30252e46 CFRun LoopRunSpecific + 1734 7 CoreFoundation 0x3025276a CFRunLoopRunInMode + 42 8 GraphicsServices 0x32044b08 GSEventRunModal + 108 9 GraphicsServices 0x32044bb4 GSEventRun + 56 10 UIKit 0x308f035c - [UIApplication _run] 384 11 UIKit 0x308ef11a UIApplicationMain + 694 12 **** 0x00002360 Main (Main I: 14) 13 **** 0x000022 FC Start + 44 Thread 1: 0 Libistum. B Deal 0x31d47624 semaphore_wait_signal_trap + 8 1 libSystem.B.dylib 0x31d702de semaphore_wait_signal + 2 2 libSystem.B.dylib 0x31d49c9c pthread_mutex_lock + 284 3 WebCore 0x35866fa6 __ZL17_WebTryThreadLockb + 98 4 WebCore 0x35866f22 __zll4WebRunLoopLockPl9__kfruँlupobsservermpv + 14 5 CoreFoundation 0x3020bf38 __kfruँlupdubsservers + 420 6 CoreFoundation 0x30252db0 CFRunLoopRunSpecific + 1584 7 CoreFoundation 0x3025276a CFRunLoopRunInMode + 42 8 WebCore 0x35866ed2 __zll2RunWebThreadPv + 286 9 LibSystemkbi. Dileep 0x31d6a6ea _pthread_body + 10  

The problem was to resign from the first response, which I forgot


No comments:

Post a Comment