navigation icon indicating copy to clipboard operation
navigation copied to clipboard

Got error on NavigationStackView.onAfterUpdateTransaction

Open mazipan opened this issue 2 years ago • 3 comments

Screen Shot 2022-08-04 at 17 24 59

I am not sure how to reproduce this issue, but this is an error from our Crashlytics dashboard.

mazipan avatar Aug 04 '22 10:08 mazipan

Hey, thanks for getting in touch. Don't worry that you can't reproduce it. An error like that is usually an edge case that relies on a very specific sequence and timing. I think the fix is to check the fragment isAdded before the fragments are updated in the NavigationStackView

if (scenes.size() == 0 || !fragment.isAdded() || fragment.getChildFragmentManager().isStateSaved())
    return;

Is this something you can test out and see if the error goes away?

grahammendick avatar Aug 04 '22 15:08 grahammendick

We can reconfirm by check out Crashlytics dashboard, but I am afraid that our current release cycle can not let us check the feedback in short time.

But we can patch the library by our own for instance, using your code above. Then after we sure that the error gone (which may takes time), we will send you a PR to fix the issue.

How about that?

mazipan avatar Aug 04 '22 19:08 mazipan

Thanks @mazipan that sounds great 👍

grahammendick avatar Aug 04 '22 19:08 grahammendick

Hey @mazipan, how's it going? I'm just checking in to see if you've any feedback yet

grahammendick avatar Nov 04 '22 12:11 grahammendick

We've patching the library since 5 August.

@galihlprakoso could you help to confirming that the error is gone on our Crashlytics?

mazipan avatar Nov 04 '22 14:11 mazipan

@mazipan could you check, please?

grahammendick avatar Nov 09 '22 23:11 grahammendick

@mazipan it's cool if it's going to take a while to go through the logs. Just let me know, please 🙏

grahammendick avatar Nov 18 '22 18:11 grahammendick

@mazipan I'll leave this open for another 2 weeks. If I haven't heard from you before then I'll close it :(

grahammendick avatar Nov 29 '22 15:11 grahammendick

Really really sorry for the late late late response.. 🙏🏻 🥲 I confirmed that the issue is not happening anymore after the patch. Thanks a lot! @grahammendick

galihlprakoso avatar Feb 13 '23 13:02 galihlprakoso

Ah, no problem. Thank you for letting me know. The fix will be in the next release

grahammendick avatar Feb 13 '23 15:02 grahammendick