Skip to content

Logout doesn't immediately log users out #3547

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

Closed
sivaraam opened this issue Mar 18, 2020 · 31 comments · Fixed by #3649 or #3964
Closed

Logout doesn't immediately log users out #3547

sivaraam opened this issue Mar 18, 2020 · 31 comments · Fixed by #3649 or #3964
Labels

Comments

@sivaraam
Copy link
Member

Summary:
When I logout of the app, I see a "Please wait" loading dialog. After the dialog disappears, I expect to see the log-in page but it doesn't show up. The dialog just disappears and I'm able to use the app as if nothing happened. I'm not able to upload images, though. When I close the app and re-open it I see the login page.

Steps to reproduce:

  1. Open the app
  2. Log in to the app
  3. Log out using the "Log out" option in the side bar menu

I expect to see the log-in screen after that.

System logs:
I'm not sure if they are of any use but here are the logs I could get:

V/ActivityThread(26553): updateVisibility : ActivityRecord{1bb6898c token=android.os.BinderProxy@3bbe2786 {fr.free.nrw.commons/fr.free.nrw.commons.contributions.MainActivity}} show : false
D/ActivityManager(  754):  Launching fr.free.nrw.commons, updated priority
D/LocationManagerService(  754): request 3fea43f4 network Request[POWER_LOW network requested=+12s0ms fastest=+12s0ms] from fr.free.nrw.commons(10578)
D/LocationManagerService(  754): request 3fea43f4 gps Request[ACCURACY_FINE gps requested=+12s0ms fastest=+12s0ms] from fr.free.nrw.commons(10578)
E/ContributionsFragment(26553): onFragmentResumed fr.free.nrw.commons.contributions.ContributionsListFragment
E/BufferQueueCore(  188): [fr.free.nrw.commons/fr.free.nrw.commons.contributions.MainActivity] setDefaultMaxBufferCount: setting count to 3, previous is 2
D/StatusBarManagerService(  754): manageDisableList userId=0 what=0x0 pkg=Window{f81301a u0 d0 fr.free.nrw.commons/fr.free.nrw.commons.contributions.MainActivity}
V/WindowStateAnimator(  754): Finishing drawing window Window{f81301a u0 d0 fr.free.nrw.commons/fr.free.nrw.commons.contributions.MainActivity}: mDrawState=DRAW_PENDING
I/Timeline(  754): Timeline: Activity_windows_visible id: ActivityRecord{853b999 u0 fr.free.nrw.commons/.contributions.MainActivity t39860} time:129081857
V/WindowManager(  754): not Base app: Adding window Window{3fccd2bf u0 d0 fr.free.nrw.commons/fr.free.nrw.commons.contributions.MainActivity} at 10 of 14
D/StatusBarManagerService(  754): manageDisableList userId=0 what=0x0 pkg=Window{3fccd2bf u0 d0 fr.free.nrw.commons/fr.free.nrw.commons.contributions.MainActivity}
E/BufferQueueCore(  188): [fr.free.nrw.commons/fr.free.nrw.commons.contributions.MainActivity] setDefaultMaxBufferCount: setting count to 3, previous is 2
V/WindowStateAnimator(  754): Finishing drawing window Window{3fccd2bf u0 d0 fr.free.nrw.commons/fr.free.nrw.commons.contributions.MainActivity}: mDrawState=DRAW_PENDING
V/WindowStateAnimator(  754): Finishing drawing window Window{3fccd2bf u0 d0 fr.free.nrw.commons/fr.free.nrw.commons.contributions.MainActivity}: mDrawState=HAS_DRAWN
V/WindowManager(  754): not Base app: Adding window Window{3205dbdb u0 d0 fr.free.nrw.commons/fr.free.nrw.commons.contributions.MainActivity} at 11 of 15
W/System.err(26553): remove failed: ENOENT (No such file or directory) : /data/data/fr.free.nrw.commons/cache/okhttp-cache/99ec56b47be5d8d13a33c691c3ef9da3.0
W/System.err(26553): remove failed: ENOENT (No such file or directory) : /data/data/fr.free.nrw.commons/cache/okhttp-cache/99ec56b47be5d8d13a33c691c3ef9da3.1
E/BufferQueueCore(  188): [fr.free.nrw.commons/fr.free.nrw.commons.contributions.MainActivity] setDefaultMaxBufferCount: setting count to 3, previous is 2
V/WindowStateAnimator(  754): Finishing drawing window Window{3205dbdb u0 d0 fr.free.nrw.commons/fr.free.nrw.commons.contributions.MainActivity}: mDrawState=DRAW_PENDING
V/WindowStateAnimator(  754): Finishing drawing window Window{3205dbdb u0 d0 fr.free.nrw.commons/fr.free.nrw.commons.contributions.MainActivity}: mDrawState=HAS_DRAWN
W/System.err(26553): remove failed: ENOENT (No such file or directory) : /data/data/fr.free.nrw.commons/cache/okhttp-cache/99ec56b47be5d8d13a33c691c3ef9da3.0
W/System.err(26553): remove failed: ENOENT (No such file or directory) : /data/data/fr.free.nrw.commons/cache/okhttp-cache/99ec56b47be5d8d13a33c691c3ef9da3.1
D/StatusBarManagerService(  754): manageDisableList userId=0 what=0x0 pkg=Window{f81301a u0 d0 fr.free.nrw.commons/fr.free.nrw.commons.contributions.MainActivity}
I/ActivityManager(  754): Start proc 31146:fr.free.nrw.commons:auth/u0a578 for service fr.free.nrw.commons/.auth.WikiAccountAuthenticatorService
W/ResourcesManager(31146): getTopLevelResources: /data/app/fr.free.nrw.commons-1/base.apk / 1.0 running in fr.free.nrw.commons rsrc of package null
I/ACRA    (31146): ACRA is enabled for fr.free.nrw.commons, initializing...
W/System.err(31146): remove failed: ENOENT (No such file or directory) : /data/data/fr.free.nrw.commons/shared_prefs/fr.free.nrw.commons_preferences.xml.bak
W/System.err(31146): remove failed: ENOENT (No such file or directory) : /data/data/fr.free.nrw.commons/shared_prefs/MapboxSharedPreferences.xml.bak
D/SoLoader(31146): adding application source: com.facebook.soloader.DirectorySoSource[root = /data/app/fr.free.nrw.commons-1/lib/arm flags = 0]
D/SoLoader(31146): adding backup source from : com.facebook.soloader.ApkSoSource[root = /data/data/fr.free.nrw.commons/lib-main flags = 1]
D/SoLoader(31146): Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /data/app/fr.free.nrw.commons-1/lib/arm flags = 0]
D/SoLoader(31146): Preparing SO source: com.facebook.soloader.ApkSoSource[root = /data/data/fr.free.nrw.commons/lib-main flags = 1]
V/fb-UnpackingSoSource(31146): locked dso store /data/data/fr.free.nrw.commons/lib-main
V/fb-UnpackingSoSource(31146): releasing dso store lock for /data/data/fr.free.nrw.commons/lib-main (from syncer thread)
V/fb-UnpackingSoSource(31146): not releasing dso store lock for /data/data/fr.free.nrw.commons/lib-main (syncer thread started)
D/SoLoader(31146): libmapbox-gl.so not found on /data/data/fr.free.nrw.commons/lib-main
D/SoLoader(31146): libmapbox-gl.so found on /data/app/fr.free.nrw.commons-1/lib/arm
V/AlarmManagerEXT(  754): <AccPackages> fr.free.nrw.commons
E/SQLiteLog(26553): (28) file unlinked while open: /data/data/fr.free.nrw.commons/databases/commons.db
W/System.err(26553): remove failed: ENOENT (No such file or directory) : /data/data/fr.free.nrw.commons/cache/image_cache/v2.ols100.1

Device and Android version:
Samsung SM-J111F, Android 5.1.1

Commons app version:
2.12.3.623

@sivaraam sivaraam added the bug label Mar 18, 2020
@avivith
Copy link

avivith commented Mar 18, 2020

Hi. I would like to work on this issue.

@macgills
Copy link
Contributor

You are assigned @avivith

@madhurgupta10
Copy link
Collaborator

Just to mention that this issue is similar to #2764

@macgills
Copy link
Contributor

My apologies @madhurgupta10, that ticket is a year old and doesn't go into as much detail so I am considering closing it and instead focusing on this ticket.

Would you like to be assigned to this ticket and do you have the capacity for it currently?

@madhurgupta10
Copy link
Collaborator

My apologies @madhurgupta10, that ticket is a year old and doesn't go into as much detail so I am considering closing it and instead focusing on this ticket.

Would you like to be assigned to this ticket and do you have the capacity for it currently?

The old ticket can be closed and I am working on other issues right now. I would be happy if @avivith picks it up!

@sivaraam
Copy link
Member Author

Just to mention that this issue is similar to #2764

I'm not sure if this is a duplicate of that for the following reason: In my case, I actually don't see the login page at all after I logout. I waited for around 2 minutes and still didn't see the logout screen. 🤷‍♂ As mentioned in the description, I'm even able to go to other places such as Nearby, Explore etc.

@madhurgupta10
Copy link
Collaborator

madhurgupta10 commented Mar 19, 2020

Just to mention that this issue is similar to #2764

I'm not sure if this is a duplicate of that for the following reason: In my case, I actually don't see the login page at all after I logout. I waited for around 2 minutes and still didn't see the logout screen. 🤷‍♂ As mentioned in the description, I'm even able to go to other places such as Nearby, Explore etc.

One of the processes in logout is causing the delay, I remember trying to find out the root cause of it but stopped working on it after a few days. This issue is subjective to the user, for me I can log out instantly but sometimes I face the same issue.

@macgills
Copy link
Contributor

With this ticket I think we can "make logout work good"

I am not entirely aware how login/out works but can't we just delete a local token or something?

@avivith avivith removed their assignment Mar 23, 2020
@avivith
Copy link

avivith commented Mar 23, 2020

Sadly, I'm a little sick and don't manage to work currently. I hope someone else could solve this issue.

@sivaraam
Copy link
Member Author

@avivith It's fine. Take care of yourself.

@gouri-panda
Copy link
Contributor

Can I work on this issue? :)

@madhurgupta10
Copy link
Collaborator

@gouri-panda Sure but before implementation please discuss your approach and the root cause of the delay.

@sivaraam
Copy link
Member Author

sivaraam commented Apr 7, 2020

@gouri-panda Were you able to find the cause of this issue? Are you still working on this?

@gouri-panda
Copy link
Contributor

@sivaraam I am still working on this issue. Unfortunately, I can't find the root cause of this issue. If anyone interested in this issue. Please feel free to take this issue.:)

@sivaraam
Copy link
Member Author

@gouri-panda Thanks for the update. I'm unassigning the issue for now. Let us know if you get any leads, I'll assign it back :)

@madhurgupta10
Copy link
Collaborator

madhurgupta10 commented Apr 12, 2020

@sivaraam @macgills What I found out that particularly updateAllDatabases(); in

sessionManager.logout()
                .subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread())
                .subscribe(() -> {
                    Timber.d("All accounts have been removed");
                    clearImageCache();
                    //TODO: fix preference manager
                    defaultPrefs.clearAll();
                    defaultPrefs.putBoolean("firstrun", false);
                    updateAllDatabases();
                    logoutListener.onLogoutComplete();
                });

is responsible for the delay!

The reason seems to be due to this Exception - Cannot access database on the main thread since it may potentially lock the UI for a long period of time.

@gouri-panda
Copy link
Contributor

gouri-panda commented Apr 12, 2020

@madhurgupta10 If we don't execute the above code still it doesn't go back to the LoginActivity.

Cannot access database on the main thread since it may potentially lock the UI for a long period of time.

It works on the background thread. Does this affect the UI? correct me if I am wrong:)

@318anushka
Copy link
Contributor

@sivaraam @macgills What I found out that particularly updateAllDatabases(); in

Yes, particularly deleting table contributionDao.deleteAll(); is what causing it. Method which creates login activity is never called.

@madhurgupta10
Copy link
Collaborator

If we don't execute the above code still it doesn't go back to the LoginActivity.

@gouri-panda It does redirect to LoginActivity for me if I comment out that particular line.

It works on the background thread. Does this affect the UI? correct me if I am wrong:)

Ideally, it should but I got this exception while debugging.

@macgills
Copy link
Contributor

 .observeOn(AndroidSchedulers.mainThread())

In English "everything below this line runs on the main thread"

macgills pushed a commit that referenced this issue Apr 14, 2020
* fixed logout problem

fixed logout problem

fixed logout problem

fixed logout problem

fixed logout problem

* added error handling on logout
@sivaraam
Copy link
Member Author

I'm re-opening this as I still observe the issue I describe in the description when using the prodDebug version built with master pointing at 743e24c which has this PR merged.

@sivaraam sivaraam reopened this Apr 15, 2020
@macgills
Copy link
Contributor

@sivaraam it logs out for me

@macgills
Copy link
Contributor

I guess what could be happening is that the logout call failed somehow, we now have actual error printing for this so that should be obvious in logcat. We do however probably want to alert the user that logout failed, should that situation arise

@sivaraam
Copy link
Member Author

This is the "Error" only log that I see after I hit the "Yes" for the logout dialog:

04-17 00:46:23.221 23246-23246/? E/Zygote: MountEmulatedStorage()
04-17 00:46:23.221 23246-23246/? E/Zygote: v2
04-17 00:46:23.231 23246-23246/? E/SELinux: [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL
04-17 00:46:25.974 190-190/? E/BufferQueueCore: [fr.free.nrw.commons/fr.free.nrw.commons.contributions.MainActivity] setDefaultMaxBufferCount: setting count to 3, previous is 2 
04-17 00:46:26.034 17482-17482/fr.free.nrw.commons E/ViewRootImpl: sendUserActionEvent() mView == null
04-17 00:46:27.125 17482-17482/fr.free.nrw.commons E/ViewRootImpl: sendUserActionEvent() mView == null
04-17 00:46:27.155 23265-23265/? E/Zygote: MountEmulatedStorage()
04-17 00:46:27.155 23265-23265/? E/Zygote: v2
04-17 00:46:27.155 23265-23265/? E/SELinux: [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL
04-17 00:46:27.165 23265-23265/? E/art: setrlimit(RLIMIT_CORE) failed for pid 23265: Operation not permitted
04-17 00:46:27.405 23283-23283/? E/SELinux: [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL
04-17 00:46:27.465 23284-23284/? E/Zygote: MountEmulatedStorage()
04-17 00:46:27.465 23284-23284/? E/Zygote: v2
04-17 00:46:27.475 23284-23284/? E/SELinux: [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL
04-17 00:46:29.017 17482-23180/fr.free.nrw.commons E/SQLiteLog: (28) file unlinked while open: /data/data/fr.free.nrw.commons/databases/commons.db
04-17 00:46:29.057 23327-23327/? E/Zygote: MountEmulatedStorage()
04-17 00:46:29.057 23327-23327/? E/Zygote: v2
04-17 00:46:29.087 23327-23327/? E/SELinux: [DEBUG] get_category: variable seinfo: untrusted sensitivity: NULL, cateogry: NULL
04-17 00:46:29.197 755-834/? E/ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ id=134, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ]
04-17 00:46:29.247 17482-23180/fr.free.nrw.commons E/SQLiteLog: (1032) statement aborts at 13: [Delete FROM contribution] 
04-17 00:46:29.267 17482-17482/fr.free.nrw.commons E/-$$Lambda$mvgeVM6S-0Wc8: android.database.sqlite.SQLiteReadOnlyDatabaseException: attempt to write a readonly database (code 1032)
    #################################################################
    Error Code : 1032 (SQLITE_READONLY_DBMOVED)
    Caused By : Database or Journal file have been removed.
    	(attempt to write a readonly database (code 1032))
    #################################################################
        at android.database.sqlite.SQLiteConnection.nativeExecuteForChangedRowCount(Native Method)
        at android.database.sqlite.SQLiteConnection.executeForChangedRowCount(SQLiteConnection.java:878)
        at android.database.sqlite.SQLiteSession.executeForChangedRowCount(SQLiteSession.java:754)
        at android.database.sqlite.SQLiteStatement.executeUpdateDelete(SQLiteStatement.java:64)
        at androidx.sqlite.db.framework.FrameworkSQLiteStatement.executeUpdateDelete(FrameworkSQLiteStatement.java:46)
        at fr.free.nrw.commons.contributions.ContributionDao_Impl.deleteAll(ContributionDao_Impl.java:635)
        at fr.free.nrw.commons.CommonsApplication.updateAllDatabases(CommonsApplication.java:302)
        at fr.free.nrw.commons.CommonsApplication.lambda$clearApplicationData$102$CommonsApplication(CommonsApplication.java:277)
        at fr.free.nrw.commons.-$$Lambda$CommonsApplication$He8l_y9qlRAiuRQkwTokla5VRAk.run(lambda)
        at io.reactivex.internal.operators.completable.CompletableFromAction.subscribeActual(CompletableFromAction.java:35)
        at io.reactivex.Completable.subscribe(Completable.java:2309)
        at io.reactivex.internal.operators.completable.CompletableAndThenCompletable$SourceObserver.onComplete(CompletableAndThenCompletable.java:67)
        at io.reactivex.internal.operators.completable.CompletablePeek$CompletableObserverImplementation.onComplete(CompletablePeek.java:115)
        at io.reactivex.internal.operators.completable.CompletableFromObservable$CompletableFromObservableObserver.onComplete(CompletableFromObservable.java:56)
        at io.reactivex.internal.observers.BasicFuseableObserver.onComplete(BasicFuseableObserver.java:119)
        at io.reactivex.internal.operators.observable.ObservableScalarXMap$ScalarDisposable.run(ObservableScalarXMap.java:251)
        at io.reactivex.internal.operators.observable.ObservableJust.subscribeActual(ObservableJust.java:35)
        at io.reactivex.Observable.subscribe(Observable.java:12267)
        at io.reactivex.internal.operators.observable.ObservableMap.subscribeActual(ObservableMap.java:32)
        at io.reactivex.Observable.subscribe(Observable.java:12267)
        at io.reactivex.internal.operators.completable.CompletableFromObservable.subscribeActual(CompletableFromObservable.java:29)
        at io.reactivex.Completable.subscribe(Completable.java:2309)
        at io.reactivex.internal.operators.completable.CompletablePeek.subscribeActual(CompletablePeek.java:51)
        at io.reactivex.Completable.subscribe(Completable.java:2309)
        at io.reactivex.internal.operators.completable.CompletableAndThenCompletable.subscribeActual(CompletableAndThenCompletable.java:35)
        at io.reactivex.Completable.subscribe(Completable.java:2309)
        at io.reactivex.internal.operators.completable.CompletableSubscribeOn$SubscribeOnObserver.run(CompletableSubscribeOn.java:64)
        at io.reactivex.Scheduler$DisposeTask.run(Scheduler.java:578)
        at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66)
        at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)
        at java.util.concurrent.FutureTask.run(FutureTask.java:237)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
        at java.lang.Thread.run(Thread.java:818)
04-17 00:46:29.307 23344-23344/? E/Zygote: MountEmulatedStorage()
04-17 00:46:29.307 23344-23344/? E/Zygote: v2
04-17 00:46:29.317 23344-23344/? E/SELinux: [DEBUG] get_category: variable seinfo: platform sensitivity: NULL, cateogry: NULL
04-17 00:46:29.407 23362-23362/? E/Zygote: MountEmulatedStorage()
04-17 00:46:29.407 23362-23362/? E/Zygote: v2
04-17 00:46:29.417 23362-23362/? E/SELinux: [DEBUG] get_category: variable seinfo: release sensitivity: NULL, cateogry: NULL
04-17 00:46:29.627 23377-23377/? E/Zygote: MountEmulatedStorage()
04-17 00:46:29.627 23377-23377/? E/Zygote: v2
04-17 00:46:29.637 23377-23377/? E/SELinux: [DEBUG] get_category: variable seinfo: untrusted sensitivity: NULL, cateogry: NULL
04-17 00:46:29.817 23415-23415/? E/Zygote: MountEmulatedStorage()
04-17 00:46:29.817 23415-23415/? E/Zygote: v2
04-17 00:46:29.828 23415-23415/? E/SELinux: [DEBUG] get_category: variable seinfo: untrusted sensitivity: NULL, cateogry: NULL
04-17 00:46:29.898 23284-23284/? E/SQLiteLog: (283) recovered 10 frames from WAL file /data/data/com.whatsapp/databases/msgstore.db-wal
04-17 00:46:30.038 23436-23436/? E/Zygote: MountEmulatedStorage()
04-17 00:46:30.038 23436-23436/? E/Zygote: v2
04-17 00:46:30.038 23436-23436/? E/SELinux: [DEBUG] get_category: variable seinfo: untrusted sensitivity: NULL, cateogry: NULL
04-17 00:46:30.078 23284-23284/? E/SQLiteLog: (284) automatic index on sqlite_sq_A04B2D00(key_remote_jid)
04-17 00:46:30.078 23284-23284/? E/SQLiteLog: (284) automatic index on sqlite_sq_A04B2A80(chat_row_id)
04-17 00:46:30.538 23475-23475/? E/Zygote: MountEmulatedStorage()
04-17 00:46:30.538 23475-23475/? E/Zygote: v2
04-17 00:46:30.548 23475-23475/? E/SELinux: [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL
04-17 00:46:30.668 23497-23497/? E/Zygote: MountEmulatedStorage()
04-17 00:46:30.668 23497-23497/? E/Zygote: v2
04-17 00:46:30.678 23497-23497/? E/SELinux: [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL
04-17 00:46:30.909 23284-23456/? E/SQLiteLog: (283) recovered 82 frames from WAL file /data/data/com.whatsapp/databases/axolotl.db-wal
04-17 00:46:31.719 23284-23456/? E/SQLiteLog: (283) recovered 15 frames from WAL file /data/data/com.whatsapp/databases/location.db-wal
04-17 00:46:31.799 23533-23533/? E/Zygote: MountEmulatedStorage()
04-17 00:46:31.799 23533-23533/? E/Zygote: v2
04-17 00:46:31.809 23533-23533/? E/SELinux: [DEBUG] get_category: variable seinfo: platform sensitivity: NULL, cateogry: NULL
04-17 00:46:32.250 23557-23557/? E/Zygote: MountEmulatedStorage()
04-17 00:46:32.250 23557-23557/? E/Zygote: v2
04-17 00:46:32.260 23557-23557/? E/SELinux: [DEBUG] get_category: variable seinfo: untrusted sensitivity: NULL, cateogry: NULL
04-17 00:46:32.320 23284-23427/? E/SQLiteLog: (283) recovered 3 frames from WAL file /data/data/com.whatsapp/databases/wa.db-wal
04-17 00:46:32.370 23533-23555/? E/ActivityThread: Failed to find provider info for com.samsung.android.email.preference.provider
04-17 00:46:32.530 23533-23533/? E/ActivityThread: Failed to find provider info for com.samsung.android.email.provider
04-17 00:46:32.600 23533-23533/? E/ActivityThread: Failed to find provider info for com.samsung.android.email.preference.provider
04-17 00:46:32.680 23581-23581/? E/Zygote: MountEmulatedStorage()
04-17 00:46:32.680 23581-23581/? E/Zygote: v2
04-17 00:46:32.700 23581-23581/? E/SELinux: [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL
04-17 00:46:33.531 23533-23578/? E/ActivityThread: Failed to find provider info for com.samsung.android.email.provider
04-17 00:46:34.612 23623-23623/? E/Zygote: MountEmulatedStorage()
04-17 00:46:34.612 23623-23623/? E/Zygote: v2
04-17 00:46:34.622 23623-23623/? E/SELinux: [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL
04-17 00:46:35.863 23284-23528/? E/SQLiteLog: (283) recovered 79 frames from WAL file /data/data/com.whatsapp/databases/media.db-wal
04-17 00:46:36.604 23665-23665/? E/Zygote: MountEmulatedStorage()
04-17 00:46:36.604 23665-23665/? E/Zygote: v2
04-17 00:46:36.604 23665-23665/? E/SELinux: [DEBUG] get_category: variable seinfo: platform sensitivity: NULL, cateogry: NULL
04-17 00:46:36.944 23687-23687/? E/Zygote: MountEmulatedStorage()
04-17 00:46:36.944 23687-23687/? E/Zygote: v2
04-17 00:46:36.944 23687-23687/? E/SELinux: [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL
04-17 00:46:37.135 1310-1840/? E/art: invalid stream - problem with parameter iterator in /data/app/com.google.android.gms-2/base.apk:classes3.dex for method void com.google.android.gms.org.conscrypt.ConscryptFileDescriptorSocket.setSoWriteTimeout(int)
04-17 00:46:37.205 23705-23705/? E/Zygote: MountEmulatedStorage()
04-17 00:46:37.205 23705-23705/? E/Zygote: v2
04-17 00:46:37.205 23705-23705/? E/SELinux: [DEBUG] get_category: variable seinfo: platform sensitivity: NULL, cateogry: NULL
04-17 00:46:37.325 1310-1840/? E/art: invalid stream - problem with parameter iterator in /data/app/com.google.android.gms-2/base.apk:classes3.dex for method void com.google.android.gms.org.conscrypt.ConscryptFileDescriptorSocket.setSoWriteTimeout(int)
04-17 00:46:37.395 23720-23720/? E/Zygote: MountEmulatedStorage()
04-17 00:46:37.395 23720-23720/? E/Zygote: v2
04-17 00:46:37.395 23720-23720/? E/SELinux: [DEBUG] get_category: variable seinfo: release sensitivity: NULL, cateogry: NULL
04-17 00:46:37.625 23735-23735/? E/Zygote: MountEmulatedStorage()
04-17 00:46:37.625 23735-23735/? E/Zygote: v2
04-17 00:46:37.625 23735-23735/? E/SELinux: [DEBUG] get_category: variable seinfo: untrusted sensitivity: NULL, cateogry: NULL
04-17 00:46:37.815 23720-23753/? E/SQLiteLog: (284) automatic index on view_events(_id)
04-17 00:46:39.927 1310-1841/? E/art: invalid stream - problem with parameter iterator in /data/app/com.google.android.gms-2/base.apk:classes3.dex for method void com.google.android.gms.org.conscrypt.ConscryptFileDescriptorSocket.setSoWriteTimeout(int)
04-17 00:46:40.088 1310-1841/? E/art: invalid stream - problem with parameter iterator in /data/app/com.google.android.gms-2/base.apk:classes3.dex for method void com.google.android.gms.org.conscrypt.ConscryptFileDescriptorSocket.setSoWriteTimeout(int)
04-17 00:46:40.838 1310-23772/? E/art: invalid stream - problem with parameter iterator in /data/app/com.google.android.gms-2/base.apk:classes3.dex for method void com.google.android.gms.org.conscrypt.ConscryptFileDescriptorSocket.setSoWriteTimeout(int)
04-17 00:46:41.018 1310-23772/? E/art: invalid stream - problem with parameter iterator in /data/app/com.google.android.gms-2/base.apk:classes3.dex for method void com.google.android.gms.org.conscrypt.ConscryptFileDescriptorSocket.setSoWriteTimeout(int)
04-17 00:46:41.659 22388-23778/? E/art: invalid stream - problem with parameter iterator in /data/app/com.google.android.gms-2/base.apk:classes3.dex for method void com.google.android.gms.org.conscrypt.ConscryptFileDescriptorSocket.setSoWriteTimeout(int)
04-17 00:46:41.799 22388-23778/? E/art: invalid stream - problem with parameter iterator in /data/app/com.google.android.gms-2/base.apk:classes3.dex for method void com.google.android.gms.org.conscrypt.ConscryptFileDescriptorSocket.setSoWriteTimeout(int)
04-17 00:46:41.879 23781-23781/? E/Zygote: MountEmulatedStorage()
04-17 00:46:41.879 23781-23781/? E/Zygote: v2
04-17 00:46:41.889 23781-23781/? E/SELinux: [DEBUG] get_category: variable seinfo: release sensitivity: NULL, cateogry: NULL
04-17 00:46:43.040 23800-23800/? E/Zygote: MountEmulatedStorage()
04-17 00:46:43.040 23800-23800/? E/Zygote: v2
04-17 00:46:43.050 23800-23800/? E/SELinux: [DEBUG] get_category: variable seinfo: untrusted sensitivity: NULL, cateogry: NULL
04-17 00:46:43.821 23827-23827/? E/Zygote: MountEmulatedStorage()
04-17 00:46:43.821 23827-23827/? E/Zygote: v2
04-17 00:46:43.821 23827-23827/? E/SELinux: [DEBUG] get_category: variable seinfo: untrusted sensitivity: NULL, cateogry: NULL
04-17 00:46:46.774 755-1036/? E/Watchdog: !@Sync 3099 [04-17 00:46:46.783]
04-17 00:46:46.884 22388-23860/? E/art: invalid stream - problem with parameter iterator in /data/app/com.google.android.gms-2/base.apk:classes3.dex for method void com.google.android.gms.org.conscrypt.ConscryptFileDescriptorSocket.setSoWriteTimeout(int)
04-17 00:46:47.064 22388-23860/? E/art: invalid stream - problem with parameter iterator in /data/app/com.google.android.gms-2/base.apk:classes3.dex for method void com.google.android.gms.org.conscrypt.ConscryptFileDescriptorSocket.setSoWriteTimeout(int)
04-17 00:46:48.155 23866-23866/? E/Zygote: MountEmulatedStorage()
04-17 00:46:48.155 23866-23866/? E/Zygote: v2
04-17 00:46:48.165 23866-23866/? E/SELinux: [DEBUG] get_category: variable seinfo: untrusted sensitivity: NULL, cateogry: NULL
04-17 00:46:55.623 23903-23903/? E/Zygote: MountEmulatedStorage()
04-17 00:46:55.623 23903-23903/? E/Zygote: v2
04-17 00:46:55.633 23903-23903/? E/SELinux: [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL
04-17 00:47:00.167 755-780/? E/JavaBinder: !!! FAILED BINDER TRANSACTION !!!
04-17 00:47:01.188 23925-23925/? E/Zygote: MountEmulatedStorage()
04-17 00:47:01.188 23925-23925/? E/Zygote: v2
04-17 00:47:01.188 23925-23925/? E/SELinux: [DEBUG] get_category: variable seinfo: untrusted sensitivity: NULL, cateogry: NULL
04-17 00:47:01.358 23941-23941/? E/Zygote: MountEmulatedStorage()
04-17 00:47:01.358 23941-23941/? E/Zygote: v2
04-17 00:47:01.358 23941-23941/? E/SELinux: [DEBUG] get_category: variable seinfo: release sensitivity: NULL, cateogry: NULL
04-17 00:47:02.730 23966-23966/? E/Zygote: MountEmulatedStorage()
04-17 00:47:02.730 23966-23966/? E/Zygote: v2
04-17 00:47:02.740 23966-23966/? E/SELinux: [DEBUG] get_category: variable seinfo: platform sensitivity: NULL, cateogry: NULL
04-17 00:47:02.910 23988-23988/? E/Zygote: MountEmulatedStorage()
04-17 00:47:02.910 23988-23988/? E/Zygote: v2
04-17 00:47:02.920 23988-23988/? E/SELinux: [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL
04-17 00:47:03.100 755-3150/? A/ActivityManager: Service done with onDestroy, but executeNesting=2: ServiceRecord{22c6b722 u0 com.google.android.syncadapters.calendar/.CalendarSyncAdapterService}
    android.util.Log$TerribleFailure: Service done with onDestroy, but executeNesting=2: ServiceRecord{22c6b722 u0 com.google.android.syncadapters.calendar/.CalendarSyncAdapterService}
        at android.util.Log.wtf(Log.java:460)
        at android.util.Slog.wtfStack(Slog.java:186)
        at com.android.server.am.ActiveServices.serviceDoneExecutingLocked(ActiveServices.java:2166)
        at com.android.server.am.ActivityManagerService.serviceDoneExecuting(ActivityManagerService.java:21501)
        at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:1052)
        at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:3724)
        at android.os.Binder.execTransact(Binder.java:446)
04-17 00:47:05.052 24012-24012/? E/Zygote: MountEmulatedStorage()
04-17 00:47:05.052 24012-24012/? E/Zygote: v2
04-17 00:47:05.062 24012-24012/? E/SELinux: [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL
04-17 00:47:05.672 24036-24036/? E/Zygote: MountEmulatedStorage()
04-17 00:47:05.672 24036-24036/? E/Zygote: v2
04-17 00:47:05.682 24036-24036/? E/SELinux: [DEBUG] get_category: variable seinfo: platform sensitivity: NULL, cateogry: NULL
04-17 00:47:16.773 755-1036/? E/Watchdog: !@Sync 3100 [04-17 00:47:16.784]

The following is the verbose log:
commons_app_log.txt

@sivaraam
Copy link
Member Author

sivaraam commented Apr 16, 2020

Let me know if you need more information. I'm able to reproduce the issue reliably. It happens for me all the time.

@macgills
Copy link
Contributor

Perhaps file a bug report, I would be suspicious of the device/api level.

Potentially we could make deleteAll return a completable too but Room should be threadsafe as long as we don't do any manual transactions

@sivaraam
Copy link
Member Author

Perhaps file a bug report, I would be suspicious of the device/api level.

This issue is your bug report. The description should contain the information you need. If you need anything else, let me know.

maskaravivek added a commit to maskaravivek/apps-android-commons that referenced this issue Apr 20, 2020
* Versioning

* Update changelog.md

* Optimize imports (commons-app#3272)

* Convert few model classes to kotlin (commons-app#3270)

* Localisation updates from https://translatewiki.net.

* Fixes commons-app#3231 "Nearby" always first puts me in Punta Arenas (commons-app#3271)

* Update tables from 10 to 11

* Remove unneeded changes

* Update strings.xml (commons-app#3285)

Improve share_text string for commons-app#3192.

* Localisation updates from https://translatewiki.net.

* color accent changed tto blue in dark theme (commons-app#3234)

* Localisation updates from https://translatewiki.net.

* Fix UI tests (commons-app#3297)

* Localisation updates from https://translatewiki.net.

* Localisation updates from https://translatewiki.net.

* Bugfix/null revision in review (commons-app#3309)

* Fixes commons-app#3305
 * Handle null firstRevision

* initialise explanation

* Fixes commons-app#3307 (commons-app#3308)

* Fixed positional argument format for string in "image_uploaded_by"

* Localisation updates from https://translatewiki.net.

* Localisation updates from https://translatewiki.net.

* Localisation updates from https://translatewiki.net.

* Localisation updates from https://translatewiki.net.

* Localisation updates from https://translatewiki.net.

* More natural language instead of a slash (commons-app#3318)

* Remove unnecessary space before colon (commons-app#3317)

* Localisation updates from https://translatewiki.net.

* Localisation updates from https://translatewiki.net.

* Versioning for v2.12.1

* Update changelog.md

* Localisation updates from https://translatewiki.net.

* CategoryItem: add javadocs to the file (commons-app#3332)

* Change tempalte character case from EXIF to Exif (commons-app#3330)

* Fixes commons-app#3335 (commons-app#3337)

Handled sqlitexception for adding existig column in app versions which already have COLUMN location_pic

* Issue 3236: Change nearby search text to white (commons-app#3331)

* Clear parent from customView if parent is not null

* Apply white search bar theme to nearby search

* Undo changes from bad merge

* Fix up tag formatting

* Versioning for v2.12.2

* Update changelog.md

* Localisation updates from https://translatewiki.net.

* Fixes commons-app#3320 (commons-app#3349)

* Fixes commons-app#3320
* Added SSL certificate for commons beta
* Asked OKHTTP client to use SSLContext from beta certificate
* Probable Fix of commons-app#3345

* Use ConfigUtils to verify flavor

* Fixes commons-app#3345 (commons-app#3350)

* Fixes commons-app#3345
* Trust all hosts for beta
* Added a custom NetworkFetcger for Fresco when on beta

* removed unused assets

* make TestCommonsApplication extend Application instead of Commons Application

* Fixes commons-app#3336 Hotfix: Coordinates of picture are not uploaded (commons-app#3339)

* Fixes commons-app#3336
 * Donot redact locatio by default

* Correction inn default tag save

* Use same key across application for managedExifTags

* Updated key name to avoid class cast in existing build

* Localisation updates from https://translatewiki.net.

* Fixes commons-app#3327: Trim whitespaces from title on upload (commons-app#3348)

Trim WhiteSpaces from Image-Title while upload

* Fixes: commons-app#3343 TextUtils.isEmpty creates problems when unit testing with Mockito (commons-app#3344)

* TextUtils: add mock textUtils for tests

* TextUtils: add more methods to mock for testing

* UploadControllerTest: fix the test resulting travis ci to fail

* Fixes: commons-app#3278: Add java docs to methods which have it missing (commons-app#3351)

* achievements/: add Javadocs

* actions/: add Javadocs

* WikiAccountAuthenticator: add Javadocs

* ReasonBuilder: add Javadocs

* di: Add javadocs to DI files

* bookmarks: add Javadocs to bookmarks files

* di: Added more Javadocs

* file: add Javadocs for file picker

* actions: add proper decription to the classes

* Fixes: commons-app#3179 Make category search non case-sensitive (commons-app#3326)

* CategoryClient: fix category search case-sensitivity by converting to lower case as MW api is inherently case-sensitive, the results obtained will be same

* CategoryItem: reverting javadoc changes

* CategoriesModel: make category search case-insensitive

* CategoryItem: fix whitespaces

* Add tests for case-insensitivity

* CategoryClientTest: add more test cases

* CategoryClientTest: fix travis ci test

* CategoriesModelTest: changes mage to CategoriesModel and tested

* Suggest and auto fill title and description based on image location (commons-app#3323)

* Suggest and auto fill title and description based on image location

* with java docs

* Versioning for v2.12.3

* Update changelog.md

* Localisation updates from https://translatewiki.net.

* Fix: Issue commons-app#3367 Bug: SoftKeyboard showing even after switching from nearby tab to contribution tab (commons-app#3368)

Hide keyboard when switched back from NearbyFragment to ContributionsListFragment

* Localisation updates from https://translatewiki.net.

* Adds a Test for Method A categories search (commons-app#3366)

* CategoriesModelTest: add methodA test for categories search

* CategoriesModelTest: use lateinit wherever possible

* CategoriesModelTest: make method name meaningful

* Fixes commons-app#3303 (commons-app#3322)

* Fixes commons-app#3303
* Refactor Nearby to alig lifecycle methods

* Pass updated place list to listfragment

* Added default zoom rate to mapbox

* Removed NearbyListFragmet and added the ui login to handle the same in NearbyParentFragment

* More code refactor
* Make BottomSheetList hideable
* onFragmentHide, hide the bottom sheets

* BigFix, Fragmet visibility, register/un-register camera move based on fragments lifecycke

* More code refactor
* Let the ExecutorUtil have non-ui thread
* Add Location Marker on non-ui thread (the non-ui stuffs)

* BugFixes
* Removed configchanges "orientation" from MainActivity in Manifest (That was messing with the fragment lifecycle)
* Some null checks
* Initialise lastknown location in onMapReady

* UI Fixes
* Adjusted UI to support dark and no-dark themes both (in nearby)
* Do not update map on Location Slightly changed

* Fix failing test case, let TestCommonsApplication extend Application instead of CommonsApplication

* start map view when nearby is visible

* start the map when NearbyFragmet is visible

* More bugfixes
* Added DUMMY view for NearbyPresenter's onDetach State
* Added a wrapper frame layout parent for MapView to preven it from drawing above other views

* More bugfixes (Fixes commons-app#3287)
* Gray out the un-selected markers from the nearby filter list

* BugFix, search this area should search the nearby places for the current camera position

* More BugFixes
* Handle null primitives with proxy
* Current location marker flow via permission flow

* onCameraMove should have null-check on NearbyController.latestSearchLocation instead of currentLocation

* Search for places around last focus location

* Handle location updates
* If the user is browsing the map, donot update the map with current location

* Fixes commons-app#3371 (commons-app#3372)

* Is UserBrowsing should first check if last known location is non-null before checkig if last location and current locations are close

* Localisation updates from https://translatewiki.net.

* Fixes commons-app#3382 Fixed Notification Message  Icon Background (commons-app#3383)

* changing background color of conditions in nearby as uniform (according to chip state) (commons-app#3365)

Signed-off-by: Mudit Jain <ciphereck@gmail.com>

* Fixes commons-app#3392 Fixed Nearby List Item Icon's Background (commons-app#3393)

* Hide Review for logged out users (commons-app#3390)

It makes sense to not show the review activity for logged
out users for the same reasons that we don't allow users
to upload images.

We're even considering to limit the review activity to users
with a particular level of achievement[1]. So, it's valid to
not show review activity for logged out users who don't
have achievements levels at all.

[1]: commons-app#2852

* Localisation updates from https://translatewiki.net.

* Fix commons-app#3191 Make the username along with the rewards icon clickable in the Navigation Drawer (commons-app#3401)

* Don't show the quiz pop-up twice (commons-app#3398)

* Avoid showing the quiz pop-up twice to the user

Due to the current flow of code it's possible that in
some cases the quiz pop-up is shown to the user twice.
This is unnecessary and unintentional.

So, change the logic in such a way that the quiz pop-up
would be never be shown twice to the user.

Fixes: commons-app#3281

* Quiz: remove unused parameters from methods

Some methods don't seem to be using the parameters that
they receive. So, just remove the unused parameters.

* Fixed minor Login Bug (commons-app#3373)

* Fixes commons-app#3197 Replace hardcoded dimensions with dimen resource values (commons-app#3402)

* Localisation updates from https://translatewiki.net.

* Fixes commons-app#3403 Add padding between privacy policy button and bottom of the screen (commons-app#3404)

Fixes commons-app#3403 Add padding between privacy policy button and bottom of the screen

* code-quality: remove CDATA and <u> tags from string.xml (commons-app#3310)

Remove CDATA and <u> tags from string resources. Instead use setUnderlinedText() method added in Utils to create underlined string resources.

* fix typo commons-app#3417 (commons-app#3418)

* Localisation updates from https://translatewiki.net.

* Fixes commons-app#3355 : Do not display pins at all when "Needs Photo" is selected (commons-app#3407)

* ic_custom_greyed_out_marker: removing grey marker

* NearbyParentFragment: changing function name and description

* change method name to hideAllMarkers

* Localisation updates from https://translatewiki.net.

* Fix commons-app#3416 Add snackbar on clicking add/remove from bookmarks (commons-app#3419)

* Added progress dialog for setting wallpaper (commons-app#3427)

* Added progress dialog for setting wallpaper

* Updated dialog strings

* Localisation updates from https://translatewiki.net.

* Fixed a type in NearbyParentFragment.java where significantly was written instead of slightly while adding a log using Timber (commons-app#3432)

* Fixes commons-app#814 Added App Shortcuts (commons-app#3381)

* Fixes commons-app#814 Added App Shortcuts

* removed Review app shortcut

* Added Adaptive icons

* Localisation updates from https://translatewiki.net.

* Replace functions in FileUtilsTest with ones from kotlin-stdlib (commons-app#2943)

* Fix commons-app#3091: Remove odd code in CategoryImagesListFragment (commons-app#3133)

* Moved some Java files to kotlin (commons-app#3439)

* Converted NetworkConnectionType.java to Kotlin

* Converted Urls.java to Kotlin and Updated AboutActivity

* Improved code quality

* Open external links in same activity (commons-app#3395)

It's common for users to expect that re-opening the app would
allow them to "continue where they left off". This also applies
for the case where they leave the app after opening an
external link. It's natural for them to expect that they would
see the webpage they left open when they re-open the app. This
doesn't happen for our app as we open custom tabs in a separate
activity. As a consequence, this makes the experience
un-intuitive.

Fix this by opening custom tabs in the same activity.

Fixes: commons-app#2944

Co-authored-by: Adam Jones <jones_adam@rocketmail.com>

* Update mapbox, gradle and android plugin versions (commons-app#3443)

* Localisation updates from https://translatewiki.net.

* Fix existing Espresso tests (commons-app#3450)

* Fix existing Espresso tests

* Convert class to kotlin

* Added Support for System Wide Dark Theme (commons-app#3460)

* Added Support for System Wide Dark Theme

* changed methods to private

* Moved Strings to strings.xml

* Used Dagger to reduce code repetition

* Changes made as per review suggestions

* Minor Changes

* Fixes as per suggestions

* Minor Fixes as per suggestion

* made the variables static

* removed irrelevant code

* Localisation updates from https://translatewiki.net.

* commons-app#3469 Update Gradle Play Publisher to resolve issues with travis build (commons-app#3470)

* commons-app#3469 Update Gradle Play Publisher to resolve issues with travis build - update GPP/Gradle and use jacoco-android fork with gradle 6.0 support

* commons-app#3469 Update Gradle Play Publisher to resolve issues with travis build - remove extraneous space

* Comment out application id from default config

* About page: Update logos (commons-app#3472)

* Fixes commons-app#3295: Ultimate achievement: Too many contributions (commons-app#3378)

* commons-app#3476 Use individual test commands on CI instead of check  (commons-app#3477)

* commons-app#3476 Use individual test commands on CI instead of check - use individual commands and narrow scope

* commons-app#3476 Use individual test commands on CI instead of check - fix indentation

* Localisation updates from https://translatewiki.net.

* Fixes commons-app#3414:  For v2.13, Handle zoom in media details view (commons-app#3422)

* MediaDetailFragment: add zoom feature

* fragment_media_detail: add SimpleDrawee for Scroll picture

* ZoomableActivity: activity which facilitates zoom in

* activity_zoomable: xml for zoom activity

* zoomControllers: controllers for handling gesture and zooming

* MediaDetailFragment: fixing name of image variable

* MediaDetailFragment: display as per the aspect ratio of image

* add zoom activity to AndroidManifest

* fix travis ci faliure

* fix resizing of image

* Shift contributions to use Room DB (commons-app#3324)

* Part of commons-app#3127
* Added Room Dependency
* Shifted ContributionsDao to use RoomDB

* Save and Fetch contributions via RoomDAO

* Bugfixes, fixed test cases, injected schedulers for ContributionsPresenter

* removed stetho

* Fixed ReviewHelperTest cases

* Fixed test cases in DeleteHelperTest

* Fetch all contributions [TODO add pagination to use this, maybe later in a seperate PR]

* Update Schema false in AppDatabase

* removed parameter from fetchControbutions

* Added logs for fetch contributions

* Fixed test case ContributionsPresenter

* Added an autogenerate primary key, submit save contributions on executor

* fixed getItemAtPosition

* MainActivity Config changes +=orientation

* BugFixes
* Make AppDataBase Singleton
* Set _id as autogenerate primary key [replacing the previously used filename, seems like they are not unique]
* Replace Execxutor Utils with Subscribers on Singles in UploadService
* BugFix, Upload Progress

* Remove un-nescessary null check on contributions in ContributionsListAdapter

* removed ContributionsListFragment [not-implemeted]

* Review suggested changes
* removed un-nescessary null checks
* provide ContributionsDao
* Minor bug fixes

* wip

* delete existing contributions table (from the existing db) on upgrade

* remove un-nescessary null checks in test classes

* shifted media to be a local variable in ReviewHelperTest

* removed captured folder

* Dispose composite disposables in UploadService

* replaced size check with isEmpty ContributionsPresenter

* transform saveContributions to a Completable

* Addressed comments in review
* Typo in Contributions
* ReasonBuilderTest (create media object instead of mocking)
* Use global Gson object instead of creating a new one in Converters

* Provide Gson to Converters from the CommonsApplicationComponent

* use static method instead of field instead of static field to provide GSON in Converters

* Modified gitignore to exclude captures/*

* [WIP] Implemented Espresso tests for upload with multilingual descriptions (commons-app#2830)

* With more upload tests

* Fix tests

* Fix tests

* openStreetMap attribution enabled (commons-app#3485)

* commons-app#3445 Add codestyle to git  - import google java code style, use predefined styles for kotlin/xml (commons-app#3486)

* commons-app#3488 Delete app/prod folder - deleted (commons-app#3489)

* Added AboutActivityTest (commons-app#3475)

* Added AboutActivityTest

* Changes made as per suggestions

* Removed File to resolve conflict

* Removed hardcoded packagename

* Changes as per suggestion

* Removed Unrelated changes

* Fixed Build Issues

* Localisation updates from https://translatewiki.net.

* commons-app#3493 App freezes for 15 seconds when you press Next in UploadMediaDetailsFragment (commons-app#3499)

* commons-app#3493 App freezes for 15 seconds when you press Next in UploadMediaDetailsFragment - add apropriate schedulers and convert justs to fromCallable

* commons-app#3493 App freezes for 15 seconds when you press Next in UploadMediaDetailsFragment - remove test for removed functionality

* commons-app#3493 App freezes for 15 seconds when you press Next in UploadMediaDetailsFragment - replace kotlin with java

* Revert stopgaps related to beta server cert issue (commons-app#3396)

* Revert stopgaps related to beta server cert issue

The upstream issue with Commons beta server has been
fixed now[1]. So, there's no point in stopgapping
the issue anymore. So, revert the related changes.

This reverts fa87eb5
and df426f7 which
correspond to PRs commons-app#3350 and commons-app#3349 respectively.

[1]: https://phabricator.wikimedia.org/T243881#5861983

* Test-fix: fix the failing CI test

* Chek if getContext() is instanceOf CategoryImagesCallback and only then request more images

* commons-app#3471 Remove android.enableUnitTestBinaryResources - remove line (commons-app#3478)

* Change item background according to the theme (commons-app#3480)

* Change item  background according to the theme

* Change background colour of item on being selected

* Change background colors using XML selectors

* solved crashing problem in nomination button (commons-app#3522)

solved crashing problem in nomination button

solved crashing problem in nomination button

* author not shown bug (commons-app#3525)

* Localisation updates from https://translatewiki.net.

* Fixes commons-app#2238 scalebar added in map  (commons-app#3511)

* scalebar added in map

* changes reverted in .idea/Project.xml

* magic numbers replaced with constants for scalebar

* Default setting for scaling unit

* Default setting for scalebar refresh interval

* Reformatted code for adding scalebar

* dimen values for scalebar params

* Fix p18 issue For an item with P18 item, do not add another one (commons-app#3527)

* Add p18value variable to contrib

* set place.pic to candidate contribution

* Add p18 value to contrib

* Passes p18 value to wikidata upload service

* Checks if pic parameter of the wikidata item is empty or not. If not, it does not overrides the existing image, it is just a regular commons upload.

* Make public var private

* Make current tests pass

* Add test case for p18 value is not empty

* Fix wrong log message

* Add nonnul annotation and fix method javadoc

* commons-app#3524 Convert SpinnerLanguagesAdapter to kotlin - converted to kotlin (commons-app#3528)

* commons-app#3524 Convert SpinnerLanguagesAdapter to kotlin - converted to kotlin

* commons-app#3524 Convert SpinnerLanguagesAdapter to kotlin - add KDoc - rework logic - format

* Fixes commons-app#3464, App posts deletion request notifications ({{subst:idw}}) on the wrong user's talk page (commons-app#3495)

* Fixed commons-app#3464: App posts deletion request notifications ({{subst:idw}}) on the wrong user's talk page

* Fixed DeleteHelperTest.kt

* Fixed DeleteHelper tests and null-pointer exception

* Modified DeleteHelper makeDeletion() test

* Reverted unintentionally modified Project.xml

* Raising exception when nominating for deletion with empty creator name

* Fixed code style

* Fixed code style

* Fixes commons-app#3465 Use AndroidX Pref (commons-app#3521)

* [WIP] Fixes commons-app#3465 Use AndroidX Pref

* Deleted Unused Files

* Added singleLineTitle

* Updated Gradle Properties

* Migrated to Androidx

* Inline Variable change

* optimise imports

* Fixed Crash on empty input

* Add a dialog to prompt user if location is off in Nearby when L… (commons-app#3438)

* Fixes commons-app#3359 Duplicate Photos in Contributions Page (commons-app#3515)

* Fixes commons-app#3359
* Cache thumb url & imageUrl in local db
* Use Fresco's ImageRequest to show images in ContributionViewHolder[this was the issue, we should have always used this to show the image]
* Deleted DisplayableContribution (not needed anymore)
* Exposed abstract function in ContributionDao to updateContribution

* * Make position private in ContributionViewHolder
* Remove MediaDataExtractor from ContributionsFragment

* * Show placeholder image for Contributions while the image loads
* setHasStableId's ContributionsAdapter

* make Random variable private in ContributionViewHolder

* replace local variable-if-with ternary operator in ContributionViewHolder

* Fix indentation/formatting of ternary operator in ContributionViewHolder

* I might revert this commit[I have reasons]

* Create in-memory drawables in CVH's onBind, caches are bad, add mental overhead

* Revert "I might revert this commit[I have reasons]"

This reverts commit 627ac91.

* minor formatting changes, reverted 627ac91

* uh-oh missed semicolon, java

* minor formatting changes

* Fixes 3536 (commons-app#3537)

* Removed the focus change listener of the username edittext (commons-app#3538)

* Modify PR template (commons-app#3548)

* Localisation updates from https://translatewiki.net.

* Issue commons-app#3428: Swapped text in dialog buttons  (commons-app#3496)

* Issue commons-app#3428: Swapped text in dialog buttons because, according to Android Convention, they were opposite each other

* Fixed Issue commons-app#3428 so it actually works correctly now: Swapped text in dialog buttons because, according to Android Convention, they were opposite each other

* Made sure that all of the places where the two types of showAlertDialog accurately match up with the new position of positive and negative text on the dialog box
Also removed occurences of empty lambda expressions and used null instead

* modified deletThisPicture to be accurate lambda call

* reverted mistake where ellipses replaced the three dots

* commons-app#3532 Issue with gitignore - synchronise section with default plugin state (commons-app#3535)

* Fixes commons-app#3473 Changed Names and Order or Theme Options (commons-app#3556)

* commons-app#3408 Refactoring the FileProcessor and GPSExtractor classes  (commons-app#3543)

* commons-app#3408 Refactoring the FileProcessor and GPSExtractor classes - refactor FileProcessor

* commons-app#3408 Refactoring the FileProcessor and GPSExtractor classes - refactor and rename GpsExtractor

* commons-app#3408 Refactoring the FileProcessor and GPSExtractor classes - convert ImageCoordinates to kotlin

* commons-app#3408 Refactoring the FileProcessor and GPSExtractor classes - convert FileProcessor to kotlin

* commons-app#3408 Refactoring the FileProcessor and GPSExtractor classes - minor reformatting

* commons-app#3408 Refactoring the FileProcessor and GPSExtractor classes - fix compilation and naming issues

* commons-app#3408 Refactoring the FileProcessor and GPSExtractor classes - remove empty test

* commons-app#3408 Refactoring the FileProcessor and GPSExtractor classes - set coordinates for upload item if user chooses it

* Change "Archived" notifications to "Read" notifications (commons-app#3554)

* Change archived to read

* Change string names

* Fix hardcoded string in similar image dialog (commons-app#3563)

Fixes commons-app#3557

* Change BiMap to HashMap (commons-app#3572)

* Change BiMap to HashMap

* Change containsKey to containsValue and delete BiMap.java

* Localisation updates from https://translatewiki.net.

* PULL_REQUEST_TEMPLATE: request only issue number (commons-app#3545)

For some time now, GitHub is showing cards when we hover over an issue
number which gives us a quick summary of the issue. The issue title is
shown in the card among other things.

Given that and the fact that we already require the issue number to be
specified in the pull request description, it's now moot to
ask the contributors to include the issue title in the pull request
description. So, let's remove this unnecessary burden from them.

* Fix title/desc not getting filled for nearby picture (commons-app#3577)

* Wiki itemname displaying in toast (commons-app#3569)

* Wiki itemname displaying in toast

* Wikidata label displaying in toast

* Wikidata label displaying in toast

* wikiItemName added to parcelable methods

* Wikidata label displayed in toast

* Wikidata label displayed in toast

* commons-app#3579 p18Value causes NPE in WikidataEditService createClaimWithLogging - add null check (commons-app#3580)

* Fixes commons-app#3494 (commons-app#3519)

* better names for the upload warning dialog buttons commons-app#3494

* Dialog button pt2

* dialog buttons pt3

* round 4..

Co-authored-by: Hdot <a.hudaa@hotmail.com>

* Fix auto zoom issue commons-app#3391 Zoom level gets reset at every second. (commons-app#3564)

* Add method to check if curr location marker is vsible or not

* Recenter map if users see their current location marker

* Add new methods to Contract

* Localisation updates from https://translatewiki.net.

* PULL_REQUEST_TEMPLATE: clarify that issue number needs to be replaced (commons-app#3599)

Some contributors seem to be missing the fact that they have to mention
the issue number right after `Fixes ` to ensure the corresponding issue
gets closed[1] when the PR gets merged.

Clarify this by using a better phrase that clearly states that they
have to replace the placeholder text with the issue number.

[1]: https://help.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword

* swipe away failed notification (commons-app#3598)

* issue-commons-app#3567: logos in about activity visible (commons-app#3592)

* Fixes commons-app#3479: Implement Progress Bar for Zoom Activity  (commons-app#3481)

* ZoomableActivity: add hierarchy to view for displaying progress bar

* CircularProgressBar: circular progress bar for ZoomableDraweeView

* ZoomableActivity: add indeterministic loading spinner

* activity_zoomable: add inderterministic Progressbar

* remove circular progressbar and make changes to controller listener

* Fixes commons-app#3575 (commons-app#3602)

* Donot show random colors as placeholders for contributions items
* Theme contributionsItem background as mainBackground from attributes

* Fixes commons-app#3611 (commons-app#3613)

* Properly generate Parcealables for Media & Contribution

* issue-commons-app#3606: cancel in translate goes back to about screen (commons-app#3610)

* Localisation updates from https://translatewiki.net.

* Fixed issue commons-app#3195 ordering contribution list (commons-app#3589)

* issue-commons-app#3195: order contribution list refactored

* issue-commons-app#3195: ordered contribution list

* exit app on back pressed in tutorial (commons-app#3597)

* exit app on back pressed in tutorial

* exit app from ongoing tutorial

* exit app on back press in tutorial

* Fixes commons-app#3466  No crash information in crash email (Gmail) (commons-app#3605)

* Send ACRA logs as file instead

* no need to set it true, default is true

* Fixed issue commons-app#3195 ordering contribution list (commons-app#3589)

* issue-commons-app#3195: order contribution list refactored

* issue-commons-app#3195: ordered contribution list

* Update wiki page links (commons-app#3608)

We've moved the documentation to a separate repo.

So, change the old links to point to the corresponding
places in the documentation repo.

* Fixes commons-app#3506: Image height remains zero for some time on bad network (commons-app#3513)

* optimise width loading

* amending as per the reviews

* aspect ratio updates after layout completion

* MediaDetailFragment: update aspect ratio using onGlobalLayoutListener

* remove unnecessary imports

* commons-app#3492 Add inspections to git - add inspection profile (commons-app#3631)

* commons-app#3628 Update Gradle Plugin - bump version (commons-app#3629)

* commons-app#3624 DateTimeFormat wrong - match pattern returned from servers (commons-app#3625)

* Localisation updates from https://translatewiki.net.

* Localisation updates from https://translatewiki.net.

* Copy place name on long click (commons-app#3609)

* Copy place name on long click

* Remove hard coded string

* Fixed logout problem commons-app#3547 (commons-app#3649)

* fixed logout problem

fixed logout problem

fixed logout problem

fixed logout problem

fixed logout problem

* added error handling on logout

* Fast scroll issue fixed (commons-app#3593)

* fast scroll fixed in explore activity

* fast scroll fixed in explore activity

* fast scroll issue in explore

* fastscroll removed from explore

* Converted DialogUtil to Kotlin (commons-app#3621)

* Converted DialogUtil to Kotlin

* Kotlin syntax and standard changes

* Removed ;

* Added missing null

* Added missing null

* Removed unnecessary code

* Reduced functions

* added let to customView

* reverted "let" changes

* reverted "let" changes

* removed if-statements

* replaced with "it"

* fixed overflow error

* Function rename

* Used named arguments

* Fix Typo

* single lined

* Update DialogUtil.kt

* changed default value

* ReviewController: remove call to review category notif builder while sending thanks (commons-app#3655)

* With data-client added as library module (commons-app#3656)

* With data-client added as library module

* Fix build

* Fixed username visible after logout bug (commons-app#3648)

* Localisation updates from https://translatewiki.net.

* commons-app#3630 [Library Discussion] Core-ktx (commons-app#3660)

* Convert download code to kotlin (commons-app#3665)

* Remove unused constructor (commons-app#3668)

* commons-app#3658 Throw exception instead of allowing nullable network models onError - peek response body and throw error (commons-app#3659)

* commons-app#3658 Throw exception instead of allowing nullable network models onError - peek response body and throw error

* commons-app#3658 Throw exception instead of allowing nullable network models onError - allow for more general error response catching

* Address code review comments (commons-app#3669)

* Fixes commons-app#3436 and commons-app#2881: Media Detail design Overhaul (commons-app#3505)

* ic_map_dark_24dp: map icon for white background

* ic_info_outline_dark_24dp: info icon for dark background

* MediaDetailFragment: update the spacer as per image aspect ratio

* fragment_media_detail: design overhaul

* fragment_media_detail: remove redundant background color statements

* make requested changes

* add dark mode support

* minor ui tweak

* white map icon in dark mode

* make rquested changes

* make requested changes to layout

* fix misalignment of category list

* subtle amendments

* convert comments to javadocs

* minor amendments

* minor changes

* add styles for media detail

* Media detail fragment refactored

* make suggested changes

* minor name fix

* fix the delete button border

Co-authored-by: Josephine Lim <josephinelim86@gmail.com>
Co-authored-by: Manuel Alcaraz <47950933+m-alzam@users.noreply.github.com>
Co-authored-by: translatewiki.net <l10n-bot@translatewiki.net>
Co-authored-by: neslihanturan <tur.neslihan@gmail.com>
Co-authored-by: Zoran Dori <zorandori4444@gmail.com>
Co-authored-by: ANKIT <bhardwajankit1414@gmail.com>
Co-authored-by: Ashish Kumar <ashishkumar468@gmail.com>
Co-authored-by: Amir E. Aharoni <amir.aharoni@mail.huji.ac.il>
Co-authored-by: Kshitij Bhardwaj <44129798+kbhardwaj123@users.noreply.github.com>
Co-authored-by: Malcolm Smith <malcolmsmith18@gmail.com>
Co-authored-by: Alicia <12453997+albendz@users.noreply.github.com>
Co-authored-by: Somanshu <somanshS14@gmail.com>
Co-authored-by: animeshk08 <32506591+animeshk08@users.noreply.github.com>
Co-authored-by: Madhur Gupta <30932899+madhurgupta10@users.noreply.github.com>
Co-authored-by: Mudit Jain <ciphereck@gmail.com>
Co-authored-by: Kaartic Sivaraam <kaartic.sn@zohocorp.com>
Co-authored-by: Yash Khare <yashsja@gmail.com>
Co-authored-by: Aastha Bist <abist119@gmail.com>
Co-authored-by: gouri-panda <gouripanda4@gmail.com>
Co-authored-by: Aryan Tyagi <aryantyagiofficial@gmail.com>
Co-authored-by: Veyndan Stuart <veyndan@gmail.com>
Co-authored-by: Aristos Pasalidis <33037826+rtsketo@users.noreply.github.com>
Co-authored-by: Adam Jones <jones_adam@rocketmail.com>
Co-authored-by: Seán Mac Gillicuddy <seantheappdev@gmail.com>
Co-authored-by: Anmol Gupta <44764339+6point022@users.noreply.github.com>
Co-authored-by: taakanksha <37452934+aakankshaa23@users.noreply.github.com>
Co-authored-by: Kaartic Sivaraam <kaartic.sivaraam@gmail.com>
Co-authored-by: 318anushka <45694892+318anushka@users.noreply.github.com>
Co-authored-by: Vitaly V. Pinchuk <vetal.978@gmail.com>
Co-authored-by: Fawziyah Alebiosu <fawziyah.alebiosu@gmail.com>
Co-authored-by: hudlerr <ha241@student.le.ac.uk>
Co-authored-by: Hdot <a.hudaa@hotmail.com>
Co-authored-by: Prince Amankwah <iprins88@yahoo.com>
Co-authored-by: Prince Amankwah <pramankwah@gmail.com>
@macgills
Copy link
Contributor

Tried on a 5.1 emulator, worked fine for me, potentially a samsung issue, can't diagnose it any further at this time.

Whoever takes this up maybe try a Room Upgrade, maybe after skimming their release logs/issues?

ashishkumar468 pushed a commit to ashishkumar468/apps-android-commons that referenced this issue Sep 12, 2020
* fixed logout problem

fixed logout problem

fixed logout problem

fixed logout problem

fixed logout problem

* added error handling on logout
misaochan pushed a commit that referenced this issue Sep 14, 2020
* fixed logout problem

fixed logout problem

fixed logout problem

fixed logout problem

fixed logout problem

* added error handling on logout

Co-authored-by: gouri-panda <gouripanda4@gmail.com>
@misaochan
Copy link
Member

Thanks for pointing me to this issue, should be fixed by #3649 .

@sivaraam
Copy link
Member Author

Sadly as noted in my earlier comment, that PR didn't fix the issue for me. I still observe the behaviour stated in the issue description :( I tried using 2.13.1.793~66f6e2e

@sivaraam sivaraam reopened this Sep 26, 2020
@misaochan
Copy link
Member

Ah sorry, I didn't notice that. I am unable to reproduce this bug on a 5.1 emulator, wonder what could be causing it. Perhaps we should try to upgrade Room as macgills suggests.

ashishkumar468 added a commit to ashishkumar468/apps-android-commons that referenced this issue Oct 10, 2020
…#3927)

* fixed logout problem

fixed logout problem

fixed logout problem

fixed logout problem

fixed logout problem

* added error handling on logout

Co-authored-by: gouri-panda <gouripanda4@gmail.com>
ashishkumar468 added a commit to ashishkumar468/apps-android-commons that referenced this issue Oct 12, 2020
maskaravivek pushed a commit that referenced this issue Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants