Skip to content
New issue

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

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

Already on GitHub? # to your account

弹幕直接卡死,不报任何错误,很难定位到 #29

Open
lxm1799 opened this issue Feb 9, 2021 · 0 comments
Open

弹幕直接卡死,不报任何错误,很难定位到 #29

lxm1799 opened this issue Feb 9, 2021 · 0 comments

Comments

@lxm1799
Copy link

lxm1799 commented Feb 9, 2021

问题文件:HJDanmakuView
方法:visibleDanmakuAgents
问题可能性的原因:弹幕数据读取抢夺死锁
目前我解决办法:

  • (NSArray *)visibleDanmakuAgents {
    @synchronized (self) {
    return [NSArray arrayWithArray:self.renderingDanmakus];
    }
    // __block NSArray *renderingDanmakus = nil;
    // dispatch_sync(_renderQueue, ^{
    // renderingDanmakus = [NSArray arrayWithArray:self.renderingDanmakus];
    // });
    // return renderingDanmakus;
    }
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant