apps-android-commons: App stuck at "receiving shared content"
Summary:
Occasionally, after selecting an image to upload in 2.9-release, I get stuck at the “Receiving shared content” page. I can’t find any pattern to when it happens (probably 1 in 10 uploads), and retrying with the same image usually works.
System logs:
2018-11-26 04:07:34,881 [DEBUG] [file-logging-thread-1] [ContributionController] : startMultipleGalleryPick() called with pickImageIntent
2018-11-26 04:07:38,380 [DEBUG] [file-logging-thread-1] [ContributionsListFragme] : OnActivityResult() parameters: Req code: 3 Result code: -1 Data: Intent { dat=content://com.android.providers.media.documents/document/image:24183 flg=0x1 }
2018-11-26 04:07:38,382 [DEBUG] [file-logging-thread-1] [ContributionController] : handleImagePicked() called with onActivityResult(). Boolean isDirectUpload: falseString wikiDataEntityId: null
2018-11-26 04:07:38,390 [INFO ] [file-logging-thread-1] [ContributionController] : Image selected
2018-11-26 04:07:38,392 [DEBUG] [file-logging-thread-1] [ContributionController] : Put extras into image intent, isDirectUpload is false
2018-11-26 04:07:38,405 [DEBUG] [file-logging-thread-1] [ContributionsListFragme] : OnActivityResult() parameters: Req code: 65539 Result code: -1 Data: Intent { dat=content://com.android.providers.media.documents/document/image:24183 flg=0x1 }
2018-11-26 04:07:38,409 [DEBUG] [file-logging-thread-1] [ContributionsFragment] : GPS is enabled
2018-11-26 04:07:38,582 [DEBUG] [file-logging-thread-1] [ExternalStorageUtils] : External storage permission granted, API >= 23
2018-11-26 04:07:38,583 [INFO ] [file-logging-thread-1] [DexterPermissionObtaine] : Storage permissions already granted.
2018-11-26 04:07:38,584 [INFO ] [file-logging-thread-1] [UploadActivity] : Received single upload
2018-11-26 04:07:38,590 [DEBUG] [file-logging-thread-1] [ExternalStorageUtils] : External storage permission granted, API >= 23
2018-11-26 04:07:38,591 [INFO ] [file-logging-thread-1] [DexterPermissionObtaine] : Storage permissions already granted.
2018-11-26 04:07:38,593 [INFO ] [file-logging-thread-1] [UploadPresenter] : uploadModel.getCount():0
2018-11-26 04:07:38,594 [DEBUG] [file-logging-thread-1] [UploadActivity] : Position: 2 Attribution-ShareAlike 3.0
2018-11-26 04:07:38,598 [INFO ] [file-logging-thread-1] [UploadPresenter] : Updating content for currentPage1
2018-11-26 04:07:38,623 [DEBUG] [file-logging-thread-1] [FileUtils] : Filepath (copied): /storage/emulated/0/CommonsApp/1543169258597.jpg
2018-11-26 04:07:38,627 [INFO ] [file-logging-thread-1] [UploadModel] : File path is /storage/emulated/0/CommonsApp/1543169258597.jpg
2018-11-26 04:07:38,644 [DEBUG] [file-logging-thread-1] [FileProcessor] : Calling GPSExtractor
2018-11-26 04:07:38,647 [DEBUG] [file-logging-thread-1] [FileProcessor] : filePath/storage/emulated/0/CommonsApp/1543169258597.jpg
2018-11-26 04:07:38,651 [DEBUG] [file-logging-thread-1] [FileProcessor] : folderTime Number:19
2018-11-26 04:07:38,655 [DEBUG] [file-logging-thread-1] [FileProcessor] : fild date:1543169258000 time of creation1543169258000
2018-11-26 04:07:38,658 [DEBUG] [file-logging-thread-1] [FileProcessor] : not null fild EXIFfalse coordsnull
2018-11-26 04:07:38,660 [INFO ] [file-logging-thread-1] [FileUtils] : File SHA1: ad67b9b392a8c7e69ac00d2ba9d3dc2549871dc9
2018-11-26 04:07:39,146 [DEBUG] [file-logging-thread-1] [CategoriesModel] : Direct category found: Fortitude Valley, Queensland
2018-11-26 04:07:39,148 [DEBUG] [file-logging-thread-1] [CategoriesModel] : DirectCat does not equal emptyString. Direct Cat list has [Fortitude Valley, Queensland
]
2018-11-26 04:07:39,150 [DEBUG] [file-logging-thread-1] [CategoriesModel] : Image has direct Cat
2018-11-26 04:07:39,183 [DEBUG] [file-logging-thread-1] [CategoriesModel] : Previous year: 2017
2018-11-26 04:07:39,205 [DEBUG] [file-logging-thread-1] [CategoriesModel] : Previous year: 2017
2018-11-26 04:07:39,217 [DEBUG] [file-logging-thread-1] [CategoriesModel] : Previous year: 2017
2018-11-26 04:07:39,221 [DEBUG] [file-logging-thread-1] [CategoriesModel] : Previous year: 2017
2018-11-26 04:07:39,224 [DEBUG] [file-logging-thread-1] [CategoriesModel] : Previous year: 2017
2018-11-26 04:07:39,226 [DEBUG] [file-logging-thread-1] [CustomApiResult] : API response is
<?xml version="1.0" encoding="UTF-8"?><api batchcomplete=""><query><userinfo id="6998903" name="Misaochan2"/></query></api>
2018-11-26 04:07:39,227 [DEBUG] [file-logging-thread-1] [CategoriesModel] : Previous year: 2017
2018-11-26 04:07:39,229 [DEBUG] [file-logging-thread-1] [CategoriesModel] : Previous year: 2017
2018-11-26 04:07:39,230 [DEBUG] [file-logging-thread-1] [CategoriesModel] : Previous year: 2017
2018-11-26 04:07:39,232 [DEBUG] [file-logging-thread-1] [CategoriesModel] : Previous year: 2017
2018-11-26 04:07:39,234 [DEBUG] [file-logging-thread-1] [CategoriesModel] : Previous year: 2017
2018-11-26 04:07:39,373 [DEBUG] [file-logging-thread-1] [CustomApiResult] : API response is
<?xml version="1.0" encoding="UTF-8"?><api batchcomplete=""><query><allimages/></query></api>
2018-11-26 04:07:39,707 [DEBUG] [file-logging-thread-1] [ImageUtils] : total 12192768
2018-11-26 04:07:39,836 [INFO ] [file-logging-thread-1] [UploadPresenter] : uploadModel.getCount():1
2018-11-26 04:07:39,847 [DEBUG] [file-logging-thread-1] [UploadActivity] : Position: 2 Attribution-ShareAlike 3.0
2018-11-26 04:07:39,857 [INFO ] [file-logging-thread-1] [UploadPresenter] : Updating content for currentPage1
2018-11-26 04:07:40,132 [INFO ] [file-logging-thread-1] [DescriptionsAdapter$Vie] : descItemEditText:fr.free.nrw.commons.ui.widget.CustomEditText{8f9f55c VFED..CL. ......I. 0,0-0,0 #7f090092 app:id/description_item_edit_text}
2018-11-26 04:07:40,136 [DEBUG] [file-logging-thread-1] [DescriptionsAdapter$Vie] : Description is fr.free.nrw.commons.upload.Description@c57b065
2018-11-26 04:07:40,454 [INFO ] [file-logging-thread-1] [DescriptionsAdapter$Vie] : descItemEditText:fr.free.nrw.commons.ui.widget.CustomEditText{498f363 VFED..CL. ......I. 0,0-0,0 #7f090092 app:id/description_item_edit_text}
2018-11-26 04:07:40,457 [DEBUG] [file-logging-thread-1] [DescriptionsAdapter$Vie] : Title is null
Device and Android version:
Samsung Galaxy s7 API 26
Commons app version:
2.9-release prodRelease
Would you like to work on the issue?
Pref not
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 49 (48 by maintainers)
@ShridharGoel My last commit caused this issue. The PR fixing it is up for review. #2309.
@sivaraam Thanks for sharing the logs. The issue you are facing is related to #2083.
This issue was related to the
Intentnot being handled properly leading to app crashing as soon as theUploadActivityis started.Out of memory (OOM) crash that you are facing is because of large images not being handled properly. Let’s take the discussion about this crash to #2083. 😃
@maskaravivek Thanks! I have uploaded many pictures recently and I have not gotten this error, whereas I was getting it very often before your commit 😃
You might have already signed up for Beta. The consent link for alpha and beta is the same.
@sivaraam Did you also join the Google Group? Please join this group to get alpha updates.
https://groups.google.com/d/forum/commons-alpha
@sivaraam Regarding the crash that you were experiencing, I managed to upload all 4 images successfully on the beta server without any crashes. I used Redmi Note 5 for testing. Can you verify if the latest master build work for you?
@misaochan Am looking at the issue and am trying to figure out why the
UploadActivityis receivingnullURIs.I’ve not tested with the change that has been merged but when I observed this issue initially I did not do any nearby uploads. I guess it was either a upload initiated from the app or an upload initiated by sharing from the gallery.