Open felixkrautschuk opened 3 years ago
+1
@felixkrautschuk still happening?
@farfromrefug I updated all dependencies (nativescript/core 7.3.0, nativescript/android 7.0.1 and the bottomsheet plugin 5.2.31) and yes, it is still happening the same way.
Updated project: NSBottomSheetNS7.zip
I also tried updating NS 8 in combination with the bottomsheet 5.2.31, but no difference.
@felixkrautschuk it seems to be an issue with N. Something is really wrong with the way N handles fragment managers. It creates a lot of issues all over the place. I cant do much right now as it would requires a lot of time/work to correctly fix this.
For now i would suggest not to use a frame
inside a bottomsheet. Which btw is not a good ui design. There should be no navigation inside a bottomsheet
@farfromrefug thanks for your feedback.
I have already thought of something like that, because I firstly came across this kind of crash in an app without using the bottomsheet. But the sample app containing the bottomsheet was the only app where I could reproduce this crash so I decided to create the issue thread here instead of the core repo :)
@felixkrautschuk yes i understand. Maybe it would be a good thing then to raise ald link this issue in the N one? We now have a reproducible example
@felixkrautschuk i am now thinking it is a bug on the plugin side. The reason is that in N it works for modal views which work the same way as the bottomsheet on android
If the demo apps cannot help and there is no issue for your problem, tell us about it
Please, ensure your title is less than 63 characters long and starts with a capital letter.
When using a Frame inside a BottomSheet, the app crashes while trying to open that BottomSheet on Android.
Crash log:
While researching I came across this issue: https://github.com/NativeScript/NativeScript/issues/8126 It's about the same error message so it is possible that this issue here is not caused by the bottom-sheet alone. However, the other issue is about suspending and resuming the app which is not the case here, so it might have a different cause.
Which platform(s) does your issue occur on?
Please, provide the following version numbers that your issue occurs with:
Please, tell us how to recreate the issue in as much detail as possible.
Open the sample app provided above, tap the button to open the bottom sheet -> Crash (Anroid)
Is there any code involved?
NSBottomSheetNS7.zip