Skip to content

Nearby starts upload without caption/description/depiction prefilled, on Pixel 9 Pro #6227

Open
@nicolas-raoul

Description

On both main branch and google_play_safe branches.

screen-20250227-102244.mp4

Steps to reproduce:

  1. Take a picture (you will not have to upload it)
  2. Use latest main branch
  3. Go to Nearby tab
  4. Select a pin near you
  5. Tap the + and select the picture you took in step 1
  6. Expected: The app should fill the caption/description fields. Actually: The fields are empty.

Strangely I also see the same bug when going back to these commits:
88eedc3
d32ab15
7a685b1 <-- Nearby was working correctly a few days after that version: https://commons.wikimedia.org/wiki/File:Honry%C5%AB-ji.jpg

Suspicious part of logcat:
This part is especially suspicious:

02-27 20:00:08.655  5847  5847 E Parcel  : android.util.Log$TerribleFailure: Unparcelling of Place{name='Central Breakwater', lang='bug', label='UNKNOWN', longDescription='Central Breakwater (two artificial islands in the Tokyo Bay)', location='lat/lng: (35.6,139.816667)', category='', distance='null', siteLinks='Sitelinks{wikipediaLink='', commonsLink='', wikidataLink='http://www.wikidata.org/entity/Q11363815'}', pic='', exists='false', entityID='null'} of type VAL_PARCELABLE  consumed 752 bytes, but 764 expected.
02-27 20:00:08.655  5847  5847 E Parcel  : 	at android.util.Log.wtf(Log.java:338)
02-27 20:00:08.655  5847  5847 E Parcel  : 	at android.util.Slog.wtfStack(Slog.java:246)
02-27 20:00:08.655  5847  5847 E Parcel  : 	at android.os.Parcel.readValue(Parcel.java:4630)
02-27 20:00:08.655  5847  5847 E Parcel  : 	at android.os.Parcel.-$$Nest$mreadValue(Unknown Source:0)
02-27 20:00:08.655  5847  5847 E Parcel  : 	at android.os.Parcel$LazyValue.apply(Parcel.java:4735)
02-27 20:00:08.655  5847  5847 E Parcel  : 	at android.os.Parcel$LazyValue.apply(Parcel.java:4688)
02-27 20:00:08.655  5847  5847 E Parcel  : 	at android.os.BaseBundle.unwrapLazyValueFromMapLocked(BaseBundle.java:446)
02-27 20:00:08.655  5847  5847 E Parcel  : 	at android.os.BaseBundle.getValueAt(BaseBundle.java:426)
02-27 20:00:08.655  5847  5847 E Parcel  : 	at android.os.BaseBundle.getValue(BaseBundle.java:397)
02-27 20:00:08.655  5847  5847 E Parcel  : 	at android.os.BaseBundle.getValue(BaseBundle.java:380)
02-27 20:00:08.655  5847  5847 E Parcel  : 	at android.os.BaseBundle.get(BaseBundle.java:767)
02-27 20:00:08.655  5847  5847 E Parcel  : 	at android.os.Bundle.getParcelable(Bundle.java:1121)
02-27 20:00:08.655  5847  5847 E Parcel  : 	at android.content.Intent.getParcelableExtra(Intent.java:9589)
02-27 20:00:08.655  5847  5847 E Parcel  : 	at fr.free.nrw.commons.upload.UploadActivity.receiveInternalSharedItems(UploadActivity.kt:723)
02-27 20:00:08.655  5847  5847 E Parcel  : 	at fr.free.nrw.commons.upload.UploadActivity.receiveSharedItems(UploadActivity.kt:444)
02-27 20:00:08.655  5847  5847 E Parcel  : 	at fr.free.nrw.commons.upload.UploadActivity.checkStoragePermissions(UploadActivity.kt:293)
02-27 20:00:08.655  5847  5847 E Parcel  : 	at fr.free.nrw.commons.upload.UploadActivity.onCreate(UploadActivity.kt:207)
02-27 20:00:08.655  5847  5847 E Parcel  : 	at android.app.Activity.performCreate(Activity.java:9140)
02-27 20:00:08.655  5847  5847 E Parcel  : 	at android.app.Activity.performCreate(Activity.java:9118)
02-27 20:00:08.655  5847  5847 E Parcel  : 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1505)
02-27 20:00:08.655  5847  5847 E Parcel  : 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4217)
02-27 20:00:08.655  5847  5847 E Parcel  : 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4422)
02-27 20:00:08.655  5847  5847 E Parcel  : 	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:222)
02-27 20:00:08.655  5847  5847 E Parcel  : 	at android.app.servertransaction.TransactionExecutor.executeNonLifecycleItem(TransactionExecutor.java:133)
02-27 20:00:08.655  5847  5847 E Parcel  : 	at android.app.servertransaction.TransactionExecutor.executeTransactionItems(TransactionExecutor.java:103)
02-27 20:00:08.655  5847  5847 E Parcel  : 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:80)
02-27 20:00:08.655  5847  5847 E Parcel  : 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2782)
02-27 20:00:08.655  5847  5847 E Parcel  : 	at android.os.Handler.dispatchMessage(Handler.java:110)
02-27 20:00:08.655  5847  5847 E Parcel  : 	at android.os.Looper.loopOnce(Looper.java:248)
02-27 20:00:08.655  5847  5847 E Parcel  : 	at android.os.Looper.loop(Looper.java:338)
02-27 20:00:08.655  5847  5847 E Parcel  : 	at android.app.ActivityThread.main(ActivityThread.java:8982)
02-27 20:00:08.655  5847  5847 E Parcel  : 	at java.lang.reflect.Method.invoke(Native Method)
02-27 20:00:08.655  5847  5847 E Parcel  : 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:593)
02-27 20:00:08.655  5847  5847 E Parcel  : 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:932)
02-27 20:00:08.656  5847  5847 E UploadActivity: Error reading place

Full logcat, from when I first tapped the pin until seeing the empty caption field, too long for GitHub but available on demand.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions