I am developing a macOS application using cocoa.
I have a NSScrollView instance called scrollView and a custom view instance called customView, and I use
[scrollView setDocumentView:customView];
in my AppDelegate's applicationDidFinishLaunching: method.
But when I run this application, and use my track pad to scroll, the application crushes, the Xcode turns to the threads part and displays "libsystem_kernel.dylib`__pthread_kill:" and the instruction that fails is jae.
The console displays "Unexpected outstanding background CATransaction".
But!!! When I click the scroller of the NSScrollView and drags it, the application doesn't crush.
It is so strange and I have no way to solve it.