Closed
Bug 1412897
Opened 8 years ago
Closed 8 years ago
Crash in SELUIPasteboardChanged
Categories
(Firefox for iOS :: General, enhancement, P1)
Tracking
()
RESOLVED
FIXED
| Tracking | Status | |
|---|---|---|
| fxios | 10.0 | --- |
People
(Reporter: garvan, Assigned: garvan)
Details
Attachments
(1 file)
Beta 7473, seeing crash report of infinite loop in SELUIPasteboardChanged:
```
#23 (null) in @objc ClipboardBarDisplayHandler.SELUIPasteboardChanged() at Client/Frontend/Browser/ClipboardBarDisplayHandler.swift:46
#24 (null) in __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ ()
#25 (null) in _CFXRegistrationPost ()
#26 (null) in ___CFXNotificationPost_block_invoke ()
#27 (null) in -[_CFXNotificationRegistrar find:object:observer:enumerator:] ()
#28 (null) in _CFXNotificationPost ()
#29 (null) in -[NSNotificationCenter postNotificationName:object:userInfo:] ()
#30 (null) in _sendPasteboardChangedNotification ()
#31 (null) in +[_UIConcretePasteboard _pasteboardNamed:createIfNotFound:] ()
#32 (null) in @objc ClipboardBarDisplayHandler.SELUIPasteboardChanged() at Client/Frontend/Browser/ClipboardBarDisplayHandler.swift:46
```
Priority: -- → P1
The first line of `SELUIPasteboardChanged()` calls `UIPasteboard.general` which triggers a pasteboard changed notification.
Easy fixes are:
1) Add re-entrancy guard, and/or
2) Remove listener when function is hit, re-add when done
I couldn't repro the crash; I am not able to trigger a notification when accessing UIPasteboard.general.
I can see in the assembly that UIPasteboard accessor function is returning before hitting the notification; I assume that is because `general` already existed -I am "assuming" because I am not trying to figure out the assembly there :).
Attachment #8923555 -
Flags: review?(jdarcangelo)
Updated•8 years ago
|
Whiteboard: [needsuplift[
Updated•8 years ago
|
Whiteboard: [needsuplift[ → [needsuplift]
Updated•8 years ago
|
Attachment #8923555 -
Flags: review?(jdarcangelo) → review+
Comment 4•8 years ago
|
||
Landed on master:
https://github.com/mozilla-mobile/firefox-ios/commit/952a2dfd02c030793d3c256ded460aa75684db97
Landed on v10.x:
https://github.com/mozilla-mobile/firefox-ios/commit/0e6d096248cf6b25ba8fe11974908a383c619d6a
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Updated•8 years ago
|
Whiteboard: [needsuplift]
You need to log in
before you can comment on or make changes to this bug.
Description
•