nativescript-community / ui-pager

Pager / Carousel component that allows the user to swipe left and right through pages of data.
https://nativescript-community.github.io/ui-pager/
Apache License 2.0
18 stars 10 forks source link

Android TypeError: Cannot read properties of undefined (reading 'setSelection') #39

Closed felixkrautschuk closed 1 year ago

felixkrautschuk commented 1 year ago

After upgrading our app from NS 8.4 to 8.5 and therefore the pager plugin from 13.0.43 to 14.1.3, we see a lot of crash reports in Firebase Crashlytics (3.200 in one week). It seems to be a "silent" crash, as I was never able to reproduce it and we got no user complaints.

According to the logs, the exception always occurs on the exact same page, where we use the pager plugin.

As I said, I could not reproduce it myself and therefore I am not able to create a sample app. Maybe you still have an idea what the problem could be.

felixkrautschuk commented 1 year ago

This seems to be fixed somehow between v. 14.1.4 and latest version 14.1.6, there seem to be no crash reports anymore.

Just a side note: this crash happened after rotating device from portrait to landscape and back for about 2-3 times (we were able to reproduce it some days ago).