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

XCode 11.0, Swift 5.0 (Memory and Cpu usage 100%), app crashed or stucked #126

Closed
jitendraIntesols opened this issue Oct 1, 2019 · 3 comments

Comments

@jitendraIntesols
Copy link

jitendraIntesols commented Oct 1, 2019

Which version of the WSTagsField are you using?

E.g. 1.0.11

On which platform does the issue happen?

iOS 13

Are you using Carthage?

No

Are you using Cocoapods?

1.6.0

Which version of Xcode are you using?

Xcode 11.0

What did you do?

What did you expect to happen?

How to fix it?
app crash on real iPhone device and simulator app stucked

@jitendraIntesols
Copy link
Author

Screenshot 2019-10-01 at 9 19 21 AM
Screenshot 2019-10-01 at 9 25 01 AM

@EugeneEl
Copy link

EugeneEl commented Oct 18, 2019

I've found the reason of this issue. It happens due to infinite layout loop.

Go to the Product menu, hold down Option, and choose “Run…”
Select the Arguments tab, and click + to add a new entry
For iOS apps enter -UIViewLayoutFeedbackLoopDebuggingThreshold 100

Somewhere there is a problem with setNeedsLayout code. Currently I don't have fix for this, so I might look for another library as a temp solution.

2019-10-18 21:55:40.741282+0300 [62604:826504] [LayoutLoop] >>>UPSTREAM LAYOUT DIRTYING<<< About to send -setNeedsLayout to layer for <UIView: 0x7ffe51699f90; f={{0, 0}, {382, 200}} > under -layoutSubviews for <.WSTagsField: 0x7ffe5169a0f0; f={{0, 0}, {382, 200}} >

@ricardopereira
Copy link
Member

@EugeneEl @jitendraIntesols Could you share a snippet code or an example project to be able to reproduce the issue?

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

No branches or pull requests

3 participants