A long-running Parse operation is being executed on the main thread

后端 未结 4 1317
甜味超标
甜味超标 2020-11-30 07:27

I am getting the error:

\"A long-running Parse operation is being executed on the main thread. Break on warnParseOperationOnMainThread() to debug.\"

4条回答
  •  被撕碎了的回忆
    2020-11-30 08:04

    This is a gentle warning to the developers when they make the Parse calls that would block the main thread.

    This is where you can see it all happen,, add a symbolic breakpoint on warnBlockingOperationOnMainThread only if you use a Parse API released from 2015+. Otherwise, put it on the warnParseOperationOnMainThread.

    It'll break on that function while you are running your code, and will show you a stack trace which should help you to find the blocking function.

    See the images below to have a better understanding.

    enter image description here

    enter image description here

提交回复
热议问题