yandexmobile / metrica-plugin-unity

Unity plugin for Yandex AppMetrica SDK
38 stars 18 forks source link

Crash in com.yandex.metrica.impl.ob.ro.a on Android (Unity 3D) #57

Open Hitomilras opened 2 years ago

Hitomilras commented 2 years ago

Hi. We use appmetric SDK in our Unity 3D game, version 5.0.0. 25% of all crashes are crashes of appmetric'a. I'm attaching the stacktrace.

Yes, we understand what is written in the stack trace. But it's guaranteed that firstly we initialize appmetrica SDK and only then access any of its methods.

IMPORTANT. When the library version was 4.2.0 this crash didn't happen. In projects where we also use the appmetrica (we have one integration for all our projects) and version 4.2.0 we don't see crashes. It appeared only after upgrade to 5.0.0.

There seems to be one thread on the internet that is similar to our case: https://github.com/yandexmobile/metrica-plugin-unity/issues/25

My question is. How can we fix the crash now? We can't downgrade because Google Play requires version 5.0.0, otherwise it says that we violate its policies.

Thank you.

ghost commented 2 years ago

Добрый день!Ваше письмо получено и зарегистрировано под уникальным номером № 18927894. Ответ обязательно будет предоставлен, пожалуйста, ожидайте.Просим Вас не отправлять повторное письмо по данному вопросу - оно будет считаться новой заявкой и может быть обработано позднее.Помощь сервиса: https://yandex.ru/support/direct/?from=email--С уважением,Отдел клиентского сервисател.: 8 800 234-24-80 (звонок из регионов России бесплатный)тел.: +7 495 739-37-77&nbsp27.08.2022, 16:28, "Aleksey Rastegaev" @.***>: Hi. We use appmetric SDK in our Unity 3D game, version 5.0.0. 25% of all crashes are crashes of appmetric'a. I'm attaching the stacktrace. Yes, we understand what is written in the stack trace. But it's guaranteed that firstly we initialize appmetrica SDK and only then access any of its methods. IMPORTANT. When the library version was 4.2.0 this crash didn't happen. In projects where we also use the appmetrica (we have one integration for all our projects) and version 4.2.0 we don't see crashes. It appeared only after upgrade to 5.0.0. There seems to be one thread on the internet that is similar to our case:

25

My question is. How can we fix the crash now? We can't downgrade because Google Play requires version 5.0.0, otherwise it says that we violate its policies. Thank you.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

kiloT commented 1 year ago

are there any working fix for this crash? faced with it when update target api level to 31

NudeNULL commented 1 year ago

We also see crashes in our project due to appmetrica, 25% of app starts are crashes

kiloT commented 1 year ago

@NudeNULL try to update appmetrica to latest version(5+). my crashes will be fixed by such update.

NudeNULL commented 1 year ago

Tried 5.1.0 and 5.2.0, nothing helped, now trying to see if the initialization order can be the reason...