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

DiskRead Violation when calling in Application class #849

Open
akhil-handa opened this issue Oct 16, 2024 · 0 comments
Open

DiskRead Violation when calling in Application class #849

akhil-handa opened this issue Oct 16, 2024 · 0 comments

Comments

@akhil-handa
Copy link

Mixpanel Version : 7.5.2

Violation details

StrictMode policy violation; ~duration=2528 ms: android.os.strictmode.DiskReadViolation (Ask Gemini)
                                                                                                    	at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1596)
                                                                                                    	at android.app.SharedPreferencesImpl.awaitLoadedLocked(SharedPreferencesImpl.java:275)
                                                                                                    	at android.app.SharedPreferencesImpl.getAll(SharedPreferencesImpl.java:291)
                                                                                                    	at com.mixpanel.android.mpmetrics.PersistentIdentity.getTimeEvents(PersistentIdentity.java:294)
                                                                                                    	at com.mixpanel.android.mpmetrics.MixpanelAPI.<init>(MixpanelAPI.java:158)
                                                                                                    	at com.mixpanel.android.mpmetrics.MixpanelAPI.<init>(MixpanelAPI.java:122)
                                                                                                    	at com.mixpanel.android.mpmetrics.MixpanelAPI.getInstance(MixpanelAPI.java:454)
                                                                                                    	at com.mixpanel.android.mpmetrics.MixpanelAPI.getInstance(MixpanelAPI.java:227)
                                                                                                    	at zophop.app.etim.DependencyFactory$Companion.initAnalytics(DependencyFactory.kt:145)
                                                                                                    	at zophop.app.etim.DependencyFactory$Companion.init(DependencyFactory.kt:347)
                                                                                                    	at zophop.app.etim.DependencyFactory.init(Unknown Source:2)
                                                                                                    	at zophop.app.etim.application.EtimApplication.onCreate(EtimApplication.java:132)
                                                                                                    	at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1192)
                                                                                                    	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6776)
                                                                                                    	at android.app.ActivityThread.access$1500(ActivityThread.java:244)
                                                                                                    	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1963)
                                                                                                    	at android.os.Handler.dispatchMessage(Handler.java:106)
                                                                                                    	at android.os.Looper.loop(Looper.java:223)
                                                                                                    	at android.app.ActivityThread.main(ActivityThread.java:7723)
                                                                                                    	at java.lang.reflect.Method.invoke(Native Method)
                                                                                                    	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:612)
                                                                                                    	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1005)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant