kalnyc67 / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
0 stars 0 forks source link

iOS SDK v3.10 freeze + memory leak #617

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
---------------------------------------------------------------------------
NOTE: This issue tracking system is for Google Analytics developer products
only.
If you are not a developer/programmer visit:
http://www.google.com/analytics/support.html
---------------------------------------------------------------------------
Name of affected component: Mobile Tracking

Name of related library and version, if applicable (e.g. Android, iOS,
Snippets, etc.):

iOS SDK v3.10

Issue summary:
Provide a brief summary of the issue you're experiencing.

Freeze + memory leak after executing :
id<GAITracker> tracker = [[GAI sharedInstance] defaultTracker];
[tracker set:kGAIScreenName value:@"MyView"];
[tracker send:[[GAIDictionaryBuilder createAppView] build]];

Steps to reproduce issue:
1. Freshly added all dependencies and proper initialization in app delegate
2. In a view controller's viewDidAppear method, add the code above
3. Execute the app and make the view appear

Expected output:
What do you expect to see after performing the above steps?

No freeze nor memory leak !

Actual results:
What do you actually see after performing the above steps?

GAI tries to send hits, then freeze, memory leak (about +1mb/s) and this log 
repeatedly :

Apr 20 08:07:47 iPad-of-Pitt MyAppName[920] <Warning>: void 
SendDelegateMessage(NSInvocation *): delegate 
(webView:decidePolicyForNavigationAction:request:frame:decisionListener:) 
failed to return after waiting 10 seconds. main run loop mode: 
kCFRunLoopDefaultMode

Notes:
Provide any additional information which might be useful here. Feel free to
attach screenshots or sample code which demonstrates the issue being
described.

Original issue reported on code.google.com by pierre.m...@gmail.com on 20 Apr 2015 at 3:31

GoogleCodeExporter commented 9 years ago
Of course I understand that those calls are blocking the main thread.
I forgot to tell that it happens at least on iOS 8.3.

Original comment by pierre.m...@gmail.com on 20 Apr 2015 at 4:29