dakshika / wordsearch-android

Automatically exported from code.google.com/p/wordsearch-android
GNU General Public License v3.0
0 stars 0 forks source link

Analytics performs SQL operation on Main Thread, causing ANR in Android SDK #118

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create application that pumps out lots of events
2. enable auto-dispatch at 60s
3. start method tracing

What is the expected output? What do you see instead?
Expected output that Analytics does not perform CRUD operation on sqlite on 
Main thread, as disk IO can be slow, thus blocking Main thread and causing 
Application not Responding.

What version of the product are you using? On what operating system?
Android 2.2 on Nexus One. this issue is observed on all other android version.

Please provide any additional information below.

I've tried initializing tracker from background and submit all trackEvent calls 
from background thread. I've also tried calling dispatch myself from background 
thread, still, looks like tracker has a Handler initialized with mainLooper 
that blocks Main thread.

I'm attaching a trace file for your observation.

Original issue reported on code.google.com by a.krasno...@agilefusion.com on 7 Jul 2010 at 3:21

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by dahl.bre...@gmail.com on 5 Sep 2010 at 1:33

GoogleCodeExporter commented 8 years ago

Original comment by dahl.bre...@gmail.com on 5 Sep 2010 at 1:36

GoogleCodeExporter commented 8 years ago

Original comment by dahl.bre...@gmail.com on 5 Sep 2010 at 1:41

GoogleCodeExporter commented 8 years ago

Original comment by dahl.bre...@gmail.com on 5 Sep 2010 at 1:44

GoogleCodeExporter commented 8 years ago

Original comment by dahl.bre...@gmail.com on 9 Apr 2011 at 6:37