Xcode7: This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes

Tharoth

I got this messages,when I updated Xcode7. Can you tell me solution? Thank.

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                      0x250df883 <redacted> + 150
    1   libobjc.A.dylib                     0x367dedff objc_exception_throw + 38
    2   CoreFoundation                      0x250df7b1 <redacted> + 0
    3   Foundation                          0x25f7be63 <redacted> + 170
    4   Foundation                          0x25e21ba7 <redacted> + 38
    5   UIKit                               0x292f3aa9 <redacted> + 52
    6   UIKit                               0x292f4487 <redacted> + 222
    7   UIKit                               0x299ccfa5 <redacted> + 288
    8   UIKit                               0x294e5fa9 <redacted> + 148
    9   UIKit                               0x291ed6bb <redacted> + 694
    10  QuartzCore                          0x28ab967d <redacted> + 128
    11  QuartzCore                          0x28ab4d79 <redacted> + 352
    12  QuartzCore                          0x28ab4c09 <redacted> + 16
    13  QuartzCore                          0x28ab4129 <redacted> + 368
    14  QuartzCore                          0x28ab3deb <redacted> + 590
    15  WebCore                             0x34a9c79f <redacted> + 282
    16  CoreFoundation                      0x250a2827 <redacted> + 14
    17  CoreFoundation                      0x250a2417 <redacted> + 454
    18  CoreFoundation                      0x250a077f <redacted> + 806
    19  CoreFoundation                      0x24ff31e9 CFRunLoopRunSpecific + 516
    20  CoreFoundation                      0x24ff2fdd CFRunLoopRunInMode + 108
    21  WebCore                             0x34040cdf <redacted> + 422
    22  libsystem_pthread.dylib             0x37077c93 <redacted> + 138
    23  libsystem_pthread.dylib             0x37077c07 _pthread_start + 110
    24  libsystem_pthread.dylib             0x37075a24 thread_start + 8
)
Nishant

I don't know what your code is, but I have an idea as to why this is happening. You must be having some UI changes done in a background thread.

Do not change UI from anything but the main thread, it is bound to make your application unstable, and crash unpredictably.

Use GCD (Grand Central Dispatch).

You can listen and do work from any thread, and encapsulate UI changes in a dispatch_async:

dispatch_async(dispatch_get_main_queue(), ^{
        // Do UI stuff here
});

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes

From Dev

"This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes...."

From Dev

iOS9 This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes

From Dev

This application is modifying the autolayout engine from a background thread, which can lead to engine corruption

From Dev

This application is modifying the autolayout engine from a background thread,

From Dev

This application is modifying the autolayout engine from a background thread Twitter Background Share

From Java

Getting a "This application is modifying the autolayout engine from a background thread" error?

From Dev

This application is modifying the autolayout engine from a background thread - ios9

From Dev

Getting the following error: This application is modifying the autolayout engine from a background thread

From Dev

This application is modifying the autolayout engine from a background thread in objective c

From Dev

app modifying the autolayout engine from a background thread

From Dev

This application is modifying the autolayout engine from a background thread after the engine was accessed from the main thread.

From Dev

iOS9 - This application is modifying the autolayout engine from a background thread -- where?

From Dev

Find friends page with user NSContacts is very slow + "This application is modifying the autolayout engine from a background thread"

From Dev

Downloading from server: "This application is modifying the autolayout engine ..."

From Dev

"This application is modifying the autolayout engine" error (Swift iOS)

From Dev

Can MySQL InnoDB corruption occur that the storage engine cannot recover from if there is NO software bug involved?

From Java

Modifications to the > layout engine must not be performed from a background thread after it has been accessed from the main thread

From Dev

Modifying Cypher Query Engine

From Dev

Modifying Cypher Query Engine

From Dev

Behaviour of a c++ model update from a different thread from which the QML QtQuick2 engine is running

From Dev

Console shows AutoLayout Engine Warning while loading UIWebView and Crashes the app sometimes

From Dev

Can using UDP and OpenVPN lead to file corruption?

From Dev

Google App Engine background thread vs. task

From Dev

Include assets in engine from main application

From Dev

Modifying the speed at which a process runs ( Cheat Engine alternative as a Flash Game Speed Hack)

From Dev

How to determine which OpenGL engine is used in an Qt application: software or hardware?

From Dev

Which custom search engine?

From Dev

Can't connect to RDP from Compute Engine

Related Related

  1. 1

    This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes

  2. 2

    "This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes...."

  3. 3

    iOS9 This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes

  4. 4

    This application is modifying the autolayout engine from a background thread, which can lead to engine corruption

  5. 5

    This application is modifying the autolayout engine from a background thread,

  6. 6

    This application is modifying the autolayout engine from a background thread Twitter Background Share

  7. 7

    Getting a "This application is modifying the autolayout engine from a background thread" error?

  8. 8

    This application is modifying the autolayout engine from a background thread - ios9

  9. 9

    Getting the following error: This application is modifying the autolayout engine from a background thread

  10. 10

    This application is modifying the autolayout engine from a background thread in objective c

  11. 11

    app modifying the autolayout engine from a background thread

  12. 12

    This application is modifying the autolayout engine from a background thread after the engine was accessed from the main thread.

  13. 13

    iOS9 - This application is modifying the autolayout engine from a background thread -- where?

  14. 14

    Find friends page with user NSContacts is very slow + "This application is modifying the autolayout engine from a background thread"

  15. 15

    Downloading from server: "This application is modifying the autolayout engine ..."

  16. 16

    "This application is modifying the autolayout engine" error (Swift iOS)

  17. 17

    Can MySQL InnoDB corruption occur that the storage engine cannot recover from if there is NO software bug involved?

  18. 18

    Modifications to the > layout engine must not be performed from a background thread after it has been accessed from the main thread

  19. 19

    Modifying Cypher Query Engine

  20. 20

    Modifying Cypher Query Engine

  21. 21

    Behaviour of a c++ model update from a different thread from which the QML QtQuick2 engine is running

  22. 22

    Console shows AutoLayout Engine Warning while loading UIWebView and Crashes the app sometimes

  23. 23

    Can using UDP and OpenVPN lead to file corruption?

  24. 24

    Google App Engine background thread vs. task

  25. 25

    Include assets in engine from main application

  26. 26

    Modifying the speed at which a process runs ( Cheat Engine alternative as a Flash Game Speed Hack)

  27. 27

    How to determine which OpenGL engine is used in an Qt application: software or hardware?

  28. 28

    Which custom search engine?

  29. 29

    Can't connect to RDP from Compute Engine

HotTag

Archive