-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes. This will cause an exception in a future release. #514
Comments
You application is doing something not on the main thread. As far as I know there is no autolayout code in this library. |
@petester42 +1, it's your code problem, not this library If you think so, give the symbol-ed stack trace, not this wild address trace, so we have better ideas and reopen this issue |
I receive the same error, only here it references the Charts: This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes. This will cause an exception in a future release. I have checked and double checked all the calls to the library to not call from any other thread thah the main one! |
Our library contains no auto layout code. The problem is on your end. You are probably modifying the constraints of the view that contains the chart. |
Hello,
I am running the iOS Charts library extensively on an App and I get the following message:
"This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes. This will cause an exception in a future release.
Stack:(
0 CoreFoundation 0x0000000182884f74 + 148
1 libobjc.A.dylib 0x000000019747bf80 objc_exception_throw + 56
2 CoreFoundation 0x0000000182884ea4 + 0
3 Foundation 0x000000018389e5d8 + 88
4 Foundation 0x0000000183720a1c + 36
5 UIKit 0x0000000187edf93c + 64
6 UIKit 0x00000001886060ac + 156
7 UIKit 0x0000000188605da0 + 252
8 UIKit 0x00000001886060d8 + 200
9 UIKit 0x0000000187ee0820 + 100
10 UIKit 0x0000000187edf94c + 80
11 UIKit 0x0000000187ee0454 + 244
12 UIKit 0x000000018860677c + 268
13 UIKit 0x00000001880ddfb0 + 176
14 UIKit 0x0000000187dd701c + 688
15 QuartzCore 0x00000001875ddf14 + 148
16 QuartzCore 0x00000001875d8b20 + 292
17 QuartzCore 0x00000001875d89e0 + 32
18 QuartzCore 0x00000001875d807c + 252
19 QuartzCore 0x00000001875d7dd0 + 516
20 QuartzCore 0x0000000187606f48 + 236
21 libsystem_pthread.dylib 0x0000000197e8a1e8 + 584
22 libsystem_pthread.dylib 0x0000000197e89d60 + 136
23 libsystem_pthread.dylib 0x0000000197e89544 pthread_mutex_lock + 0
24 libsystem_pthread.dylib 0x0000000197e89028 start_wqthread + 4
)"
I have zombie objects enabled as well as an "All Exceptions" breakpoint, no sign that is from my code so I assume is from iOS Charts.
To fix this we need to modify the iso-charts library so it modifies the UI elements using dispatch on the main queue, see here:
http://stackoverflow.com/questions/28302019/getting-a-this-application-is-modifying-the-autolayout-engine-error
The text was updated successfully, but these errors were encountered: