FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Chrome DevTools: Changes in Elements tab don't apply · Issue #7219 · NativeScript/NativeScript · GitHub

Chrome DevTools: Changes in Elements tab don't apply #7219

Description

@Natalia-Hristova commented on Wed May 08 2019

Environment

  • CLI: 5.4.0-2019-05-07-13220
  • Cross-platform modules: next
  • iOS Runtime: 5.3.0
  • Plugin(s):

Describe the bug
While debugging in Chrome DevtTools if you try to change button's text from Elements tab - the change is not apply every time and this is logged:

This application is modifying the autolayout engine from a background thread after the engine was accessed from the main thread. This can lead to engine corruption and weird crashes.
Stack:(
0   CoreFoundation                      0x000000010924e34b __exceptionPreprocess + 171
1   libobjc.A.dylib                     0x000000010867421e objc_exception_throw + 48
2   CoreFoundation                      0x00000001092b7265 +[NSException raise:format:] + 197
3   Foundation                          0x0000000106107320 _AssertAutolayoutOnAllowedThreadsOnly + 180
4   Foundation                          0x0000000106107068 -[NSISEngine _optimizeWithoutRebuilding] + 61
5   Foundation                          0x0000000105f2ee8c -[NSISEngine optimize] + 91
6   Foundation                          0x0000000106104f88 -[NSISEngine performPendingChangeNotifications] + 84
7   UIKit                               0x00000001064e0f0a -[UIView(Hierarchy) layoutBelowIfNeeded] + 265
8   UIKit                               0x0000000106610a71 -[UINavigationController _layoutViewController:] + 1625
9   UIKit                               0x000000010660f89f -[UINavigationController _layoutTopViewController] + 341
10  UIKit                               0x000000010661214b -[UINavigationController _startDeferredTransitionIfNeeded:] + 1020
11  UIKit                               0x000000010661319b -[UINavigationController __viewWillLayoutSubviews] + 58
12  UIKit                               0x000000010680a1b7 -[UILayoutContainerView layoutSubviews] + 223
13  UIKit                               0x000000011acbd681 -[UILayoutContainerViewAccessibility layoutSubviews] + 43
14  UIKit                               0x00000001064f3344 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1237
15  QuartzCore                          0x000000010adb6cdc -[CALayer layoutSublayers] + 146
16  QuartzCore                          0x000000010adaa7a0 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366
17  QuartzCore                          0x000000010adaa61e _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
18  QuartzCore                          0x000000010ad3862c _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 280
19  QuartzCore                          0x000000010ad65713 _ZN2CA11Transaction6commitEv + 475
20  QuartzCore                          0x000000010ad65b91 _ZN2CA11Transaction14release_threadEPv + 593
21  libsystem_pthread.dylib             0x0000000109b361aa _pthread_tsd_cleanup + 534
22  libsystem_pthread.dylib             0x0000000109b35ee9 _pthread_exit + 79
23  libsystem_pthread.dylib             0x0000000109b3424b _pthread_wqthread + 1613
24  libsystem_pthread.dylib             0x0000000109b33be9 start_wqthread + 13
)
See more log
This application is modifying the autolayout engine from a background thread after the engine was accessed from the main thread. This can lead to engine corruption and weird crashes.
Stack:(
0   CoreFoundation                      0x000000010924e34b __exceptionPreprocess + 171
1   libobjc.A.dylib                     0x000000010867421e objc_exception_throw + 48
2   CoreFoundation                      0x00000001092b7265 +[NSException raise:format:] + 197
3   Foundation                          0x0000000106107320 _AssertAutolayoutOnAllowedThreadsOnly + 180
4   Foundation                          0x0000000106107068 -[NSISEngine _optimizeWithoutRebuilding] + 61
5   Foundation                          0x0000000105f2ee8c -[NSISEngine optimize] + 91
6   Foundation                          0x0000000106104f88 -[NSISEngine performPendingChangeNotifications] + 84
7   UIKit                               0x00000001064e1262 -[UIView(Hierarchy) layoutBelowIfNeeded] + 1121
8   UIKit                               0x0000000106610a71 -[UINavigationController _layoutViewController:] + 1625
9   UIKit                               0x000000010660f89f -[UINavigationController _layoutTopViewController] + 341
10  UIKit                               0x000000010661214b -[UINavigationController _startDeferredTransitionIfNeeded:] + 1020
11  UIKit                               0x000000010661319b -[UINavigationController __viewWillLayoutSubviews] + 58
12  UIKit                               0x000000010680a1b7 -[UILayoutContainerView layoutSubviews] + 223
13  UIKit                               0x000000011acbd681 -[UILayoutContainerViewAccessibility layoutSubviews] + 43
14  UIKit                               0x00000001064f3344 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1237
15  QuartzCore                          0x000000010adb6cdc -[CALayer layoutSublayers] + 146
16  QuartzCore                          0x000000010adaa7a0 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366
17  QuartzCore                          0x000000010adaa61e _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
18  QuartzCore                          0x000000010ad3862c _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 280
19  QuartzCore                          0x000000010ad65713 _ZN2CA11Transaction6commitEv + 475
20  QuartzCore                          0x000000010ad65b91 _ZN2CA11Transaction14release_threadEPv + 593
21  libsystem_pthread.dylib             0x0000000109b361aa _pthread_tsd_cleanup + 534
22  libsystem_pthread.dylib             0x0000000109b35ee9 _pthread_exit + 79
23  libsystem_pthread.dylib             0x0000000109b3424b _pthread_wqthread + 1613
24  libsystem_pthread.dylib             0x0000000109b33be9 start_wqthread + 13
)
This application is modifying the autolayout engine from a background thread after the engine was accessed from the main thread. This can lead to engine corruption and weird crashes.
Stack:(
0   CoreFoundation                      0x000000010924e34b __exceptionPreprocess + 171
1   libobjc.A.dylib                     0x000000010867421e objc_exception_throw + 48
2   CoreFoundation                      0x00000001092b7265 +[NSException raise:format:] + 197
3   Foundation                          0x0000000106107320 _AssertAutolayoutOnAllowedThreadsOnly + 180
4   Foundation                          0x0000000105f28be4 -[NSISEngine withBehaviors:performModifications:] + 31
5   Foundation                          0x0000000105f24727 +[NSLayoutConstraint _addOrRemoveConstraints:activate:] + 453
6   NativeScript                        0x00000001057c51bd ffi_call_unix64 + 85
7   ???                                 0x0000000112390800 0x0 + 4600694784
)
This application is modifying the autolayout engine from a background thread after the engine was accessed from the main thread. This can lead to engine corruption and weird crashes.
Stack:(
0   CoreFoundation                      0x000000010924e34b __exceptionPreprocess + 171
1   libobjc.A.dylib                     0x000000010867421e objc_exception_throw + 48
2   CoreFoundation                      0x00000001092b7265 +[NSException raise:format:] + 197
3   Foundation                          0x0000000106107320 _AssertAutolayoutOnAllowedThreadsOnly + 180
4   Foundation                          0x0000000106107068 -[NSISEngine _optimizeWithoutRebuilding] + 61
5   Foundation                          0x0000000105f2ee8c -[NSISEngine optimize] + 91
6   Foundation                          0x0000000105f28cc6 -[NSISEngine withBehaviors:performModifications:] + 257
7   Foundation                          0x0000000105f24727 +[NSLayoutConstraint _addOrRemoveConstraints:activate:] + 453
8   NativeScript                        0x00000001057c51bd ffi_call_unix64 + 85
9   ???                                 0x0000000112390800 0x0 + 4600694784
)
This application is modifying the autolayout engine from a background thread after the engine was accessed from the main thread. This can lead to engine corruption and weird crashes.
Stack:(
0   CoreFoundation                      0x000000010924e34b __exceptionPreprocess + 171
1   libobjc.A.dylib                     0x000000010867421e objc_exception_throw + 48
2   CoreFoundation                      0x00000001092b7265 +[NSException raise:format:] + 197
3   Foundation                          0x0000000106107320 _AssertAutolayoutOnAllowedThreadsOnly + 180
4   Foundation                          0x0000000105f28be4 -[NSISEngine withBehaviors:performModifications:] + 31
5   UIKit                               0x0000000106df9a42 -[UIView(UIConstraintBasedLayout) _resetLayoutEngineHostConstraints] + 76
6   UIKit                               0x00000001064f3317 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1192
7   QuartzCore                          0x000000010adb6cdc -[CALayer layoutSublayers] + 146
8   QuartzCore                          0x000000010adaa7a0 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366
9   QuartzCore                          0x000000010adaa61e _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
10  QuartzCore                          0x000000010ad3862c _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 280
11  QuartzCore                          0x000000010ad65713 _ZN2CA11Transaction6commitEv + 475
12  QuartzCore                          0x000000010ad65b91 _ZN2CA11Transaction14release_threadEPv + 593
13  libsystem_pthread.dylib             0x0000000109b361aa _pthread_tsd_cleanup + 534
14  libsystem_pthread.dylib             0x0000000109b35ee9 _pthread_exit + 79
15  libsystem_pthread.dylib             0x0000000109b3424b _pthread_wqthread + 1613
16  libsystem_pthread.dylib             0x0000000109b33be9 start_wqthread + 13
)
This application is modifying the autolayout engine from a background thread after the engine was accessed from the main thread. This can lead to engine corruption and weird crashes.
Stack:(
0   CoreFoundation                      0x000000010924e34b __exceptionPreprocess + 171
1   libobjc.A.dylib                     0x000000010867421e objc_exception_throw + 48
2   CoreFoundation                      0x00000001092b7265 +[NSException raise:format:] + 197
3   Foundation                          0x0000000106107320 _AssertAutolayoutOnAllowedThreadsOnly + 180
4   Foundation                          0x0000000106107068 -[NSISEngine _optimizeWithoutRebuilding] + 61
5   Foundation                          0x0000000105f2ee8c -[NSISEngine optimize] + 91
6   Foundation                          0x0000000106104f88 -[NSISEngine performPendingChangeNotifications] + 84
7   UIKit                               0x00000001064e2686 -[UIView(Hierarchy) layoutSubviews] + 525
8   UIKit                               0x00000001064f3344 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1237
9   QuartzCore                          0x000000010adb6cdc -[CALayer layoutSublayers] + 146
10  QuartzCore                          0x000000010adaa7a0 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366
11  QuartzCore                          0x000000010adaa61e _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
12  QuartzCore                          0x000000010ad3862c _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 280
13  QuartzCore                          0x000000010ad65713 _ZN2CA11Transaction6commitEv + 475
14  QuartzCore                          0x000000010ad65b91 _ZN2CA11Transaction14release_threadEPv + 593
15  libsystem_pthread.dylib             0x0000000109b361aa _pthread_tsd_cleanup + 534
16  libsystem_pthread.dylib             0x0000000109b35ee9 _pthread_exit + 79
17  libsystem_pthread.dylib             0x0000000109b3424b _pthread_wqthread + 1613
18  libsystem_pthread.dylib             0x0000000109b33be9 start_wqthread + 13
)
This application is modifying the autolayout engine from a background thread after the engine was accessed from the main thread. This can lead to engine corruption and weird crashes.
Stack:(
0   CoreFoundation                      0x000000010924e34b __exceptionPreprocess + 171
1   libobjc.A.dylib                     0x000000010867421e objc_exception_throw + 48
2   CoreFoundation                      0x00000001092b7265 +[NSException raise:format:] + 197
3   Foundation                          0x0000000106107320 _AssertAutolayoutOnAllowedThreadsOnly + 180
4   Foundation                          0x0000000106107068 -[NSISEngine _optimizeWithoutRebuilding] + 61
5   Foundation                          0x0000000105f2ee8c -[NSISEngine optimize] + 91
6   Foundation                          0x0000000106104f88 -[NSISEngine performPendingChangeNotifications] + 84
7   UIKit                               0x00000001064e1d16 -[UIView(Hierarchy) _updateConstraintsAsNecessaryAndApplyLayoutFromEngine] + 159
8   UIKit                               0x00000001064f3344 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1237
9   QuartzCore                          0x000000010adb6cdc -[CALayer layoutSublayers] + 146
10  QuartzCore                          0x000000010adaa7a0 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366
11  QuartzCore                          0x000000010adaa61e _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
12  QuartzCore                          0x000000010ad3862c _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 280
13  QuartzCore                          0x000000010ad65713 _ZN2CA11Transaction6commitEv + 475
14  QuartzCore                          0x000000010ad65b91 _ZN2CA11Transaction14release_threadEPv + 593
15  libsystem_pthread.dylib             0x0000000109b361aa _pthread_tsd_cleanup + 534
16  libsystem_pthread.dylib             0x0000000109b35ee9 _pthread_exit + 79
17  libsystem_pthread.dylib             0x0000000109b3424b _pthread_wqthread + 1613
18  libsystem_pthread.dylib             0x0000000109b33be9 start_wqthread + 13
)
This application is modifying the autolayout engine from a background thread after the engine was accessed from the main thread. This can lead to engine corruption and weird crashes.
Stack:(
0   CoreFoundation                      0x000000010924e34b __exceptionPreprocess + 171
1   libobjc.A.dylib                     0x000000010867421e objc_exception_throw + 48
2   CoreFoundation                      0x00000001092b7265 +[NSException raise:format:] + 197
3   Foundation                          0x0000000106107320 _AssertAutolayoutOnAllowedThreadsOnly + 180
4   Foundation                          0x0000000106107068 -[NSISEngine _optimizeWithoutRebuilding] + 61
5   Foundation                          0x0000000105f2ee8c -[NSISEngine optimize] + 91
6   Foundation                          0x0000000106104f88 -[NSISEngine performPendingChangeNotifications] + 84
7   UIKit                               0x00000001064f2cbd -[UIView(CALayerDelegate) _wantsReapplicationOfAutoLayoutWithLayoutDirtyOnEntry:] + 158
8   UIKit                               0x00000001064f336a -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1275
9   QuartzCore                          0x000000010adb6cdc -[CALayer layoutSublayers] + 146
10  QuartzCore                          0x000000010adaa7a0 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366
11  QuartzCore                          0x000000010adaa61e _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
12  QuartzCore                          0x000000010ad3862c _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 280
13  QuartzCore                          0x000000010ad65713 _ZN2CA11Transaction6commitEv + 475
14  QuartzCore                          0x000000010ad65b91 _ZN2CA11Transaction14release_threadEPv + 593
15  libsystem_pthread.dylib             0x0000000109b361aa _pthread_tsd_cleanup + 534
16  libsystem_pthread.dylib             0x0000000109b35ee9 _pthread_exit + 79
17  libsystem_pthread.dylib             0x0000000109b3424b _pthread_wqthread + 1613
18  libsystem_pthread.dylib             0x0000000109b33be9 start_wqthread + 13
)
This application is modifying the autolayout engine from a background thread after the engine was accessed from the main thread. This can lead to engine corruption and weird crashes.
Stack:(
0   CoreFoundation                      0x000000010924e34b __exceptionPreprocess + 171
1   libobjc.A.dylib                     0x000000010867421e objc_exception_throw + 48
2   CoreFoundation                      0x00000001092b7265 +[NSException raise:format:] + 197
3   Foundation                          0x0000000106107320 _AssertAutolayoutOnAllowedThreadsOnly + 180
4   Foundation                          0x0000000106107068 -[NSISEngine _optimizeWithoutRebuilding] + 61
5   Foundation                          0x0000000105f2ee8c -[NSISEngine optimize] + 91
6   Foundation                          0x0000000106104f88 -[NSISEngine performPendingChangeNotifications] + 84
7   UIKit                               0x00000001070312d3 -[UILayoutGuide layoutFrame] + 232
8   NativeScript                        0x00000001057c51bd ffi_call_unix64 + 85
9   ???                                 0x000000011467f380 0x0 + 4637324160
)
This application is modifying the autolayout engine from a background thread after the engine was accessed from the main thread. This can lead to engine corruption and weird crashes.
Stack:(
0   CoreFoundation                      0x000000010924e34b __exceptionPreprocess + 171
1   libobjc.A.dylib                     0x000000010867421e objc_exception_throw + 48
2   CoreFoundation                      0x00000001092b7265 +[NSException raise:format:] + 197
3   Foundation                          0x0000000106107320 _AssertAutolayoutOnAllowedThreadsOnly + 180
4   Foundation                          0x0000000106107068 -[NSISEngine _optimizeWithoutRebuilding] + 61
5   Foundation                          0x0000000105f2ee8c -[NSISEngine optimize] + 91
6   Foundation                          0x0000000106104f88 -[NSISEngine performPendingChangeNotifications] + 84
7   UIKit                               0x00000001070312d3 -[UILayoutGuide layoutFrame] + 232
8   NativeScript                        0x00000001057c51bd ffi_call_unix64 + 85
9   ???                                 0x000000011467f6f0 0x0 + 4637325040
)
This application is modifying the autolayout engine from a background thread after the engine was accessed from the main thread. This can lead to engine corruption and weird crashes.
Stack:(
0   CoreFoundation                      0x000000010924e34b __exceptionPreprocess + 171
1   libobjc.A.dylib                     0x000000010867421e objc_exception_throw + 48
2   CoreFoundation                      0x00000001092b7265 +[NSException raise:format:] + 197
3   Foundation                          0x0000000106107320 _AssertAutolayoutOnAllowedThreadsOnly + 180
4   Foundation                          0x0000000106107068 -[NSISEngine _optimizeWithoutRebuilding] + 61
5   Foundation                          0x0000000105f2ee8c -[NSISEngine optimize] + 91
6   Foundation                          0x0000000106104f88 -[NSISEngine performPendingChangeNotifications] + 84
7   UIKit                               0x00000001064f2cbd -[UIView(CALayerDelegate) _wantsReapplicationOfAutoLayoutWithLayoutDirtyOnEntry:] + 158
8   UIKit                               0x00000001064f341e -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1455
9   QuartzCore                          0x000000010adb6cdc -[CALayer layoutSublayers] + 146
10  QuartzCore                          0x000000010adaa7a0 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366
11  QuartzCore                          0x000000010adaa61e _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
12  QuartzCore                          0x000000010ad3862c _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 280
13  QuartzCore                          0x000000010ad65713 _ZN2CA11Transaction6commitEv + 475
14  QuartzCore                          0x000000010ad65b91 _ZN2CA11Transaction14release_threadEPv + 593
15  libsystem_pthread.dylib             0x0000000109b361aa _pthread_tsd_cleanup + 534
16  libsystem_pthread.dylib             0x0000000109b35ee9 _pthread_exit + 79
17  libsystem_pthread.dylib             0x0000000109b3424b _pthread_wqthread + 1613
18  libsystem_pthread.dylib             0x0000000109b33be9 start_wqthread + 13
)
This application is modifying the autolayout engine from a background thread after the engine was accessed from the main thread. This can lead to engine corruption and weird crashes.
Stack:(
0   CoreFoundation                      0x000000010924e34b __exceptionPreprocess + 171
1   libobjc.A.dylib                     0x000000010867421e objc_exception_throw + 48
2   CoreFoundation                      0x00000001092b7265 +[NSException raise:format:] + 197
3   Foundation                          0x0000000106107320 _AssertAutolayoutOnAllowedThreadsOnly + 180
4   Foundation                          0x0000000106107068 -[NSISEngine _optimizeWithoutRebuilding] + 61
5   Foundation                          0x0000000105f2ee8c -[NSISEngine optimize] + 91
6   Foundation                          0x0000000106104f88 -[NSISEngine performPendingChangeNotifications] + 84
7   UIKit                               0x00000001064f3517 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1704
8   QuartzCore                          0x000000010adb6cdc -[CALayer layoutSublayers] + 146
9   QuartzCore                          0x000000010adaa7a0 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366
10  QuartzCore                          0x000000010adaa61e _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
11  QuartzCore                          0x000000010ad3862c _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 280
12  QuartzCore                          0x000000010ad65713 _ZN2CA11Transaction6commitEv + 475
13  QuartzCore                          0x000000010ad65b91 _ZN2CA11Transaction14release_threadEPv + 593
14  libsystem_pthread.dylib             0x0000000109b361aa _pthread_tsd_cleanup + 534
15  libsystem_pthread.dylib             0x0000000109b35ee9 _pthread_exit + 79
16  libsystem_pthread.dylib             0x0000000109b3424b _pthread_wqthread + 1613
17  libsystem_pthread.dylib             0x0000000109b33be9 start_wqthread + 13
)

To Reproduce

  1. tns create TestApp
  2. tns platform add ios@5.3.0 or tns platform add ios@next
  3. tns debug ios
  4. Open url in Chrome
  5. Go to Elements tab and change some text attribute

Expected behavior

Sample project

Additional context
Works with ios-runtime: 5.2.0

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL