Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

死锁问题 #79

Closed
xiaojinzi123 opened this issue Nov 2, 2020 · 1 comment
Closed

死锁问题 #79

xiaojinzi123 opened this issue Nov 2, 2020 · 1 comment

Comments

@xiaojinzi123
Copy link
Owner

首先请阅读 服务的使用的最后一段话

一般发生在 ServiceManager.get() 方法和 FragmentManager.get() 方法中. 但是实际的报错信息是
RunTimeTimeoutException("Component mainThreadCallNullable method timeout, A deadlock was happened....")

  • 可以让你的 ServiceManager.get() 方法和 FragmentManager.get() 的调用放在类的初始化中, 然后后续使用. 不必实时调用
  • 可以加群, 群主帮你解决~~~
@xiaojinzi123
Copy link
Owner Author

从 1.8.3.6 开始已经不会有这个问题了. 去除了 获取 Fragment 和 服务发现的线程限制. 所以 1.8.3.6 开始需要注意 Fragment 的创建和 service 的实现的创建的线程不一定在主线程

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant