New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 817580 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug

Blocking:
issue 784331



Sign in to add a comment

SyncCustomizationFragmentTest failing on test-o-phone

Project Member Reported by estevenson@chromium.org, Feb 28 2018

Issue description

Failing on:
- https://uberchromegw.corp.google.com/i/internal.client.clank/builders/test-o-phone/
- https://uberchromegw.corp.google.com/i/internal.client.clank/builders/test-n-phone/
- https://uberchromegw.corp.google.com/i/internal.client.clank/builders/test-go-phone/

failures:
org.chromium.chrome.browser.sync.SyncCustomizationFragmentTest#testDefaultControlStatesWithSyncOffThenOn
org.chromium.chrome.browser.sync.SyncCustomizationFragmentTest#testOpeningSettingsDoesntEnableSync
org.chromium.chrome.browser.sync.SyncCustomizationFragmentTest#testSyncEverythingAndDataTypes
org.chromium.chrome.browser.sync.SyncCustomizationFragmentTest#testPaymentsIntegrationChecked
org.chromium.chrome.browser.sync.SyncCustomizationFragmentTest#testPaymentsIntegrationCheckboxClearsServerAutofillCreditCards
org.chromium.chrome.browser.sync.SyncCustomizationFragmentTest#testChoosePassphraseTypeWhenSyncIsOff
org.chromium.chrome.browser.sync.SyncCustomizationFragmentTest#testPaymentsIntegrationCheckboxEnablesPaymentsIntegration
org.chromium.chrome.browser.sync.SyncCustomizationFragmentTest#testPassphraseCreation
org.chromium.chrome.browser.sync.SyncCustomizationFragmentTest#testPaymentsIntegrationEnabledByAutofillSyncCheckbox
org.chromium.chrome.browser.sync.SyncCustomizationFragmentTest#testPaymentsIntegrationEnabledBySyncEverything
org.chromium.chrome.browser.sync.SyncCustomizationFragmentTest#testEnterPassphraseWhenSyncIsOff
org.chromium.chrome.browser.sync.SyncCustomizationFragmentTest#testDefaultControlStatesWithSyncOnThenOff
org.chromium.chrome.browser.sync.SyncCustomizationFragmentTest#testPaymentsIntegrationCheckboxDisablesPaymentsIntegration
org.chromium.chrome.browser.sync.SyncCustomizationFragmentTest#testSyncSwitchClearsServerAutofillCreditCards
org.chromium.chrome.browser.sync.SyncCustomizationFragmentTest#testPaymentsIntegrationUnchecked
org.chromium.chrome.browser.sync.SyncCustomizationFragmentTest#testSyncSwitch
org.chromium.chrome.browser.sync.SyncCustomizationFragmentTest#testPaymentsIntegrationDisabledByAutofillSyncCheckbox
org.chromium.chrome.browser.sync.SyncCustomizationFragmentTest#testOpeningSettingsDoesntStartEngine
org.chromium.chrome.browser.sync.SyncCustomizationFragmentTest#testSettingDataTypes
org.chromium.chrome.browser.sync.SyncCustomizationFragmentTest#testPassphraseDialogDismissed


Looks to be due to a StrictMode problem - we'll need to add a StrictMode exception or fix the cause.

Logcat looks like: 

02-26 17:29:43.312 19794 19794 D StrictMode: StrictMode policy violation; ~duration=42 ms: android.os.StrictMode$StrictModeDiskReadViolation: policy=18153535 violation=2
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1440)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at java.io.UnixFileSystem.checkAccess(UnixFileSystem.java:251)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at java.io.File.exists(File.java:807)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.app.ContextImpl.getDataDir(ContextImpl.java:2194)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.app.ContextImpl.getPreferencesDir(ContextImpl.java:514)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.app.ContextImpl.getSharedPreferencesPath(ContextImpl.java:711)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:365)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.content.ContextWrapper.getSharedPreferences(ContextWrapper.java:166)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.preference.PreferenceManager.getSharedPreferences(PreferenceManager.java:510)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.preference.Preference.getSharedPreferences(Preference.java:1204)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.preference.Preference.dispatchSetInitialValue(Preference.java:1555)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.preference.Preference.onAttachedToHierarchy(Preference.java:1328)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.preference.PreferenceGroup.addPreference(PreferenceGroup.java:163)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.preference.PreferenceGroup.addItemFromInflater(PreferenceGroup.java:105)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.preference.PreferenceGroup.addItemFromInflater(PreferenceGroup.java:101)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.preference.GenericInflater.rInflate(GenericInflater.java:490)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.preference.GenericInflater.inflate(GenericInflater.java:327)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.preference.GenericInflater.inflate(GenericInflater.java:264)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.preference.PreferenceManager.inflateFromResource(PreferenceManager.java:324)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.preference.PreferenceFragment.addPreferencesFromResource(PreferenceFragment.java:326)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at org.chromium.chrome.browser.sync.ui.SyncCustomizationFragment.onCreateView(SyncCustomizationFragment.java:161)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.app.Fragment.performCreateView(Fragment.java:2508)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1279)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.app.FragmentManagerImpl.addAddedFragments(FragmentManager.java:2402)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2181)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2137)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2038)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.app.FragmentManagerImpl.dispatchMoveToState(FragmentManager.java:3027)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:2974)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.app.FragmentController.dispatchActivityCreated(FragmentController.java:178)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.app.Activity.performCreateCommon(Activity.java:6961)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.app.Activity.performCreate(Activity.java:6969)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1213)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.support.test.runner.MonitoringInstrumentation.callActivityOnCreate(MonitoringInstrumentation.java:532)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2737)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2862)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.app.ActivityThread.-wrap11(Unknown Source:0)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.os.Handler.dispatchMessage(Handler.java:106)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.os.Looper.loop(Looper.java:164)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at android.app.ActivityThread.main(ActivityThread.java:6533)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at java.lang.reflect.Method.invoke(Native Method)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
02-26 17:29:43.312 19794 19794 D StrictMode: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:808)
 
Owner: tschumann@chromium.org
Looks like it's during inflation of the fragment, so sounds like we'll have to have an exception for this here.

tschumann: Could you triage this?
Owner: mastiz@chromium.org
Status: Assigned (was: Untriaged)
Labels: Sync-Triaged

Sign in to add a comment