Closed Bug 1124310 Opened 5 years ago Closed 5 years ago

Crash when tapping the location view on on iPhone 6 Plus

Categories

(Firefox for iOS :: Browser, defect)

x86
macOS
defect
Not set

Tracking

()

RESOLVED FIXED

People

(Reporter: st3fan, Assigned: bnicholson)

References

Details

Attachments

(1 file)

47 bytes, text/x-github-pull-request
st3fan
: review+
Details | Review
Interestingly this only happens on the iPhone 6 Plus. No issues on different sized phones or iPad.

2015-01-21 13:52:38.426 Client[12963:790245] *** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan nan]'
*** First throw call stack:
(
	0   CoreFoundation                      0x0000000101cb9f35 __exceptionPreprocess + 165
	1   libobjc.A.dylib                     0x0000000101544bb7 objc_exception_throw + 45
	2   CoreFoundation                      0x0000000101cb9e6d +[NSException raise:format:] + 205
	3   QuartzCore                          0x00000001085784e6 _ZN2CA5Layer12set_positionERKNS_4Vec2IdEEb + 152
	4   QuartzCore                          0x0000000108578655 -[CALayer setPosition:] + 43
	5   QuartzCore                          0x0000000108578c4f -[CALayer setFrame:] + 709
	6   UIKit                               0x0000000102543541 -[UIView(Geometry) setFrame:] + 322
	7   UIKit                               0x00000001028cb152 -[UISelectionGrabberDot setFrame:] + 122
	8   UIKit                               0x00000001028cc9a9 -[UISelectionGrabber updateDot] + 3219
	9   UIKit                               0x0000000102549086 -[UIView(Hierarchy) _postMovedFromSuperview:] + 437
	10  UIKit                               0x0000000102552f4b -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1604
	11  UIKit                               0x00000001028c726b -[UITextRangeView updateGrabbers] + 3197
	12  UIKit                               0x00000001028c0e34 -[UITextSelectionView updateSelectionRects] + 1182
	13  UIKit                               0x0000000102c2266b __47-[UITextInputController _setSelectedTextRange:]_block_invoke251 + 200
	14  UIKit                               0x0000000102c2288f __52-[UITextInputController _coordinateSelectionChange:]_block_invoke + 76
	15  UIFoundation                        0x0000000108b0606b -[NSTextStorage coordinateReading:] + 42
	16  UIKit                               0x0000000102c22838 -[UITextInputController _coordinateSelectionChange:] + 108
	17  UIKit                               0x0000000102c2235a -[UITextInputController _setSelectedTextRange:] + 521
	18  UIKit                               0x0000000102c26e49 -[UITextInputController setSelectedTextRange:] + 37
	19  UIKit                               0x00000001029da32c -[UITextSelection commit] + 268
	20  UIKit                               0x000000010289abb4 -[UITextInteractionAssistant(UITextInteractionAssistant_Internal) selectAll:] + 113
	21  Client                              0x0000000100c339a0 _TFC6Client20TabBarViewController24textFieldDidBeginEditingfS0_FCSo11UITextFieldT_ + 96
	22  Client                              0x0000000100c33a0a _TToFC6Client20TabBarViewController24textFieldDidBeginEditingfS0_FCSo11UITextFieldT_ + 58
	23  UIKit                               0x0000000102c10227 -[UITextField _becomeFirstResponder] + 481
	24  UIKit                               0x000000010265328d -[UIResponder becomeFirstResponder] + 324
	25  UIKit                               0x0000000102548e03 -[UIView(Hierarchy) becomeFirstResponder] + 99
	26  UIKit                               0x0000000102c0fad7 -[UITextField becomeFirstResponder] + 51
	27  UIKit                               0x0000000102548e3b -[UIView(Hierarchy) deferredBecomeFirstResponder] + 49
	28  UIKit                               0x0000000102549144 __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 175
	29  UIKit                               0x0000000102549086 -[UIView(Hierarchy) _postMovedFromSuperview:] + 437
	30  UIKit                               0x0000000102552f4b -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1604
	31  UIKit                               0x00000001025dbabb -[UITransitionView transition:fromView:toView:removeFromView:] + 1164
	32  UIKit                               0x0000000102c4c5f3 -[UIViewControllerBuiltinTransitionViewAnimator animateTransition:] + 752
	33  UIKit                               0x00000001025e01d3 __56-[UIPresentationController runTransitionForCurrentState]_block_invoke + 1842
	34  UIKit                               0x00000001024ff331 _applyBlockToCFArrayCopiedToStack + 314
	35  UIKit                               0x00000001024ff1ab _afterCACommitHandler + 516
	36  CoreFoundation                      0x0000000101beedc7 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
	37  CoreFoundation                      0x0000000101beed20 __CFRunLoopDoObservers + 368
	38  CoreFoundation                      0x0000000101be4b53 __CFRunLoopRun + 1123
	39  CoreFoundation                      0x0000000101be4486 CFRunLoopRunSpecific + 470
	40  GraphicsServices                    0x00000001083c79f0 GSEventRunModal + 161
	41  UIKit                               0x00000001024dc420 UIApplicationMain + 1282
	42  Client                              0x0000000100c2858e top_level_code + 78
	43  Client                              0x0000000100c285ca main + 42
	44  libdyld.dylib                       0x00000001044cf145 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Attached file Pull request
No idea why this happens only on the iPhone 6 Plus. I assume this is some iOS bug.
Assignee: nobody → bnicholson
Status: NEW → ASSIGNED
Attachment #8553275 - Flags: review?(sarentz)
Comment on attachment 8553275 [details] [review]
Pull request

Sorry I thought I +d this earlier.
Attachment #8553275 - Flags: review?(sarentz) → review+
I merged the PR.
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
This crash is back. Looks like the same kind of issue:

2015-02-13 16:24:11.229 Client[16496:17854846] *** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan nan]'
	0   CoreFoundation                      0x000000010a06af35 __exceptionPreprocess + 165
	1   libobjc.A.dylib                     0x00000001098f5bb7 objc_exception_throw + 45
	2   CoreFoundation                      0x000000010a06ae6d +[NSException raise:format:] + 205
	3   QuartzCore                          0x000000010e5014e6 _ZN2CA5Layer12set_positionERKNS_4Vec2IdEEb + 152
	4   QuartzCore                          0x000000010e501655 -[CALayer setPosition:] + 43
	5   QuartzCore                          0x000000010e501c4f -[CALayer setFrame:] + 709
	6   UIKit                               0x000000010a8f4541 -[UIView(Geometry) setFrame:] + 322
	7   UIKit                               0x000000010ac7c152 -[UISelectionGrabberDot setFrame:] + 122
	8   UIKit                               0x000000010ac7d9a9 -[UISelectionGrabber updateDot] + 3219
	9   UIKit                               0x000000010a8fa086 -[UIView(Hierarchy) _postMovedFromSuperview:] + 437
	10  UIKit                               0x000000010a903f4b -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1604
	11  UIKit                               0x000000010ac7826b -[UITextRangeView updateGrabbers] + 3197
	12  UIKit                               0x000000010ac71e34 -[UITextSelectionView updateSelectionRects] + 1182
	13  UIKit                               0x000000010afd366b __47-[UITextInputController _setSelectedTextRange:]_block_invoke251 + 200
	14  UIKit                               0x000000010afd388f __52-[UITextInputController _coordinateSelectionChange:]_block_invoke + 76
	15  UIFoundation                        0x000000010d51206b -[NSTextStorage coordinateReading:] + 42
	16  UIKit                               0x000000010afd3838 -[UITextInputController _coordinateSelectionChange:] + 108
	17  UIKit                               0x000000010afd335a -[UITextInputController _setSelectedTextRange:] + 521
	18  UIKit                               0x000000010afd7e49 -[UITextInputController setSelectedTextRange:] + 37
	19  UIKit                               0x000000010ad8b32c -[UITextSelection commit] + 268
	20  UIKit                               0x000000010ac4bbb4 -[UITextInteractionAssistant(UITextInteractionAssistant_Internal) selectAll:] + 113
	21  Client                              0x0000000108e3ab70 _TFC6Client10URLBarView24textFieldDidBeginEditingfS0_FCSo11UITextFieldT_ + 96
	22  Client                              0x0000000108e3abda _TToFC6Client10URLBarView24textFieldDidBeginEditingfS0_FCSo11UITextFieldT_ + 58
	23  UIKit                               0x000000010afc1227 -[UITextField _becomeFirstResponder] + 481
	24  UIKit                               0x000000010aa0428d -[UIResponder becomeFirstResponder] + 324
	25  UIKit                               0x000000010a8f9e03 -[UIView(Hierarchy) becomeFirstResponder] + 99
	26  UIKit                               0x000000010afc0ad7 -[UITextField becomeFirstResponder] + 51
	27  Client                              0x0000000108e39969 _TFC6Client10URLBarView33browserLocationViewDidTapLocationfS0_FCS_19BrowserLocationViewT_ + 4697
	28  Client                              0x0000000108e3bfc1 _TTWC6Client10URLBarViewS_27BrowserLocationViewDelegateFS1_33browserLocationViewDidTapLocationUS1___fRQPS1_FCS_19BrowserLocationViewT_ + 81
	29  Client                              0x0000000108e6d88a _TFC6Client19BrowserLocationView19SELtapLocationLabelfS0_FCSo22UITapGestureRecognizerT_ + 266
	30  Client                              0x0000000108e6d90a _TToFC6Client19BrowserLocationView19SELtapLocationLabelfS0_FCSo22UITapGestureRecognizerT_ + 58
	31  UIKit                               0x000000010ac402e6 _UIGestureRecognizerSendActions + 262
	32  UIKit                               0x000000010ac3ef89 -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:] + 532
	33  UIKit                               0x000000010ac43ba6 ___UIGestureRecognizerUpdate_block_invoke662 + 51
	34  UIKit                               0x000000010ac43aa2 _UIGestureRecognizerRemoveObjectsFromArrayAndApplyBlocks + 254
	35  UIKit                               0x000000010ac39b1d _UIGestureRecognizerUpdate + 2796
	36  UIKit                               0x000000010a8d3ff6 -[UIWindow _sendGesturesForEvent:] + 1041
	37  UIKit                               0x000000010a8d4c23 -[UIWindow sendEvent:] + 667
	38  UIKit                               0x000000010a8a19b1 -[UIApplication sendEvent:] + 246
	39  UIKit                               0x000000010a8aea7d _UIApplicationHandleEventFromQueueEvent + 17370
	40  UIKit                               0x000000010a88a103 _UIApplicationHandleEventQueue + 1961
	41  CoreFoundation                      0x0000000109fa0551 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
	42  CoreFoundation                      0x0000000109f9641d __CFRunLoopDoSources0 + 269
	43  CoreFoundation                      0x0000000109f95a54 __CFRunLoopRun + 868
	44  CoreFoundation                      0x0000000109f95486 CFRunLoopRunSpecific + 470
	45  GraphicsServices                    0x000000010e0409f0 GSEventRunModal + 161
	46  UIKit                               0x000000010a88d420 UIApplicationMain + 1282
	47  Client                              0x0000000108e96a1e top_level_code + 78
	48  Client                              0x0000000108e96a5a main + 42
	49  libdyld.dylib                       0x000000010c880145 start + 1
	50  ???                                 0x0000000000000001 0x0 + 1
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Depends on: 1135194
Fixed by bug 1135194.
Status: REOPENED → RESOLVED
Closed: 5 years ago5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.