Rich-text Reply

iOS Optimizely causing App to crash on send event

ben 09-10-14

iOS Optimizely causing App to crash on send event

I was just wondering if anyone else using the beta iOS has had any issues with optimizely casuing the app to crash on a failed event send?

 

here is a snippet from our crash log. It seems to happen to one or two users once a day.

 

OptimizelySwizzler.m line 266

-[UIWindow(OptimizelySwizzle) optimizely_sendEvent:]

Ben Cole
Optimization Co-ordinator at Widerfunnel

ben
Level 2

Pam 09-10-14
 

Re: iOS Optimizely causing App to crash on send event

@ben Thanks for your question! I am working with our Engineering team to identify the root cause of this issue and will provide an update by the end of today.
Pam
Optimizely
Denis 04-17-15
 

Re: iOS Optimizely causing App to crash on send event

My crash reports tool also shows a considerable number of crashes for the same event.

 

Here it is:

OptimizelySwizzler.m line 289
optimizely_sendEvent
 
Is there a fix for this? 
Level 1
Pam 04-17-15
 

Re: iOS Optimizely causing App to crash on send event

@Denis thanks for your question!  Are you able to provide the additional information:

  • Full crash log
  • SDK version you're using
  • How this can be reproduced in your app?

We have found in certain cases that this type of crash may or may not be related something in Optimizely.  I will follow up in a separate e-mail to further dive into the specific issue you're seeing in your app.

Pam
Optimizely
Denis 04-17-15
 

Re: iOS Optimizely causing App to crash on send event

Thanks Pam!

I have already responded to your e-mail with further information.
Level 1
nicolas 06-29-15
 

Re: iOS Optimizely causing App to crash on send event

Hi,

 

I recently added Optimizely to my app and experienced the same crash problem on the first day of operation. I have disabled the experiments straight away and I havent seen anymore crashes.

 

Specially I get the following exception: 

Last Exception Backtrace:

1CoreFoundation__exceptionPreprocess + 132
2libobjc.A.dylibobjc_exception_throw + 56
3CoreFoundation-[NSObject(NSObject) doesNotRecognizeSelector:] + 216
4CoreFoundation___forwarding___ + 924
5CoreFoundation_CF_forwarding_prep_0 + 88
11Wurbleoptimizely_sendEvent (OptimizelySwizzler.m:289)
12UIKit-[UIApplication sendEvent:] + 260
21Wurblemain (main.m:14)
22libdyld.dylibstart + 0

 

This happended on an Iphone 6+, IOS 8.3. I am using Optimizely in combination with Amplitude.

 

Any advice on why this happens and what the fix is? 

 

Level 1
Pam 06-29-15
 

Re: iOS Optimizely causing App to crash on send event

@nicolas Thanks for reaching out!  It'd be great if you can provide more information about the crash you are seeing in your app, including:

  • Do you have steps you can provide on how to reproduce this issue?
  • What kind of experiment did you implement?  (i.e. Visual Editor, Live Variable, or Code Block change)
  • How often do you see these crashes happening?

I'll reach out to you separately via e-mail to follow up and see if we can find the root cause of what you're seeing.

Pam
Optimizely
dgriffin 08-03-15
 

Re: iOS Optimizely causing App to crash on send event

Hi guys, were you able to fix this issue? I am seeing this on Optimizely version 1.0.87

 

Thanks

Level 1
Pam 08-03-15
 

Re: iOS Optimizely causing App to crash on send event

@dgriffin Thanks for reaching out!  This issue is often not related to the Optimizely SDK.  Optimizely will often show up in the crash log (because we do swizzling in the app) but may not actually have caused the crash.  How Optimizely's SDK works is that it sees events that are sent and stores ones that match any tap goals that you have set up in your app. After that, the SDK passes through to the original sendEvents method in UIWindow.  You can view the sendEvent that we swizzle from UIWindow here.  It's possible that somehow the window is being released before their transition is over.  That's something to look at in the code.

 

In the meantime, I'll follow up with you over e-mail to see if we can find the root cause of the issue you're seeing.

Pam
Optimizely