commons-app / apps-android-commons

The Wikimedia Commons Android app allows users to upload pictures from their Android phone/tablet to Wikimedia Commons
https://commons-app.github.io/
Apache License 2.0
1.02k stars 1.2k forks source link

App closes unexpectedly while navigating between Explore and Achievements #2394

Closed ShridharGoel closed 5 years ago

ShridharGoel commented 5 years ago

Summary:

App closes unexpectedly while navigating between Explore and Achievements

Steps to reproduce:

  1. Go to Explore.
  2. Now, go to Achievements.
  3. Again go to Explore.
  4. Then, click on Achievements again.
  5. App would close.

Android version:

Android 7.1.2 (API 25)

Commons app version:

Latest master.

GIF:

ezgif com-video-to-gif 35

Would you like to work on the issue?

Yes

maskaravivek commented 5 years ago

@ShridharGoel Is there anything in the logs? Can you share logcat as well.

ShridharGoel commented 5 years ago

@maskaravivek The app is not crashing actually. It's just closing. The issue is similar to #2200.

Tanvi-Goyal commented 5 years ago

Is anyone working on this issue ?

ShridharGoel commented 5 years ago

@Tanvi-Goyal Yes, my PR is already up, waiting for a review.

Tanvi-Goyal commented 5 years ago

Okay @ShridharGoel

maskaravivek commented 5 years ago

@ShridharGoel Does it still happen for you? It doesn't happen for me on latest master.

ShridharGoel commented 5 years ago

@maskaravivek It might be happening only on specific API levels similar to #2200

ShridharGoel commented 5 years ago

It's still happening for me on Android version 7.1.2 (API 25)

nicolas-raoul commented 5 years ago

I also managed to reproduce this on 7.1.2 (LineageOS) but now I am trying to reproduce again (to get a logcat) and it does not reproduce :-/

ShridharGoel commented 5 years ago

@nicolas-raoul Please try to do same as in the GIF, it should reproduce. :)

nicolas-raoul commented 5 years ago

Reproduced, the log does not contain anything obvious unfortunately:

02-27 20:07:45.043 10072 10138 D OkHttp  : <-- 200 https://tools.wmflabs.org/urbanecmbot/commonsmisc//wikidataedits.py?user=Syced (553ms)
02-27 20:07:45.043 10072 10138 D OkHttp  : server: nginx/1.13.6
02-27 20:07:45.043 10072 10138 D OkHttp  : date: Wed, 27 Feb 2019 11:08:23 GMT
02-27 20:07:45.043 10072 10138 D OkHttp  : content-type: application/json
02-27 20:07:45.043 10072 10138 D OkHttp  : content-length: 14
02-27 20:07:45.043 10072 10138 D OkHttp  : access-control-allow-origin: *
02-27 20:07:45.043 10072 10138 D OkHttp  : strict-transport-security: max-age=86400
02-27 20:07:45.044 10072 10138 D OkHttp  : x-clacks-overhead: GNU Terry Pratchett
02-27 20:07:45.044 10072 10138 D OkHttp  : content-security-policy-report-only: default-src 'self' 'unsafe-eval' 'unsafe-inline' blob: data: filesystem: mediastream: wikibooks.org *.wikibooks.org wikidata.org *.wikidata.org wikimedia.org *.wikimedia.org wikinews.org *.wikinews.org wikipedia.org *.wikipedia.org wikiquote.org *.wikiquote.org wikisource.org *.wikisource.org wikiversity.org *.wikiversity.org wikivoyage.org *.wikivoyage.org wiktionary.org *.wiktionary.org *.wmflabs.org wikimediafoundation.org mediawiki.org *.mediawiki.org wss://tools.wmflabs.org; report-uri https://tools.wmflabs.org/csp-report/collect;
02-27 20:07:45.046 10072 10138 D OkHttp  : {"edits": 28}
02-27 20:07:45.046 10072 10138 D OkHttp  : <-- END HTTP (14-byte body)
02-27 20:07:46.207   788   788 D ZenLog  : intercepted: 0|com.whatsapp|9|null|10123,alarmsOnly
02-27 20:07:46.208   788   788 V NotificationService: pkg=com.whatsapp canInterrupt=false intercept=true
02-27 20:07:46.493 10072 10098 D OkHttp  : <-- 200 https://tools.wmflabs.org/urbanecmbot/commonsmisc/feedback.py?user=Syced (2004ms)
02-27 20:07:46.493 10072 10098 D OkHttp  : server: nginx/1.13.6
02-27 20:07:46.493 10072 10098 D OkHttp  : date: Wed, 27 Feb 2019 11:08:24 GMT
02-27 20:07:46.493 10072 10098 D OkHttp  : content-type: application/json
02-27 20:07:46.493 10072 10098 D OkHttp  : access-control-allow-origin: *
02-27 20:07:46.493 10072 10098 D OkHttp  : strict-transport-security: max-age=86400
02-27 20:07:46.493 10072 10098 D OkHttp  : x-clacks-overhead: GNU Terry Pratchett
02-27 20:07:46.493 10072 10098 D OkHttp  : content-security-policy-report-only: default-src 'self' 'unsafe-eval' 'unsafe-inline' blob: data: filesystem: mediastream: wikibooks.org *.wikibooks.org wikidata.org *.wikidata.org wikimedia.org *.wikimedia.org wikinews.org *.wikinews.org wikipedia.org *.wikipedia.org wikiquote.org *.wikiquote.org wikisource.org *.wikisource.org wikiversity.org *.wikiversity.org wikivoyage.org *.wikivoyage.org wiktionary.org *.wiktionary.org *.wmflabs.org wikimediafoundation.org mediawiki.org *.mediawiki.org wss://tools.wmflabs.org; report-uri https://tools.wmflabs.org/csp-report/collect;
02-27 20:07:46.496 10072 10098 D OkHttp  : {"thanksReceived": 13, "user": "Syced", "uniqueUsedImages": 262, "imagesEditedBySomeoneElse": 272, "featuredImages": {"Featured_pictures_on_Wikimedia_Commons": 0, "Quality_images": 0}, "deletedUploads": 25, "articlesUsingImages": 2180, "status": "ok"}
02-27 20:07:46.496 10072 10098 D OkHttp  : <-- END HTTP (252-byte body)
02-27 20:07:46.497 10072 10098 D OkHttpJsonApiClient: Response for achievements is {"thanksReceived": 13, "user": "Syced", "uniqueUsedImages": 262, "imagesEditedBySomeoneElse": 272, "featuredImages": {"Featured_pictures_on_Wikimedia_Commons": 0, "Quality_images": 0}, "deletedUploads": 25, "articlesUsingImages": 2180, "status": "ok"}
02-27 20:07:46.507 10072 10147 D OkHttp  : --> GET https://tools.wmflabs.org/urbanecmbot/commonsmisc//uploadsbyuser.py?user=Syced
02-27 20:07:46.507 10072 10147 D OkHttp  : --> END GET
02-27 20:07:46.610   788   788 V NotificationService: pkg=com.whatsapp canInterrupt=false intercept=true
02-27 20:07:47.026 10072 10147 D OkHttp  : <-- 200 https://tools.wmflabs.org/urbanecmbot/commonsmisc//uploadsbyuser.py?user=Syced (518ms)
02-27 20:07:47.026 10072 10147 D OkHttp  : server: nginx/1.13.6
02-27 20:07:47.026 10072 10147 D OkHttp  : date: Wed, 27 Feb 2019 11:08:25 GMT
02-27 20:07:47.026 10072 10147 D OkHttp  : content-type: text/html
02-27 20:07:47.026 10072 10147 D OkHttp  : content-length: 4
02-27 20:07:47.026 10072 10147 D OkHttp  : access-control-allow-origin: *
02-27 20:07:47.026 10072 10147 D OkHttp  : strict-transport-security: max-age=86400
02-27 20:07:47.026 10072 10147 D OkHttp  : x-clacks-overhead: GNU Terry Pratchett
02-27 20:07:47.026 10072 10147 D OkHttp  : content-security-policy-report-only: default-src 'self' 'unsafe-eval' 'unsafe-inline' blob: data: filesystem: mediastream: wikibooks.org *.wikibooks.org wikidata.org *.wikidata.org wikimedia.org *.wikimedia.org wikinews.org *.wikinews.org wikipedia.org *.wikipedia.org wikiquote.org *.wikiquote.org wikisource.org *.wikisource.org wikiversity.org *.wikiversity.org wikivoyage.org *.wikivoyage.org wiktionary.org *.wiktionary.org *.wmflabs.org wikimediafoundation.org mediawiki.org *.mediawiki.org wss://tools.wmflabs.org; report-uri https://tools.wmflabs.org/csp-report/collect;
02-27 20:07:47.028 10072 10147 D OkHttp  : 866
02-27 20:07:47.028 10072 10147 D OkHttp  : <-- END HTTP (4-byte body)
02-27 20:07:47.029 10072 10077 I art     : Do partial code cache collection, code=26KB, data=30KB
02-27 20:07:47.034 10072 10077 I art     : After code cache collection, code=26KB, data=30KB
02-27 20:07:47.034 10072 10077 I art     : Increasing code cache capacity to 128KB
02-27 20:07:47.496   788   788 V NotificationService: pkg=com.whatsapp canInterrupt=false intercept=true
02-27 20:07:48.352   930   930 I GoogleInputMethod: onFinishInput() : Dummy InputConnection bound
02-27 20:07:48.352   930   930 I GoogleInputMethod: onStartInput() : Dummy InputConnection bound
02-27 20:07:48.352   930   930 I ShortcutsDataManager: startImportContentTask()
02-27 20:07:48.352   930   930 I ShortcutsDataManager: onImportAborted()
02-27 20:07:49.243   788  1864 I ActivityManager: START u0 {flg=0x20020000 cmp=fr.free.nrw.commons/.category.CategoryImagesActivity (has extras)} from uid 10229 on display 0
02-27 20:07:49.816   930   930 I GoogleInputMethod: onFinishInput() : Dummy InputConnection bound
02-27 20:07:49.816   930   930 I GoogleInputMethod: onStartInput() : Dummy InputConnection bound
02-27 20:07:49.816   930   930 I ShortcutsDataManager: startImportContentTask()
02-27 20:07:49.816   930   930 I ShortcutsDataManager: onImportAborted()
02-27 20:07:50.059  1140  1140 I GeofencerStateMachine: sendNewTransitions called.
02-27 20:07:50.069  1140  9744 I Places  : Converted 16 out of 16 WiFi scans
02-27 20:07:50.085  1140  1140 I GeofencerStateMachine: sendNewTransitions called.
02-27 20:07:50.098  1140  1140 I GeofencerStateMachine: sendNewLocationAvailability: availability=LocationAvailability[isLocationAvailable: true]
02-27 20:07:51.625   788  1895 I ActivityManager: START u0 {flg=0x24000000 cmp=fr.free.nrw.commons/.achievements.AchievementsActivity} from uid 10229 on display 0
02-27 20:07:51.747   930   930 I GoogleInputMethod: onFinishInput() : Dummy InputConnection bound
02-27 20:07:51.747   930   930 I GoogleInputMethod: onStartInput() : Dummy InputConnection bound
02-27 20:07:51.747   930   930 I ShortcutsDataManager: startImportContentTask()
02-27 20:07:51.747   930   930 I ShortcutsDataManager: onImportAborted()
02-27 20:07:51.883   788   798 I art     : Background partial concurrent mark sweep GC freed 92962(5MB) AllocSpace objects, 26(1688KB) LOS objects, 33% free, 25MB/38MB, paused 1.198ms total 181.608ms
02-27 20:07:52.265  1933 10261 E fb4a.GRAPHQL_QUERY_STRING: Trying to use query id on graph services backed query 'DeltaNotificationsQuery'. The id is now removed from Java layer. See https://fburl.com/7c0t5i23 for more explanation.
02-27 20:07:52.266  1933 10261 E fb4a.GRAPHQL_QUERY_STRING: Trying to use query id on graph services backed query 'DeltaNotificationsQuery'. The id is now removed from Java layer. See https://fburl.com/7c0t5i23 for more explanation.
02-27 20:07:52.306  1896  2103 W OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
02-27 20:07:52.306  1896  2103 W OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
02-27 20:07:52.635   228   302 I ThermalEngine: TM Id 'SKIN_THERMAL_management_1' Sensor 'xo_therm_pu2' - alarm raised 1 at 40.0 degC
02-27 20:07:52.635   228   302 I ThermalEngine: ACTION: CPU - Setting CPU[0] to 1958400
02-27 20:07:52.635   228   302 I ThermalEngine: ACTION: CPU - Setting CPU[1] to 1958400
02-27 20:07:52.635   228   302 I ThermalEngine: ACTION: CPU - Setting CPU[2] to 1958400
02-27 20:07:52.635   228   302 I ThermalEngine: ACTION: CPU - Setting CPU[3] to 1958400
02-27 20:07:52.636   228   302 I ThermalEngine: ACTION: LCD - Setting max LCD brightness to 229
02-27 20:07:59.828  9794  9835 W CrashLoopRemedyLog: unable to delete remedy log, instaCrash: true
02-27 20:08:00.094  3921  3921 I Watcher_AppUti: Sending:android.appwidget.action.APPWIDGET_UPDATE
02-27 20:08:00.180  3921  3921 I Watcher_AppUti: Sending:android.appwidget.action.APPWIDGET_UPDATE
02-27 20:08:01.274  3921  3921 I Watcher_AppUti: Sending:android.appwidget.action.APPWIDGET_UPDATE
02-27 20:08:01.294  3921 10312 W System  : ClassLoader referenced unknown path: /system/framework/tcmclient.jar
02-27 20:08:01.297  3921 10312 D NetworkSecurityConfig: No Network Security Config specified, using platform default
02-27 20:08:02.193  3921  3921 I Watcher_AppUti: Sending:android.appwidget.action.APPWIDGET_UPDATE
02-27 20:08:02.283  1140  1140 I Wear_Controller: Wear requires a companion app to be installed.
02-27 20:08:02.283  1140  1140 I WearableService: onCreate: Wearable Services not starting. Wear is not available on this device.
02-27 20:08:02.301  1140  5034 W WearableService: onGetService: Wear is not available on this device.
02-27 20:08:02.306  3921 10322 E b       : Failed to connect to GoogleApiClient.