antew / RedditInPictures

An image browser for Reddit for Android 2.2+
Apache License 2.0
9 stars 4 forks source link

Strict Mode Violations on Full Refresh #146

Closed DavidTPate closed 10 years ago

DavidTPate commented 10 years ago

Receive the following stack traces (in order) whenever I hit the Full Refresh button on the Nexus S Android 2.3.3 (API 10).

com.antew.redditinpictures.pro D/StrictMode﹕ StrictMode policy violation; ~duration=351 ms: android.os.StrictMode$StrictModeDiskWriteViolation: policy=23 violation=1
            at android.os.StrictMode$AndroidBlockGuardPolicy.onWriteToDisk(StrictMode.java:732)
            at android.database.sqlite.SQLiteDatabase.delete(SQLiteDatabase.java:1616)
            at com.antew.redditinpictures.library.provider.RedditProvider.delete(RedditProvider.java:135)
            at android.content.ContentProvider$Transport.delete(ContentProvider.java:222)
            at android.content.ContentResolver.delete(ContentResolver.java:692)
            at com.antew.redditinpictures.library.util.SubredditUtil.deletePostsForSubreddit(SubredditUtil.java:79)
            at com.antew.redditinpictures.library.service.RedditService.getPosts(RedditService.java:46)
            at com.antew.redditinpictures.library.ui.base.BaseFragmentActivityWithMenu.forceRefreshCurrentSubreddit(BaseFragmentActivityWithMenu.java:306)
            at com.antew.redditinpictures.library.ui.RedditFragmentActivity.onOptionsItemSelected(RedditFragmentActivity.java:227)
            at android.support.v4.app.Watson.onMenuItemSelected(Watson.java:118)
            at com.actionbarsherlock.ActionBarSherlock.callbackOptionsItemSelected(ActionBarSherlock.java:604)
            at com.actionbarsherlock.internal.ActionBarSherlockCompat.onMenuItemSelected(ActionBarSherlockCompat.java:516)
            at com.actionbarsherlock.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:744)
            at com.actionbarsherlock.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:148)
            at com.actionbarsherlock.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:885)
            at com.actionbarsherlock.internal.view.menu.ActionMenuView.invokeItem(ActionMenuView.java:510)
            at com.actionbarsherlock.internal.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:146)
            at android.view.View.performClick(View.java:2485)
            at android.view.View$PerformClick.run(View.java:9080)
            at android.os.Handler.handleCallback(Handler.java:587)
            at android.os.Handler.dispatchMessage(Handler.java:92)
            at android.os.Looper.loop(Looper.java:123)
            at android.app.ActivityThread.main(ActivityThread.java:3683)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:507)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
            at dalvik.system.NativeStart.main(Native Method)
04-19 17:57:02.988      504-504/com.antew.redditinpictures.pro D/StrictMode﹕ StrictMode policy violation; ~duration=345 ms: android.os.StrictMode$StrictModeDiskWriteViolation: policy=23 violation=1
            at android.os.StrictMode$AndroidBlockGuardPolicy.onWriteToDisk(StrictMode.java:732)
            at android.database.sqlite.SQLiteStatement.execute(SQLiteStatement.java:52)
            at android.database.sqlite.SQLiteDatabase.delete(SQLiteDatabase.java:1632)
            at com.antew.redditinpictures.library.provider.RedditProvider.delete(RedditProvider.java:135)
            at android.content.ContentProvider$Transport.delete(ContentProvider.java:222)
            at android.content.ContentResolver.delete(ContentResolver.java:692)
            at com.antew.redditinpictures.library.util.SubredditUtil.deletePostsForSubreddit(SubredditUtil.java:79)
            at com.antew.redditinpictures.library.service.RedditService.getPosts(RedditService.java:46)
            at com.antew.redditinpictures.library.ui.base.BaseFragmentActivityWithMenu.forceRefreshCurrentSubreddit(BaseFragmentActivityWithMenu.java:306)
            at com.antew.redditinpictures.library.ui.RedditFragmentActivity.onOptionsItemSelected(RedditFragmentActivity.java:227)
            at android.support.v4.app.Watson.onMenuItemSelected(Watson.java:118)
            at com.actionbarsherlock.ActionBarSherlock.callbackOptionsItemSelected(ActionBarSherlock.java:604)
            at com.actionbarsherlock.internal.ActionBarSherlockCompat.onMenuItemSelected(ActionBarSherlockCompat.java:516)
            at com.actionbarsherlock.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:744)
            at com.actionbarsherlock.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:148)
            at com.actionbarsherlock.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:885)
            at com.actionbarsherlock.internal.view.menu.ActionMenuView.invokeItem(ActionMenuView.java:510)
            at com.actionbarsherlock.internal.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:146)
            at android.view.View.performClick(View.java:2485)
            at android.view.View$PerformClick.run(View.java:9080)
            at android.os.Handler.handleCallback(Handler.java:587)
            at android.os.Handler.dispatchMessage(Handler.java:92)
            at android.os.Looper.loop(Looper.java:123)
            at android.app.ActivityThread.main(ActivityThread.java:3683)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:507)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
            at dalvik.system.NativeStart.main(Native Method)
04-19 17:57:03.008      504-504/com.antew.redditinpictures.pro D/StrictMode﹕ StrictMode policy violation; ~duration=303 ms: android.os.StrictMode$StrictModeDiskWriteViolation: policy=23 violation=1
            at android.os.StrictMode$AndroidBlockGuardPolicy.onWriteToDisk(StrictMode.java:732)
            at android.database.sqlite.SQLiteDatabase.delete(SQLiteDatabase.java:1616)
            at com.antew.redditinpictures.library.provider.RedditProvider.delete(RedditProvider.java:135)
            at android.content.ContentProvider$Transport.delete(ContentProvider.java:222)
            at android.content.ContentResolver.delete(ContentResolver.java:692)
            at com.antew.redditinpictures.library.util.SubredditUtil.deletePostsForSubreddit(SubredditUtil.java:80)
            at com.antew.redditinpictures.library.service.RedditService.getPosts(RedditService.java:46)
            at com.antew.redditinpictures.library.ui.base.BaseFragmentActivityWithMenu.forceRefreshCurrentSubreddit(BaseFragmentActivityWithMenu.java:306)
            at com.antew.redditinpictures.library.ui.RedditFragmentActivity.onOptionsItemSelected(RedditFragmentActivity.java:227)
            at android.support.v4.app.Watson.onMenuItemSelected(Watson.java:118)
            at com.actionbarsherlock.ActionBarSherlock.callbackOptionsItemSelected(ActionBarSherlock.java:604)
            at com.actionbarsherlock.internal.ActionBarSherlockCompat.onMenuItemSelected(ActionBarSherlockCompat.java:516)
            at com.actionbarsherlock.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:744)
            at com.actionbarsherlock.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:148)
            at com.actionbarsherlock.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:885)
            at com.actionbarsherlock.internal.view.menu.ActionMenuView.invokeItem(ActionMenuView.java:510)
            at com.actionbarsherlock.internal.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:146)
            at android.view.View.performClick(View.java:2485)
            at android.view.View$PerformClick.run(View.java:9080)
            at android.os.Handler.handleCallback(Handler.java:587)
            at android.os.Handler.dispatchMessage(Handler.java:92)
            at android.os.Looper.loop(Looper.java:123)
            at android.app.ActivityThread.main(ActivityThread.java:3683)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:507)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
            at dalvik.system.NativeStart.main(Native Method)
04-19 17:57:03.008      504-504/com.antew.redditinpictures.pro D/StrictMode﹕ StrictMode policy violation; ~duration=294 ms: android.os.StrictMode$StrictModeDiskWriteViolation: policy=23 violation=1
            at android.os.StrictMode$AndroidBlockGuardPolicy.onWriteToDisk(StrictMode.java:732)
            at android.database.sqlite.SQLiteStatement.execute(SQLiteStatement.java:52)
            at android.database.sqlite.SQLiteDatabase.delete(SQLiteDatabase.java:1632)
            at com.antew.redditinpictures.library.provider.RedditProvider.delete(RedditProvider.java:135)
            at android.content.ContentProvider$Transport.delete(ContentProvider.java:222)
            at android.content.ContentResolver.delete(ContentResolver.java:692)
            at com.antew.redditinpictures.library.util.SubredditUtil.deletePostsForSubreddit(SubredditUtil.java:80)
            at com.antew.redditinpictures.library.service.RedditService.getPosts(RedditService.java:46)
            at com.antew.redditinpictures.library.ui.base.BaseFragmentActivityWithMenu.forceRefreshCurrentSubreddit(BaseFragmentActivityWithMenu.java:306)
            at com.antew.redditinpictures.library.ui.RedditFragmentActivity.onOptionsItemSelected(RedditFragmentActivity.java:227)
            at android.support.v4.app.Watson.onMenuItemSelected(Watson.java:118)
            at com.actionbarsherlock.ActionBarSherlock.callbackOptionsItemSelected(ActionBarSherlock.java:604)
            at com.actionbarsherlock.internal.ActionBarSherlockCompat.onMenuItemSelected(ActionBarSherlockCompat.java:516)
            at com.actionbarsherlock.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:744)
            at com.actionbarsherlock.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:148)
            at com.actionbarsherlock.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:885)
            at com.actionbarsherlock.internal.view.menu.ActionMenuView.invokeItem(ActionMenuView.java:510)
            at com.actionbarsherlock.internal.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:146)
            at android.view.View.performClick(View.java:2485)
            at android.view.View$PerformClick.run(View.java:9080)
            at android.os.Handler.handleCallback(Handler.java:587)
            at android.os.Handler.dispatchMessage(Handler.java:92)
            at android.os.Looper.loop(Looper.java:123)
            at android.app.ActivityThread.main(ActivityThread.java:3683)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:507)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
            at dalvik.system.NativeStart.main(Native Method)