darodriguezalv / mytracks

Automatically exported from code.google.com/p/mytracks
0 stars 0 forks source link

sqllite W - strict policy violation #1187

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. power on phone
2. init sequence leads to logcat errors
3.

And 4.1.2

MTrk 2.0.2

D/StrictMode(30376): StrictMode policy violation; ~duration=81 ms: 
android.os.StrictMode$StrictModeDiskWriteViolation: policy=21 violation=1
D/StrictMode(30376):    at 
android.os.StrictMode$AndroidBlockGuardPolicy.onWriteToDisk(StrictMode.java:1081
)
D/StrictMode(30376):    at 
android.database.sqlite.SQLiteConnection.applyBlockGuardPolicy(SQLiteConnection.
java:1036)
D/StrictMode(30376):    at 
android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConne
ction.java:772)
D/StrictMode(30376):    at 
android.database.sqlite.SQLiteSession.executeForLastInsertedRowId(SQLiteSession.
java:788)
D/StrictMode(30376):    at 
android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:86)
D/StrictMode(30376):    at 
android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:
1469)
D/StrictMode(30376):    at 
android.database.sqlite.SQLiteDatabase.insert(SQLiteDatabase.java:1339)
D/StrictMode(30376):    at com.google.android.apps.analytics.v.a(Unknown Source)
D/StrictMode(30376):    at com.google.android.apps.analytics.v.a(Unknown Source)
D/StrictMode(30376):    at com.google.android.apps.analytics.v.a(Unknown Source)
D/StrictMode(30376):    at com.google.android.apps.analytics.i.a(Unknown Source)
D/StrictMode(30376):    at com.google.android.apps.mytracks.b.a.a(MT:48)
D/StrictMode(30376):    at 
com.google.android.apps.mytracks.MyTracksApplication.onCreate(MT:39)
D/StrictMode(30376):    at 
android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:999)
D/StrictMode(30376):    at 
android.app.ActivityThread.handleBindApplication(ActivityThread.java:4151)
D/StrictMode(30376):    at 
android.app.ActivityThread.access$1300(ActivityThread.java:130)
D/StrictMode(30376):    at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1255)
D/StrictMode(30376):    at android.os.Handler.dispatchMessage(Handler.java:99)
D/StrictMode(30376):    at android.os.Looper.loop(Looper.java:137)
D/StrictMode(30376):    at 
android.app.ActivityThread.main(ActivityThread.java:4745)
D/StrictMode(30376):    at java.lang.reflect.Method.invokeNative(Native Method)
D/StrictMode(30376):    at java.lang.reflect.Method.invoke(Method.java:511)
D/StrictMode(30376):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
D/StrictMode(30376):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
D/StrictMode(30376):    at dalvik.system.NativeStart.main(Native Method)

Original issue reported on code.google.com by rowntree...@gmail.com on 7 Nov 2012 at 4:08

GoogleCodeExporter commented 9 years ago
StrictMode should be turned off for the release builds.
Can you confirm if you are installing My Tracks from the Play Store?
thanks

Original comment by jshih@google.com on 7 Nov 2012 at 5:30

GoogleCodeExporter commented 9 years ago
dont know..

i will bounce the install to ensure that i have it from PLAY-store.

Original comment by rowntree...@gmail.com on 7 Nov 2012 at 8:00

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
reinstall MT 2.0.2 from google play . did not wipe cache or anything.. just 
uninstall MTPackage followed by reinstall at PLAY...

same error on rooted GNexus running 4.1.2...

E/StrictMode( 2366): class com.google.android.apps.mytracks.TrackListActivity; 
instances=2; limit=1
E/StrictMode( 2366): android.os.StrictMode$InstanceCountViolation: class 
com.google.android.apps.mytracks.TrackListActivity; instances=2; limit=1
E/StrictMode( 2366):    at 
android.os.StrictMode.setClassInstanceLimit(StrictMode.java:1)
E/StrictMode( 2366): A resource was acquired at attached stack trace but never 
released. See java.io.Closeable for information on avoiding resource leaks.
E/StrictMode( 2366): java.lang.Throwable: Explicit termination method 'close' 
not called
E/StrictMode( 2366):    at dalvik.system.CloseGuard.open(CloseGuard.java:184)
E/StrictMode( 2366):    at 
android.database.CursorWindow.<init>(CursorWindow.java:137)
E/StrictMode( 2366):    at 
android.database.CursorWindow.<init>(CursorWindow.java:41)
E/StrictMode( 2366):    at 
android.database.CursorWindow$1.createFromParcel(CursorWindow.java:681)
E/StrictMode( 2366):    at 
android.database.CursorWindow$1.createFromParcel(CursorWindow.java:679)
E/StrictMode( 2366):    at 
android.database.BulkCursorDescriptor.readFromParcel(BulkCursorDescriptor.java:7
5)
E/StrictMode( 2366):    at 
android.database.BulkCursorDescriptor$1.createFromParcel(BulkCursorDescriptor.ja
va:34)
E/StrictMode( 2366):    at 
android.database.BulkCursorDescriptor$1.createFromParcel(BulkCursorDescriptor.ja
va:30)
E/StrictMode( 2366):    at 
android.content.ContentProviderProxy.query(ContentProviderNative.java:369)
E/StrictMode( 2366):    at 
android.content.ContentResolver.query(ContentResolver.java:370)
E/StrictMode( 2366):    at 
android.content.ContentResolver.query(ContentResolver.java:313)
E/StrictMode( 2366):    at 
android_maps_conflict_avoidance.com.google.common.android.AndroidConfig.getSetti
ng(AndroidConfig.java:216)
E/StrictMode( 2366):    at 
android_maps_conflict_avoidance.com.google.common.android.AndroidConfig.getDistr
ibutionChannelInternal(AndroidConfig.java:195)
E/StrictMode( 2366):    at 
android_maps_conflict_avoidance.com.google.common.Config.init(Config.java:273)
E/StrictMode( 2366):    at 
android_maps_conflict_avoidance.com.google.common.android.AndroidConfig.<init>(A
ndroidConfig.java:100)
E/StrictMode( 2366):    at 
android_maps_conflict_avoidance.com.google.common.android.AndroidConfig.<init>(A
ndroidConfig.java:87)
E/StrictMode( 2366):    at 
com.google.android.maps.MapActivity.onCreate(MapActivity.java:419)
E/StrictMode( 2366):    at 
android.support.v4.app.FragmentActivity.onCreate(Unknown Source)
E/StrictMode( 2366):    at 
com.google.android.apps.mytracks.TrackListActivity.onCreate(MT:331)
E/StrictMode( 2366):    at android.app.Activity.performCreate(Activity.java:5008)
E/StrictMode( 2366):    at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
E/StrictMode( 2366):    at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
E/StrictMode( 2366):    at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
E/StrictMode( 2366):    at 
android.app.ActivityThread.access$600(ActivityThread.java:130)
E/StrictMode( 2366):    at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
E/StrictMode( 2366):    at android.os.Handler.dispatchMessage(Handler.java:99)
E/StrictMode( 2366):    at android.os.Looper.loop(Looper.java:137)
E/StrictMode( 2366):    at 
android.app.ActivityThread.main(ActivityThread.java:4745)
E/StrictMode( 2366):    at java.lang.reflect.Method.invokeNative(Native Method)
E/StrictMode( 2366):    at java.lang.reflect.Method.invoke(Method.java:511)
E/StrictMode( 2366):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
E/StrictMode( 2366):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
E/StrictMode( 2366):    at dalvik.system.NativeStart.main(Native Method)
E/StrictMode( 2366): A resource was acquired at attached stack trace but never 
released. See java.io.Closeable for information on avoiding resource leaks.
E/StrictMode( 2366): java.lang.Throwable: Explicit termination method 'close' 
not called
E/StrictMode( 2366):    at dalvik.system.CloseGuard.open(CloseGuard.java:184)
E/StrictMode( 2366):    at 
android.content.ContentResolver$CursorWrapperInner.<init>(ContentResolver.java:1
835)
E/StrictMode( 2366):    at 
android.content.ContentResolver.query(ContentResolver.java:392)
E/StrictMode( 2366):    at 
android.content.ContentResolver.query(ContentResolver.java:313)
E/StrictMode( 2366):    at 
android_maps_conflict_avoidance.com.google.common.android.AndroidConfig.getSetti
ng(AndroidConfig.java:216)
E/StrictMode( 2366):    at 
android_maps_conflict_avoidance.com.google.common.android.AndroidConfig.getDistr
ibutionChannelInternal(AndroidConfig.java:195)
E/StrictMode( 2366):    at 
android_maps_conflict_avoidance.com.google.common.Config.init(Config.java:273)
E/StrictMode( 2366):    at 
android_maps_conflict_avoidance.com.google.common.android.AndroidConfig.<init>(A
ndroidConfig.java:100)
E/StrictMode( 2366):    at 
android_maps_conflict_avoidance.com.google.common.android.AndroidConfig.<init>(A
ndroidConfig.java:87)
E/StrictMode( 2366):    at 
com.google.android.maps.MapActivity.onCreate(MapActivity.java:419)
E/StrictMode( 2366):    at 
android.support.v4.app.FragmentActivity.onCreate(Unknown Source)
E/StrictMode( 2366):    at 
com.google.android.apps.mytracks.TrackListActivity.onCreate(MT:331)
E/StrictMode( 2366):    at android.app.Activity.performCreate(Activity.java:5008)
E/StrictMode( 2366):    at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
E/StrictMode( 2366):    at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
E/StrictMode( 2366):    at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
E/StrictMode( 2366):    at 
android.app.ActivityThread.access$600(ActivityThread.java:130)
E/StrictMode( 2366):    at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
E/StrictMode( 2366):    at android.os.Handler.dispatchMessage(Handler.java:99)
E/StrictMode( 2366):    at android.os.Looper.loop(Looper.java:137)
E/StrictMode( 2366):    at 
android.app.ActivityThread.main(ActivityThread.java:4745)
E/StrictMode( 2366):    at java.lang.reflect.Method.invokeNative(Native Method)
E/StrictMode( 2366):    at java.lang.reflect.Method.invoke(Method.java:511)
E/StrictMode( 2366):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
E/StrictMode( 2366):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
E/StrictMode( 2366):    at dalvik.system.NativeStart.main(Native Method)
W/CursorWrapperInner( 2366): Cursor finalized without prior close()
D/PhonemeUpdater( 1212): sync contact phonemes: 0 seconds

Original comment by rowntree...@gmail.com on 7 Nov 2012 at 8:10

GoogleCodeExporter commented 9 years ago
Will be fixed in the next release.

FYI. StrictMode is a tool used in development. It should not have been enabled 
for release build.

Original comment by jshih@google.com on 10 Nov 2012 at 6:31