AbdFatah / analytics-issues

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

Crash due to SQLiteDiskIOException in GA for Android #140

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Name of affected component: Mobile Tracking

Name of related library, if applicable (e.g. Android, iOS, Snippets, etc.): 
Android (com.google.android.apps.analytics)

Issue summary:
I see a crash reported due to a SQLLiteDiskIOException.

Steps to reproduce issue:
I don't know how to reproduce this, it's in my Android Market crash reports

Expected output:
No crash.

Actual results:
crash.

Notes:
libGoogleAnalytics-1.2

Stack trace:

android.database.sqlite.SQLiteDiskIOException: disk I/O error: COMMIT;
at android.database.sqlite.SQLiteDatabase.native_execSQL(Native Method)
at android.database.sqlite.SQLiteDatabase.execSQL(SQLiteDatabase.java:1814)
at 
android.database.sqlite.SQLiteDatabase.endTransaction(SQLiteDatabase.java:639)
at com.google.android.apps.analytics.PersistentEventStore.putEvent(Unknown 
Source)
at com.google.android.apps.analytics.GoogleAnalyticsTracker.createEvent(Unknown 
Source)
at 
com.google.android.apps.analytics.GoogleAnalyticsTracker.trackPageView(Unknown 
Source)
at 
com.redfin.android.service.GoogleAnalyticsService.onHandleIntent(GoogleAnalytics
Service.java:58)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:59)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:144)
at android.os.HandlerThread.run(HandlerThread.java:60)

Original issue reported on code.google.com by navtej.s...@redfin.com on 10 Aug 2011 at 11:22

GoogleCodeExporter commented 9 years ago
We'll fix this in the next version of the SDK so that if there's a 
SQLiteException in this case, we catch the exception and log the problem.

As a workaround until then, you can add a try block around the track... calls 
to catch the SQLiteException.

Original comment by nrho...@google.com on 1 Nov 2011 at 7:07

GoogleCodeExporter commented 9 years ago
Fixed in 1.4 SDK

Original comment by nrho...@google.com on 18 Nov 2011 at 10:55