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

最新运行时1.1.0-beta7在使用同步setup时陷入死循环 #355

Closed
zhenglibao opened this issue Nov 14, 2016 · 7 comments
Closed

最新运行时1.1.0-beta7在使用同步setup时陷入死循环 #355

zhenglibao opened this issue Nov 14, 2016 · 7 comments

Comments

@zhenglibao
Copy link

在HostApplication的onCreate中用如下方法初始化
Small.preSetUp(this);
if(!isMainProcess())
{
Small.setUp(this,null);
}
程序将会在Bunndle::loadLaunchableBundles中陷入死循环等待:
line242:
if (synchronous) {
while (sLoading) {
try {
Thread.sleep(100);
} catch (InterruptedException e) {
e.printStackTrace();
}
}

之所依我需要使用同步方式初始化,是因为我的app需要多进程,在第二个进程中必须进行同步初始化才能正常工作。如果在主进程中进行同步初始化也会陷入死循环,请帮忙看看啥问题。

@galenlin
Copy link
Member

感谢反馈,是在其他进程创建Service吗,还是什么。另请按照规范来提交issue。

@zhenglibao
Copy link
Author

是在创建Activity,因为这些Activity非常耗内存,必须在单独的进程中运行以节省内存。

@zhenglibao
Copy link
Author

非常感谢!

@zhenglibao
Copy link
Author

问一下,这个更新啥时候能放到maven里边去呢?

@galenlin
Copy link
Member

稍后,

@galenlin
Copy link
Member

@zhenglibao 已发布,请使用 small:1.1.0-beta8

@zhenglibao
Copy link
Author

thanks!

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

2 participants