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

ios11 内存泄漏 cpu爆涨 #145

Open
fdyhgjg opened this issue Oct 17, 2017 · 2 comments
Open

ios11 内存泄漏 cpu爆涨 #145

fdyhgjg opened this issue Oct 17, 2017 · 2 comments

Comments

@fdyhgjg
Copy link

fdyhgjg commented Oct 17, 2017

测试了一遍。ios11系统一下。还行。问题不大 但是在ios11上直接cpu爆炸。控制台打印Main Thread Checker: UI API called on a background thread: -[UIView layer]
PID: 6192, TID: 10278918, Thread name: (none), Queue name: com.apple.root.default-qos, QoS: 21
在创建FXBlurView对象时。放到主线程也不行。有点看不懂为什么

@1024ToBe
Copy link

1024ToBe commented Jan 8, 2018

CPU暴涨,提示

  • (FXBlurLayer *)blurLayer
    {

    return (FXBlurLayer *)self.layer; - [UIView layer]must be used from main thread only?
    }

@wlerl
Copy link

wlerl commented Apr 10, 2018

然后这个怎么处理呢,我尝试get返回之前异步丢到主线程,但是会先return,然后才会进异步的主线程去赋值

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

3 participants