question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash in Xamarin.iOS NSInternalInconsistencyException

See original GitHub issue

I have implemented CarouselView in a project at the beginning of this year, it’s working fine till iOS 12 but recently there was a new OS update to iOS 13, and the app crashes when the user swipes fast through the slides. I tested the same issue in iOS 12 and below, i’m unable to replicate the above issue, it’s occurring only in iOS 13, can you please look into it?

Note: UI is not being updated upon slide.

Exception:

Objective-C exception thrown.  Name: NSInternalInconsistencyException Reason: Modifications to the layout engine must not be performed from a background thread after it has been accessed from the main thread.
Native stack trace:
   0   CoreFoundation                      0x00000001c2e9c9a0 DA838E75-6B30-360E-9661-C4800A7E1BF6 + 1227168
   1   libobjc.A.dylib                     0x00000001c2bc50a4 objc_exception_throw + 56
   2   Foundation                          0x00000001c3372d64 0DF2911E-80CB-3289-8A1E-ED0913D55A12 + 2252132
   3   Foundation                          0x00000001c317dfd4 0DF2911E-80CB-3289-8A1E-ED0913D55A12 + 200660
   4   Foundation                          0x00000001c317deec 0DF2911E-80CB-3289-8A1E-ED0913D55A12 + 200428
   5   Foundation                          0x00000001c317db60 0DF2911E-80CB-3289-8A1E-ED0913D55A12 + 199520
   6   UIKitCore                           0x00000001c7322880 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 15108224
   7   CircusApp.iOS                       0x0000000105de4a8c CircusApp.iOS + 15436428
   8   CircusApp.iOS                       0x0000000105d773bc CircusApp.iOS + 14988220
   9   CircusApp.iOS                       0x0000000106338334 CircusApp.iOS + 21021492
   10  CircusApp.iOS                       0x000000010535810c CircusApp.iOS + 4374796
   11  CircusApp.iOS                       0x0000000106c87204 mono_pmip + 29200
   12  CircusApp.iOS                       0x0000000106d3fbdc mono_pmip + 785384
   13  CircusApp.iOS                       0x0000000106d4362c mono_pmip + 800312
   14  CircusApp.iOS                       0x0000000104f731f8 CircusApp.iOS + 291320
   15  CircusApp.iOS                       0x0000000104f73100 CircusApp.iOS + 291072
   16  UIKitCore                           0x00000001c7335270 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 15184496
   17  QuartzCore                          0x00000001c98215f8 5A4A8F86-A37D-3290-AC6A-9C03140FA5D3 + 1377784
   18  QuartzCore                          0x00000001c9825e28 5A4A8F86-A37D-3290-AC6A-9C03140FA5D3 + 1396264
   19  QuartzCore                          0x00000001c9831894 5A4A8F86-A37D-3290-AC6A-9C03140FA5D3 + 1443988
   20  QuartzCore                          0x00000001c977a9f0 5A4A8F86-A37D-3290-AC6A-9C03140FA5D3 + 694768
   21  QuartzCore                          0x00000001c97a4890 5A4A8F86-A37D-3290-AC6A-9C03140FA5D3 + 866448
   22  CircusApp.iOS                       0x0000000105de498c CircusApp.iOS + 15436172
   23  CircusApp.iOS                       0x0000000105d56690 CircusApp.iOS + 14853776
   24  CircusApp.iOS                       0x00000001063ff338 CircusApp.iOS + 21836600
   25  CircusApp.iOS                       0x00000001050ab864 CircusApp.iOS + 1570916
   26  CircusApp.iOS                       0x00000001050a9268 CircusApp.iOS + 1561192
   27  CircusApp.iOS                       0x00000001050a9054 CircusApp.iOS + 1560660
   28  CircusApp.iOS                       0x00000001050a8fc8 CircusApp.iOS + 1560520
   29  CircusApp.iOS                       0x00000001050aba0c CircusApp.iOS + 1571340
   30  CircusApp.iOS                       0x000000010535810c CircusApp.iOS + 4374796
   31  CircusApp.iOS                       0x0000000106c87204 mono_pmip + 29200
   32  CircusApp.iOS                       0x0000000106d3fbdc mono_pmip + 785384
   33  CircusApp.iOS                       0x0000000106d457f0 mono_pmip + 808956
   34  CircusApp.iOS                       0x0000000106d7e8f8 mono_pmip + 1042692
   35  CircusApp.iOS                       0x0000000106d7e6bc mono_pmip + 1042120
   36  libsystem_pthread.dylib             0x00000001c2bb91ec _pthread_start + 124
   37  libsystem_pthread.dylib             0x00000001c2bbcaec thread_start + 8

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
callyrajivcommented, Oct 15, 2019

The link that you sent me, it has not been solved yet.

I’ll prepare a sample and sent it to you by EOD or tomorrow

0reactions
AndreiMisiukevichcommented, Oct 15, 2019

Just tried on a real device with “heavy” sample - no crash

So, yeah. Waiting for a sample from you 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Bug] NSInternalInconsistencyException from CATransaction
The app sometimes crashes on iOS with NSInternalInconsistencyException from a CADisplayLinkTicker thread. The crash is not readily reproducible.
Read more >
xamarin error : NSInternalInconsistencyException Reason: ...
Do you develop the app in xamarin.forms or xamarin.ios? · Please dont create code images. Its a violation of SO guidelines. · xamarin.ios...
Read more >
Xamarin iOS app crashing keep idle iOS 13 in offline.only ...
Name: NSInternalInconsistencyException Reason: Modifications to the layout engine must not be performed from a background thread after it has ...
Read more >
Xamarin.Forms 4.8.0.1451 (4.8.0 Service Release 2) ...
A spoofing vulnerability manifests in Microsoft Xamarin.Forms ... GitHub #9929 - "[Bug] NSInternalInconsistencyException when trying to run ...
Read more >
Xamarin.Forms Troubleshooting/Help: Listview ... - YouTube
Have you ever seen the following crash in your Xamarin. Forms app before? ... Name: NSInternalInconsistencyException Re...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found