-
Notifications
You must be signed in to change notification settings - Fork 39
Closed
Labels
FixedIssue is fixed in a custom build and not released yetIssue is fixed in a custom build and not released yet
Description
Steps to Reproduce the Problem
- Enable StrictMode checks (https://developer.android.com/reference/android/os/StrictMode) for the app
- Start app with Instabug integrated
- Activity should be started
DiskReadViolation
is logged/fired about Disk access from the main thread
Expected Behavior
No disk I/O from the main/UI thread
Actual Behavior
I/O disk operations from the main thread which slows down App's UI creation and violated Strict mode policy
2020-01-09 18:15:45.501 8113-8113/by.stari4ek.tvirl.debug D/StrictMode: StrictMode policy violation; ~duration=194 ms: android.os.strictmode.DiskReadViolation
at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1504)
at java.io.UnixFileSystem.getSpace(UnixFileSystem.java:361)
at java.io.File.getUsableSpace(File.java:1868)
at com.instabug.library.util.DeviceStateProvider.getFreeStorage(DeviceStateProvider.java:2)
at com.instabug.library.tracking.a.onActivityResumed(InstabugActivityLifecycleListener.java:5)
at android.app.Application.dispatchActivityResumed(Application.java:239)
at android.app.Activity.onResume(Activity.java:1343)
at androidx.fragment.app.FragmentActivity.onResume(FragmentActivity.java:456)
at by.stari4ek.iptv4atv.tvinput.ui.main.MainMenuActivity.onResume(MainMenuActivity.java:48)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1412)
at android.app.Activity.performResume(Activity.java:7292)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3776)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3816)
at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:51)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:145)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6669)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Instabug integration code
Make sure to remove your app token.
SDK Version
9.0.4
Android Version
tested with API 28
Device Model
Emulator
Metadata
Metadata
Assignees
Labels
FixedIssue is fixed in a custom build and not released yetIssue is fixed in a custom build and not released yet