Trong khi chạy ứng dụng của tôi (một bản vẽ tùy chỉnh tốt) tôi nhận được lỗi này (nó xảy ra một chút không có tác dụng phụ quan sát được, nhưng tôi muốn hiểu chuyện gì đang xảy ra).Cần trợ giúp để hiểu "kCGErrorIllegalArgument: CGSUnionRegionWithRect: Vùng không hợp lệ"
<Error>: kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region
<Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch
errors as they are logged.
Vì vậy, tôi đặt điểm ngắt đó và nhận chồng này. Không có khung ngăn xếp nào là mã của tôi, mặc dù chắc chắn tôi đã ghi đè drawRect của NSView trong một số trường hợp.
Có ai nhìn thấy điều này trước hoặc có thông tin chi tiết về những gì đang xảy ra không?
#0 0x94bee5f2 in CGErrorBreakpoint()
#1 0x94c831d8 in CGSGlobalErrorv()
#2 0x94a64b61 in CGSUnionRegionWithRect()
#3 0x912a2a70 in -[NSRegion addRegion:]()
#4 0x912a28c1 in -[NSWindow _setNeedsDisplayInRegion:]()
#5 0x911f3548 in -[NSWindow _absorbDeferredNeedsDisplayRegion]()
#6 0x911f2113 in -[NSView _sendViewWillDrawInRect:clipRootView:suppressRecursion:]()
#7 0x91154ee9 in -[NSView displayIfNeeded]()
#8 0x9111e292 in -[NSWindow displayIfNeeded]()
#9 0x9114f764 in _handleWindowNeedsDisplay()
#10 0x9408eb02 in __CFRunLoopDoObservers()
#11 0x9404b65d in __CFRunLoopRun()
#12 0x9404ad34 in CFRunLoopRunSpecific()
#13 0x9404ab61 in CFRunLoopRunInMode()
#14 0x97984fec in RunCurrentEventLoopInMode()
#15 0x97984da3 in ReceiveNextEventCommon()
#16 0x97984c28 in BlockUntilNextEventMatchingListInMode()
#17 0x91125c95 in _DPSNextEvent()
#18 0x9112550a in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]()
#19 0x910e769b in -[NSApplication run]()
#20 0x910df735 in NSApplicationMain()
#21 0x00002a4f in main (argc=0x1, argv=0xbffff4d4) at
/Users/me/Code/myapp/src/main.m:19
Sẽ rất hữu ích nếu bạn cũng đăng mã nơi xảy ra lỗi. –
Tôi không biết nó đang xảy ra ở đâu. Không có mã nào của tôi nằm trong dấu vết ngăn xếp. – nall