title: Coroutine keeps crashing without showing error
body: <p>I'm developing in MVP. In my Presenter, I call my Repository thanks to the suspend function. In this suspend function, I launch a Coroutine - not on the main thread.
  When this coroutine is finished, I want to execute some code: I am using withContext() in order to do so.</p>
  <p>In my Repository, I am launching a Coroutine (and maybe I am wrong) to insert my data, using DAO, in my Room database.</p>
  <p>When I debug my application, it goes into my Presenter but crashes before going into my Repository.</p>
  <p>Presenter</p>
  <pre><code>    override suspend fun insertUserResponse(activity: Activity, data: UserResponse) {
          scope.launch(Dispatchers.IO) {
              try {
                  userResponseRepository.insertUserResponse(data)
  
                  withContext(Dispatchers.Main) {
                      redirectToClientMainPage(activity)
                  }
              } catch (error: Exception) {
                  parentJob.cancel()
                  Log.e(&quot;ERROR PRESENTER&quot;, &quot;${error.message}&quot;)
              }
          }
      }
  </code></pre>
  <p>Repository</p>
  <pre><code>    override suspend fun insertUserResponse(userResponse: UserResponse) {
          GlobalScope.launch(Dispatchers.IO) {
              try {
                  val existingUser: UserResponse? =
                      userResponseDAO.searchUserByID(userResponse.profilePOJO.uniqueID)
  
                  existingUser?.let {
                      userResponseDAO.updateUser(userResponse)
                  } ?: userResponseDAO.insertUser(userResponse)
              } catch (error: Exception) {
                  Log.e(&quot;ERROR REPOSITORY&quot;, &quot;${error.message}&quot;)
              }
          }
  
      }
  </code></pre>
  <p>I have no error shown in my logcat.</p>
  <p>EDIT:</p>
  <p>Scope initialization</p>
  <pre><code>    private var parentJob: Job = Job()
  
      override val coroutineContext: CoroutineContext
          get() = uiContext + parentJob
  
      private val scope = CoroutineScope(coroutineContext)
  </code></pre>
  <p>val uiContext: CoroutineContext = Dispatchers.Main (initialized in my class constructor)</p>
  <p>Stack trace</p>
  <p><a href="https://i.stack.imgur.com/ILwsL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ILwsL.png" alt="enter image description here" /></a></p>