title: Fragment XXX {} not associated with a fragment manager
body: <p>I started using navigation component in my application and I am facing with the following problem. 
  My first fragment is LoginFragment. After a success login, the mainFragment is displayed. I want that when user is on mainFragment and press back button to not go back to loginFragment. For this I added these 2 lines in nav_graph : <code>app:popUpTo="@+id/lovable_app_navigation"</code> and <code>app:popUpToInclusive="true"</code> and it works well. Here is my navigation graph : </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;navigation xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/app_navigation"
    app:startDestination="@id/loginFragment"&gt;
  
    &lt;fragment
      android:id="@+id/loginFragment"
      android:name="com.xxx.LoginFragment"
      android:label="LoginFragment"
      tools:layout="@layout/login_fragment"&gt;
      &lt;action
        android:id="@+id/dashboard_action"
        app:destination="@id/mainFragment"
        app:launchSingleTop="true"
        app:popUpTo="@+id/app_navigation"
        app:popUpToInclusive="true"/&gt;
    &lt;/fragment&gt;
  
    &lt;fragment
      android:id="@+id/mainFragment"
      android:name="com.xxx.MainFragment"
      android:label="MainFragment"
      tools:layout="@layout/main_fragment"&gt;
         &lt;action
        android:id="@+id/logout_action"
        app:destination="@id/loginFragment"
        app:launchSingleTop="true"
        app:popUpTo="@+id/app_navigation"
        app:popUpToInclusive="true"/&gt;
    &lt;/fragment&gt;
  
    &lt;action
      android:id="@+id/action_global_loginFragment"
      app:destination="@id/loginFragment" /&gt;
  &lt;/navigation&gt;
  </code></pre>
  
  <p>The problem is that after a time, when my session expires, it doesn't matter where the user is in application, in which fragment, I must to display the LoginFragment over the all stack. I created a global action for this <code>action_global_loginFragment</code>. The problem is that when I navigate to LoginFragment I get this error : </p>
  
  <pre><code>java.lang.IllegalStateException: Fragment LoginFragment{1d6bd24 (829a6832-3480-4bcb-a3f6-7e2ba214d3ca)} not associated with a fragment manager.
  </code></pre>
  
  <p>If I remove <code>popUpTo</code> and <code>popUpToInclusive</code> it works fine, but then the back button functionality is affected, from mainFragment it goes back to loginFragment. 
  Any idea how to fixed this? 
  Thanks in advance.</p>