Skip to content

Conversation

@hoplite390
Copy link
Contributor

Fix for issue with underscore being inserted into username.

Fixes #{#1901} {Issue with underscore being inserted into username}

What changes did you make and why?
After login store string with username without replacing spaces with underscore and passing this string to CurrentAccount as Bundle() in 3rd parameter userdata.

So it can be used when we need authors name afterwards.

hoplite390 and others added 8 commits November 2, 2018 17:47
Update fork from original
To keep my fork up to date
*  Added resaons in dropdown list

* Made changes

* Fixed Conflicts

*  Shifted strings to String.xml

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

* Remove unused mediawiki api dependency (commons-app#1991)

* Categories with pipe suffix (commons-app#1873)

* Bug fix issue commons-app#1826
Changes made :
-Certain category names used to show suffixed with strings prefixed with pipe '|'. Removed everything after the pipe. As per the discussion on the thread, its safe to remove everything after the pipe, including the pipe

* review suggested changes
*Code formatting
*Extracted out the index of pipe in a variable
*Added issue link in comments

* Remove libraries section from README (commons-app#1988)

* Remove libraries section from README

* Add wiki link to "libraries used" to README

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

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

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

* Main screen ui changes, fixes commons-app#725  Main screen UI overhaul (commons-app#1922)

* Delete Contributions Activity content to rewrite it

* Add layout for new Contributions Activity design

* Bind views

* Override auth cookie required

* Add tabs and fragments method

* Create ContributionsFragment which will hold ContributionsListFragment and MediaDetailsFragment

* Add NearbyFragment which will hold NearbyMapFragment and NearbyListFragment

* Add ContributionsActivityPagerAdapter inner class to manage view pager

* Create strings will be written on tabs for contributions and nearby

* Create setTabAndViewPagerSynchronisation method to sycn view pager and tab layout. If user swipe pages, tabs will also change (and vice versa)

* Add theme dependent background color for Drawer Layout of activity_contributions layout file

* Add theme dependent background color for tabs in main

* Create Contributions Fragment structure which will hold Media Detail Fragment and Contributions List Fragment

* Inifilate contributions list fragment view

* Create variables and methods to reuse and create Media Detils Fragment and Contributions List Fragment which will be inside Contribution Fragment

* Override cursor loader methods

* set MediaDetilsView fragment or ContributionListFragment according to users state

* Show details of an image when item is clicked

* Add delete and retry functionality, note: not tested yet

* Override media count methods

* Implement onBack Pressed settings

* Register and unregister datasetObservers

* Add contributin list fragment

* Add contribution list layout with FABs for camera and galerry

* Make sure we called onAuthAcquired from fragment after is is attached

* Create ContributionListViewUtils class to change visibility of views according to MediaDetailsFragment visiblity or their loading state

* Make number of uploads visible if contribution list is visible and number of uploads is uploaded. Progress bar is visible if contribution list is visible and number of uploads are uploading. Both invisible if Media Details Fragment is visible

* Return parent fragment instead of parent activity

* GetPagerFragment instead of getActivity since currently ContributionsFragment take over responsibility from ContributionsActivity

* Add contribution number next to tab text for contribution, as discussed in thread

* Remove number of uploads from contributions fragment since we moved it text of tab layout

* Add unread notifications asynctask to check unread notifications on background

* Save latest time user notification activity viewed

* Add shared preferences provider for latest notification activity visit time

* Add shared preferences provider for latest notification activity visit time

* Change notification icon (add blue dot) whenever a notification comes

* Recover notifications state on come back to contributions list from media details fragment

* Add date with year parameter to Notification class, because we will use it on comparasion of dates

* Check if user visited noifications activity after last notification came

* Add ation to notification icon

* Add nearby custom card view class

* Add card view to activity

* Add a button which will be displayed when nearby permission is not granted thus closest point can't be displayed on main screen. Besides, theme dependent click styles are added to button

* Add button click and permission request logic. Not: solve why location manager is null

* Inject location manager to activity instead

* Make card view dismissable with swip

* Add preference to disable or display closest nearby location

* Add a bugfix to set visibility of nearby notification cardview

* Add UI modifier methods to display notifications

* Modify getFromWikidataQuery method, so that based on the restunClosestResult boolean, we get only the closest nearby place, instead of fetching bunch of nearby places each time

* Make inner class vaariables public to reach them out of package

* Temporarily comment out icon setter methods since it crashes under API19

* Inject location manager

* Register location manager accoring to permission is given, then call nearby card view updater methods

* Change method calls loadAttractionsFromLocation by considering new parameter to decide between closest nearby call or an usual nearby call

* Add progress bar to nearby cardview

* Fix notifications string

* Hide nearby card view when Media Details is visible

* Change tab on nerby card view click

* Add hardcoded strings to strings.xml

* Move nearby activity to new nearby frament

* Add fragments for nearby list and map into outer nearby fragment

* Change options menu item according to tab view

* Make nearby card view invisible on swipe to nearby tab

* Use retained nearby fragment

* Add action to list sheet button

* This commit caused contrib list become invisible thus,
Revert "Use retained nearby fragment"

This reverts commit 86b3633.

* Make sure retained fragments are used for -both- nearby and contrib fragments

* Remove unrelated part added because of confusion, sorry

* Make sure nearbyNotificationCardView visibility works corrent

* Move nearby methods from nerby activity to nearby fragment, and add a lastLocationDuplicate variable to distinguish first time location from nearby fragment and nearby notification card on contributions activity

* Change activity.findViewByID lines with parentFragment.view.findViewById

* Remove toolbar from nearby fragment, since contributions activity already has

* Disable view pager swipe, since using map is very hard with swipe option of view pager

* Place progress bar inside nearby card notification to center

* Make sure using retaied nearby map fragment and nearby list fragment inside nearby fragment

* Update nearby notification content on slight location updates too, if it is first update after on resume. This prevented very long time loading progress bar

* Add case for no nearest pleace found, to prevent bug

* Prevent a possible bug can be caused from activity already killed

* Add click actions to FAB buttons in contributions list fragment. And arrange FAB margins

* Try to use a new location manager instance instead of using single object for both nearby map and nearby notification card view. Because location manager has a state mechanism which is designed to be called from a single point. When I call same methods from both nearby card view notification and nearby map, next update time of map etc. gets confused.

* Set radius to initial value on getFromWikidataQuery (when it is called for getting closest result to be used in nearby card view notification). Normally, algorithm increase radius, this technique works for nearby map but when it comes to finding nearest point, it can return null

* Add an enum to make card view visibility more stable, however, still there is a bug.

* Prevent some more nearby card view visilbility bugs, however still there is a bug

* Add some nullchecks for precaution

* Check nearby permission and refresh nearby view if nearby tab selected, othervise do nothing

* Send user to contrib tab if permission is denied after masrhmallow

* Change nearby fragment background so that progress bar is visible now

* Reduce code duplicate

* request location and gps permission from contribution nearby car view too

* Make sure using retained fragments

* Make sure Contrib list fragment is retained on orientation change

* Fix NPE at options menu

* Make fragment flag fancier, define it per fragment instance, instead of activity

* Fix Service leak and onsavedInstance NPE errrors both occured on orientation change

* Refresh nearby map on orientation change

* Remove unused imports, organise logs and add comments for NearbyMapFragment class

* Remove all references of nearby activity, since we don't use it anymore

* Remove unused imports, organise logs and add comments for Nearby Controller

* Remove unused imports, organise logs and add comments for NearbyFragment

* Remove unused imports, organise logs and add comments for NearbyNotificationCardView

* Change class name from Contributions Activity to Main Activity. Remove unused imports, organise logs and add comments for MainAtivity

* Remove extra spaces

* Remove unused imports and logs

* Remove unused imports, organise logs and add comments for LocationServiceManager

* Remove unused imports, organise logs and add comments for NotificationsActivity

* Remove unused imports, organise logs and add comments for Contributions Fragment

* bug fix nearby notification card dismiss/restore issue

* Change display_nearby_notification_summary varibale with Tap here to see the nearest place that needs pictures

* Add nearest place notification card dismiss toast

* Fix mistake made on previous commit, while fixing conflicts

* Set no data yet message invisible after contributions list is loaded

* Change FAB margins, according to Josephine's review

* Change FAB margins, according to Josephine's review

* Change contributions list background to white, to make FAB more visible

* Add infobutton with popup window next to nearby tba, to explain what does this tab do

* Change hambuger icon to back arrow when media details activity visible

* On back button clicked from nearby fragment, switch back to contributions fragment, instead of closing the app

* Check nearby card view visibility on coming back from media details activity

* Change notification icon with default vector supplied by android vector repos. If we use the one I drawn on inkscape, produced vector is not compatible with API level 19 and below. I couldn't find a proper solution, and decided to change icon

* Fix a possible NPE, caused by loation manager has Main activity reference after it is destroyed

* Change hardcoded string with var from string xml

* Make sure you listen storage permissions from contribution list framgent FABs

* Make sure you listened storage permissions for Neaby fragment buttons too

* Check NPEs causing crashes. Now it does not crash after coming back from settings activity

* Make notification icon compatible with <API19 devices, by drawing and using .png images

* Change back icon arrow vector with png

* Attempt to solve location manager caused memory leak

* Fix memory leaks and optimize imports

* Merge 2.9 release

* Small ui fixes on new main ui (commons-app#1995)

* Return to main activity from notifications activity on back button is pressed

* Make nearby info image a little far from nearby text, to prevent wrong clicks

* Bug fix issue commons-app#1999 (commons-app#2000)

* Added a threshold on swipe, ie. if a swipe is considered a swipe only if it covers a distance of 100dp

* Multiple uploads with over haul (commons-app#1968)

* Added new upload activity that receives shared files from the gallery.  Cards show and hide, plus titles are correct.  Displayed thumbnails for the shared images

* Better handling of the view paging plus error handling for required fields.

* Code cleanup to make things more readable.

* Extracted a model from the category search fragment that can possibly be shared with the new upload activity.

* Added category selection to the combined upload screen.

* Cleanup before the home-stretch on the GUI.

* Adding license selection.

* Fixed build warnings + cleanup

* Start to support the dark theme.

* Work in progress to add quality checking.

* Fixing merge.

* GPSExtractor: optimized away the EXifInterface object

* Implemented submit functionality, temporarily fixed jacoco crash by disabling DUMMY UploadView object.

* Implemented uploading of categories along with the picture. The category screen now displays GPS and recent categories when nothing is searched.

* Implemented caching of files. Did some work on picture quality detection.

* Implemented too dark picture detection.

* Added a side card for zoom and map buttons along with pretty animations for stuff.

* Added duplicate image on commons checking and fixed files not getting proper file extensions in several places.

* Added support for map button and switched in-app upload buttons to UploadActivity

* Pretty pretty animations!

* Implemented zoom functionality for th background image. Just pinching on the image works instead of requiring buttons.

* Added multi-language descriptions with categories by region.

* Reimplemented the duplicate title checker and implemented a check against putting the same language twice in the description.

* Javadocs for Description and UploadPresenter, plus some general cleanup.

* Small code changes.

* Implemented login checks for the Upload screen.

* Implement receiving data from Nearby.

* Feature/permissions library (commons-app#1855)

* Added permission for Dexter, the runtime permission handling library

* [Preparing fir issue commons-app#1773] Added a utility function which would take the user to app settings screen where he could manually give us the required permission

* Added an alert dialog with positive and negative callback [Preparing fir issue commons-app#1773]

* Improvements in the way External Storage Permission is handled in MultipleShareActivity[Bug fix commons-app#1697]
1. Used dexter to handle the external storage permission
2. Behaviour changes : When user tries to share(uppload) images to commons via MultipleShareActivity, following decision tree is followed
	a. If the app has permission for external storage, normal upload operation is followed
	b. If the app does not has the permission for external storage, dexter is used to ask for the same
	c. If the user gives us the required permission, normal upload flow is proceeded
	d. If the doesnot gives us the required permission a rationale dialog is shown with the appropriate message to let him know why we need the permission
	e. If he presses okay, steps a-c are followed and if he presses cancel, we close the app.
	f. If while asking for permission, the user chooses never ask again, then next time he tries to upload an image via MSA, the rational dialog follows the app setting screen where he could manually give us the required permission and the onActivityResult of same is handled

* Added a Constants class to handle request and result codes from one place and other related constants common to the all app elements

* replaced hardcoded strings ok and cancel in DialogUtil to string resources

* init permission rationale dialog in activities onCreate

* Code formatting, updated access modifiers wherever required, added javadocs for new methods created

* *shifted constants to app class
*Added JavaDocs in PermissionUtils

* removed class REQUEST_CODES from CommonsApplication and instead put the enclosing constants in the App class itself

* Made Codacy happy.

* Abstarcted permission acquisition into new class DexterPermissionObtainer

* Fixed Nearby upload detection

* Migrated bad picture detection from AsyncTask to RxJava.

* Removed ShareActivity and related dead code

* Removed dead or duplicate code from FileProcessor

* Added info button to title EditText

* Fixed the add description button not disappearing.
Added "Starting Upload" toast.
Added link to the license on final screen.
Made it so that the map button is hidden when image lacks gps coords.

* Support in app multiple uploads

* Minor changes to fix build

* Changes to fix pending issues with upload flow

* Fix display of similar image fragment

* When uploading several files at once the date is missing commons-app#1854 (#2)

* Bug fix issue commons-app#1854
* updated ContributionsDao to save create date, which it was not doing currently [it was instead saving current date]
* UploadItem accepts are dateCreated param
* Added a function in UploadModel, getFileCreatedDate which tries to fetched the file creaction date from all possible content providers.

* Fix pending issues in upload flow

* Make multiple uploads work for Google Photos

* Fix default state for upload activity

* Fix keyboard state for license screen

* Fix descriptions for uploads

* wip

* Fix language spinner

* Fix visibility error on media details view (commons-app#2009)

* Localisation updates from https://translatewiki.net.
@commons-app commons-app deleted a comment Nov 25, 2018
Repair gradle build file so that it uses buildToolsVersion buildToolsVersion.
repair gradle
repair gradle to fix Travis
@codecov-io
Copy link

codecov-io commented Nov 25, 2018

Codecov Report

Merging #1982 into master will decrease coverage by 0.07%.
The diff coverage is 8.33%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #1982      +/-   ##
=========================================
- Coverage    4.12%   4.05%   -0.08%     
=========================================
  Files         224     225       +1     
  Lines       11241   11363     +122     
  Branches     1023    1049      +26     
=========================================
- Hits          464     461       -3     
- Misses      10742   10868     +126     
+ Partials       35      34       -1
Impacted Files Coverage Δ
...a/fr/free/nrw/commons/upload/UploadController.java 0% <0%> (ø) ⬆️
...n/java/fr/free/nrw/commons/upload/UploadModel.java 0% <0%> (ø) ⬆️
...n/java/fr/free/nrw/commons/auth/LoginActivity.java 0% <0%> (ø) ⬆️
.../java/fr/free/nrw/commons/auth/SessionManager.java 16.17% <16.66%> (+0.3%) ⬆️
...s/ui/LongTitlePreferences/LongTitlePreference.java 18.18% <0%> (-36.37%) ⬇️
...ain/java/fr/free/nrw/commons/utils/DialogUtil.java 0% <0%> (ø) ⬆️
...ee/nrw/commons/media/MediaDetailPagerFragment.java 0% <0%> (ø) ⬆️
.../nrw/commons/nearby/NearbyNoificationCardView.java 0% <0%> (ø) ⬆️
...r/free/nrw/commons/contributions/MainActivity.java 0% <0%> (ø) ⬆️
...ava/fr/free/nrw/commons/upload/UploadActivity.java 0% <0%> (ø) ⬆️
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3889126...4961ca0. Read the comment docs.

@neslihanturan
Copy link
Collaborator

Hi @hoplite390 , sorry for late testing but, underscore is still there in my test. Do you have any suggestion?:

image

@neslihanturan
Copy link
Collaborator

Sorry, I misunderstood the issue first. But then I tested uploads, still my username has underscore on uploads.

image

@hoplite390
Copy link
Contributor Author

@neslihanturan maybe you can help me to test it, or at least please write me how you managed to upload picture, because lately (after pulling changes from master to update my fork) im facing "Failed" when i try to do new upload ether on my real phone or emulator (Nexus 27).

@neslihanturan
Copy link
Collaborator

Fails are a known issue:/ You can log out ad re-log in. This generally solves upload fails. Surely I can help with testing. Do you need logs, etc?

@hoplite390
Copy link
Contributor Author

The solution used to work when i purposed solution however im now unable to test it. I managed to resolve one reason of upload fail by disabling Instant run but i bumped right to another: (I guess this is the cause but re-log didnt help me with that)
2018-12-01 15:48:41.731 26406-26406/fr.free.nrw.commons.beta E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: (No such file or directory)

Exhibit that solution used to work:
Before
After

Underscore in Summary>Author disappeared.

Sadly it seems (from your comments and uploaded picture) that solution stopped working. I will try to found out why, but first i have to solve why my uploads are not getting through. (Thank you for your time)

@maskaravivek
Copy link
Contributor

@hoplite390 If you share logcat, we might be able to help you with your uploads issue. :)

@hoplite390
Copy link
Contributor Author

hoplite390 commented Dec 1, 2018

(Yeah sorry about that i should have done that in 1st place)
(Sorry for wasting your time)
EDITED with filter:

From emulator Nexus 5x api 27
Errors only:

2018-12-01 18:10:22.647 30577-30584/? E/zygote: Failed writing handshake bytes (-1 of 14): Broken pipe
2018-12-01 18:11:03.378 30577-30577/fr.free.nrw.commons.beta E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException:  (No such file or directory)
2018-12-01 18:11:23.088 30577-30577/fr.free.nrw.commons.beta E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException:  (No such file or directory)
2018-12-01 18:11:28.106 30577-30577/fr.free.nrw.commons.beta E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException:  (No such file or directory)
2018-12-01 18:12:13.415 30577-30586/fr.free.nrw.commons.beta E/SpellCheckerSession: ignoring processOrEnqueueTask due to unexpected mState=TASK_CLOSE scp.mWhat=TASK_CLOSE
2018-12-01 18:12:13.416 30577-30586/fr.free.nrw.commons.beta E/SpellCheckerSession: ignoring processOrEnqueueTask due to unexpected mState=TASK_CLOSE scp.mWhat=TASK_CLOSE
2018-12-01 18:12:15.095 30577-30612/fr.free.nrw.commons.beta E/ApacheHttpClientMediaWi: Error occurred while fetching auth token. Error code is notloggedin and message is Anonymous users cannot obtain a centralauthtoken.
2018-12-01 18:12:15.311 30577-30612/fr.free.nrw.commons.beta E/ApacheHttpClientMediaWi: Error occurred while fetching auth token. Error code is notloggedin and message is Anonymous users cannot obtain a centralauthtoken.
2018-12-01 18:12:25.210 30577-30612/fr.free.nrw.commons.beta E/ApacheHttpClientMediaWi: Result: fr.free.nrw.commons.mwapi.CustomApiResult@c53e374
2018-12-01 18:12:25.254 30577-30612/fr.free.nrw.commons.beta E/ApacheHttpClientMediaWi: badtoken

Debug:

2018-12-01 18:10:22.417 30577-30577/? I/zygote: Not late-enabling -Xcheck:jni (already on)
2018-12-01 18:10:22.497 30577-30577/? W/zygote: Unexpected CPU variant for X86 using defaults: x86
2018-12-01 18:10:22.647 30577-30584/? E/zygote: Failed writing handshake bytes (-1 of 14): Broken pipe
2018-12-01 18:10:22.647 30577-30584/? I/zygote: Debugger is no longer active
2018-12-01 18:10:22.969 30577-30577/? W/System.err: java.io.FileNotFoundException: /jacoco.exec (Read-only file system)
2018-12-01 18:10:22.974 30577-30577/? W/System.err:     at java.io.FileOutputStream.open0(Native Method)
2018-12-01 18:10:22.981 30577-30577/? W/System.err:     at java.io.FileOutputStream.open(FileOutputStream.java:287)
2018-12-01 18:10:22.981 30577-30577/? W/System.err:     at java.io.FileOutputStream.<init>(FileOutputStream.java:223)
2018-12-01 18:10:22.981 30577-30577/? W/System.err:     at org.jacoco.agent.rt.internal_8ff85ea.output.FileOutput.openFile(FileOutput.java:67)
2018-12-01 18:10:22.982 30577-30577/? W/System.err:     at org.jacoco.agent.rt.internal_8ff85ea.output.FileOutput.startup(FileOutput.java:49)
2018-12-01 18:10:22.982 30577-30577/? W/System.err:     at org.jacoco.agent.rt.internal_8ff85ea.Agent.startup(Agent.java:122)
2018-12-01 18:10:22.984 30577-30577/? W/System.err:     at org.jacoco.agent.rt.internal_8ff85ea.Agent.getInstance(Agent.java:50)
2018-12-01 18:10:22.996 30577-30577/? W/System.err:     at org.jacoco.agent.rt.internal_8ff85ea.Offline.<clinit>(Offline.java:31)
2018-12-01 18:10:22.998 30577-30577/? W/System.err:     at org.jacoco.agent.rt.internal_8ff85ea.Offline.getProbes(Offline.java:51)
2018-12-01 18:10:23.000 30577-30577/? W/System.err:     at fr.free.nrw.commons.CommonsApplication.$jacocoInit(Unknown Source:13)
2018-12-01 18:10:23.000 30577-30577/? W/System.err:     at fr.free.nrw.commons.CommonsApplication.<init>(Unknown Source:0)
2018-12-01 18:10:23.001 30577-30577/? W/System.err:     at java.lang.Class.newInstance(Native Method)
2018-12-01 18:10:23.001 30577-30577/? W/System.err:     at android.app.Instrumentation.newApplication(Instrumentation.java:1102)
2018-12-01 18:10:23.002 30577-30577/? W/System.err:     at android.app.Instrumentation.newApplication(Instrumentation.java:1087)
2018-12-01 18:10:23.040 30577-30577/? W/System.err:     at android.app.LoadedApk.makeApplication(LoadedApk.java:983)
2018-12-01 18:10:23.042 30577-30577/? W/System.err:     at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5715)
2018-12-01 18:10:23.042 30577-30577/? W/System.err:     at android.app.ActivityThread.-wrap1(Unknown Source:0)
2018-12-01 18:10:23.071 30577-30577/? W/System.err:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1656)
2018-12-01 18:10:23.071 30577-30577/? W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:106)
2018-12-01 18:10:23.071 30577-30577/? W/System.err:     at android.os.Looper.loop(Looper.java:164)
2018-12-01 18:10:23.073 30577-30577/? W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:6494)
2018-12-01 18:10:23.073 30577-30577/? W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
2018-12-01 18:10:23.075 30577-30577/? W/System.err:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
2018-12-01 18:10:23.076 30577-30577/? W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
2018-12-01 18:10:23.310 30577-30588/? I/zygote: Background concurrent copying GC freed 8744(2MB) AllocSpace objects, 0(0B) LOS objects, 57% free, 1133KB/2MB, paused 25.374ms total 94.687ms
2018-12-01 18:10:23.433 30577-30577/? D/NetworkSecurityConfig: No Network Security Config specified, using platform default
2018-12-01 18:10:23.686 30577-30577/fr.free.nrw.commons.beta D/SoLoader: init start
2018-12-01 18:10:23.687 30577-30577/fr.free.nrw.commons.beta D/SoLoader: adding system library source: /vendor/lib
2018-12-01 18:10:23.687 30577-30577/fr.free.nrw.commons.beta D/SoLoader: adding system library source: /system/lib
2018-12-01 18:10:23.691 30577-30577/fr.free.nrw.commons.beta D/SoLoader: adding application source: com.facebook.soloader.DirectorySoSource[root = /data/app/fr.free.nrw.commons.beta-aNgLcoxQtnjedNoxpRzBGg==/lib/x86 flags = 0]
2018-12-01 18:10:23.692 30577-30577/fr.free.nrw.commons.beta D/SoLoader: adding backup  source: com.facebook.soloader.ApkSoSource[root = /data/data/fr.free.nrw.commons.beta/lib-main flags = 1]
2018-12-01 18:10:23.693 30577-30577/fr.free.nrw.commons.beta D/SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /system/lib flags = 2]
2018-12-01 18:10:23.695 30577-30577/fr.free.nrw.commons.beta D/SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /vendor/lib flags = 2]
2018-12-01 18:10:23.695 30577-30577/fr.free.nrw.commons.beta D/SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /data/app/fr.free.nrw.commons.beta-aNgLcoxQtnjedNoxpRzBGg==/lib/x86 flags = 0]
2018-12-01 18:10:23.696 30577-30577/fr.free.nrw.commons.beta D/SoLoader: Preparing SO source: com.facebook.soloader.ApkSoSource[root = /data/data/fr.free.nrw.commons.beta/lib-main flags = 1]
2018-12-01 18:10:23.718 30577-30577/fr.free.nrw.commons.beta I/fb-UnpackingSoSource: dso store is up-to-date: /data/user/0/fr.free.nrw.commons.beta/lib-main
2018-12-01 18:10:23.719 30577-30577/fr.free.nrw.commons.beta D/SoLoader: init finish: 4 SO sources prepared
2018-12-01 18:10:23.719 30577-30577/fr.free.nrw.commons.beta D/SoLoader: init exiting
2018-12-01 18:10:23.804 30577-30577/fr.free.nrw.commons.beta I/ACRA: Migrating unsent ACRA reports to new file locations
2018-12-01 18:10:23.808 30577-30577/fr.free.nrw.commons.beta I/ACRA: Migrated 0 unsent reports
2018-12-01 18:10:23.818 30577-30577/fr.free.nrw.commons.beta I/ACRA: Converting unsent ACRA reports to json
2018-12-01 18:10:23.822 30577-30577/fr.free.nrw.commons.beta I/ACRA: Converted 0 unsent reports
2018-12-01 18:10:23.823 30577-30577/fr.free.nrw.commons.beta I/ACRA: ACRA is enabled for fr.free.nrw.commons.beta, initializing...
2018-12-01 18:10:23.847 30577-30599/fr.free.nrw.commons.beta I/stetho: Listening on @stetho_fr.free.nrw.commons.beta_devtools_remote
2018-12-01 18:10:24.250 30577-30588/fr.free.nrw.commons.beta I/zygote: Background concurrent copying GC freed 5773(690KB) AllocSpace objects, 10(264KB) LOS objects, 50% free, 1693KB/3MB, paused 5.648ms total 63.457ms
2018-12-01 18:10:24.383 30577-30582/fr.free.nrw.commons.beta I/zygote: Do partial code cache collection, code=30KB, data=25KB
2018-12-01 18:10:24.391 30577-30582/fr.free.nrw.commons.beta I/zygote: After code cache collection, code=29KB, data=25KB
2018-12-01 18:10:24.391 30577-30582/fr.free.nrw.commons.beta I/zygote: Increasing code cache capacity to 128KB
2018-12-01 18:10:24.561 30577-30582/fr.free.nrw.commons.beta I/zygote: Do partial code cache collection, code=31KB, data=49KB
2018-12-01 18:10:24.576 30577-30582/fr.free.nrw.commons.beta I/zygote: After code cache collection, code=31KB, data=49KB
2018-12-01 18:10:24.576 30577-30582/fr.free.nrw.commons.beta I/zygote: Increasing code cache capacity to 256KB
2018-12-01 18:10:24.577 30577-30582/fr.free.nrw.commons.beta I/zygote: JIT allocated 71KB for compiled code of void android.widget.TextView.<init>(android.content.Context, android.util.AttributeSet, int, int)
2018-12-01 18:10:24.578 30577-30582/fr.free.nrw.commons.beta I/zygote: Compiler allocated 4MB to compile void android.widget.TextView.<init>(android.content.Context, android.util.AttributeSet, int, int)
2018-12-01 18:10:24.765 30577-30577/fr.free.nrw.commons.beta I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.
2018-12-01 18:10:25.100 30577-30582/fr.free.nrw.commons.beta I/zygote: Do full code cache collection, code=109KB, data=65KB
2018-12-01 18:10:25.102 30577-30582/fr.free.nrw.commons.beta I/zygote: After code cache collection, code=100KB, data=48KB
2018-12-01 18:10:25.127 30577-30610/fr.free.nrw.commons.beta D/OpenGLRenderer: HWUI GL Pipeline
2018-12-01 18:10:25.195 30577-30577/fr.free.nrw.commons.beta D/UploadService: Set 0 uploads to failed
2018-12-01 18:10:25.200 30577-30577/fr.free.nrw.commons.beta D/UploadService: Flags is 0 id is 1
2018-12-01 18:10:25.217 30577-30614/fr.free.nrw.commons.beta D/ContributionsSyncAdapte: Max number of uploads set to 500
2018-12-01 18:10:25.506 30577-30588/fr.free.nrw.commons.beta I/zygote: Background concurrent copying GC freed 6428(735KB) AllocSpace objects, 8(276KB) LOS objects, 50% free, 2MB/5MB, paused 4.751ms total 169.559ms
2018-12-01 18:10:25.998 30577-30588/fr.free.nrw.commons.beta I/zygote: Background concurrent copying GC freed 44158(2MB) AllocSpace objects, 11(604KB) LOS objects, 49% free, 2MB/5MB, paused 5.763ms total 106.519ms
2018-12-01 18:10:26.051 30577-30582/fr.free.nrw.commons.beta I/zygote: Do partial code cache collection, code=125KB, data=66KB
2018-12-01 18:10:26.060 30577-30582/fr.free.nrw.commons.beta I/zygote: After code cache collection, code=118KB, data=64KB
2018-12-01 18:10:26.060 30577-30582/fr.free.nrw.commons.beta I/zygote: Increasing code cache capacity to 512KB
2018-12-01 18:10:26.307 30577-30577/fr.free.nrw.commons.beta D/ContributionsFragment: GPS is enabled
2018-12-01 18:10:26.533 30577-30614/fr.free.nrw.commons.beta D/CustomApiResult: API response is
     <?xml version="1.0" encoding="UTF-8"?><api batchcomplete=""><query><logevents/></query></api>
2018-12-01 18:10:26.540 30577-30606/fr.free.nrw.commons.beta D/CustomApiResult: API response is
     <?xml version="1.0" encoding="UTF-8"?><api batchcomplete=""><query><userinfo id="0" name="78.98.254.99" anon=""/></query></api>
2018-12-01 18:10:26.592 30577-30616/fr.free.nrw.commons.beta D/CustomApiResult: API response is
     <?xml version="1.0" encoding="UTF-8"?><api batchcomplete=""><query><userinfo id="0" name="78.98.254.99" anon=""/></query></api>
2018-12-01 18:10:26.822 30577-30610/fr.free.nrw.commons.beta I/zygote: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
2018-12-01 18:10:26.822 30577-30610/fr.free.nrw.commons.beta I/OpenGLRenderer: Initialized EGL, version 1.4
2018-12-01 18:10:26.822 30577-30610/fr.free.nrw.commons.beta D/OpenGLRenderer: Swap behavior 1
2018-12-01 18:10:26.823 30577-30610/fr.free.nrw.commons.beta W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
2018-12-01 18:10:26.823 30577-30610/fr.free.nrw.commons.beta D/OpenGLRenderer: Swap behavior 0
2018-12-01 18:10:26.852 30577-30610/fr.free.nrw.commons.beta D/EGL_emulation: eglCreateContext: 0x8ab4a1e0: maj 3 min 0 rcv 3
2018-12-01 18:10:26.870 30577-30610/fr.free.nrw.commons.beta D/EGL_emulation: eglMakeCurrent: 0x8ab4a1e0: ver 3 0 (tinfo 0x9d209ec0)
2018-12-01 18:10:27.045 30577-30614/fr.free.nrw.commons.beta D/ApacheHttpClientMediaWi: 0 results!
2018-12-01 18:10:27.180 30577-30616/fr.free.nrw.commons.beta D/CustomMwApi: User id is 0 and user name is 78.98.254.99
2018-12-01 18:10:27.175 30577-30614/fr.free.nrw.commons.beta D/ContributionsSyncAdapte: Last modified at 2018-12-01T14:48:00Z
2018-12-01 18:10:27.188 30577-30614/fr.free.nrw.commons.beta D/ContributionsSyncAdapte: 0 results!
2018-12-01 18:10:27.189 30577-30616/fr.free.nrw.commons.beta D/ApacheHttpClientMediaWi: Validate login response is false
2018-12-01 18:10:27.195 30577-30614/fr.free.nrw.commons.beta D/ContributionsSyncAdapte: Oh hai, everyone! Look, a kitty!
2018-12-01 18:10:27.232 30577-30577/fr.free.nrw.commons.beta D/MainActivity: Contributions activity notifications menu item is visible
2018-12-01 18:10:27.265 30577-30577/fr.free.nrw.commons.beta I/Choreographer: Skipped 120 frames!  The application may be doing too much work on its main thread.
2018-12-01 18:10:27.341 30577-30610/fr.free.nrw.commons.beta D/EGL_emulation: eglMakeCurrent: 0x8ab4a1e0: ver 3 0 (tinfo 0x9d209ec0)
2018-12-01 18:10:27.406 30577-30588/fr.free.nrw.commons.beta I/zygote: Background concurrent copying GC freed 25372(1973KB) AllocSpace objects, 15(300KB) LOS objects, 50% free, 3MB/7MB, paused 3.986ms total 164.160ms
2018-12-01 18:10:27.850 30577-30577/fr.free.nrw.commons.beta D/LocationServiceManager: Provider network disabled
2018-12-01 18:10:27.865 30577-30616/fr.free.nrw.commons.beta D/CustomApiResult: API response is
     <?xml version="1.0" encoding="UTF-8"?><api servedby="deployment-mediawiki-09"><error code="login-required" info="You must be logged in." xml:space="preserve">See https://commons.wikimedia.beta.wmflabs.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &amp;lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&amp;gt; for notice of API deprecations and breaking changes.</error></api>
2018-12-01 18:10:27.878 30577-30577/fr.free.nrw.commons.beta D/LocationServiceManager: on location changed
2018-12-01 18:10:27.907 30577-30577/fr.free.nrw.commons.beta D/LocationServiceManager: gps's status changed to 1
2018-12-01 18:10:27.952 30577-30577/fr.free.nrw.commons.beta I/Choreographer: Skipped 39 frames!  The application may be doing too much work on its main thread.
2018-12-01 18:10:28.022 30577-30606/fr.free.nrw.commons.beta D/NearbyController: Loading attractions near lat/lng: (37.421998333333335,-122.08400000000002)
2018-12-01 18:10:28.195 30577-30606/fr.free.nrw.commons.beta D/NearbyPlaces: https://query.wikidata.org/#SELECT%0A%20%20%20%20%20(SAMPLE(%3Flocation)%20as%20%3Flocation)%0A%20%20%20%20%20%3Fitem%0A%20%20%20%20%20(SAMPLE(COALESCE(%3Fitem_label_preferred_language%2C%20%3Fitem_label_any_language))%20as%20%3Flabel)%0A%20%20%20%20%20(SAMPLE(%3FclassId)%20as%20%3Fclass)%0A%20%20%20%20%20(SAMPLE(COALESCE(%3Fclass_label_preferred_language%2C%20%3Fclass_label_any_language%2C%20%22%3F%22))%20as%20%3Fclass_label)%0A%20%20%20%20%20(SAMPLE(COALESCE(%3Ficon0%2C%20%3Ficon1))%20as%20%3Ficon)%0A%20%20%20%20%20(SAMPLE(COALESCE(%3Femoji0%2C%20%3Femoji1))%20as%20%3Femoji)%0A%20%20%20%20%20%3FwikipediaArticle%0A%20%20%20%20%20%3FcommonsArticle%0A%20%20%20%20%20(SAMPLE(%3FCommons_category)%20as%20%3FCommons_category)%0A%20%20%20WHERE%20%7B%0A%20%20%20%20%20%23%20Around%20given%20location...%0A%20%20%20%20%20SERVICE%20wikibase%3Aaround%20%7B%0A%20%20%20%20%20%20%20%3Fitem%20wdt%3AP625%20%3Flocation.%0A%20%20%20%20%20%20%20bd%3AserviceParam%20wikibase%3Acenter%20%22Point(-122.0840%2037.4220)%22%5E%5Egeo%3AwktLiteral.%0A%20%20%20%20%20%20%20bd%3AserviceParam%20wikibase%3Aradius%20%221.00%22%20.%20%23%20Radius%20in%20kilometers.%0A%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%23%20...%20and%20without%20an%20image.%0A%20%20%20%20%20MINUS%20%7B%3Fitem%20wdt%3AP18%20%5B%5D%7D%0A%0A%20%20%20%20%20%23%20Get%20the%20label%20in%20the%20preferred%20language%20of%20the%20user%2C%20or%20any%20other%20language%20if%20no%20label%20is%20available%20in%20that%20language.%0A%20%20%20%20%20OPTIONAL%20%7B%3Fitem%20rdfs%3Alabel%20%3Fitem_label_preferred_language.%20FILTER%20(lang(%3Fitem_label_preferred_language)%20%3D%20%22en%22)%7D%0A%20%20%20%20%20OPTIONAL%20%7B%3Fitem%20rdfs%3Alabel%20%3Fitem_label_any_language%7D%0A%0A%20%20%20%20%20%23%20Get%20Commons%20category%20(P373)%0A%20%20%20%20%20OPTIONAL%20%7B%20%3Fitem%20wdt%3AP373%20%3FCommons_category.%20%7D%0A%0A%20%20%20%20%20%23%20Get%20the%20class%20label%20in%20the%20preferred%20language%20of%20the%20user%2C%20or%20any%20other%20language%20if%20no%20label%20is%20available%20in%20that%20language.%0A%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%3Fitem%20p%3AP31%2Fps%3AP31%20%3FclassId.%0A%20%20%20%20%20%20%20OPTIONAL%20%7B%3FclassId%20rdfs%3Alabel%20%3Fclass_label_preferred_language.%20FILTER%20(lang(%3Fclass_label_preferred_language)%20%3D%20%22en%22)%7D%0A%20%20%20%20%20%20%20OPTIONAL%20%7B%3FclassId%20rdfs%3Alabel%20%3Fclass_label_any_language%7D%0A%0A%20%20%20%20%20%20%20%23%20Get%20icon%0A%20%20%20%20%20%20%20OPTIONAL%20%7B%20%3FclassId%20wdt%3AP2910%20%3Ficon0.%20%7D%0A%20%20%20%20%20%20%20OPTIONAL%20%7B%20%3FclassId%20wdt%3AP279*%2Fwdt%3AP2910%20%3Ficon1.%20%7D%0A%20%20%20%20%20%20%20%23%20Get%20emoji%0A%20%20%20%20%20%20%20OPTIONAL%20%7B%20%3FclassId%20wdt%3AP487%20%3Femoji0.%20%7D%0A%20%20%20%20%20%20%20OPTIONAL%20%7B%20%3FclassId%20wdt%3AP279*%2Fwdt%3AP487%20%3Femoji1.%20%7D%0A%0A%20%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%3FwikipediaArticle%20%20%20schema%3Aabout%20%3Fitem%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20schema%3AisPartOf%20%3Chttps%3A%2F%2Fen.wikipedia.org%2F%3E%20.%0A%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%3FwikipediaArticle%20%20%20schema%3Aabout%20%3Fitem%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20schema%3AisPartOf%20%3Chttps%3A%2F%2Fen.wikipedia.org%2F%3E%20.%0A%20%20%20%20%20%20%20%20%20%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22en%22%20%7D%0A%20%20%20%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%3FcommonsArticle%20%20%20schema%3Aabout%20%3Fitem%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20schema%3AisPartOf%20%3Chttps%3A%2F%2Fcommons.wikimedia.org%2F%3E%20.%0A%20%20%20%20%20%20%20%20%20%20%20SERVICE%20
2018-12-01 18:10:28.195 30577-30606/fr.free.nrw.commons.beta D/NearbyPlaces: wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22en%22%20%7D%0A%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%7D%0A%20%20%20%7D%0A%20%20%20GROUP%20BY%20%3Fitem%20%3FwikipediaArticle%20%3FcommonsArticle%0A
2018-12-01 18:10:28.608 30577-30620/fr.free.nrw.commons.beta D/CustomApiResult: API response is
     <?xml version="1.0" encoding="UTF-8"?><api batchcomplete=""><query><normalized><n from="aaaasf.jpg" to="Aaaasf.jpg"/></normalized><pages><page _idx="-1" ns="0" title="Aaaasf.jpg" missing=""/></pages></query></api>
2018-12-01 18:10:28.903 30577-30582/fr.free.nrw.commons.beta I/zygote: Do full code cache collection, code=249KB, data=171KB
2018-12-01 18:10:28.912 30577-30582/fr.free.nrw.commons.beta I/zygote: After code cache collection, code=228KB, data=112KB
2018-12-01 18:10:29.337 30577-30624/fr.free.nrw.commons.beta D/SoLoader: About to load: libimagepipeline.so
2018-12-01 18:10:29.338 30577-30624/fr.free.nrw.commons.beta D/SoLoader: libimagepipeline.so not found on /data/data/fr.free.nrw.commons.beta/lib-main
2018-12-01 18:10:29.338 30577-30624/fr.free.nrw.commons.beta D/SoLoader: libimagepipeline.so found on /data/app/fr.free.nrw.commons.beta-aNgLcoxQtnjedNoxpRzBGg==/lib/x86
2018-12-01 18:10:29.338 30577-30624/fr.free.nrw.commons.beta D/SoLoader: Not resolving dependencies for libimagepipeline.so
2018-12-01 18:10:29.353 30577-30624/fr.free.nrw.commons.beta D/SoLoader: Loaded: libimagepipeline.so
2018-12-01 18:10:29.479 30577-30620/fr.free.nrw.commons.beta D/CustomApiResult: API response is
     <?xml version="1.0" encoding="UTF-8"?><api batchcomplete=""><query><pages><page _idx="-1" ns="0" title="Testing logcat.jpg" missing=""/></pages></query></api>
2018-12-01 18:10:29.936 30577-30588/fr.free.nrw.commons.beta I/zygote: NativeAlloc concurrent copying GC freed 33127(2MB) AllocSpace objects, 15(364KB) LOS objects, 50% free, 3MB/7MB, paused 18.443ms total 425.102ms
2018-12-01 18:10:32.389 30577-30577/fr.free.nrw.commons.beta D/ContributionController: startMultipleGalleryPick() called with pickImageIntent
2018-12-01 18:10:32.456 30577-30582/fr.free.nrw.commons.beta I/zygote: Do partial code cache collection, code=248KB, data=137KB
2018-12-01 18:10:32.456 30577-30582/fr.free.nrw.commons.beta I/zygote: After code cache collection, code=247KB, data=136KB
2018-12-01 18:10:32.456 30577-30582/fr.free.nrw.commons.beta I/zygote: Increasing code cache capacity to 1024KB
2018-12-01 18:10:32.493 30577-30606/fr.free.nrw.commons.beta D/NearbyPlaces: Reading from query result...
2018-12-01 18:10:32.695 30577-30606/fr.free.nrw.commons.beta D/NearbyPlaces: 6 results at radius: 1.000000
2018-12-01 18:10:32.696 30577-30606/fr.free.nrw.commons.beta D/NearbyController: Sorting places by distance...
2018-12-01 18:10:32.772 30577-30577/fr.free.nrw.commons.beta D/NearbyNoificationCardVi: Update nearby card notification content
2018-12-01 18:10:33.429 30577-30577/fr.free.nrw.commons.beta I/Choreographer: Skipped 36 frames!  The application may be doing too much work on its main thread.
2018-12-01 18:10:33.796 30577-30610/fr.free.nrw.commons.beta D/EGL_emulation: eglMakeCurrent: 0x8ab4a1e0: ver 3 0 (tinfo 0x9d209ec0)
2018-12-01 18:10:44.591 30577-30588/fr.free.nrw.commons.beta I/zygote: WaitForGcToComplete blocked HeapTrim on None for 6.078ms
2018-12-01 18:11:02.088 30577-30577/fr.free.nrw.commons.beta D/ContributionsListFragme: OnActivityResult() parameters: Req code: 3 Result code: -1 Data: Intent { dat=content://com.android.providers.media.documents/document/image:69 flg=0x1 }
2018-12-01 18:11:02.097 30577-30577/fr.free.nrw.commons.beta D/ContributionController: handleImagePicked() called with onActivityResult(). Boolean isDirectUpload: falseString wikiDataEntityId: null
2018-12-01 18:11:02.129 30577-30577/fr.free.nrw.commons.beta I/ContributionController: Image selected
2018-12-01 18:11:02.129 30577-30577/fr.free.nrw.commons.beta D/ContributionController: Put extras into image intent, isDirectUpload is false
2018-12-01 18:11:02.196 30577-30577/fr.free.nrw.commons.beta D/ContributionsListFragme: OnActivityResult() parameters: Req code: 65539 Result code: -1 Data: Intent { dat=content://com.android.providers.media.documents/document/image:69 flg=0x1 }
2018-12-01 18:11:02.219 30577-30577/fr.free.nrw.commons.beta D/ContributionsFragment: GPS is enabled
2018-12-01 18:11:02.504 30577-30577/fr.free.nrw.commons.beta D/LocationServiceManager: Provider network disabled
2018-12-01 18:11:02.507 30577-30577/fr.free.nrw.commons.beta D/LocationServiceManager: on location changed
2018-12-01 18:11:02.510 30577-30577/fr.free.nrw.commons.beta D/LocationServiceManager: gps's status changed to 1
2018-12-01 18:11:02.695 30577-30577/fr.free.nrw.commons.beta I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.
2018-12-01 18:11:02.890 30577-30606/fr.free.nrw.commons.beta D/CustomApiResult: API response is
     <?xml version="1.0" encoding="UTF-8"?><api batchcomplete=""><query><userinfo id="0" name="78.98.254.99" anon=""/></query></api>
2018-12-01 18:11:03.170 30577-30588/fr.free.nrw.commons.beta I/zygote: Background concurrent copying GC freed 10236(714KB) AllocSpace objects, 3(60KB) LOS objects, 49% free, 3MB/7MB, paused 5.467ms total 224.678ms
2018-12-01 18:11:03.290 30577-30577/fr.free.nrw.commons.beta D/ExternalStorageUtils: External storage permission granted, API >= 23
2018-12-01 18:11:03.291 30577-30577/fr.free.nrw.commons.beta I/DexterPermissionObtaine: Storage permissions already granted.
2018-12-01 18:11:03.294 30577-30577/fr.free.nrw.commons.beta I/UploadActivity: Received single upload
2018-12-01 18:11:03.298 30577-30582/fr.free.nrw.commons.beta I/zygote: JIT allocated 56KB for compiled code of void android.view.View.<init>(android.content.Context, android.util.AttributeSet, int, int)
2018-12-01 18:11:03.331 30577-30577/fr.free.nrw.commons.beta D/ExternalStorageUtils: External storage permission granted, API >= 23
2018-12-01 18:11:03.336 30577-30577/fr.free.nrw.commons.beta I/DexterPermissionObtaine: Storage permissions already granted.
2018-12-01 18:11:03.337 30577-30577/fr.free.nrw.commons.beta I/UploadPresenter: uploadModel.getCount():0
2018-12-01 18:11:03.356 30577-30577/fr.free.nrw.commons.beta D/UploadActivity: Position: 2 Attribution-ShareAlike 3.0
2018-12-01 18:11:03.376 30577-30606/fr.free.nrw.commons.beta D/FileUtils: Filepath (copied): /data/user/0/fr.free.nrw.commons.beta/cache/1543684263355.jpg
2018-12-01 18:11:03.377 30577-30606/fr.free.nrw.commons.beta I/UploadModel: File path is /data/user/0/fr.free.nrw.commons.beta/cache/1543684263355.jpg
2018-12-01 18:11:03.377 30577-30577/fr.free.nrw.commons.beta I/UploadPresenter: Updating content for currentPage1
2018-12-01 18:11:03.378 30577-30577/fr.free.nrw.commons.beta E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException:  (No such file or directory)
2018-12-01 18:11:03.378 30577-30577/fr.free.nrw.commons.beta W/ImageView: resolveUri failed on bad bitmap uri: 
2018-12-01 18:11:03.445 30577-30577/fr.free.nrw.commons.beta I/Choreographer: Skipped 66 frames!  The application may be doing too much work on its main thread.
2018-12-01 18:11:03.458 30577-30606/fr.free.nrw.commons.beta D/FileProcessor: Calling GPSExtractor
2018-12-01 18:11:03.460 30577-30606/fr.free.nrw.commons.beta D/GPSExtractor: EXIF data has location info
2018-12-01 18:11:03.462 30577-30606/fr.free.nrw.commons.beta D/GPSExtractor: Latitude: 37/1,25/1,1919/100 N
2018-12-01 18:11:03.464 30577-30606/fr.free.nrw.commons.beta D/GPSExtractor: Longitude: 122/1,5/1,240/100 W
2018-12-01 18:11:03.475 30577-30606/fr.free.nrw.commons.beta D/GPSExtractor: Latitude and Longitude are 37.42199722222222|-122.08399999999999
2018-12-01 18:11:03.479 30577-30610/fr.free.nrw.commons.beta D/EGL_emulation: eglMakeCurrent: 0x8ab4a1e0: ver 3 0 (tinfo 0x9d209ec0)
2018-12-01 18:11:03.479 30577-30606/fr.free.nrw.commons.beta D/FileProcessor: Decimal coords of image: 37.42199722222222|-122.08399999999999
2018-12-01 18:11:03.480 30577-30606/fr.free.nrw.commons.beta D/FileProcessor: is EXIF data present:true from findOther image
2018-12-01 18:11:03.481 30577-30606/fr.free.nrw.commons.beta D/CacheController: New QuadTree created
2018-12-01 18:11:03.484 30577-30606/fr.free.nrw.commons.beta D/CacheController: X (longitude) value: -122.084000, Y (latitude) value: 37.421997
2018-12-01 18:11:03.494 30577-30606/fr.free.nrw.commons.beta D/CacheController: Search within: xMinus=-122.08513112106556, yMinus=37.4210989069381, xPlus=-122.08286887893442, yPlus=37.422895537506335
2018-12-01 18:11:03.496 30577-30606/fr.free.nrw.commons.beta D/CacheController: Points found in quadtree: []
2018-12-01 18:11:03.497 30577-30606/fr.free.nrw.commons.beta D/CacheController: No categories found in cache
2018-12-01 18:11:03.525 30577-30606/fr.free.nrw.commons.beta D/FileProcessor: displayCatList size 0, calling MWAPI []
2018-12-01 18:11:03.551 30577-30676/fr.free.nrw.commons.beta D/CategoryApi: URL: https://commons.wikimedia.beta.wmflabs.org/w/api.php?action=query&prop=categories%7Ccoordinates%7Cpageprops&format=json&clshow=%21hidden&coprop=type%7Cname%7Cdim%7Ccountry%7Cregion%7Cglobe&codistancefrompoint=37.42199722222222%7C-122.08399999999999&generator=geosearch&ggscoord=37.42199722222222%7C-122.08399999999999&ggsradius=10000&ggslimit=10&ggsnamespace=6&ggsprop=type%7Cname%7Cdim%7Ccountry%7Cregion%7Cglobe&ggsprimary=all&formatversion=2
2018-12-01 18:11:03.688 30577-30606/fr.free.nrw.commons.beta I/FileUtils: File SHA1: 476e9c94b56f20d1ad408538d0ae0bfd8dea506e
2018-12-01 18:11:03.971 30577-30606/fr.free.nrw.commons.beta D/CustomApiResult: API response is
     <?xml version="1.0" encoding="UTF-8"?><api batchcomplete=""><query><allimages/></query></api>
2018-12-01 18:11:04.106 30577-30577/fr.free.nrw.commons.beta I/Choreographer: Skipped 38 frames!  The application may be doing too much work on its main thread.
2018-12-01 18:11:04.263 30577-30610/fr.free.nrw.commons.beta D/EGL_emulation: eglMakeCurrent: 0x8ab4a1e0: ver 3 0 (tinfo 0x9d209ec0)
2018-12-01 18:11:04.301 30577-30610/fr.free.nrw.commons.beta D/EGL_emulation: eglMakeCurrent: 0x8ab4a1e0: ver 3 0 (tinfo 0x9d209ec0)
2018-12-01 18:11:04.317 30577-30606/fr.free.nrw.commons.beta D/ImageUtils: total 1228800
2018-12-01 18:11:04.445 30577-30610/fr.free.nrw.commons.beta D/EGL_emulation: eglMakeCurrent: 0x8ab4a1e0: ver 3 0 (tinfo 0x9d209ec0)
2018-12-01 18:11:04.474 30577-30610/fr.free.nrw.commons.beta D/EGL_emulation: eglMakeCurrent: 0x8ab4a1e0: ver 3 0 (tinfo 0x9d209ec0)
2018-12-01 18:11:04.481 30577-30577/fr.free.nrw.commons.beta D/CategoriesModel: Direct category found: 
2018-12-01 18:11:04.505 30577-30577/fr.free.nrw.commons.beta D/CategoriesModel: Image has no direct Cat
2018-12-01 18:11:04.547 30577-30610/fr.free.nrw.commons.beta D/EGL_emulation: eglMakeCurrent: 0x8ab4a1e0: ver 3 0 (tinfo 0x9d209ec0)
2018-12-01 18:11:04.609 30577-30610/fr.free.nrw.commons.beta I/chatty: uid=10086(fr.free.nrw.commons.beta) RenderThread identical 3 lines
2018-12-01 18:11:04.638 30577-30610/fr.free.nrw.commons.beta D/EGL_emulation: eglMakeCurrent: 0x8ab4a1e0: ver 3 0 (tinfo 0x9d209ec0)
2018-12-01 18:11:04.655 30577-30577/fr.free.nrw.commons.beta I/Choreographer: Skipped 31 frames!  The application may be doing too much work on its main thread.
2018-12-01 18:11:04.658 30577-30610/fr.free.nrw.commons.beta D/EGL_emulation: eglMakeCurrent: 0x8ab4a1e0: ver 3 0 (tinfo 0x9d209ec0)
2018-12-01 18:11:04.849 30577-30610/fr.free.nrw.commons.beta I/chatty: uid=10086(fr.free.nrw.commons.beta) RenderThread identical 5 lines
2018-12-01 18:11:04.865 30577-30610/fr.free.nrw.commons.beta D/EGL_emulation: eglMakeCurrent: 0x8ab4a1e0: ver 3 0 (tinfo 0x9d209ec0)
2018-12-01 18:11:04.902 30577-30686/fr.free.nrw.commons.beta D/CategoriesModel: Previous year: 2017
2018-12-01 18:11:04.915 30577-30686/fr.free.nrw.commons.beta D/CategoriesModel: Previous year: 2017
2018-12-01 18:11:04.939 30577-30610/fr.free.nrw.commons.beta D/EGL_emulation: eglMakeCurrent: 0x8ab4a1e0: ver 3 0 (tinfo 0x9d209ec0)
2018-12-01 18:11:04.950 30577-30686/fr.free.nrw.commons.beta D/CategoriesModel: Previous year: 2017
2018-12-01 18:11:05.055 30577-30591/fr.free.nrw.commons.beta I/zygote: Waiting for a blocking GC ProfileSaver
2018-12-01 18:11:05.056 30577-30577/fr.free.nrw.commons.beta I/UploadPresenter: uploadModel.getCount():1
2018-12-01 18:11:05.067 30577-30577/fr.free.nrw.commons.beta D/UploadActivity: Position: 2 Attribution-ShareAlike 3.0
2018-12-01 18:11:05.072 30577-30577/fr.free.nrw.commons.beta I/UploadPresenter: Updating content for currentPage1
2018-12-01 18:11:05.135 30577-30588/fr.free.nrw.commons.beta I/zygote: NativeAlloc concurrent copying GC freed 52539(2MB) AllocSpace objects, 8(4MB) LOS objects, 49% free, 4MB/8MB, paused 15.126ms total 814.986ms
2018-12-01 18:11:05.135 30577-30591/fr.free.nrw.commons.beta I/zygote: WaitForGcToComplete blocked ProfileSaver on HeapTrim for 79.878ms
2018-12-01 18:11:05.381 30577-30577/fr.free.nrw.commons.beta I/TextInputLayout: EditText added is not a TextInputEditText. Please switch to using that class instead.
2018-12-01 18:11:05.384 30577-30577/fr.free.nrw.commons.beta I/DescriptionsAdapter$Vie: descItemEditText:android.support.v7.widget.AppCompatEditText{ef8ea24 VFED..CL. ......I. 0,0-0,0 #7f090092 app:id/description_item_edit_text}
2018-12-01 18:11:05.385 30577-30577/fr.free.nrw.commons.beta D/DescriptionsAdapter$Vie: Description is fr.free.nrw.commons.upload.Description@32ad98d
2018-12-01 18:11:07.118 30577-30577/fr.free.nrw.commons.beta I/DescriptionsAdapter$Vie: descItemEditText:android.support.design.widget.TextInputEditText{1f8fc9a VFED..CL. ......I. 0,0-0,0 #7f090092 app:id/description_item_edit_text}
2018-12-01 18:11:07.125 30577-30577/fr.free.nrw.commons.beta D/DescriptionsAdapter$Vie: Title is null
2018-12-01 18:11:07.696 30577-30582/fr.free.nrw.commons.beta I/zygote: Do full code cache collection, code=499KB, data=338KB
2018-12-01 18:11:07.697 30577-30582/fr.free.nrw.commons.beta I/zygote: After code cache collection, code=473KB, data=254KB
2018-12-01 18:11:07.708 30577-30577/fr.free.nrw.commons.beta I/Choreographer: Skipped 145 frames!  The application may be doing too much work on its main thread.
2018-12-01 18:11:08.000 30577-30582/fr.free.nrw.commons.beta I/zygote: Do partial code cache collection, code=484KB, data=278KB
2018-12-01 18:11:08.001 30577-30582/fr.free.nrw.commons.beta I/zygote: After code cache collection, code=483KB, data=278KB
2018-12-01 18:11:08.001 30577-30582/fr.free.nrw.commons.beta I/zygote: Increasing code cache capacity to 2MB
2018-12-01 18:11:11.099 30577-30577/fr.free.nrw.commons.beta I/Choreographer: Skipped 76 frames!  The application may be doing too much work on its main thread.
2018-12-01 18:11:15.684 30577-30577/fr.free.nrw.commons.beta D/UploadActivity: Descriptions size is 1 are [fr.free.nrw.commons.upload.Description@32ad98d]
2018-12-01 18:11:15.848 30577-30588/fr.free.nrw.commons.beta I/zygote: Background concurrent copying GC freed 81938(3MB) AllocSpace objects, 2(40KB) LOS objects, 49% free, 4MB/9MB, paused 4.339ms total 149.104ms
2018-12-01 18:11:15.931 30577-30606/fr.free.nrw.commons.beta D/CustomApiResult: API response is
     <?xml version="1.0" encoding="UTF-8"?><api batchcomplete=""><query><pages><page _idx="20884" pageid="20884" ns="6" title="File:Test.jpg" imagerepository="local"><imageinfo><ii timestamp="2012-07-27T15:23:32Z" user="TESTWWW123POICOM"/></imageinfo></page></pages></query></api>
2018-12-01 18:11:16.317 30577-30610/fr.free.nrw.commons.beta D/EGL_emulation: eglMakeCurrent: 0x8ab4a1e0: ver 3 0 (tinfo 0x9d209ec0)
2018-12-01 18:11:16.467 30577-30610/fr.free.nrw.commons.beta I/chatty: uid=10086(fr.free.nrw.commons.beta) RenderThread identical 3 lines
2018-12-01 18:11:17.691 30577-30610/fr.free.nrw.commons.beta D/EGL_emulation: eglMakeCurrent: 0x8ab4a1e0: ver 3 0 (tinfo 0x9d209ec0)
2018-12-01 18:11:19.439 30577-30610/fr.free.nrw.commons.beta D/EGL_emulation: eglMakeCurrent: 0x8ab4a1e0: ver 3 0 (tinfo 0x9d209ec0)
2018-12-01 18:11:19.532 30577-30610/fr.free.nrw.commons.beta D/EGL_emulation: eglMakeCurrent: 0x8ab4a1e0: ver 3 0 (tinfo 0x9d209ec0)
2018-12-01 18:11:20.865 30577-30610/fr.free.nrw.commons.beta D/EGL_emulation: eglMakeCurrent: 0x8ab4a1e0: ver 3 0 (tinfo 0x9d209ec0)
2018-12-01 18:11:20.894 30577-30610/fr.free.nrw.commons.beta D/EGL_emulation: eglMakeCurrent: 0x8ab4a1e0: ver 3 0 (tinfo 0x9d209ec0)
2018-12-01 18:11:20.995 30577-30610/fr.free.nrw.commons.beta D/EGL_emulation: eglMakeCurrent: 0x8ab4a1e0: ver 3 0 (tinfo 0x9d209ec0)
2018-12-01 18:11:21.130 30577-30610/fr.free.nrw.commons.beta D/EGL_emulation: eglMakeCurrent: 0x8ab4a1e0: ver 3 0 (tinfo 0x9d209ec0)
2018-12-01 18:11:22.745 30577-30577/fr.free.nrw.commons.beta D/UploadActivity: Descriptions size is 1 are [fr.free.nrw.commons.upload.Description@32ad98d]
2018-12-01 18:11:23.040 30577-30686/fr.free.nrw.commons.beta D/CustomApiResult: API response is
     <?xml version="1.0" encoding="UTF-8"?><api batchcomplete=""><query><pages><page _idx="-1" ns="6" title="File:Testqetewe.jpg" missing="" imagerepository=""/></pages></query></api>
2018-12-01 18:11:23.087 30577-30577/fr.free.nrw.commons.beta I/UploadPresenter: Updating content for currentPage2
2018-12-01 18:11:23.088 30577-30577/fr.free.nrw.commons.beta E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException:  (No such file or directory)
2018-12-01 18:11:23.088 30577-30577/fr.free.nrw.commons.beta W/ImageView: resolveUri failed on bad bitmap uri: 
2018-12-01 18:11:23.171 30577-30577/fr.free.nrw.commons.beta D/CategoriesModel: Direct category found: 
2018-12-01 18:11:23.174 30577-30577/fr.free.nrw.commons.beta D/CategoriesModel: Image has no direct Cat
2018-12-01 18:11:23.487 30577-30685/fr.free.nrw.commons.beta D/CategoriesModel: Previous year: 2017
2018-12-01 18:11:23.491 30577-30685/fr.free.nrw.commons.beta I/chatty: uid=10086(fr.free.nrw.commons.beta) RxCachedThreadS identical 3 lines
2018-12-01 18:11:23.493 30577-30685/fr.free.nrw.commons.beta D/CategoriesModel: Previous year: 2017
2018-12-01 18:11:23.496 30577-30685/fr.free.nrw.commons.beta D/CategoriesModel: Previous year: 2017
2018-12-01 18:11:23.498 30577-30685/fr.free.nrw.commons.beta I/chatty: uid=10086(fr.free.nrw.commons.beta) RxCachedThreadS identical 1 line
2018-12-01 18:11:23.503 30577-30685/fr.free.nrw.commons.beta D/CategoriesModel: Previous year: 2017
2018-12-01 18:11:23.597 30577-30685/fr.free.nrw.commons.beta D/CategoriesModel: Previous year: 2017
2018-12-01 18:11:24.146 30577-30685/fr.free.nrw.commons.beta D/CustomApiResult: API response is
     <?xml version="1.0" encoding="UTF-8"?><api batchcomplete=""><query><searchinfo totalhits="0"/><search/></query></api>
2018-12-01 18:11:24.207 30577-30685/fr.free.nrw.commons.beta D/CategoriesModel: Previous year: 2017
2018-12-01 18:11:24.221 30577-30685/fr.free.nrw.commons.beta I/chatty: uid=10086(fr.free.nrw.commons.beta) RxCachedThreadS identical 5 lines
2018-12-01 18:11:24.224 30577-30685/fr.free.nrw.commons.beta D/CategoriesModel: Previous year: 2017
2018-12-01 18:11:24.239 30577-30685/fr.free.nrw.commons.beta D/CategoriesModel: Previous year: 2017
2018-12-01 18:11:24.259 30577-30685/fr.free.nrw.commons.beta I/chatty: uid=10086(fr.free.nrw.commons.beta) RxCachedThreadS identical 1 line
2018-12-01 18:11:24.288 30577-30685/fr.free.nrw.commons.beta D/CategoriesModel: Previous year: 2017
2018-12-01 18:11:24.632 30577-30685/fr.free.nrw.commons.beta D/CustomApiResult: API response is
     <?xml version="1.0" encoding="UTF-8"?><api batchcomplete=""><query><searchinfo totalhits="0"/><search/></query></api>
2018-12-01 18:11:24.675 30577-30685/fr.free.nrw.commons.beta D/CategoriesModel: Previous year: 2017
2018-12-01 18:11:24.736 30577-30685/fr.free.nrw.commons.beta I/chatty: uid=10086(fr.free.nrw.commons.beta) RxCachedThreadS identical 5 lines
2018-12-01 18:11:24.747 30577-30685/fr.free.nrw.commons.beta D/CategoriesModel: Previous year: 2017
2018-12-01 18:11:24.782 30577-30685/fr.free.nrw.commons.beta D/CategoriesModel: Previous year: 2017
2018-12-01 18:11:24.789 30577-30685/fr.free.nrw.commons.beta D/CategoriesModel: Previous year: 2017
2018-12-01 18:11:24.790 30577-30685/fr.free.nrw.commons.beta D/CategoriesModel: Previous year: 2017
2018-12-01 18:11:25.125 30577-30588/fr.free.nrw.commons.beta I/zygote: Background concurrent copying GC freed 86283(4MB) AllocSpace objects, 12(240KB) LOS objects, 49% free, 4MB/9MB, paused 36.696ms total 145.916ms
2018-12-01 18:11:25.162 30577-30685/fr.free.nrw.commons.beta D/CustomApiResult: API response is
     <?xml version="1.0" encoding="UTF-8"?><api batchcomplete=""><query><searchinfo totalhits="0"/><search/></query></api>
2018-12-01 18:11:25.224 30577-30685/fr.free.nrw.commons.beta D/CategoriesModel: Previous year: 2017
2018-12-01 18:11:28.102 30577-30577/fr.free.nrw.commons.beta I/UploadPresenter: Updating content for currentPage3
2018-12-01 18:11:28.106 30577-30577/fr.free.nrw.commons.beta E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException:  (No such file or directory)
2018-12-01 18:11:28.106 30577-30577/fr.free.nrw.commons.beta W/ImageView: resolveUri failed on bad bitmap uri: 
2018-12-01 18:12:10.041 30577-30724/fr.free.nrw.commons.beta D/UploadController: UploadController/doInBackground, contribution.getLocalUri():file:///data/user/0/fr.free.nrw.commons.beta/cache/1543684263355.jpg
2018-12-01 18:12:10.045 30577-30724/fr.free.nrw.commons.beta D/UploadController: MimeType is: image/jpeg
2018-12-01 18:12:10.143 30577-30577/fr.free.nrw.commons.beta D/UploadService: Upload service queue has contribution with wiki data entity id as null
2018-12-01 18:12:10.421 30577-30577/fr.free.nrw.commons.beta D/ContributionsFragment: GPS is enabled
2018-12-01 18:12:10.594 30577-30610/fr.free.nrw.commons.beta D/EGL_emulation: eglMakeCurrent: 0x8ab4a1e0: ver 3 0 (tinfo 0x9d209ec0)
2018-12-01 18:12:10.641 30577-30610/fr.free.nrw.commons.beta D/EGL_emulation: eglMakeCurrent: 0x8ab4a1e0: ver 3 0 (tinfo 0x9d209ec0)
2018-12-01 18:12:11.108 30577-30577/fr.free.nrw.commons.beta D/LocationServiceManager: Provider network disabled
2018-12-01 18:12:11.145 30577-30577/fr.free.nrw.commons.beta D/LocationServiceManager: on location changed
2018-12-01 18:12:11.159 30577-30686/fr.free.nrw.commons.beta D/NearbyController: Loading attractions near lat/lng: (37.421998333333335,-122.08400000000002)
2018-12-01 18:12:11.174 30577-30577/fr.free.nrw.commons.beta D/LocationServiceManager: gps's status changed to 1
2018-12-01 18:12:11.186 30577-30577/fr.free.nrw.commons.beta I/Choreographer: Skipped 30 frames!  The application may be doing too much work on its main thread.
2018-12-01 18:12:11.383 30577-30686/fr.free.nrw.commons.beta D/NearbyPlaces: https://query.wikidata.org/#SELECT%0A%20%20%20%20%20(SAMPLE(%3Flocation)%20as%20%3Flocation)%0A%20%20%20%20%20%3Fitem%0A%20%20%20%20%20(SAMPLE(COALESCE(%3Fitem_label_preferred_language%2C%20%3Fitem_label_any_language))%20as%20%3Flabel)%0A%20%20%20%20%20(SAMPLE(%3FclassId)%20as%20%3Fclass)%0A%20%20%20%20%20(SAMPLE(COALESCE(%3Fclass_label_preferred_language%2C%20%3Fclass_label_any_language%2C%20%22%3F%22))%20as%20%3Fclass_label)%0A%20%20%20%20%20(SAMPLE(COALESCE(%3Ficon0%2C%20%3Ficon1))%20as%20%3Ficon)%0A%20%20%20%20%20(SAMPLE(COALESCE(%3Femoji0%2C%20%3Femoji1))%20as%20%3Femoji)%0A%20%20%20%20%20%3FwikipediaArticle%0A%20%20%20%20%20%3FcommonsArticle%0A%20%20%20%20%20(SAMPLE(%3FCommons_category)%20as%20%3FCommons_category)%0A%20%20%20WHERE%20%7B%0A%20%20%20%20%20%23%20Around%20given%20location...%0A%20%20%20%20%20SERVICE%20wikibase%3Aaround%20%7B%0A%20%20%20%20%20%20%20%3Fitem%20wdt%3AP625%20%3Flocation.%0A%20%20%20%20%20%20%20bd%3AserviceParam%20wikibase%3Acenter%20%22Point(-122.0840%2037.4220)%22%5E%5Egeo%3AwktLiteral.%0A%20%20%20%20%20%20%20bd%3AserviceParam%20wikibase%3Aradius%20%221.00%22%20.%20%23%20Radius%20in%20kilometers.%0A%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%23%20...%20and%20without%20an%20image.%0A%20%20%20%20%20MINUS%20%7B%3Fitem%20wdt%3AP18%20%5B%5D%7D%0A%0A%20%20%20%20%20%23%20Get%20the%20label%20in%20the%20preferred%20language%20of%20the%20user%2C%20or%20any%20other%20language%20if%20no%20label%20is%20available%20in%20that%20language.%0A%20%20%20%20%20OPTIONAL%20%7B%3Fitem%20rdfs%3Alabel%20%3Fitem_label_preferred_language.%20FILTER%20(lang(%3Fitem_label_preferred_language)%20%3D%20%22en%22)%7D%0A%20%20%20%20%20OPTIONAL%20%7B%3Fitem%20rdfs%3Alabel%20%3Fitem_label_any_language%7D%0A%0A%20%20%20%20%20%23%20Get%20Commons%20category%20(P373)%0A%20%20%20%20%20OPTIONAL%20%7B%20%3Fitem%20wdt%3AP373%20%3FCommons_category.%20%7D%0A%0A%20%20%20%20%20%23%20Get%20the%20class%20label%20in%20the%20preferred%20language%20of%20the%20user%2C%20or%20any%20other%20language%20if%20no%20label%20is%20available%20in%20that%20language.%0A%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%3Fitem%20p%3AP31%2Fps%3AP31%20%3FclassId.%0A%20%20%20%20%20%20%20OPTIONAL%20%7B%3FclassId%20rdfs%3Alabel%20%3Fclass_label_preferred_language.%20FILTER%20(lang(%3Fclass_label_preferred_language)%20%3D%20%22en%22)%7D%0A%20%20%20%20%20%20%20OPTIONAL%20%7B%3FclassId%20rdfs%3Alabel%20%3Fclass_label_any_language%7D%0A%0A%20%20%20%20%20%20%20%23%20Get%20icon%0A%20%20%20%20%20%20%20OPTIONAL%20%7B%20%3FclassId%20wdt%3AP2910%20%3Ficon0.%20%7D%0A%20%20%20%20%20%20%20OPTIONAL%20%7B%20%3FclassId%20wdt%3AP279*%2Fwdt%3AP2910%20%3Ficon1.%20%7D%0A%20%20%20%20%20%20%20%23%20Get%20emoji%0A%20%20%20%20%20%20%20OPTIONAL%20%7B%20%3FclassId%20wdt%3AP487%20%3Femoji0.%20%7D%0A%20%20%20%20%20%20%20OPTIONAL%20%7B%20%3FclassId%20wdt%3AP279*%2Fwdt%3AP487%20%3Femoji1.%20%7D%0A%0A%20%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%3FwikipediaArticle%20%20%20schema%3Aabout%20%3Fitem%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20schema%3AisPartOf%20%3Chttps%3A%2F%2Fen.wikipedia.org%2F%3E%20.%0A%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%3FwikipediaArticle%20%20%20schema%3Aabout%20%3Fitem%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20schema%3AisPartOf%20%3Chttps%3A%2F%2Fen.wikipedia.org%2F%3E%20.%0A%20%20%20%20%20%20%20%20%20%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22en%22%20%7D%0A%20%20%20%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%3FcommonsArticle%20%20%20schema%3Aabout%20%3Fitem%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20schema%3AisPartOf%20%3Chttps%3A%2F%2Fcommons.wikimedia.org%2F%3E%20.%0A%20%20%20%20%20%20%20%20%20%20%20SERVICE%20
2018-12-01 18:12:11.383 30577-30686/fr.free.nrw.commons.beta D/NearbyPlaces: wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22en%22%20%7D%0A%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%7D%0A%20%20%20%7D%0A%20%20%20GROUP%20BY%20%3Fitem%20%3FwikipediaArticle%20%3FcommonsArticle%0A
2018-12-01 18:12:11.388 30577-30610/fr.free.nrw.commons.beta D/EGL_emulation: eglMakeCurrent: 0x8ab4a1e0: ver 3 0 (tinfo 0x9d209ec0)
2018-12-01 18:12:12.181 30577-30686/fr.free.nrw.commons.beta D/NearbyPlaces: Reading from query result...
2018-12-01 18:12:12.290 30577-30686/fr.free.nrw.commons.beta D/NearbyPlaces: 6 results at radius: 1.000000
2018-12-01 18:12:12.290 30577-30686/fr.free.nrw.commons.beta D/NearbyController: Sorting places by distance...
2018-12-01 18:12:12.322 30577-30577/fr.free.nrw.commons.beta D/NearbyNoificationCardVi: Update nearby card notification content
2018-12-01 18:12:12.599 30577-30726/fr.free.nrw.commons.beta D/CustomApiResult: API response is
     <?xml version="1.0" encoding="UTF-8"?><api batchcomplete=""><query><pages><page _idx="-1" ns="0" title="Testqetewe.jpg" missing=""/></pages></query></api>
2018-12-01 18:12:12.984 30577-30726/fr.free.nrw.commons.beta D/CustomApiResult: API response is
     <?xml version="1.0" encoding="UTF-8"?><api batchcomplete=""><query><normalized><n from="aaaasf.jpg" to="Aaaasf.jpg"/></normalized><pages><page _idx="-1" ns="0" title="Aaaasf.jpg" missing=""/></pages></query></api>
2018-12-01 18:12:13.312 30577-30588/fr.free.nrw.commons.beta I/zygote: NativeAlloc concurrent copying GC freed 74033(3MB) AllocSpace objects, 12(240KB) LOS objects, 45% free, 7MB/13MB, paused 7.614ms total 586.320ms
2018-12-01 18:12:13.415 30577-30586/fr.free.nrw.commons.beta E/SpellCheckerSession: ignoring processOrEnqueueTask due to unexpected mState=TASK_CLOSE scp.mWhat=TASK_CLOSE
2018-12-01 18:12:13.416 30577-30586/fr.free.nrw.commons.beta E/SpellCheckerSession: ignoring processOrEnqueueTask due to unexpected mState=TASK_CLOSE scp.mWhat=TASK_CLOSE
2018-12-01 18:12:14.325 30577-30612/fr.free.nrw.commons.beta D/UploadService: Before execution!
2018-12-01 18:12:14.346 30577-30612/fr.free.nrw.commons.beta D/UploadService: making sure of uniqueness of name: Testqetewe.jpg
2018-12-01 18:12:14.563 30577-30612/fr.free.nrw.commons.beta D/CustomApiResult: API response is
     <?xml version="1.0" encoding="UTF-8"?><api batchcomplete=""><query><pages><page _idx="-1" ns="6" title="File:Testqetewe.jpg" missing="" imagerepository=""/></pages></query></api>
2018-12-01 18:12:14.785 30577-30612/fr.free.nrw.commons.beta D/CustomApiResult: API response is
     <?xml version="1.0" encoding="UTF-8"?><api batchcomplete=""><query><userinfo id="0" name="78.98.254.99" anon=""/></query></api>
2018-12-01 18:12:14.809 30577-30612/fr.free.nrw.commons.beta D/CustomMwApi: User id is 0 and user name is 78.98.254.99
2018-12-01 18:12:14.813 30577-30612/fr.free.nrw.commons.beta D/ApacheHttpClientMediaWi: Validate login response is false
2018-12-01 18:12:14.823 30577-30612/fr.free.nrw.commons.beta D/UploadService: Successfully revalidated token!
2018-12-01 18:12:14.926 30577-30588/fr.free.nrw.commons.beta I/zygote: Background concurrent copying GC freed 135520(4MB) AllocSpace objects, 12(240KB) LOS objects, 43% free, 7MB/13MB, paused 4.370ms total 117.718ms
2018-12-01 18:12:15.061 30577-30612/fr.free.nrw.commons.beta D/CustomApiResult: API response is
     <?xml version="1.0" encoding="UTF-8"?><api servedby="deployment-mediawiki-09"><error code="notloggedin" info="Anonymous users cannot obtain a centralauthtoken." xml:space="preserve">See https://commons.wikimedia.beta.wmflabs.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &amp;lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&amp;gt; for notice of API deprecations and breaking changes.</error></api>
2018-12-01 18:12:15.071 30577-30612/fr.free.nrw.commons.beta D/ApacheHttpClientMediaWi: MediaWiki Central auth token is 
2018-12-01 18:12:15.095 30577-30612/fr.free.nrw.commons.beta E/ApacheHttpClientMediaWi: Error occurred while fetching auth token. Error code is notloggedin and message is Anonymous users cannot obtain a centralauthtoken.
2018-12-01 18:12:15.283 30577-30612/fr.free.nrw.commons.beta D/CustomApiResult: API response is
     <?xml version="1.0" encoding="UTF-8"?><api servedby="deployment-mediawiki-09"><error code="notloggedin" info="Anonymous users cannot obtain a centralauthtoken." xml:space="preserve">See https://commons.wikimedia.beta.wmflabs.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &amp;lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&amp;gt; for notice of API deprecations and breaking changes.</error></api>
2018-12-01 18:12:15.296 30577-30612/fr.free.nrw.commons.beta D/ApacheHttpClientMediaWi: MediaWiki Central auth token is 
2018-12-01 18:12:15.311 30577-30612/fr.free.nrw.commons.beta E/ApacheHttpClientMediaWi: Error occurred while fetching auth token. Error code is notloggedin and message is Anonymous users cannot obtain a centralauthtoken.
2018-12-01 18:12:15.525 30577-30612/fr.free.nrw.commons.beta D/CustomApiResult: API response is
     <?xml version="1.0" encoding="UTF-8"?><api servedby="deployment-mediawiki-09"><error code="badtoken" info="The centralauthtoken is not valid." xml:space="preserve">See https://commons.wikimedia.beta.wmflabs.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &amp;lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&amp;gt; for notice of API deprecations and breaking changes.</error></api>
2018-12-01 18:12:15.541 30577-30612/fr.free.nrw.commons.beta D/ApacheHttpClientMediaWi: MediaWiki edit token is 
2018-12-01 18:12:15.546 30577-30582/fr.free.nrw.commons.beta I/zygote: Do full code cache collection, code=992KB, data=634KB
2018-12-01 18:12:15.557 30577-30582/fr.free.nrw.commons.beta I/zygote: After code cache collection, code=945KB, data=537KB
2018-12-01 18:12:15.626 30577-30612/fr.free.nrw.commons.beta D/UploadService$Notificat: Uploaded 6080 of 202621
2018-12-01 18:12:15.970 30577-30612/fr.free.nrw.commons.beta D/UploadService$Notificat: Uploaded 14272 of 202621
2018-12-01 18:12:16.163 30577-30612/fr.free.nrw.commons.beta D/UploadService$Notificat: Uploaded 22464 of 202621
2018-12-01 18:12:16.607 30577-30612/fr.free.nrw.commons.beta D/UploadService$Notificat: Uploaded 30656 of 202621
2018-12-01 18:12:16.709 30577-30612/fr.free.nrw.commons.beta D/UploadService$Notificat: Uploaded 38848 of 202621
2018-12-01 18:12:16.928 30577-30612/fr.free.nrw.commons.beta D/UploadService$Notificat: Uploaded 47040 of 202621
2018-12-01 18:12:17.013 30577-30612/fr.free.nrw.commons.beta D/UploadService$Notificat: Uploaded 55232 of 202621
2018-12-01 18:12:17.585 30577-30612/fr.free.nrw.commons.beta D/UploadService$Notificat: Uploaded 63424 of 202621
2018-12-01 18:12:17.706 30577-30612/fr.free.nrw.commons.beta D/UploadService$Notificat: Uploaded 71616 of 202621
2018-12-01 18:12:18.121 30577-30612/fr.free.nrw.commons.beta D/UploadService$Notificat: Uploaded 79808 of 202621
2018-12-01 18:12:18.182 30577-30612/fr.free.nrw.commons.beta D/UploadService$Notificat: Uploaded 88000 of 202621
2018-12-01 18:12:18.738 30577-30612/fr.free.nrw.commons.beta D/UploadService$Notificat: Uploaded 96192 of 202621
2018-12-01 18:12:18.851 30577-30612/fr.free.nrw.commons.beta D/UploadService$Notificat: Uploaded 104384 of 202621
2018-12-01 18:12:19.122 30577-30612/fr.free.nrw.commons.beta D/UploadService$Notificat: Uploaded 112576 of 202621
2018-12-01 18:12:19.608 30577-30612/fr.free.nrw.commons.beta D/UploadService$Notificat: Uploaded 120768 of 202621
2018-12-01 18:12:19.927 30577-30726/fr.free.nrw.commons.beta D/CustomApiResult: API response is
     <?xml version="1.0" encoding="UTF-8"?><api batchcomplete=""><query><pages><page _idx="-1" ns="0" title="Testqetewe.jpg" missing=""/></pages></query></api>
2018-12-01 18:12:20.119 30577-30612/fr.free.nrw.commons.beta D/UploadService$Notificat: Uploaded 128960 of 202621
2018-12-01 18:12:20.175 30577-30726/fr.free.nrw.commons.beta D/CustomApiResult: API response is
     <?xml version="1.0" encoding="UTF-8"?><api batchcomplete=""><query><pages><page _idx="-1" ns="0" title="Testqetewe.jpg" missing=""/></pages></query></api>
2018-12-01 18:12:20.627 30577-30612/fr.free.nrw.commons.beta D/UploadService$Notificat: Uploaded 137152 of 202621
2018-12-01 18:12:20.890 30577-30612/fr.free.nrw.commons.beta D/UploadService$Notificat: Uploaded 145344 of 202621
2018-12-01 18:12:21.187 30577-30726/fr.free.nrw.commons.beta D/CustomApiResult: API response is
     <?xml version="1.0" encoding="UTF-8"?><api batchcomplete=""><query><pages><page _idx="-1" ns="0" title="Testqetewe.jpg" missing=""/></pages></query></api>
2018-12-01 18:12:21.290 30577-30612/fr.free.nrw.commons.beta D/UploadService$Notificat: Uploaded 153536 of 202621
2018-12-01 18:12:21.292 30577-30582/fr.free.nrw.commons.beta I/zygote: Do partial code cache collection, code=990KB, data=593KB
2018-12-01 18:12:21.403 30577-30582/fr.free.nrw.commons.beta I/zygote: After code cache collection, code=990KB, data=593KB
2018-12-01 18:12:21.403 30577-30582/fr.free.nrw.commons.beta I/zygote: Increasing code cache capacity to 3MB
2018-12-01 18:12:21.570 30577-30612/fr.free.nrw.commons.beta D/UploadService$Notificat: Uploaded 161728 of 202621
2018-12-01 18:12:22.076 30577-30727/fr.free.nrw.commons.beta D/CustomApiResult: API response is
     <?xml version="1.0" encoding="UTF-8"?><api batchcomplete=""><query><pages><page _idx="-1" ns="0" title="Testqetewe.jpg" missing=""/></pages></query></api>
2018-12-01 18:12:22.235 30577-30612/fr.free.nrw.commons.beta D/UploadService$Notificat: Uploaded 169920 of 202621
2018-12-01 18:12:22.637 30577-30577/fr.free.nrw.commons.beta D/LocationServiceManager: gps's status changed to 2
2018-12-01 18:12:22.702 30577-30612/fr.free.nrw.commons.beta D/UploadService$Notificat: Uploaded 178112 of 202621
2018-12-01 18:12:22.828 30577-30612/fr.free.nrw.commons.beta D/UploadService$Notificat: Uploaded 186304 of 202621
2018-12-01 18:12:23.002 30577-30727/fr.free.nrw.commons.beta D/CustomApiResult: API response is
     <?xml version="1.0" encoding="UTF-8"?><api batchcomplete=""><query><pages><page _idx="-1" ns="0" title="Testqetewe.jpg" missing=""/></pages></query></api>
2018-12-01 18:12:23.567 30577-30727/fr.free.nrw.commons.beta D/CustomApiResult: API response is
     <?xml version="1.0" encoding="UTF-8"?><api batchcomplete=""><query><pages><page _idx="-1" ns="0" title="Testqetewe.jpg" missing=""/></pages></query></api>
2018-12-01 18:12:23.752 30577-30612/fr.free.nrw.commons.beta D/UploadService$Notificat: Uploaded 194496 of 202621
2018-12-01 18:12:23.925 30577-30612/fr.free.nrw.commons.beta D/UploadService$Notificat: Uploaded 202578 of 202621
2018-12-01 18:12:24.077 30577-30727/fr.free.nrw.commons.beta D/CustomApiResult: API response is
     <?xml version="1.0" encoding="UTF-8"?><api batchcomplete=""><query><pages><page _idx="-1" ns="0" title="Testqetewe.jpg" missing=""/></pages></query></api>
2018-12-01 18:12:24.432 30577-30612/fr.free.nrw.commons.beta D/UploadService$Notificat: Uploaded 202621 of 202621
2018-12-01 18:12:24.729 30577-30588/fr.free.nrw.commons.beta I/zygote: Background concurrent copying GC freed 95195(5MB) AllocSpace objects, 39(780KB) LOS objects, 41% free, 8MB/14MB, paused 20.877ms total 1.460s
2018-12-01 18:12:25.208 30577-30612/fr.free.nrw.commons.beta D/CustomApiResult: API response is
     <?xml version="1.0" encoding="UTF-8"?><api servedby="deployment-mediawiki-09"><error code="badtoken" info="The centralauthtoken is not valid." xml:space="preserve">See https://commons.wikimedia.beta.wmflabs.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &amp;lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&amp;gt; for notice of API deprecations and breaking changes.</error></api>
2018-12-01 18:12:25.210 30577-30612/fr.free.nrw.commons.beta E/ApacheHttpClientMediaWi: Result: fr.free.nrw.commons.mwapi.CustomApiResult@c53e374
2018-12-01 18:12:25.231 30577-30726/fr.free.nrw.commons.beta D/CustomApiResult: API response is
     <?xml version="1.0" encoding="UTF-8"?><api batchcomplete=""><query><pages><page _idx="-1" ns="0" title="Testqetewe.jpg" missing=""/></pages></query></api>
2018-12-01 18:12:25.254 30577-30612/fr.free.nrw.commons.beta E/ApacheHttpClientMediaWi: badtoken
2018-12-01 18:12:25.255 30577-30612/fr.free.nrw.commons.beta D/UploadService: Response is fr.free.nrw.commons.mwapi.UploadResult@802912
2018-12-01 18:12:25.259 30577-30612/fr.free.nrw.commons.beta D/UploadService: Contribution upload failed. Wikidata entity won't be edited

@maskaravivek
Copy link
Contributor

@hoplite390 The logs doesn't look relevant. Can you add a filter for the app before checking logcat. If you are using Android studio then your log settings should like:

screenshot 2018-12-01 at 10 22 13 pm

@hoplite390
Copy link
Contributor Author

hoplite390 commented Dec 2, 2018

Thank you both for cooperation after more re-logs im now able to upload files. And i did find why my solution did not work anymore. UploadController.java it used to construct contribution. Now it is done in UploadModel.java so there is just one line that needs to be changed and it should work again. I will do commit and please try to re-test that one more time. It seems to work for me: Exhibit

sessionManager.getUserName() >> sessionManager.getRawUserName()

It will build new Contribution with stored username string without underscore.
@neslihanturan
Copy link
Collaborator

Tested it @hoplite390 , but unfortunatelly it says

Author: null

image

@hoplite390
Copy link
Contributor Author

Probably one more thing (but im guessing) did you relog to application or not?

If not maybe i have explanation.
Because its possible that session Manager has your account stored without String rawUsername. (rawUsername = String value without added underscore) because i could not call just string.replace("_"," ") on every username in case somebody used underscore by their decision (and underscore was not just added by app). If there is somebody with "My_Username" or "My Username" app would show them both as "My_Username" so far. That is why upon login i store original string value from EditText usernameEdit. Maybe i should add: if rawUsername is null use username instead to prevent null for users that did not re-log.

@neslihanturan
Copy link
Collaborator

I think you caught the reason. After your commit I will test with reloging and without, and report results here. Thanks for fast reply @hoplite390

return;
}
contribution.setCreator(currentAccount.name);
contribution.setCreator(sessionManager.getRawUserName());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO it would be more appropriate to use something called getAuthorName.

getAuthorName would return raw username if the value is set for KEY_RAWUSERNAME or else it will return username. This would handle the null issue that @neslihanturan faced.

  • Having I believe it would be better than the author name getting set as null.
  • We cannot ask the users to log out and log in to fix this issue. Ideally, the issue will fix automatically when the next time account is created.

Contribution contribution = new Contribution(item.mediaUri, null, item.title + "." + item.fileExt,
Description.formatList(item.descriptions), -1,
null, null, sessionManager.getUserName(),
null, null, sessionManager.getRawUserName(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above. ^

…ommons-app#1982 this method, will return getUsername. Users with underscore issue will see the fix after re-log.
@neslihanturan
Copy link
Collaborator

Without login, my username with subtitle. With login, my name without subtitle as expected.

@neslihanturan neslihanturan merged commit b907a0a into commons-app:master Dec 3, 2018
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

Successfully merging this pull request may close these issues.

4 participants