title: iPhone app crashing when turning device while keyboard is showing
body: <p>I have an iPhone app with a webview that redirects to a forum at some point.</p>
  
  <p>I noticed that the app will crash when I do these steps:</p>
  
  <p>1) Browse through the forum (vBulletin)<br>
  2) Open a thread and try to post a message<br>
  3) Click into the textarea so the keyboard shows up
  4) Then type and/or turn the device quickly</p>
  
  <p>Now my iPhone app crashes. Notice: the crash only appears in very long threads, so it must be some problem of memory or CPU?</p>
  
  <p>Anyway, I can't figure out where to search for the problem, because XCode 4 isn't showing any logs for the crash! Secondly, when running the app via Xcode (on the device) it crashes without showing any error... The crash isn't reproducible via Simulator (of course).</p>
  
  <p>How to solve such a problem?</p>
  
  <hr>
  
  <p>CONSOLE:</p>
  
  <pre><code>May 10 00:23:36 unknown SpringBoard[29] &lt;Warning&gt;: Received memory warning. Level=1
  May 10 00:23:36 unknown MobilePhone[582] &lt;Warning&gt;: Received memory warning. Level=1
  May 10 00:23:37 unknown configd[25] &lt;Notice&gt;: jetsam: kernel memory event (91), free: 1198, active: 7537, inactive: 3482, purgeable: 0, wired: 17615
  May 10 00:23:37 unknown SpringBoard[29] &lt;Warning&gt;: Received memory warning. Level=2
  May 10 00:23:37 unknown MobilePhone[582] &lt;Warning&gt;: Received memory warning. Level=2
  May 10 00:23:38 unknown configd[25] &lt;Notice&gt;: jetsam: kernel termination snapshot being created
  May 10 00:23:38 unknown com.apple.launchd[1] &lt;Notice&gt;: (UIKitApplication:com.apple.mobilephone[0xa185]) Exited: Killed: 9
  May 10 00:23:38 unknown com.apple.launchd[1] &lt;Notice&gt;: (UIKitApplication:com.skype.skype[0xf18]) Exited: Killed: 9
  May 10 00:23:38 unknown com.apple.launchd[1] &lt;Notice&gt;: (UIKitApplication:com.myCompanygmbh.myTestApp[0x9c47]) Bug: launchd_core_logic.c:3795 (24506):0
  May 10 00:23:39 unknown com.apple.debugserver-50[598] &lt;Warning&gt;: 1 [0256/1503]: error: ::read ( 4, 0x2ffb19f0, 1024 ) =&gt; -1 err = Bad file descriptor (0x00000009)
  May 10 00:23:39 unknown SpringBoard[29] &lt;Warning&gt;: Application 'Phone' exited abnormally with signal 9: Killed: 9
  May 10 00:23:39 unknown com.apple.launchd[1] &lt;Notice&gt;: (UIKitApplication:com.myCompanygmbh.myTestApp[0x9c47]) Bug: launchd_core_logic.c:3794 (24506):3
  May 10 00:23:39 unknown com.apple.launchd[1] &lt;Notice&gt;: (UIKitApplication:com.myCompanygmbh.myTestApp[0x9c47]) Bug: launchd_core_logic.c:3202 (24506):10
  May 10 00:23:39 unknown com.apple.launchd[1] &lt;Notice&gt;: (UIKitApplication:com.myCompanygmbh.myTestApp[0x9c47]) Working around 5020256. Assuming the job crashed.
  May 10 00:23:39 unknown com.apple.launchd[1] &lt;Warning&gt;: (UIKitApplication:com.myCompanygmbh.myTestApp[0x9c47]) Job appears to have crashed: Segmentation fault: 11
  May 10 00:23:39 unknown SpringBoard[29] &lt;Warning&gt;: Application 'Skype' exited abnormally with signal 9: Killed: 9
  May 10 00:23:39 unknown SpringBoard[29] &lt;Warning&gt;: Application 'myTestApp' exited abnormally with signal 11: Segmentation fault: 11
  May 10 00:23:40 unknown kernel[0] &lt;Debug&gt;: launchd[606] Builtin profile: container (sandbox)
  May 10 00:23:40 unknown kernel[0] &lt;Debug&gt;: launchd[606] Container: /private/var/mobile/Applications/1D182D9C-6475-4B81-B409-E6245C60FE84 [69] (sandbox)
  May 10 00:23:40 unknown ReportCrash[604] &lt;Error&gt;: Saved crashreport to /Library/Logs/CrashReporter/LowMemory-2011-05-10-002340.plist using uid: 0 gid: 0, synthetic_euid: 0 egid: 0
  May 10 00:23:41 unknown Skype[606] &lt;Warning&gt;: ===== Starting HellKit (10021/3.0.0.250/IPHONE) =====
  May 10 00:23:41 unknown Skype[606] &lt;Warning&gt;: Running on iOS device model iPhone3,1 (sysctlbyname('hw.machine'))
  May 10 00:23:41 unknown Skype[606] &lt;Warning&gt;: Video capture constraints: 12 FPS, complexity mode 8
  May 10 00:23:42 unknown MobilePhone[605] &lt;Warning&gt;: UI Mode is Phone
  May 10 00:23:43 unknown SpringBoard[29] &lt;Debug&gt;: spd:___libspd_initialize_notify_block_invoke_1:214 spd woke up!
  May 10 00:23:43 unknown SpringBoard[29] &lt;Debug&gt;: spd:_libspd_initialize_protocol:142 Registered notification port with spd [PID=609]
  May 10 00:23:43 unknown SpringBoard[29] &lt;Debug&gt;: spd:spd_notification_socket_activity:279 Calling session client's callback on their queue for client [PID=606]
  May 10 00:23:44 unknown sandboxd[610] &lt;Notice&gt;: Skype(606) deny file-write-create /Applications/.dat025e.000
  May 10 00:23:44 unknown mediaserverd[19] &lt;Warning&gt;: 00:23:44.479 &lt;SystemSoundServer&gt; WARNING translating CMSession error: -12985 
  May 10 00:23:44 unknown mediaserverd[19] &lt;Warning&gt;: 00:23:44.530 &lt;SystemSoundServer&gt; WARNING translating CMSession error: -12985 
  May 10 00:23:44 unknown spd[609] &lt;Error&gt;: spd:spd_vet_socket:658 getpeername failure for client socket [FD=5]: Socket is not connected
  May 10 00:23:44 unknown spd[609] &lt;Error&gt;: spd:spd_checkin_socket:954 Unable to check-in unsupported socket for client [PID=606]
  May 10 00:23:44 unknown mediaserverd[19] &lt;Error&gt;: 00:23:44.585 &lt;AudioQueueServer&gt; AudioQueue: Error -12985 from AudioSessionSetClientPlayState(606)
  May 10 00:23:45 unknown spd[609] &lt;Error&gt;: spd:spd_vet_socket:658 getpeername failure for client socket [FD=6]: Socket is not connected
  May 10 00:23:45 unknown spd[609] &lt;Error&gt;: spd:spd_checkin_socket:954 Unable to check-in unsupported socket for client [PID=606]
  </code></pre>