包含范型类型的对象写入时 crash
- Dominant language
- Swift
- Stars
- 4.3k
- Forks
- 677
- PR merge metrics
- No merged PRs in 30d
Description
类的继承关系为 EndViewController : AbastractViewController : PropertyViewController : BasicViewController: BaseViewController
之前使用 PropertyViewController 时写值时正常, 后来增加了 AbastractViewController 一层后, 会偶尔写入时 crash, 崩在 AnyExtensions 中的 storage.assumingMemoryBound(to: self).pointee = this 这一行
demo: https://github.com/thisfin/StandardDemo
页面进入返回多点几次就能出现
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the AnyExtensions code at the reported storage.assumingMemoryBound line and reproduce the crash using the linked StandardDemo. Exercise the EndViewController and generic AbastractViewController hierarchy by entering and leaving the page repeatedly. Done means the reported write no longer crashes under this hierarchy.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100