Skip to content
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

Crash when attempting to edit product 8480024754097/galleta-castellana-integral-alteza #4473

Closed
Tracked by #4164
sentry-io bot opened this issue Feb 11, 2022 · 3 comments
Closed
Tracked by #4164
Labels
crash editing Issues relating to allowing the user to edit products P0

Comments

@sentry-io
Copy link

sentry-io bot commented Feb 11, 2022

Sentry Issue: OPENFOODFACTS-ANDROID-54Q

IllegalStateException: Attempting to launch an unregistered ActivityResultLauncher with contract openfoodfacts.github.scrachx.openfood.features.product.edit.ProductEditActivity$EditProductContract@dc16c12 and input Product[code=8480024754097,productName=Galleta castellana integral,additional_properties={attribute_groups_es=[{attributes=[{description=, description_short=Calidad nutricional baja, grade=d, icon_url=https://static.openfoodfacts.org/images/attributes/nutriscore-d.svg, id=nutriscore, match=33.6666666666667, name=Nutri-Score, status=known, title=Nutri-Score D}, {description_short=0.8 g / 100 g, grade=c, icon_url=https://static.openfoodfacts.org/images/attributes/nutrient-level-salt-medium.svg, id=low_salt, match=55, name=Sal, status=known, title=Sal en cantidad moderada}, {description_short=16 g / 100 g, grade=d, icon_url=https://static.openfoodfacts.org/images/attributes/nutrient-level-fat-medium.svg, id=low_fat, match=34.1176470588235, name=Grasas, status=known, title=Grasas en cantidad moderada}, {description_short=20 g / 100 g, grade=e, icon_url=https://static.openfoodfacts.org/images/attributes/nutrient-level-sugars-high.svg, id=low_sugars, match=8, name=Azúcares, status=known, title=Azúcares en cantidad elevada}, {description_short=2 g / 100 g, grade=b, icon_url=https://static.openfoodfacts.org/images/attributes/nutrient-level-saturated-fat-medium.svg, id=low_saturated_fat, match=71.4285714285714, name=Grasas saturadas, status=known, title=Grasas saturadas en cantidad moderada}], id=nutritional_quality, name=Calidad nutricional}, {attributes=[{debug=en:gluten in allergens, grade=e, icon_url=https://static.openfoodfacts.org/images/attributes/contains-gluten.svg, id=allergens_no_gluten, match=0, name=Gluten, status=known, title=Contiene: Gluten}, {debug=en:milk in traces, grade=e, icon_url=https://static.openfoodfacts.org/images/attributes/may-contain-milk.svg, id=allergens_no_milk, match=20, name=Leche, status=known, title=Puede contener: Leche}, {debug=too many unknown ingredients: 16 ingredients (2 unknown), grade=unknown, icon_url=https://static.openfoodfacts.org/images/attributes/eggs-content-unknown.svg, id=allergens_no_eggs, name=Huevos, status=unknown, title=Presencia desconocida: Huevos}, {debug=en:nuts in traces, grade=e, icon_url=https://static.openfoodfacts.org/images/attributes/may-contain-nuts.svg, id=allergens_no_nuts, match=20, name=Frutos de cáscara, status=known, title=Puede contener: Frutos de cáscara}, {debug=too many unknown ingredients: 16 ingredients (2 unknown), grade=unknown, icon_url=https://static.openfoodfacts.org/images/attributes/peanuts-content-unknown.svg, id=allergens_no_peanuts, name=Cacahuetes, status=unknown, title=Presencia desconocida: Cacahuetes}, {debug=en:sesame-seeds in traces, grade=e, icon_url=https://static.openfoodfacts.org/images/attributes/may-contain-sesame-seeds.svg, id=allergens_no_sesame_seeds, match=20, name=Granos de sésamo, status=known, title=Puede contener: Granos de sésamo}, {debug=en:soybeans in allergens, grade=e, icon_url=https://static.openfoodfacts.org/images/attributes/contains-soybeans.svg, id=allergens_no_soybeans, match=0, name=Soja, status=known, title=Contiene: Soja}, {debug=too many unknown ingredients: 16 ingredients (2 unknown), grade=unknown, icon_url=https://static.openfoodfacts.org/images/attributes/celery-content-unknown.svg, id=allergens_no_celery, name=Apio, status=unknown, title=Presencia desconocida: Apio}, {debug=too many unknown ingredients: 16 ingredients (2 unknown), grade=unknown, icon_url=https://static.openfoodfacts.org/images/attributes/mustard-content-unknown.svg, id=allergens_no_mustard, name=Mostaza, status=unknown, title=Presencia desconocida: Mostaza}, {debug=too many unknown ingredients: 16 ingredients (2 unknown), grade=unknown, icon_url=https://static.openfoodfacts.org/images/attributes/lupin-content-unknown.svg, id=allergens_no_lupin, name=Altramuces, status=unknown, title=Presencia desconocida: Altramuces}, {debug=too many unknown ingredients: 16 ingredients (2 unknown), grade=unknown, icon_url=https://static.openfoodfacts.org/images/attributes/fish-content-unknown.svg, id=allergens_no_fish, name=Pescado, status=unknown, title=Presencia desconocida: Pescado}, {debug=too many unknown ingredients: 16 ingredients (2 unknown), grade=unknown, icon_url=https://static.openfoodfacts.org/images/attributes/crustaceans-content-unknown.svg, id=allergens_no_crustaceans, name=Crustáceos, status=unknown, title=Presencia desconocida: Crustáceos}, {debug=too many unknown ingredients: 16 ingredients (2 unknown), grade=unknown, icon_url=https://static.openfoodfacts.org/images/attributes/molluscs-content-unknown.svg, id=allergens_no_molluscs, name=Moluscos, status=unknown, title=Presencia desconocida: Moluscos}, {debug=too many unknown ingredients: 16 ingredients (2 unknown), grade=unknown, icon_url=https://static.openfoodfacts.org/images/attributes/sulphur-dioxide-and-sulphites-content-unknown.svg, id=allergens_no_sulphur_dioxide_and_sulphites, name=Dióxido de azufre y sulfitos, status=unknown, title=Presencia desconocida: Dióxido de azufre y sulfitos}], id=allergens, name=Alérgenos, warning=Siempre existe la posibilidad de que falten datos sobre alérgenos, estén incompletos, sean incorrectos o que la composición del producto haya cambiado. Si es alérgico, siempre compruebe la información en el paquete del producto real.}, {attributes=[{grade=unknown, icon_url=https://static.openfoodfacts.org/images/attributes/vegan-status-unknown.svg, id=vegan, name=Vegano, status=unknown, title=Se desconoce si es vegano}, {grade=unknown, icon_url=https://static.openfoodfacts.org/images/attributes/vegetarian-status-unknown.svg, id=vegetarian, name=Vegetariano, status=unknown, title=Se desconoce si es vegetariano}, {grade=c, icon_url=https://static.openfoodfacts.org/images/attributes/may-contain-palm-oil.svg, id=palm_oil_free, match=50, name=Sin aceite de palma, status=known, title=Puede contener aceite de palma}], id=ingredients_analysis, name=Ingredientes}, {attributes=[{description=, description_short=Alimentos ultraprocesados, grade=e, icon_url=https://static.openfoodfacts.org/images/attributes/nova-group-4.svg, id=nova, match=0, name=Grupo Nova, status=known, title=NOVA 4}, {grade=e, icon_url=https://static.openfoodfacts.org/images/attributes/5-additives.svg, id=additives, match=0, name=Aditivos, status=known, title=5 aditivos}], id=processing, name=Procesamiento de alimentos}, {attributes=[{description=La agricultura ecológica tiene por objeto proteger el medio ambiente y conservar la biodiversidad prohibiendo o limitando el uso de fertilizantes sintéticos, pesticidas y aditivos alimentarios., description_short=Los productos ecológicos promueven la sostenibilidad ecológica y la biodiversidad., grade=unknown, icon_url=https://static.openfoodfacts.org/images/attributes/organic-unknown.svg, id=labels_organic, name=Agricultura ecológica, status=unknown, title=Falta información: ¿producto ecológico?}, {description=Cuando compras productos de comercio justo, se paga a los productores de los países en desarrollo un precio más alto y justo, lo que les ayuda a mejorar y mantener niveles sociales más elevados, y a menudo también medioambientales., description_short=Los productos de comercio justo ayudan a los productores de países en desarrollo., grade=unknown, icon_url=https://static.openfoodfacts.org/images/attributes/fair-trade-unknown.svg, id=labels_fair_trade, name=Comercio justo, status=unknown, title=Falta información: ¿producto de comercio justo?}], id=labels, name=Etiquetas}], nutrition_grades_tags=[d], product_name_es=Galleta castellana integral, ingredients_from_palm_oil_tags=[e304-palmitate-d-ascorbyle], selected_images={front={display={es=https://images.openfoodfacts.org/images/products/848/002/475/4097/front_es.10.400.jpg}, small={es=https://images.openfoodfacts.org/images/products/848/002/475/4097/front_es.10.200.jpg}, thumb={es=https://images.openfoodfacts.org/images/products/848/002/475/4097/front_es.10.100.jpg}}, ingredients={display={es=https://images.openfoodfacts.org/images/products/848/002/475/4097/ingredients_es.15.400.jpg}, small={es=https://images.openfoodfacts...
    at androidx.activity.result.ActivityResultRegistry$2.launch(ActivityResultRegistry.java:167)
    at androidx.fragment.app.Fragment$9.launch(Fragment.java:3507)
    at androidx.activity.result.ActivityResultLauncher.launch(ActivityResultLauncher.java:47)
    at openfoodfacts.github.scrachx.openfood.features.product.view.summary.SummaryProductFragment.editProduct(SummaryProductFragment.kt:903)
    at openfoodfacts.github.scrachx.openfood.features.product.view.summary.SummaryProductFragment.onEditProductButtonClick(SummaryProductFragment.kt:848)
...
(14 additional frame(s) were not displayed)
@teolemon
Copy link
Member

image

@teolemon teolemon changed the title IllegalStateException: Attempting to launch an unregistered ActivityResultLauncher with contract openfoodfacts.github.sc... Crash when attempting to edit product 8480024754097/galleta-castellana-integral-alteza Feb 11, 2022
@teolemon teolemon added crash editing Issues relating to allowing the user to edit products labels Feb 11, 2022
@teolemon teolemon added the P0 label Feb 19, 2022
@teolemon teolemon moved this to Todo in Android app Feb 19, 2022
@VaiTon
Copy link
Member

VaiTon commented Feb 26, 2022

I'm not able to reproduce. Anything you did before opening the product in edit mode?

@teolemon
Copy link
Member

It seems to be working with latest master. Closing. Thanks for trying to reproduce 👍

Repository owner moved this from Todo to Done in Android app Feb 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash editing Issues relating to allowing the user to edit products P0
Projects
Status: Done
Development

No branches or pull requests

2 participants