_UIPhysicalButton when we expect UITouch objects in touchesCancelled:?

Originator:steipete
Number:rdar://18537814 Date Originated:03-Oct-2014 05:04 PM
Status:Open Resolved:
Product:iOS Product Version:8
Classification: Reproducible:
 
Peter Steinberger03-Oct-2014 05:04 PM

Summary:
See this stack trace: http://crashes.to/s/7f438e67d93

Looks like a physical button is sent up the chain where we would expect touch events.

```
Thread : Fatal Exception: NSInvalidArgumentException
0  CoreFoundation                 0x2c629e3f __exceptionPreprocess + 126
1  libobjc.A.dylib                0x39fd0c8b objc_exception_throw + 38
2  CoreFoundation                 0x2c62f189 __methodDescriptionForSelector
3  CoreFoundation                 0x2c62d0a7 ___forwarding___ + 714
4  CoreFoundation                 0x2c62e358 __forwarding_prep_1___ + 24
5  eBackpack                      0x004eb347 -[PSPDFPageView touchesCancelled:withEvent:] + 1472802
6  UIKit                          0x2fc45e45 __98-[UIApplication _cancelViewProcessingOfTouches:withEvent:sendingTouchesCancelledToViewsOfTouches:]_block_invoke + 332
7  UIKit                          0x2fb458ef -[UIApplication _cancelTouches:withEvent:includingGestures:notificationBlock:] + 570
8  UIKit                          0x2fc45cc9 -[UIApplication _cancelViewProcessingOfTouches:withEvent:sendingTouchesCancelledToViewsOfTouches:] + 96
9  UIKit                          0x2faf4b51 -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:] + 3540
10 UIKit                          0x2ff0643b ___UIGestureRecognizerUpdate_block_invoke661 + 46
11 UIKit                          0x2fabda41 _UIGestureRecognizerRemoveObjectsFromArrayAndApplyBlocks + 216
12 UIKit                          0x2fabb91f _UIGestureRecognizerUpdate + 2926
13 UIKit                          0x2faf2409 -[UIWindow _sendGesturesForEvent:] + 784
14 UIKit                          0x2faf1ce5 -[UIWindow sendEvent:] + 524
15 UIKit                          0x2fac857d -[UIApplication sendEvent:] + 196
16 UIKit                          0x2fd3bdf9 _UIApplicationHandleEventFromQueueEvent + 13888
17 UIKit                          0x2fac6fd1 _UIApplicationHandleEventQueue + 1296
18 CoreFoundation                 0x2c5f058f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 14
19 CoreFoundation                 0x2c5ef99f __CFRunLoopDoSources0 + 218
20 CoreFoundation                 0x2c5ee005 __CFRunLoopRun + 772
21 CoreFoundation                 0x2c53c621 CFRunLoopRunSpecific + 476
22 CoreFoundation                 0x2c53c433 CFRunLoopRunInMode + 106
23 GraphicsServices               0x338c20a9 GSEventRunModal + 136
24 UIKit                          0x2fb27359 UIApplicationMain + 1440
25 eBackpack                      0x000dbfb7 main (main.m:22)
26 libdyld.dylib                  0x3a550aaf start + 2
```

Steps to Reproduce:
Not Applicable. User crash. Can't reproduce this ourselves.

Expected Results:
Only UITouch objects.

Actual Results:
Array with _UIPhysicalButton

Version:
iOS 8

Notes:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!