Debuging "get_isPlaying" error

I got a “get_isPlaying” error every time I stop running my game, as below:

get_isPlaying can only be called from the main thread. Constructors and field initializers will be executed from the loading thread when loading a scene. Don’t use this function in the constructor or field initializers, instead move initialization code to the Awake or Start function.

I double click the error in editor no script is shown. And, it seems doesn’t affect my game since it only appears on game quite.

Should I ignore it or is there any way I can debug and find which script is invalid?

Well, search for “Application.isPlaying” in your whole project (in MonoDevelop or VisualStudio you can search in files) and see where it’s used in your scripts. It might be in a finalizer / destructor or inside a serialization callback which are called from a different thread.