Skip to content
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

BLTNItemManageranimated Crash #140

Open
BaranBerk opened this issue Jan 6, 2019 · 1 comment
Open

BLTNItemManageranimated Crash #140

BaranBerk opened this issue Jan 6, 2019 · 1 comment
Labels

Comments

@BaranBerk
Copy link

Problem Description:
Hello we are getting crash reports, can anybody help

BLTNItemManager.swift line 629
BLTNItemManageranimated(_:)

Crashed: com.apple.main-thread
EXC_BREAKPOINT 0x00000001046dc150

Steps to reproduce:
I cannot reproduce it
Here is how I call it:

BLTNPageItem* page = [[BLTNPageItem alloc] initWithTitle:NSLocalizedString(@"Bltn", comment)];
    self.bulletinManager = [[BLTNItemManager alloc] initWithRootItem:page];
    self.bulletinManager.statusBarAppearance = BLTNStatusBarAppearanceAutomatic;
    self.bulletinManager.backgroundViewStyle = BLTNBackgroundViewStyle.blurredLight;
    
    page.image = [UIImage imageNamed:@"deal"];
    
    page.descriptionText = NSLocalizedString(@"MyString", comment);
    page.actionButtonTitle = NSLocalizedString(@"Invite", comment);
    page.appearance.actionButtonColor = [UIColor colorWithRed:30.0/255.0 green:52.0/255.0 blue:98.0/255.0 alpha:1];
    
    page.dismissable = YES;
    
    page.actionHandler = ^(BLTNActionItem * _Nonnull _item) {
        [[_item manager] dismissBulletinAnimated:YES];
        [FIRAnalytics logEventWithName:@"myEvent" parameters:nil];
        [self myMethod]
    };
    [self.bulletinManager showBulletinAboveViewController:self animated:YES completion:NULL];

Environment:

  • iOS 12
    Crash Log
    Crashed: com.apple.main-thread
    0 BLTNBoard 0x1046dc150 BLTNItemManageranimated(_:) (BLTNItemManager.swift:629)
    1 BLTNBoard 0x1046e7b24 $S9BLTNBoard22BulletinViewControllerC9handleTap33_0B57E49989350585F38B5C81B87413D6LL10recognizerySo22UITapGestureRecognizerC_tFTo ()
    2 UIKitCore 0x22188b088 + 64
    3 UIKitCore 0x2218936a4 + 124
    4 UIKitCore 0x221890f28 + 320
    5 UIKitCore 0x221890410 + 764
    6 UIKitCore 0x221883718 + 1096
    7 UIKitCore 0x221883284 + 384
    8 UIKitCore 0x221883054 + 204
    9 UIKitCore 0x221caedf4 + 3128
    10 UIKitCore 0x221c8e10c + 340
    11 UIKit 0x215bab678 -[UIApplicationAccessibility sendEvent:] + 100
    12 UIKitCore 0x221d5cf68 + 1620
    13 UIKitCore 0x221d5f960 + 4740
    14 UIKitCore 0x221d58450 + 152
    15 CoreFoundation 0x1f48ed1f0 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 24
    16 CoreFoundation 0x1f48ed170 __CFRunLoopDoSource0 + 88
    17 CoreFoundation 0x1f48eca54 __CFRunLoopDoSources0 + 176
    18 CoreFoundation 0x1f48e7920 __CFRunLoopRun + 1040
    19 CoreFoundation 0x1f48e71f0 CFRunLoopRunSpecific + 436
    20 GraphicsServices 0x1f6b60584 GSEventRunModal + 100
    21 UIKitCore 0x221c72d40 UIApplicationMain + 212
    22 lookAtMe 0x1043c6684 main (main.m:14)
    23 libdyld.dylib 0x1f43a6bb4 start + 4

Thank you

@alexisakers
Copy link
Owner

Hello! Could you let me know what version of the library you’re using?

It seems from the stack that the user might have VoiceOver enabled. Can you try to reproduce the crash in this setting?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants