Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disk Read violation when running StrictMode with Plaid SDK #39

Closed
horowitz opened this issue Feb 24, 2020 · 3 comments
Closed

Disk Read violation when running StrictMode with Plaid SDK #39

horowitz opened this issue Feb 24, 2020 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@horowitz
Copy link

horowitz commented Feb 24, 2020

Hello,

Whenever I run my app on StrictMode I get a DiskViolation when starting the Plaid flow
I'll add here the stacktrace

StrictMode policy violation; ~duration=37 ms: android.os.strictmode.DiskReadViolation
        at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1556)
        at libcore.io.BlockGuardOs.access(BlockGuardOs.java:69)
        at libcore.io.ForwardingOs.access(ForwardingOs.java:73)
        at android.app.ActivityThread$AndroidOs.access(ActivityThread.java:7246)
        at java.io.UnixFileSystem.checkAccess(UnixFileSystem.java:281)
        at java.io.File.exists(File.java:815)
        at com.plaid.storage.PlaidSecureStorage.loadData(PlaidSecureStorage.kt:108)
        at com.plaid.analytics.PlaidAnalyticsImpl.loadIdentity(PlaidAnalyticsImpl.kt:153)
        at com.plaid.analytics.PlaidAnalyticsImpl.getUserId(PlaidAnalyticsImpl.kt:47)
        at com.plaid.analytics.PlaidAnalyticsImpl.track(PlaidAnalyticsImpl.kt:92)
        at com.plaid.analytics.PlaidAnalyticsImpl.track(PlaidAnalyticsImpl.kt:83)
        at com.plaid.link.LinkActivity.onResume(LinkActivity.kt:78)
        at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1453)
        at android.app.Activity.performResume(Activity.java:7962)
        at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4195)
        at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4237)
        at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:52)
        at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
        at android.os.Handler.dispatchMessage(Handler.java:107)
        at android.os.Looper.loop(Looper.java:214)
        at android.app.ActivityThread.main(ActivityThread.java:7356)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)

Let me know if you need more info

@zsweigart zsweigart added the bug Something isn't working label Feb 26, 2020
@zsweigart zsweigart self-assigned this Feb 26, 2020
@zsweigart
Copy link
Contributor

Hi @horowitz, we have investigated all strict mode violations and they will be patched in the next release in mid-march

@JeroenMols
Copy link
Contributor

JeroenMols commented Mar 18, 2020

Hi @horowitz, we've made a new release with the changes described by @zsweigart.
Can you please upgrade to Link SDK 1.2.0 and let us know if you are still seeing this issue?

@JeroenMols
Copy link
Contributor

Closing this issue due to a month of inactivity, should the problem still persist don't hesitate to reopen or file a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants