-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DTAccessibilityElement accessibilityFrame] Crash with SEGV_ACCERR #1230
Comments
We already have a macro to use weak if the OS supports it. I made the necessary change. Please test if that resolves the issue. |
❤️ Thanks a lot. I have found the macro. I will test it in my next released version. And I will give feedback then. |
This #import <DTFoundation/DTWeakSupport.h>
static const CGPoint DTAccessibilityElementNullActivationPoint = {CGFLOAT_MAX, CGFLOAT_MAX};
@interface DTAccessibilityElement()
@property (nonatomic, DT_WEAK_PROPERTY) UIView *parentView;
@end
|
Hi there, our app recently encountered some crashes with users whose iPhone enabled the
Accessibility
functionality. Below are some crash Infos:Device Top 5
iPhone 11 78.57%
iPhone 12 Pro Max 19.64%
iPhone 12 1.79%
iOS version Top 5
14.3 (18C66) 83.02%
14.2 (18B111) 13.21%
14.2 (18B92) 3.77%
From the crash log, it seems like the
parentView
has been released somewhere. TheparentView
object is attributed byunsafe_unretained
. When theparentView
object has been released, it will be a bad access address. I think that's the point that caused this crash.So, if it is possible to upgrade the project target version higher than
iOS 4.3
and then replace theunsafe_unretained
toweak
? Thanks a lot.The text was updated successfully, but these errors were encountered: