apps-android-commons icon indicating copy to clipboard operation
apps-android-commons copied to clipboard

[Bug]: The app no longer launches, or if it does, I can't upload any photos

Open OpenGreenStreet opened this issue 1 month ago • 28 comments

Summary

I cleared the cache and deleted all app data. After that, I received the following error message when trying to upload: “the mapper function returned a null value”

Steps to reproduce

Then I uninstalled and reinstalled the app. Now it won't launch at all.

Expected behaviour

I can open the app and upload photos

Actual behaviour

The app won't start

Device name

Pixel 7 Pro

Android version

Android 17

Commons app version

6.9.0

Device logs

No response

Screenshots

I'd be happy to send screenshots via email

Would you like to work on the issue?

None

OpenGreenStreet avatar Oct 06 '26 12:10 OpenGreenStreet

Any error in logcat when you start the app?

nicolas-raoul avatar Oct 06 '26 12:10 nicolas-raoul

Where can I find the log? Can I send it to you personally?

OpenGreenStreet avatar Oct 06 '26 12:10 OpenGreenStreet

Search "how to logcat on <your computer's OS>" You will need to install a utility, and plug your phone via USB.

You can send me the file, my email is at https://nicolasraoul.github.io

Thanks!

nicolas-raoul avatar Oct 06 '26 13:10 nicolas-raoul

Thanks for the logcat! The relevant part is here:

java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.replaceAll(java.lang.String, java.lang.String)' on a null object reference
at wd.s0.d(SourceFile:5)
at wd.s0.a(SourceFile:3)
at wd.r.s(SourceFile:7)
at wd.h0.w(SourceFile:139)
at wd.h0.h(SourceFile:1)
at wd.b0.invoke(SourceFile:1)
at ya.b.l(SourceFile:22)
at ya.b.j(SourceFile:3)
at xa.a.k(SourceFile:5)
at xa.a.b(SourceFile:3)
at xa.c.e(SourceFile:16)
at xa.d.z(SourceFile:9)
at androidx.recyclerview.widget.RecyclerView$h.d(SourceFile:41)

@OpenGreenStreet Could you try to install instead the "prodDebugAPK" APK file found at https://github.com/commons-app/apps-android-commons/pull/6966#issuecomment-5730612926 , telling us whether it works, and if not send me the logcat again?

@RitikaPahwa4444 Interestingly https://github.com/commons-app/apps-android-commons/pull/6981/changes has not been merged yet but the above looks like obfuscation.

nicolas-raoul avatar Oct 06 '26 14:10 nicolas-raoul

Yes, I'd uploaded it on Google Play for beta users to see the wider impact of obfuscation. I've halted the rollout.

RitikaPahwa4444 avatar Oct 06 '26 14:10 RitikaPahwa4444

APP_VERSION_CODE=1068
APP_VERSION_NAME=6.9.0
ANDROID_VERSION=16
PHONE_MODEL=23090RA98I
STACK_TRACE=java.lang.NullPointerException
at ne.f0.K4(SourceFile:3)
at ne.f0.c5(SourceFile:1)
at ne.f0.v4(SourceFile:1)
at ne.p.run(SourceFile:1)
at android.os.Handler.handleCallback(Handler.java:1029)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loopOnce(Looper.java:267)
at android.os.Looper.loop(Looper.java:360)
at android.app.ActivityThread.main(ActivityThread.java:10054)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:616)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1115)

IS_SILENT=false
USER_CRASH_DATE=2026-10-06T21:46:23.922+05:30
REPORT_ID=f9b4c548-73a4-422b-81cf-3e58c34c902a

App crashed with this, while testing the issue :)

Kota-Jagadeesh avatar Oct 06 '26 16:10 Kota-Jagadeesh

It's not crashing for me and opens at least. Explore, bookmarks, leaderboard etc. are working for me. I have uploaded a patch on Google Play, it should be live after the approvals.

RitikaPahwa4444 avatar Oct 06 '26 16:10 RitikaPahwa4444

@Kota-Jagadeesh are you trying the release variant?

RitikaPahwa4444 avatar Oct 06 '26 16:10 RitikaPahwa4444

Thank You. I cleared the cache and memory and reinstalled the app. Now I see 6.8.0~null, and I can launch the app and log in.

OpenGreenStreet avatar Oct 06 '26 16:10 OpenGreenStreet

I can upload images again now, but the existing(!) GPS coordinates aren't being read: https://commons.wikimedia.org/wiki/File:20260929_xl_1442-_Jungfernsteig.jpg

OpenGreenStreet avatar Oct 06 '26 17:10 OpenGreenStreet

@Kota-Jagadeesh are you trying the release variant?

Ig i was in betadebug which i installed it to test #6906, i will try different variant (prodebug) and lyk about it

Kota-Jagadeesh avatar Oct 06 '26 18:10 Kota-Jagadeesh

Minification should only impact the release builds. I'm able to upload images using the prodDebug APK linked to my PR but the uploads are failing on the release builds with the same error as shared above. Not crashing badly but not working either.

RitikaPahwa4444 avatar Oct 06 '26 20:10 RitikaPahwa4444

@nicolas-raoul : See emails with the subject line "Issues 713"

OpenGreenStreet avatar Oct 07 '26 08:10 OpenGreenStreet

Some community members may wonder, so let me clarify that here "obfuscation" means "minification". The goal is not to hide anything, just to make the binary smaller. Unfortunately Android wrongly calls that "obfuscation".

nicolas-raoul avatar Oct 13 '26 12:10 nicolas-raoul

@OpenGreenStreet @nicolas-raoul @RitikaPahwa4444 is this issue still persistent as i am unable to reproduce it using the steps mentioned ... or we just need to close it?

devendrachoudharycodes avatar Oct 14 '26 06:10 devendrachoudharycodes

Now that version “6.8.0~null” is current again, I can work without any issues. As far as I'm concerned, the ticket can be closed.

OpenGreenStreet avatar Oct 14 '26 07:10 OpenGreenStreet

Closing for now, but let's keep an eye and watch out for similar problems.

nicolas-raoul avatar Oct 14 '26 07:10 nicolas-raoul

@OpenGreenStreet Sad to hear that it is happening again, but glad that you reported it. Would you be able to post a logcat?

nicolas-raoul avatar Nov 16 '26 13:11 nicolas-raoul

@nicolas-raoul Sure, please help me find it (path) and give me an email address where I can send it. (Good news: the Commons app still works on my Pixel 7.)

OpenGreenStreet avatar Nov 16 '26 13:11 OpenGreenStreet

Sure, I actually wrote a guide recently to cover this :-)

https://github.com/commons-app/commons-app-documentation/blob/master/android/logcat.md

nicolas-raoul avatar Nov 16 '26 13:11 nicolas-raoul