Skip to content

Categories field just spins #4459

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jidanni opened this issue Jun 15, 2021 · 13 comments
Closed

Categories field just spins #4459

jidanni opened this issue Jun 15, 2021 · 13 comments

Comments

@jidanni
Copy link
Contributor

jidanni commented Jun 15, 2021

Screenshot_20210616-055417.jpg

There is a spinner spinning on this category field but nothing seems to happen even if we type some words in.

3.0.1.

@misaochan
Copy link
Member

Does this happen every time or occasionally? How long do you wait for after typing a word in?

@jidanni
Copy link
Contributor Author

jidanni commented Jun 16, 2021

All I know is it happened today. I waited about 30 seconds.

@misaochan
Copy link
Member

Could you send us logs the next time it happens? Settings > Send Log File > send email. Thanks!

@jidanni
Copy link
Contributor Author

jidanni commented Jun 18, 2021

Okay to get your settings I have to continue on the steps and finally submit the picture and then I could get back to settings. However the submit button is stuck again. So I think you better put me out of the alpha program at back in the beta program please.

@nicolas-raoul
Copy link
Member

Strangely I can not reproduce it anymore in the latest master.
It was happening to me a lot in the last few days (I use mostly pull request branches though, rather than master).

@sivaraam
Copy link
Member

So I think you better put me out of the alpha program at back in the beta program please.

As far as I know you would've to do that on your own. Typically the steps are:

  1. Leave the following google group: https://groups.google.com/d/forum/commons-alpha
  2. Uninstall the app from play store
  3. Re-install it to get the beta version

Others: Kindly correct me in case I missed something 🙂

@jidanni
Copy link
Contributor Author

jidanni commented Jun 19, 2021

Where is a page with all three

  • α
  • β
  • Standard

version numbers, so I can tell if your advice worked?

@nicolas-raoul
Copy link
Member

Unfortunately Play Store does not provide an easy way to check, so you have to compare the end of the version string in About with the commit hashcodes at https://github.com/commons-app/apps-android-commons/commits/master

@sivaraam
Copy link
Member

sivaraam commented Jun 20, 2021

Yeah. It's not easy to find the various version. Anyways, in case it helps for me the versions were as follows right now (20June2021):

Alpha - 3.0.1.1019~10ed667
Beta - 3.0.1~898dbcd75
Stable - 2.13.2~757c7b008

While trying to get the above information in my device, I noticed trying do steps 2 & 3 shortly after leaving the alpha group might still give you the alpha. You might want to wait some time after leaving the group before uninstalling and reinstalling the app to ensure you get the beta version.

If you still don't get the beta, let me know. I happen to know of a workaround to quickly get the beta but it unfortunately involves taking more steps.

@nicolas-raoul
Copy link
Member

I got the two logs below on the gsoc21-custom-picture-selector branch, I will update if I manage to reproduce it on `master.

When going to the categories step after selecting two depictions worm and tokyo:

06-21 18:49:30.724  5621  5803 I clp-JNI : Add pinfo.  (channel) ee2e601 fr.free.nrw.commons/fr.free.nrw.commons.upload.UploadActivity (server) (pkg) AppWindowToken{fc80070 token=Token{fb6a2b3 ActivityRecord{43b2822 u0 fr.free.nrw.commons/.upload.UploadActivity t25196}}} 10484 10401 (action) 0
06-21 18:49:30.724 10484 10484 D ViewRootImpl@7bec2eb[UploadActivity]: ViewPostIme pointer 0
06-21 18:49:30.781  5621  5803 I clp-JNI : Add pinfo.  (channel) ee2e601 fr.free.nrw.commons/fr.free.nrw.commons.upload.UploadActivity (server) (pkg) AppWindowToken{fc80070 token=Token{fb6a2b3 ActivityRecord{43b2822 u0 fr.free.nrw.commons/.upload.UploadActivity t25196}}} 10484 10401 (action) 1
06-21 18:49:30.782 10484 10484 D ViewRootImpl@7bec2eb[UploadActivity]: ViewPostIme pointer 1
06-21 18:49:30.808 10484 10484 D InputMethodManager: prepareNavigationBarInfo() DecorView@b2aa883[UploadActivity]
06-21 18:49:30.808 10484 10484 D InputMethodManager: getNavigationBarColor() -855310
06-21 18:49:30.808 10484 10484 V InputMethodManager: Starting input: tba=fr.free.nrw.commons ic=com.android.internal.widget.EditableInputConnection@ceefc2f mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
06-21 18:49:30.808 10484 10484 D InputMethodManager: startInputInner - Id : 0
06-21 18:49:30.811 10484 10484 I InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
06-21 18:49:30.814 10484 10484 D InputTransport: Input channel constructed: fd=88
06-21 18:49:30.814 10484 10484 D InputTransport: Input channel destroyed: fd=85

On the categories step, when typing Dogs:

06-21 18:49:57.259 10484 10484 D ViewRootImpl@7bec2eb[UploadActivity]: MSG_RESIZED: frame=Rect(0, 0 - 1080, 2280) ci=Rect(0, 117 - 0, 1023) vi=Rect(0, 117 - 0, 1023) or=1
06-21 18:49:57.317 10484 10484 D ViewRootImpl@7bec2eb[UploadActivity]: Relayout returned: old=[0,0][1080,2280] new=[0,0][1080,2280] result=0x1 surface={valid=true 524591869952} changed=false
06-21 18:49:57.900 10484 10484 D ViewRootImpl@7bec2eb[UploadActivity]: MSG_RESIZED: frame=Rect(0, 0 - 1080, 2280) ci=Rect(0, 117 - 0, 891) vi=Rect(0, 117 - 0, 891) or=1
06-21 18:49:57.933 10484 10484 D ViewRootImpl@7bec2eb[UploadActivity]: Relayout returned: old=[0,0][1080,2280] new=[0,0][1080,2280] result=0x1 surface={valid=true 524591869952} changed=false
06-21 18:50:05.536 10484 10484 D ViewRootImpl@7bec2eb[UploadActivity]: ViewPostIme key 0
06-21 18:50:05.540 10484 10484 D ViewRootImpl@7bec2eb[UploadActivity]: ViewPostIme key 1
06-21 18:50:05.837 10484 10484 D ViewRootImpl@7bec2eb[UploadActivity]: ViewPostIme key 0
06-21 18:50:05.841 10484 10484 D ViewRootImpl@7bec2eb[UploadActivity]: ViewPostIme key 1
06-21 18:50:07.129 10484 10484 D ViewRootImpl@7bec2eb[UploadActivity]: MSG_RESIZED: frame=Rect(0, 0 - 1080, 2280) ci=Rect(0, 117 - 0, 1023) vi=Rect(0, 117 - 0, 1023) or=1
06-21 18:50:07.179 10484 10484 D ViewRootImpl@7bec2eb[UploadActivity]: Relayout returned: old=[0,0][1080,2280] new=[0,0][1080,2280] result=0x1 surface={valid=true 524591869952} changed=false
06-21 18:50:10.719 10484 10484 D ViewRootImpl@7bec2eb[UploadActivity]: ViewPostIme key 0
06-21 18:50:10.721 10484 10484 D ViewRootImpl@7bec2eb[UploadActivity]: ViewPostIme key 1
06-21 18:50:10.748 10484 10484 D ViewRootImpl@7bec2eb[UploadActivity]: MSG_RESIZED: frame=Rect(0, 0 - 1080, 2280) ci=Rect(0, 117 - 0, 891) vi=Rect(0, 117 - 0, 891) or=1
06-21 18:50:10.780 10484 10484 D ViewRootImpl@7bec2eb[UploadActivity]: Relayout returned: old=[0,0][1080,2280] new=[0,0][1080,2280] result=0x1 surface={valid=true 524591869952} changed=false
06-21 18:50:10.955 10484 10484 D ViewRootImpl@7bec2eb[UploadActivity]: ViewPostIme key 0
06-21 18:50:10.956 10484 10484 D ViewRootImpl@7bec2eb[UploadActivity]: ViewPostIme key 1
06-21 18:50:11.104 10484 10484 D ViewRootImpl@7bec2eb[UploadActivity]: ViewPostIme key 0
06-21 18:50:11.105 10484 10484 D ViewRootImpl@7bec2eb[UploadActivity]: ViewPostIme key 1
06-21 18:50:11.289 10484 10484 D ViewRootImpl@7bec2eb[UploadActivity]: ViewPostIme key 0
06-21 18:50:11.291 10484 10484 D ViewRootImpl@7bec2eb[UploadActivity]: ViewPostIme key 1
06-21 18:50:12.074 10484 10484 D ViewRootImpl@7bec2eb[UploadActivity]: ViewPostIme key 0
06-21 18:50:12.075 10484 10484 D ViewRootImpl@7bec2eb[UploadActivity]: ViewPostIme key 1
06-21 18:50:12.308 10484 10484 D ViewRootImpl@7bec2eb[UploadActivity]: ViewPostIme key 0
06-21 18:50:12.313 10484 10484 D ViewRootImpl@7bec2eb[UploadActivity]: ViewPostIme key 1
06-21 18:50:12.509 10484 10484 D ViewRootImpl@7bec2eb[UploadActivity]: ViewPostIme key 0
06-21 18:50:12.513 10484 10484 D ViewRootImpl@7bec2eb[UploadActivity]: ViewPostIme key 1
06-21 18:50:13.276 10484 10484 D ViewRootImpl@7bec2eb[UploadActivity]: MSG_RESIZED: frame=Rect(0, 0 - 1080, 2280) ci=Rect(0, 117 - 0, 1023) vi=Rect(0, 117 - 0, 1023) or=1
06-21 18:50:13.336 10484 10484 D ViewRootImpl@7bec2eb[UploadActivity]: Relayout returned: old=[0,0][1080,2280] new=[0,0][1080,2280] result=0x1 surface={valid=true 524591869952} changed=false
06-21 18:50:14.276 10484 10484 D ViewRootImpl@7bec2eb[UploadActivity]: MSG_RESIZED: frame=Rect(0, 0 - 1080, 2280) ci=Rect(0, 117 - 0, 891) vi=Rect(0, 117 - 0, 891) or=1
06-21 18:50:14.318 10484 10484 D ViewRootImpl@7bec2eb[UploadActivity]: Relayout returned: old=[0,0][1080,2280] new=[0,0][1080,2280] result=0x1 surface={valid=true 524591869952} changed=false

As you can see, no web requests are being made. On the depictions step, I could see many web requests appearing as OkHttp log lines.

@Rishavgupta12345
Copy link
Contributor

Rishavgupta12345 commented Jan 26, 2022

Categories work perfectly now. It's an old issue and already solved by the pull request #4474. Please review and close this issue @nicolas-raoul

@nicolas-raoul
Copy link
Member

Indeed. If anyone still experiences this, please reopen, thanks!

@mnalis
Copy link
Contributor

mnalis commented Jun 20, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants