Allow users to browse, edit, and save images using slideshows and Core Image filters using Quartz.

Posts under Quartz tag

37 Posts

Post

Replies

Boosts

Views

Activity

PDFView Crash After Find Changing current selection and calling -scrollSelectionToVisible: on macOS Tahoe
Getting this crash after I do this in PDFKit a lot: PDFSelection *nextSelect = [self.pdfView.document findString:currentSearchString fromSelection:currentSelction withOptions:NSCaseInsensitiveSearch]; if (nextSelect != nil) { self.pdfView.currentSelection = nextSelect; [self.pdfView scrollSelectionToVisible:nil]; } Which often leads to: 0 CoreFoundation 0x000000019ced4770 __exceptionPreprocess + 176 1 libobjc.A.dylib 0x000000019c9b2418 objc_exception_throw + 88 2 CoreFoundation 0x000000019cfffe10 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 724 3 CoreFoundation 0x000000019cfa1ae4 +[NSDictionary dictionaryWithObjects:forKeys:count:] + 52 4 PDFKit 0x00000001cb56e0fc -[PDFView _axPostPageChangeNotification:] + 348 5 Foundation 0x000000019e6a25e4 __NSFireDelayedPerform + 372 6 CoreFoundation 0x000000019ce92290 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 32 7 CoreFoundation 0x000000019ce91f50 __CFRunLoopDoTimer +
3
0
262
Oct ’25
Where's the replacement for Quartz Debug?
Hi, This can't be right. Is there really no replacement for Quartz Debug?!? As the sole developer on a project who has an Intel Mac and Quartz Debug, I am basically a god now. Everyone else has Apple Silicon and... I think they're randomly guessing at this point. Because I have entire teams sending me Intel Mac builds of stuff just so I can test it in QD. This is THE TOOL we used at NewTek to find performance issues, and THE TOOL I used for a dozen companies after that, to help them with similar issues. If there's no replacement, is there a reason there's no replacement? This feels like a massive step backwards, having to guess at problems like this. -Chilton
1
0
458
Aug ’25
What good is NSBitmapFormatAlphaNonpremultiplied?
If I create a bitmap image and then try to get ready to draw into it, like so: NSBitmapImageRep* newRep = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes: nullptr pixelsWide: 128 pixelsHigh: 128 bitsPerSample: 8 samplesPerPixel: 4 hasAlpha: YES isPlanar: NO colorSpaceName: NSDeviceRGBColorSpace bitmapFormat: NSBitmapFormatAlphaNonpremultiplied | NSBitmapFormatThirtyTwoBitBigEndian bytesPerRow: 4 * 128 bitsPerPixel: 32]; [NSGraphicsContext setCurrentContext: [NSGraphicsContext graphicsContextWithBitmapImageRep: newRep]]; then the log shows this error: CGBitmapContextCreate: unsupported parameter combination: RGB 8 bits/component, integer 512 bytes/row kCGImageAlphaLast kCGImageByteOrderDefault kCGImagePixelFormatPacked Valid parameters for RGB color space model are: 16 bits per pixel, 5 bits per component, kCGImageAlphaNoneSkipFirst 32 bits per pixel, 8 bits per component, kCGImageAlphaNoneSkipFirst 32 bits per pixel, 8 bits per component, kCGImageAlphaNoneSkipLast 32 bits per pixel, 8 bits per component, kCGImageAlphaPremultipliedFirst 32 bits per pixel, 8 bits per component, kCGImageAlphaPremultipliedLast 32 bits per pixel, 10 bits per component, kCGImageAlphaNone|kCGImagePixelFormatRGBCIF10|kCGImageByteOrder16Little 64 bits per pixel, 16 bits per component, kCGImageAlphaPremultipliedLast 64 bits per pixel, 16 bits per component, kCGImageAlphaNoneSkipLast 64 bits per pixel, 16 bits per component, kCGImageAlphaPremultipliedLast|kCGBitmapFloatComponents|kCGImageByteOrder16Little 64 bits per pixel, 16 bits per component, kCGImageAlphaNoneSkipLast|kCGBitmapFloatComponents|kCGImageByteOrder16Little 128 bits per pixel, 32 bits per component, kCGImageAlphaPremultipliedLast|kCGBitmapFloatComponents 128 bits per pixel, 32 bits per component, kCGImageAlphaNoneSkipLast|kCGBitmapFloatComponents See Quartz 2D Programming Guide (available online) for more information. If I don't use NSBitmapFormatAlphaNonpremultiplied as part of the format, I don't get the error message. My question is, why does the constant NSBitmapFormatAlphaNonpremultiplied exist if you can't use it like this? If you're wondering why I wanted to do this: I want to extract the RGBA pixel data from an image, which might have non-premultiplied alpha. And elsewhere online, I saw advice that if you want to look at the pixels of an image, draw it into a bitmap whose format you know and look at those pixels. And I don't want the process of drawing to premultiply my alpha.
3
0
287
Jun ’25
CATiledLayer flashes and re-draws entirely when re-drawing a single tile
I have filed a bug report for this (FB17734946), but I'm posting it here verbatim in case others have the same issue and in hopes of getting attention from an Apple engineer sooner. When calling setNeedsDisplayInRect on a CATiledLayer - or a UIView whose backing layer is CATiledLayer - one would expect to re-draw only a region identified by the rect passed to the method. This is even written in the documentation for the class: "Regions of the layer may be invalidated using the setNeedsDisplayInRect: method however the update will be asynchronous. While the next display update will most likely not contain the updated content, a future update will." However, upon calling this method, CATiledLayer redraws whole contents instead of just the tile at the specified rect, and it flashes when doing so. It behaves exactly the same as if one had called setNeedsDisplay without passing any rect; all contents are cleared and re-drawn again. I'm 100% sure I've passed in the correct rect of the exact tile that I need to redraw. I have even tried passing much smaller rects, but still the same. (And yes, the rect I've passed accounts for the current level of detail.) I have found this GitHub repo https://github.com/frankus/NetPhotoScroller, which based on discussion from here https://forums.macrumors.com/threads/catiledlayer-blanks-out-tiles-when-redrawing.1333948/ aims at solving these issues by using two private methods on CATiledLayer class: (void)setNeedsDisplayInRect:(CGRect)r levelOfDetail:(int)level; (BOOL)canDrawRect:(CGRect)rect levelOfDetail:(int)level; I have explored the repo in detail, however I wasn't able to test exactly this code from the GitHub repo. I have tried using those two private methods myself (through an Objective-C class that defines the methods in the header file and then a swift class which inherits it), but I couldn't solve the issue; the flashing and the full re-draw is still there. After doing a lot of research, the conclusion seems to be that one cannot use CATiledLayer with contents that are downloaded remotely, on demand, as tiles are being requested. I have, however, found one interesting thing which seems to work so far: before calling setNeedsDisplayInRect (or just setNeedsDisplay, as they behave the same for CATiledLayer in my testing), cache the current layer's contents, and after calling setNeedsDisplay (or setNeedsDisplayInRect), restore the contents back to the layer. This prevents flashing and preserves any tiles that were drawn at the time of the re-draw. let c = tiledLayer.contents tiledLayer.setNeedsDisplay(tileRect) tiledLayer.contents = c However! Docs clearly state the warning: Do not attempt to directly modify the contents property of a CATiledLayer object. Doing so disables the ability of a tiled layer to asynchronously provide tiled content, effectively turning the layer into a regular CALayer object. I believe this message implies modifying the contents property with some raw content, like image data, and that it may be safe to re-apply the existing contents (which are in my testing of type CAImageProvider) -- but I can't rely on an implementation detail in my production app. I have tested this and confirmed that the bug appears on: iPhone 14 Pro, iOS 18.5 iPhone 13 Pro, iOS 17.5.1 iPhone 5s, iOS 15.8.3 iPad Pro 1st gen, iPadOS 18.4.1 a couple simulator versions I can also confirm that the fix (to re-apply contents property) is also working properly on all these versions. Is this expected behavior, that tiled layer redraws itself entirely instead of redrawing specific tiles? Is it safe to modify contents of a CATiledLayer by re-applying the existing contents? If not, is there an alternative to avoid flashing?
3
0
228
May ’25
Xcode cannot find any frameworks
I am new to Xcode and trying to learn how to use Metal for my internship. I am trying to link the binaries of Foundation.framework, Metal.framework, and Quartcore.framework. But whenever I try to build it always fails to find any of them. I have my Header Search Path as $(PROJECT_DIR)/metal-cpp, I tried adding some for the Frameworks but that did not work either. I do have the binaries linked in the Build Phases, so I don't know what else I could be missing.
2
0
134
May ’25
Crash when rendering CALayer using UIGraphicsImageRenderer on background thread
Hello! I’m experiencing a crash in my iOS/iPadOS app related to a CALayer rendering process. The crash occurs when attempting to render a UIImage on a background thread. The crashes are occurring in our production app, and while we can monitor them through Crashlytics, we are unable to reproduce the issue in our development environment. Relevant Code I have a custom view controller that handles rendering CALayers onto images. This method creates a CALayer on the main thread and then starts a detached task to render this CALayer into a UIImage. The whole idea is learnt from this StackOverflow post: https://stackoverflow.com/a/77834613/9202699 Here are key parts of my implementation: class MyViewController: UIViewController { @MainActor func renderToUIImage(size: CGSize, itemsToDraw: [MyDrawingItem], transform: CGAffineTransform) async -> UIImage? { // Create CALayer and add it to the view. CATransaction.begin() let customLayer = MyDrawingLayer() customLayer.setupContent(itemsToDraw: itemsToDraw) // Position the frame off-screen to it hidden. customLayer.frame = CGRect( origin: CGPoint(x: -100 - size.width, y: -100 - size.height), size: size) customLayer.masksToBounds = true customLayer.drawsAsynchronously = true view.layer.addSublayer(customLayer) CATransaction.commit() // Render CALayer to UIImage in background thread. let image = await Task.detached { customLayer.setNeedsDisplay() let renderer = UIGraphicsImageRenderer(size: size) let image = renderer.image { // CRASH happens on this line let cgContext = $0.cgContext cgContext.saveGState() cgContext.concatenate(transform) customLayer.render(in: cgContext) cgContext.restoreGState() } return image }.value // Remove the CALayer from the view. CATransaction.begin() customLayer.removeFromSuperlayer() CATransaction.commit() return image } } class MyDrawingLayer: CALayer { var itemsToDraw: [MyDrawingItem] = [] func setupContent(itemsToDraw: [MyDrawingItem]) { self.itemsToDraw = itemsToDraw } override func draw(in ctx: CGContext) { for item in itemsToDraw { // Render the item to the context (example pseudo-code). // All items are thread-safe to use. // Things to draw may include CGPath, CGImages, UIImages, NSAttributedString, etc. item.draw(in: ctx) } } } Crash Log The crash occurs at the following location: Crashed: com.apple.root.default-qos.cooperative 0 MyApp 0x5cb300 closure #1 in closure #1 in MyViewController.renderToUIImage(size: CGSize, itemsToDraw: [MyDrawingItem], transform: CGAffineTransform) + 4313002752 (<compiler-generated>:4313002752) 1 MyApp 0x5cb300 closure #1 in closure #1 in MyViewController.renderToUIImage(size: CGSize, itemsToDraw: [MyDrawingItem], transform: CGAffineTransform) + 4313002752 (<compiler-generated>:4313002752) 2 MyApp 0x1a4578 AnyModifier.modified(for:) + 4308649336 (<compiler-generated>:4308649336) 3 MyApp 0x7b4e64 thunk for @escaping @callee_guaranteed (@guaranteed UIGraphicsPDFRendererContext) -> () + 4315008612 (<compiler-generated>:4315008612) 4 UIKitCore 0x1489c0 -[UIGraphicsRenderer runDrawingActions:completionActions:format:error:] + 324 5 UIKitCore 0x14884c -[UIGraphicsRenderer runDrawingActions:completionActions:error:] + 92 6 UIKitCore 0x148778 -[UIGraphicsImageRenderer imageWithActions:] + 184 7 MyApp 0x5cb1c0 closure #1 in MyViewController.renderToUIImage(size: CGSize, itemsToDraw: [MyDrawingItem], transform: CGAffineTransform) + 100 (FileName.swift:100) 8 libswift_Concurrency.dylib 0x60f5c swift::runJobInEstablishedExecutorContext(swift::Job*) + 252 9 libswift_Concurrency.dylib 0x62514 swift_job_runImpl(swift::Job*, swift::SerialExecutorRef) + 144 10 libdispatch.dylib 0x15ec0 _dispatch_root_queue_drain + 392 11 libdispatch.dylib 0x166c4 _dispatch_worker_thread2 + 156 12 libsystem_pthread.dylib 0x3644 _pthread_wqthread + 228 13 libsystem_pthread.dylib 0x1474 start_wqthread + 8 Questions Is it safe to run UIGraphicsImageRenderer.image on the background thread? Given that I want to leverage GPU rendering, what are some best practices for rendering images off the main thread while ensuring stability? Are there alternatives to using UIGraphicsImageRenderer for background rendering that can still take advantage of GPU rendering? It is particularly interesting that the crash logs indicate the error may be related to UIGraphicsPDFRendererContext (crash log line number 3). It would be very helpful if someone could explain the connection between starting and drawing on a UIGraphicsImageRenderer and UIGraphicsPDFRendererContext. Any insights or guidance on this issue would be greatly appreciated. Thanks!!!
1
0
673
Feb ’25
How to create CGContext with 10 bits per component?
I’m trying to create a CGContext that matches my screen using the following code let context = CGContext( data: pixelBuffer, width: pixelWidth, // 3456 height: pixelHeight, // 2234 bitsPerComponent: 10, // PixelEncoding = "--RRRRRRRRRRGGGGGGGGGGBBBBBBBBBB" bytesPerRow: bytesPerRow, // 13824 space: CGColorSpace(name: CGColorSpace.extendedSRGB)!, bitmapInfo: CGImageAlphaInfo.none.rawValue | CGImagePixelFormatInfo.RGBCIF10.rawValue | CGImageByteOrderInfo.order16Little.rawValue ) But it fails with an error CGBitmapContextCreate: unsupported parameter combination: RGB 10 bits/component, integer 13824 bytes/row kCGImageAlphaNone kCGImageByteOrder16Little kCGImagePixelFormatRGBCIF10 Valid parameters for RGB color space model are: 16 bits per pixel, 5 bits per component, kCGImageAlphaNoneSkipFirst 32 bits per pixel, 8 bits per component, kCGImageAlphaNoneSkipFirst 32 bits per pixel, 8 bits per component, kCGImageAlphaNoneSkipLast 32 bits per pixel, 8 bits per component, kCGImageAlphaPremultipliedFirst 32 bits per pixel, 8 bits per component, kCGImageAlphaPremultipliedLast 32 bits per pixel, 10 bits per component, kCGImageAlphaNone|kCGImagePixelFormatRGBCIF10|kCGImageByteOrder16Little 64 bits per pixel, 16 bits per component, kCGImageAlphaPremultipliedLast 64 bits per pixel, 16 bits per component, kCGImageAlphaNoneSkipLast 64 bits per pixel, 16 bits per component, kCGImageAlphaPremultipliedLast|kCGBitmapFloatComponents|kCGImageByteOrder16Little 64 bits per pixel, 16 bits per component, kCGImageAlphaNoneSkipLast|kCGBitmapFloatComponents|kCGImageByteOrder16Little 128 bits per pixel, 32 bits per component, kCGImageAlphaPremultipliedLast|kCGBitmapFloatComponents 128 bits per pixel, 32 bits per component, kCGImageAlphaNoneSkipLast|kCGBitmapFloatComponents See Quartz 2D Programming Guide (available online) for more information. Why is it unsupported if it matches the 6th option? (32 bits per pixel, 10 bits per component, kCGImageAlphaNone|kCGImagePixelFormatRGBCIF10|kCGImageByteOrder16Little)
3
0
780
Jan ’25
Save UIImage with CATransform3D applied
I have a 3х3 Matrix which I need to apply to UIImage and save it in Documents folder. I successfully converted the 3x3 Matrix (represented as [[Double]]) to CATrasform3D and then I have broken my head with trying to figure out how to apply it to UIImage. The only property where I can I apply it is UIView(or UIImageView in case with working with UIImage) transform property. But it has nothing to do with UIImage itself. I can't save the UIImage from transformed the UIImageView with all the transformations. And all the CoreGraphic methods (like concatenate for CGContext) only work with affine transformations which not suits for me. Please give me a hint what direction I should look. Does Apple has native methods or I have to use 3rd party frameworks for this functionality?
1
0
777
Aug ’24
Crash in CAMediaTimingCopyRenderTiming
Hi Team, We are facing crash in CAMediaTimingCopyRenderTiming for production users. And we are unable to trace the crash. Below is the crash stack trace - Crashed: com.apple.main-thread 0 QuartzCore 0x14b9c CAMediaTimingCopyRenderTiming + 660 1 QuartzCore 0xfa9c -[CAAnimation _setCARenderAnimation:layer:] + 64 2 QuartzCore 0x146e4 -[CAAnimationGroup _copyRenderAnimationForLayer:] + 356 3 QuartzCore 0x12f3c CA::Layer::commit_animations(CA::Transaction*, double ()(CA::Layer, double, void*), void ()(CA::Layer, CA::Render::Animation*, void*), void ()(CA::Layer, __CFString const*, void*), CA::Render::TimingList* ()(CA::Layer, void*), void*) + 688 4 QuartzCore 0x277c invocation function for block in CA::Context::commit_transaction(CA::Transaction*, double, double*) + 176 5 QuartzCore 0x482bc CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 384 6 QuartzCore 0x48244 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 7 QuartzCore 0x48244 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 8 QuartzCore 0x48244 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 9 QuartzCore 0x48244 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 10 QuartzCore 0x48244 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 11 QuartzCore 0x48244 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 12 QuartzCore 0x48244 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 13 QuartzCore 0x48244 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 14 QuartzCore 0x48244 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 15 QuartzCore 0x48244 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 16 QuartzCore 0x2e078 CA::Context::commit_transaction(CA::Transaction*, double, double*) + 6224 17 QuartzCore 0x59dc0 CA::Transaction::commit() + 644 18 QuartzCore 0x44dbc CA::Transaction::flush_as_runloop_observer(bool) + 84 19 CoreFoundation 0x898e8 CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 32 20 CoreFoundation 0x1951c __CFRunLoopDoObservers + 552 21 CoreFoundation 0x75214 __CFRunLoopRun + 1004 22 CoreFoundation 0x79d20 CFRunLoopRunSpecific + 584 23 GraphicsServices 0x1998 GSEventRunModal + 160 24 UIKitCore 0x371448 -[UIApplication _run] + 868 25 UIKitCore 0x3710c0 UIApplicationMain + 312 26 SwiftUI 0x183c68 OUTLINED_FUNCTION_895 + 2184 27 SwiftUI 0xfdf1c block_copy_helper.1 + 452 28 SwiftUI 0xeaf6c OUTLINED_FUNCTION_901 + 2312 29 Evie Ring 0x2dd20c main + 10 (MovanoRingApp.swift:10) 30 ??? 0x1c7724344 (Missing)
1
0
586
Jul ’24
Crash in QuartzCore - CA::Render::Encoder::grow(unsigned long) + 288
Hi Team, some of our users are getting crash in QuartzCore. But we are not sure the exact reason for it. Can you please help us in it? App is crashing in production. Xcode version - 15.0 Platform - iOS Below is the crash stack trace. Crashed: com.apple.main-thread 0 libsystem_kernel.dylib 0xa974 __pthread_kill + 8 1 libsystem_pthread.dylib 0x60ec pthread_kill + 268 2 libsystem_c.dylib 0x75b80 abort + 180 3 QuartzCore 0x98ba8 CA::Render::Encoder::grow(unsigned long) + 288 4 QuartzCore 0x97e50 CA::Render::Vector::encode(CA::Render::Encoder*) const + 112 5 QuartzCore 0x10a76c CA::Render::KeyframeAnimation::encode(CA::Render::Encoder*) const + 68 6 QuartzCore 0x975ec CA::Render::Array::encode(CA::Render::Encoder*) const + 172 7 QuartzCore 0x75204 CA::Context::commit_animation(CA::Layer*, CA::Render::Animation*, void*) + 236 8 QuartzCore 0x72998 CA::Layer::commit_animations(CA::Transaction*, double ()(CA::Layer, double, void*), void ()(CA::Layer, CA::Render::Animation*, void*), void ()(CA::Layer, __CFString const*, void*), CA::Render::TimingList* ()(CA::Layer, void*), void*) + 956 9 QuartzCore 0x2b930 invocation function for block in CA::Context::commit_transaction(CA::Transaction*, double, double*) + 148 10 QuartzCore 0x2b838 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 368 11 QuartzCore 0x2b7c4 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 252 12 QuartzCore 0x2b7c4 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 252 13 QuartzCore 0x2b7c4 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 252 14 QuartzCore 0x2b7c4 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 252 15 QuartzCore 0x2b7c4 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 252 16 QuartzCore 0x2b7c4 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 252 17 QuartzCore 0x2b7c4 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 252 18 QuartzCore 0x2b7c4 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 252 19 QuartzCore 0x2b7c4 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 252 20 QuartzCore 0x2b7c4 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 252 21 QuartzCore 0x6f5b0 CA::Context::commit_transaction(CA::Transaction*, double, double*) + 11212 22 QuartzCore 0x661bc CA::Transaction::commit() + 648 23 QuartzCore 0x65e64 CA::Transaction::flush_as_runloop_observer(bool) + 88 24 CoreFoundation 0x35d3c CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 36 25 CoreFoundation 0x34738 __CFRunLoopDoObservers + 552 26 CoreFoundation 0x33e50 __CFRunLoopRun + 1028 27 CoreFoundation 0x33968 CFRunLoopRunSpecific + 608 28 GraphicsServices 0x34e0 GSEventRunModal + 164 29 UIKitCore 0x22aedc -[UIApplication _run] + 888 30 UIKitCore 0x22a518 UIApplicationMain + 340 31 SwiftUI 0x1033860 OUTLINED_FUNCTION_39 + 600 32 SwiftUI 0x10336a8 OUTLINED_FUNCTION_39 + 160 33 SwiftUI 0xc4f9fc get_witness_table 7SwiftUI4ViewRzlAA15ModifiedContentVyxAA30_EnvironmentKeyWritingModifierVySbGGAaBHPxAaBHD1__AgA0cI0HPyHCHCTm + 364 34 Evie Ring 0x324620 main + 10 (MovanoRingApp.swift:10) 35 ??? 0x1ad632d84 (Missing)
0
0
898
Apr ’24
Create PDF file with Spot Colors
I am trying to generate a PDF file with certain components draw with Spot Colours. Spot colours are used for printing and I am not clear on how one would do that but I think that if I can create a custom ColorSpace with a specific name or a color that has a specific name - our printer looks for the name Spot1 and they use the colour green. Can anyone shed any light on how I might be able to do this. For reference I have attached two pdf files with two different spot colours in them. I need to be able to create similar using CGContext and CGPDFDocument. I can already generate the PDF documents using CMYK colors but don't know how I can create the equivalent "spot" colors. At the moment I am loading the page from these attached pdf files and scaling them to fill the page to get a background with the spot color. This works fine but I also need to generate text and lines using this same spot color and I am not clear how I could do that using the Core Graphics APIs. My guess is I need to create a custom ColorSpace with a single color and then use that color for drawing with. The only 'custom' option for creating a ColorSpace seems to be the CGColorSpace(propertyListPList:) constructor, however there does not appear to be any documentation on what needs to be in the property list to do so. Nor can I find any examples of that. Any pointers would be appreciated. Regards
1
0
1.1k
Dec ’23
Got error of PC register does not match crashing frame
the log of error thread is as following Thread 4 Crashed:: Dispatch queue: CA DispatchGroup 0 libwx_osx_cocoau_core-3.1.1.0.0.dylib 0x10f3707f0 wxMacCoreGraphicsBrushData::CalculateShadingValues(void*, double const*, double*) + 240 1 CoreGraphics 0x7ff80acda1ce CGFunctionEvaluate + 243 2 CoreGraphics 0x7ff80acda032 function_evaluate + 369 3 CoreGraphics 0x7ff80acd9758 ripc_AcquireFunction + 831 4 CoreGraphics 0x7ff80acd8934 ripc_DrawShading + 5841 5 CoreGraphics 0x7ff80b1e6e7a CG::DisplayListExecutor::drawShading(CG::DisplayListEntryShading const*) + 438 6 CoreGraphics 0x7ff80b2de843 CG::DisplayList::executeEntries(std::__1::__wrap_iter<std::__1::shared_ptr<CG::DisplayListEntry const>*>, std::__1::__wrap_iter<std::__1::shared_ptr<CG::DisplayListEntry const>*>, CGContextDelegate*, CGRenderingState*, CGGStack*, CGRect const*, __CFDictionary const*, bool) + 195 7 CoreGraphics 0x7ff80ad5cb03 CG::DisplayList::execute(CGContextDelegate*, CGRenderingState*, CGGStack*, CGRect const*, __CFDictionary const*) + 341 8 CoreGraphics 0x7ff80ad5c869 CGDisplayListDrawInContextDelegate + 617 9 AppKit 0x7ff80900769a -[NSViewBackingLayerContentLayer drawInContext:] + 57 10 QuartzCore 0x7ff80dd19293 CABackingStoreUpdate_ + 630 11 QuartzCore 0x7ff80dd77f2e invocation function for block in CA::Layer::display_() + 53 12 QuartzCore 0x7ff80dd182f2 -[CALayer _display] + 2253 13 QuartzCore 0x7ff80dd43d67 display_callback(void*, void*) + 97 14 QuartzCore 0x7ff80dd43ce6 CA::DispatchGroup::dispatch(bool) + 108 15 libdispatch.dylib 0x7ff80510d59a _dispatch_client_callout + 8 16 libdispatch.dylib 0x7ff805113668 _dispatch_lane_serial_drain + 816 17 libdispatch.dylib 0x7ff805114100 _dispatch_lane_invoke + 377 18 libdispatch.dylib 0x7ff80511daee _dispatch_root_queue_drain_deferred_wlh + 271 19 libdispatch.dylib 0x7ff80511d3fd _dispatch_workloop_worker_thread + 451 20 libsystem_pthread.dylib 0x7ff8052b1c47 _pthread_wqthread + 327 21 libsystem_pthread.dylib 0x7ff8052b0b97 start_wqthread + 15 Thread 4 crashed with X86 Thread State (64-bit): rax: 0x0000000000000000 rbx: 0x000000030ee7ea60 rcx: 0x0000600000a4df58 rdx: 0x000000030ee7ea60 rdi: 0x000060000237b9a8 rsi: 0x000000030ee7ea10 rbp: 0x000000030ee7ea00 rsp: 0x000000030ee7ea00 r8: 0xe000000000000002 r9: 0x1ffffffffffffffe r10: 0x000000008ee09001 r11: 0x0000000000000019 r12: 0x0000000000000001 r13: 0x0000000000000001 r14: 0x000060000237bdb0 r15: 0x000000030ee7ea10 rip: <unavailable> rfl: 0x0000000000000242 tmp0: 0x000000010fa69800 tmp1: 0x00007ff80acda1ce tmp2: 0x00007ff89da92500 Binary Images: 0x20606a000 - 0x206109fff dyld (*) <d5406f23-6967-39c4-beb5-6ae3293c7753> /usr/lib/dyld 0x10f2c9000 - 0x10f2d8fff libobjc-trampolines.dylib (*) <7e101877-a6ff-3331-99a3-4222cb254447> /usr/lib/libobjc-trampolines.dylib 0x10ebb0000 - 0x10ebc3fff tdsearch-x64.dylib (*) <1bd85264-ee0d-36f4-ab94-a6d81ec1bb0f> /Applications/BaKoMa TeX/*/tdsearch-x64.dylib 0x10f2fd000 - 0x10f7c1fff libwx_osx_cocoau_core-3.1.1.0.0.dylib (*) <0362fcaf-20bc-39e8-8a36-a8736662480e> /Applications/BaKoMa TeX/*/libwx_osx_cocoau_core-3.1.1.0.0.dylib 0x10ffb0000 - 0x1101a6fff libwx_baseu-3.1.1.0.0.dylib (*) <a0e6ac20-4be1-3f6d-810f-f116d5f29279> /Applications/BaKoMa TeX/*/libwx_baseu-3.1.1.0.0.dylib 0x10ecf2000 - 0x10ed6bfff libwx_osx_cocoau_aui-3.1.1.0.0.dylib (*) <97bc52cb-e328-361a-a7ea-58e1b7c04f58> /Applications/BaKoMa TeX/*/libwx_osx_cocoau_aui-3.1.1.0.0.dylib 0x10ef30000 - 0x10efc8fff libwx_osx_cocoau_html-3.1.1.0.0.dylib (*) <3abef03a-ea27-3b81-bdbe-136afe43eae2> /Applications/BaKoMa TeX/*/libwx_osx_cocoau_html-3.1.1.0.0.dylib 0x1104a8000 - 0x1105c4fff libwx_osx_cocoau_adv-3.1.1.0.0.dylib (*) <048f9971-9720-32ee-9b41-aa1224eba010> /Applications/BaKoMa TeX/*/libwx_osx_cocoau_adv-3.1.1.0.0.dylib 0x10ee4a000 - 0x10ee7cfff libwx_baseu_net-3.1.1.0.0.dylib (*) <4ef643bb-33ba-353e-8f1f-42e3cfd80259> /Applications/BaKoMa TeX/*/libwx_baseu_net-3.1.1.0.0.dylib 0x10ec63000 - 0x10ec7efff liblzma.5.dylib (*) <e4406e42-7bc4-3945-a1a4-e9b6874ef052> /usr/local/Cellar/xz/5.2.5/lib/liblzma.5.dylib 0x7ff7ffc5a000 - 0x7ff7ffc89fff runtime (*) <2c5acb8c-fbaf-31ab-aeb3-90905c3fa905> /usr/libexec/rosetta/runtime 0x10e235000 - 0x10e288fff libRosettaRuntime (*) <a61ec9e9-1174-3dc6-9cdb-0d31811f4850> /Library/Apple/*/libRosettaRuntime 0x104b78000 - 0x104d88fff texword (*) <feb2b054-bd1a-36a5-8803-605478982dc1> /Applications/BaKoMa TeX/*/texword 0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ??? 0x7ff805274000 - 0x7ff8052aeff7 libsystem_kernel.dylib (*) <4df0d732-7fc4-3200-8176-f1804c63f2c8> /usr/lib/system/libsystem_kernel.dylib 0x7ff8052af000 - 0x7ff8052bafff libsystem_pthread.dylib (*) <c64722b0-e96a-3fa5-96c3-b4beaf0c494a> /usr/lib/system/libsystem_pthread.dylib 0x7ff80dcf6000 - 0x7ff80e09dff9 com.apple.QuartzCore (1.11) <75bd9503-d1ab-32d2-bd5b-89ec89d3e8dd> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore 0x7ff8088c1000 - 0x7ff809cc6ffb com.apple.AppKit (6.9) <27fed5dd-d148-3238-bc95-1dac5dd57fa1> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit 0x7ff805314000 - 0x7ff8057acffc com.apple.CoreFoundation (6.9) <4d842118-bb65-3f01-9087-ff1a2e3ab0d5> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 0x7ff8100c5000 - 0x7ff810360ff4 com.apple.HIToolbox (2.1.1) <06bf0872-3b34-3c7b-ad5b-7a447d793405> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox 0x7ff80acad000 - 0x7ff80b53effc com.apple.CoreGraphics (2.0) <c709e588-6adf-33ad-b7c8-5dbe61c7694d> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics 0x7ff80510a000 - 0x7ff805150ffd libdispatch.dylib (*) <4472f1a5-1d47-3665-ac8d-7adb0e9d2d87> /usr/lib/system/libdispatch.dylib 0x7ff805154000 - 0x7ff8051dbfff libsystem_c.dylib (*) <83c7b73c-86fe-32f9-85dd-f46fa2c1315b> /usr/lib/system/libsystem_c.dylib
0
1
2.8k
Nov ’23
Bring Quartz Composer back
I wonder if anyone else misses Quartz Composer on the mac. It was a really powerful, native and free app for creatives, with a small but devoted user base, which would have only grown if Apple had shown any support. Upvote this post if you also agree Apple should bring support for Quartz Composer back.
12
21
4k
Jun ’23
QuartzCore CA::Render::Encoder::grow(unsigned long)
Getting crash on user side. not able to reproduce it on our side. Please check the crash log. Xcode version: 13.2.1 (13C100) plateform: iOS Crashed: com.apple.main-thread 0 libsystem_kernel.dylib 0x6bbc __pthread_kill + 8 1 libsystem_pthread.dylib 0xd854 pthread_kill + 208 2 libsystem_c.dylib 0x1f6ac abort + 124 3 QuartzCore 0xce57c CA::Render::Encoder::grow(unsigned long) + 236 4 QuartzCore 0xb179c CA::Render::Layer::encode(CA::Render::Encoder*) const + 104 5 QuartzCore 0xbcbb0 CA::Render::encode_set_object(CA::Render::Encoder*, unsigned long, unsigned int, CA::Render::Object*, unsigned int) + 192 6 QuartzCore 0x47138 invocation function for block in CA::Context::commit_transaction(CA::Transaction*, double, double*) + 280 7 QuartzCore 0x348f4 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 388 8 QuartzCore 0x34878 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 9 QuartzCore 0x34878 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 10 QuartzCore 0x34878 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 11 QuartzCore 0x34878 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 12 QuartzCore 0x457fc CA::Context::commit_transaction(CA::Transaction*, double, double*) + 6204 13 QuartzCore 0x4cc64 CA::Transaction::commit() + 708 14 UIKitCore 0x18a3f4 _UIApplicationFlushRunLoopCATransactionIfTooLate + 80 15 UIKitCore 0x15bb24 __processEventQueue + 7292 16 UIKitCore 0x160c54 __eventFetcherSourceCallback + 168 17 CoreFoundation 0xb34ec CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 24 18 CoreFoundation 0xc361c __CFRunLoopDoSource0 + 204 19 CoreFoundation 0x5880 __CFRunLoopDoSources0 + 348 20 CoreFoundation 0xaef8 __CFRunLoopRun + 768 21 CoreFoundation 0x1e240 CFRunLoopRunSpecific + 572 22 GraphicsServices 0x1988 GSEventRunModal + 160 23 UIKitCore 0x4e541c -[UIApplication _run] + 1080 24 UIKitCore 0x27eb88 UIApplicationMain + 336 25 TCPApp 0xa34528 main + 39 (AppDelegate.swift:39) 26 ??? 0x104bd83d0 (Missing)
2
1
2.3k
May ’23
iOS 12 Crashed: com.apple.coremedia.player.async.0x2856cf180
my app crashed on iOS 12 only. this is the message, anyone help me , thanks.Crashed: com.apple.coremedia.player.async.0x2856cf1800 QuartzCore 0x1beb61578 X::Ref&lt;CA::Shape&gt;::operator=(CA::Shape*) + 201 QuartzCore 0x1beb61434 CABackingStoreGetFrontTexture(CABackingStore*, CGColorSpace*) + 3482 QuartzCore 0x1beb612a8 CABackingStoreRetainFrontTexture + 483 QuartzCore 0x1bec88e54 -[CALayer(CALayerPrivate) _copyRenderLayer:layerFlags:commitFlags:] + 6764 QuartzCore 0x1bec8e9e4 CA::Layer::commit_if_needed(CA::Transaction*, void (*)(CA::Layer*, unsigned int, unsigned int, void*), void*) + 4485 QuartzCore 0x1bec8e928 CA::Layer::commit_if_needed(CA::Transaction*, void (*)(CA::Layer*, unsigned int, unsigned int, void*), void*) + 2606 QuartzCore 0x1bec8e928 CA::Layer::commit_if_needed(CA::Transaction*, void (*)(CA::Layer*, unsigned int, unsigned int, void*), void*) + 2607 QuartzCore 0x1bec8e928 CA::Layer::commit_if_needed(CA::Transaction*, void (*)(CA::Layer*, unsigned int, unsigned int, void*), void*) + 2608 QuartzCore 0x1bec8e928 CA::Layer::commit_if_needed(CA::Transaction*, void (*)(CA::Layer*, unsigned int, unsigned int, void*), void*) + 2609 QuartzCore 0x1bec8e928 CA::Layer::commit_if_needed(CA::Transaction*, void (*)(CA::Layer*, unsigned int, unsigned int, void*), void*) + 26010 QuartzCore 0x1bec8e928 CA::Layer::commit_if_needed(CA::Transaction*, void (*)(CA::Layer*, unsigned int, unsigned int, void*), void*) + 26011 QuartzCore 0x1bec8e928 CA::Layer::commit_if_needed(CA::Transaction*, void (*)(CA::Layer*, unsigned int, unsigned int, void*), void*) + 26012 QuartzCore 0x1bec8e928 CA::Layer::commit_if_needed(CA::Transaction*, void (*)(CA::Layer*, unsigned int, unsigned int, void*), void*) + 26013 QuartzCore 0x1bebe2528 CA::Context::commit_transaction(CA::Transaction*) + 324014 QuartzCore 0x1bec102f4 CA::Transaction::commit() + 60815 MediaToolbox 0x1bf1012b0 remoteXPCPlayer_setClientVideoLayerArray + 128416 MediaToolbox 0x1bf100548 remoteXPCPlayer_SetProperty + 34017 MediaToolbox 0x1bf0675dc playerasync_runOneCommand + 187618 MediaToolbox 0x1bf06a380 playerasync_runAsynchronousCommandOnQueue + 17219 libdispatch.dylib 0x1ba0d4484 _dispatch_client_callout + 1620 libdispatch.dylib 0x1ba0aefb0 _dispatch_lane_serial_drain$VARIANT$armv81 + 54821 libdispatch.dylib 0x1ba0afb2c _dispatch_lane_invoke$VARIANT$armv81 + 46822 libdispatch.dylib 0x1ba0b6afc _dispatch_root_queue_drain + 34423 libdispatch.dylib 0x1ba0b68a8 _dispatch_worker_thread + 27624 libsystem_pthread.dylib 0x1ba2b52fc _pthread_body + 12825 libsystem_pthread.dylib 0x1ba2b525c _pthread_start + 4826 libsystem_pthread.dylib 0x1ba2b8d08 thread_start + 4the detail message here: http://crashes.to/s/5390fe23bcc
13
0
10k
May ’23
PDFView Crash After Find Changing current selection and calling -scrollSelectionToVisible: on macOS Tahoe
Getting this crash after I do this in PDFKit a lot: PDFSelection *nextSelect = [self.pdfView.document findString:currentSearchString fromSelection:currentSelction withOptions:NSCaseInsensitiveSearch]; if (nextSelect != nil) { self.pdfView.currentSelection = nextSelect; [self.pdfView scrollSelectionToVisible:nil]; } Which often leads to: 0 CoreFoundation 0x000000019ced4770 __exceptionPreprocess + 176 1 libobjc.A.dylib 0x000000019c9b2418 objc_exception_throw + 88 2 CoreFoundation 0x000000019cfffe10 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 724 3 CoreFoundation 0x000000019cfa1ae4 +[NSDictionary dictionaryWithObjects:forKeys:count:] + 52 4 PDFKit 0x00000001cb56e0fc -[PDFView _axPostPageChangeNotification:] + 348 5 Foundation 0x000000019e6a25e4 __NSFireDelayedPerform + 372 6 CoreFoundation 0x000000019ce92290 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 32 7 CoreFoundation 0x000000019ce91f50 __CFRunLoopDoTimer +
Replies
3
Boosts
0
Views
262
Activity
Oct ’25
Scanned PDFs appear washed out in Apple Preview and Safari
Same PDF renders differently when open in Chrome, Safari; Apple Preview, Acrobat. on Apple Preview, Safari - the PDF appears correctly for a second or two and then appears washed out. Our app uses Safari to render PDFs and our users are complaining that scanned PDFs are not rendering properly. How do I fix this issue (Swift, Obj-C)?
Replies
0
Boosts
0
Views
257
Activity
Sep ’25
Where's the replacement for Quartz Debug?
Hi, This can't be right. Is there really no replacement for Quartz Debug?!? As the sole developer on a project who has an Intel Mac and Quartz Debug, I am basically a god now. Everyone else has Apple Silicon and... I think they're randomly guessing at this point. Because I have entire teams sending me Intel Mac builds of stuff just so I can test it in QD. This is THE TOOL we used at NewTek to find performance issues, and THE TOOL I used for a dozen companies after that, to help them with similar issues. If there's no replacement, is there a reason there's no replacement? This feels like a massive step backwards, having to guess at problems like this. -Chilton
Replies
1
Boosts
0
Views
458
Activity
Aug ’25
What good is NSBitmapFormatAlphaNonpremultiplied?
If I create a bitmap image and then try to get ready to draw into it, like so: NSBitmapImageRep* newRep = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes: nullptr pixelsWide: 128 pixelsHigh: 128 bitsPerSample: 8 samplesPerPixel: 4 hasAlpha: YES isPlanar: NO colorSpaceName: NSDeviceRGBColorSpace bitmapFormat: NSBitmapFormatAlphaNonpremultiplied | NSBitmapFormatThirtyTwoBitBigEndian bytesPerRow: 4 * 128 bitsPerPixel: 32]; [NSGraphicsContext setCurrentContext: [NSGraphicsContext graphicsContextWithBitmapImageRep: newRep]]; then the log shows this error: CGBitmapContextCreate: unsupported parameter combination: RGB 8 bits/component, integer 512 bytes/row kCGImageAlphaLast kCGImageByteOrderDefault kCGImagePixelFormatPacked Valid parameters for RGB color space model are: 16 bits per pixel, 5 bits per component, kCGImageAlphaNoneSkipFirst 32 bits per pixel, 8 bits per component, kCGImageAlphaNoneSkipFirst 32 bits per pixel, 8 bits per component, kCGImageAlphaNoneSkipLast 32 bits per pixel, 8 bits per component, kCGImageAlphaPremultipliedFirst 32 bits per pixel, 8 bits per component, kCGImageAlphaPremultipliedLast 32 bits per pixel, 10 bits per component, kCGImageAlphaNone|kCGImagePixelFormatRGBCIF10|kCGImageByteOrder16Little 64 bits per pixel, 16 bits per component, kCGImageAlphaPremultipliedLast 64 bits per pixel, 16 bits per component, kCGImageAlphaNoneSkipLast 64 bits per pixel, 16 bits per component, kCGImageAlphaPremultipliedLast|kCGBitmapFloatComponents|kCGImageByteOrder16Little 64 bits per pixel, 16 bits per component, kCGImageAlphaNoneSkipLast|kCGBitmapFloatComponents|kCGImageByteOrder16Little 128 bits per pixel, 32 bits per component, kCGImageAlphaPremultipliedLast|kCGBitmapFloatComponents 128 bits per pixel, 32 bits per component, kCGImageAlphaNoneSkipLast|kCGBitmapFloatComponents See Quartz 2D Programming Guide (available online) for more information. If I don't use NSBitmapFormatAlphaNonpremultiplied as part of the format, I don't get the error message. My question is, why does the constant NSBitmapFormatAlphaNonpremultiplied exist if you can't use it like this? If you're wondering why I wanted to do this: I want to extract the RGBA pixel data from an image, which might have non-premultiplied alpha. And elsewhere online, I saw advice that if you want to look at the pixels of an image, draw it into a bitmap whose format you know and look at those pixels. And I don't want the process of drawing to premultiply my alpha.
Replies
3
Boosts
0
Views
287
Activity
Jun ’25
CATiledLayer flashes and re-draws entirely when re-drawing a single tile
I have filed a bug report for this (FB17734946), but I'm posting it here verbatim in case others have the same issue and in hopes of getting attention from an Apple engineer sooner. When calling setNeedsDisplayInRect on a CATiledLayer - or a UIView whose backing layer is CATiledLayer - one would expect to re-draw only a region identified by the rect passed to the method. This is even written in the documentation for the class: "Regions of the layer may be invalidated using the setNeedsDisplayInRect: method however the update will be asynchronous. While the next display update will most likely not contain the updated content, a future update will." However, upon calling this method, CATiledLayer redraws whole contents instead of just the tile at the specified rect, and it flashes when doing so. It behaves exactly the same as if one had called setNeedsDisplay without passing any rect; all contents are cleared and re-drawn again. I'm 100% sure I've passed in the correct rect of the exact tile that I need to redraw. I have even tried passing much smaller rects, but still the same. (And yes, the rect I've passed accounts for the current level of detail.) I have found this GitHub repo https://github.com/frankus/NetPhotoScroller, which based on discussion from here https://forums.macrumors.com/threads/catiledlayer-blanks-out-tiles-when-redrawing.1333948/ aims at solving these issues by using two private methods on CATiledLayer class: (void)setNeedsDisplayInRect:(CGRect)r levelOfDetail:(int)level; (BOOL)canDrawRect:(CGRect)rect levelOfDetail:(int)level; I have explored the repo in detail, however I wasn't able to test exactly this code from the GitHub repo. I have tried using those two private methods myself (through an Objective-C class that defines the methods in the header file and then a swift class which inherits it), but I couldn't solve the issue; the flashing and the full re-draw is still there. After doing a lot of research, the conclusion seems to be that one cannot use CATiledLayer with contents that are downloaded remotely, on demand, as tiles are being requested. I have, however, found one interesting thing which seems to work so far: before calling setNeedsDisplayInRect (or just setNeedsDisplay, as they behave the same for CATiledLayer in my testing), cache the current layer's contents, and after calling setNeedsDisplay (or setNeedsDisplayInRect), restore the contents back to the layer. This prevents flashing and preserves any tiles that were drawn at the time of the re-draw. let c = tiledLayer.contents tiledLayer.setNeedsDisplay(tileRect) tiledLayer.contents = c However! Docs clearly state the warning: Do not attempt to directly modify the contents property of a CATiledLayer object. Doing so disables the ability of a tiled layer to asynchronously provide tiled content, effectively turning the layer into a regular CALayer object. I believe this message implies modifying the contents property with some raw content, like image data, and that it may be safe to re-apply the existing contents (which are in my testing of type CAImageProvider) -- but I can't rely on an implementation detail in my production app. I have tested this and confirmed that the bug appears on: iPhone 14 Pro, iOS 18.5 iPhone 13 Pro, iOS 17.5.1 iPhone 5s, iOS 15.8.3 iPad Pro 1st gen, iPadOS 18.4.1 a couple simulator versions I can also confirm that the fix (to re-apply contents property) is also working properly on all these versions. Is this expected behavior, that tiled layer redraws itself entirely instead of redrawing specific tiles? Is it safe to modify contents of a CATiledLayer by re-applying the existing contents? If not, is there an alternative to avoid flashing?
Replies
3
Boosts
0
Views
228
Activity
May ’25
Xcode cannot find any frameworks
I am new to Xcode and trying to learn how to use Metal for my internship. I am trying to link the binaries of Foundation.framework, Metal.framework, and Quartcore.framework. But whenever I try to build it always fails to find any of them. I have my Header Search Path as $(PROJECT_DIR)/metal-cpp, I tried adding some for the Frameworks but that did not work either. I do have the binaries linked in the Build Phases, so I don't know what else I could be missing.
Replies
2
Boosts
0
Views
134
Activity
May ’25
Crash when rendering CALayer using UIGraphicsImageRenderer on background thread
Hello! I’m experiencing a crash in my iOS/iPadOS app related to a CALayer rendering process. The crash occurs when attempting to render a UIImage on a background thread. The crashes are occurring in our production app, and while we can monitor them through Crashlytics, we are unable to reproduce the issue in our development environment. Relevant Code I have a custom view controller that handles rendering CALayers onto images. This method creates a CALayer on the main thread and then starts a detached task to render this CALayer into a UIImage. The whole idea is learnt from this StackOverflow post: https://stackoverflow.com/a/77834613/9202699 Here are key parts of my implementation: class MyViewController: UIViewController { @MainActor func renderToUIImage(size: CGSize, itemsToDraw: [MyDrawingItem], transform: CGAffineTransform) async -> UIImage? { // Create CALayer and add it to the view. CATransaction.begin() let customLayer = MyDrawingLayer() customLayer.setupContent(itemsToDraw: itemsToDraw) // Position the frame off-screen to it hidden. customLayer.frame = CGRect( origin: CGPoint(x: -100 - size.width, y: -100 - size.height), size: size) customLayer.masksToBounds = true customLayer.drawsAsynchronously = true view.layer.addSublayer(customLayer) CATransaction.commit() // Render CALayer to UIImage in background thread. let image = await Task.detached { customLayer.setNeedsDisplay() let renderer = UIGraphicsImageRenderer(size: size) let image = renderer.image { // CRASH happens on this line let cgContext = $0.cgContext cgContext.saveGState() cgContext.concatenate(transform) customLayer.render(in: cgContext) cgContext.restoreGState() } return image }.value // Remove the CALayer from the view. CATransaction.begin() customLayer.removeFromSuperlayer() CATransaction.commit() return image } } class MyDrawingLayer: CALayer { var itemsToDraw: [MyDrawingItem] = [] func setupContent(itemsToDraw: [MyDrawingItem]) { self.itemsToDraw = itemsToDraw } override func draw(in ctx: CGContext) { for item in itemsToDraw { // Render the item to the context (example pseudo-code). // All items are thread-safe to use. // Things to draw may include CGPath, CGImages, UIImages, NSAttributedString, etc. item.draw(in: ctx) } } } Crash Log The crash occurs at the following location: Crashed: com.apple.root.default-qos.cooperative 0 MyApp 0x5cb300 closure #1 in closure #1 in MyViewController.renderToUIImage(size: CGSize, itemsToDraw: [MyDrawingItem], transform: CGAffineTransform) + 4313002752 (<compiler-generated>:4313002752) 1 MyApp 0x5cb300 closure #1 in closure #1 in MyViewController.renderToUIImage(size: CGSize, itemsToDraw: [MyDrawingItem], transform: CGAffineTransform) + 4313002752 (<compiler-generated>:4313002752) 2 MyApp 0x1a4578 AnyModifier.modified(for:) + 4308649336 (<compiler-generated>:4308649336) 3 MyApp 0x7b4e64 thunk for @escaping @callee_guaranteed (@guaranteed UIGraphicsPDFRendererContext) -> () + 4315008612 (<compiler-generated>:4315008612) 4 UIKitCore 0x1489c0 -[UIGraphicsRenderer runDrawingActions:completionActions:format:error:] + 324 5 UIKitCore 0x14884c -[UIGraphicsRenderer runDrawingActions:completionActions:error:] + 92 6 UIKitCore 0x148778 -[UIGraphicsImageRenderer imageWithActions:] + 184 7 MyApp 0x5cb1c0 closure #1 in MyViewController.renderToUIImage(size: CGSize, itemsToDraw: [MyDrawingItem], transform: CGAffineTransform) + 100 (FileName.swift:100) 8 libswift_Concurrency.dylib 0x60f5c swift::runJobInEstablishedExecutorContext(swift::Job*) + 252 9 libswift_Concurrency.dylib 0x62514 swift_job_runImpl(swift::Job*, swift::SerialExecutorRef) + 144 10 libdispatch.dylib 0x15ec0 _dispatch_root_queue_drain + 392 11 libdispatch.dylib 0x166c4 _dispatch_worker_thread2 + 156 12 libsystem_pthread.dylib 0x3644 _pthread_wqthread + 228 13 libsystem_pthread.dylib 0x1474 start_wqthread + 8 Questions Is it safe to run UIGraphicsImageRenderer.image on the background thread? Given that I want to leverage GPU rendering, what are some best practices for rendering images off the main thread while ensuring stability? Are there alternatives to using UIGraphicsImageRenderer for background rendering that can still take advantage of GPU rendering? It is particularly interesting that the crash logs indicate the error may be related to UIGraphicsPDFRendererContext (crash log line number 3). It would be very helpful if someone could explain the connection between starting and drawing on a UIGraphicsImageRenderer and UIGraphicsPDFRendererContext. Any insights or guidance on this issue would be greatly appreciated. Thanks!!!
Replies
1
Boosts
0
Views
673
Activity
Feb ’25
CGPDFOperatorTableSetCallback fails with `ID' isn't an operator.
Does anyone know why the following call fails? CGPDFOperatorTableSetCallback(operatorTable, "ID", &callback); The PDF specification seems to indicate that ID is an operator? BTW what is the proper topic/subtopic for questions about Quartz? Wasn't sure what topic on the new forums to post this under.
Replies
1
Boosts
0
Views
1k
Activity
Jan ’25
How to create CGContext with 10 bits per component?
I’m trying to create a CGContext that matches my screen using the following code let context = CGContext( data: pixelBuffer, width: pixelWidth, // 3456 height: pixelHeight, // 2234 bitsPerComponent: 10, // PixelEncoding = "--RRRRRRRRRRGGGGGGGGGGBBBBBBBBBB" bytesPerRow: bytesPerRow, // 13824 space: CGColorSpace(name: CGColorSpace.extendedSRGB)!, bitmapInfo: CGImageAlphaInfo.none.rawValue | CGImagePixelFormatInfo.RGBCIF10.rawValue | CGImageByteOrderInfo.order16Little.rawValue ) But it fails with an error CGBitmapContextCreate: unsupported parameter combination: RGB 10 bits/component, integer 13824 bytes/row kCGImageAlphaNone kCGImageByteOrder16Little kCGImagePixelFormatRGBCIF10 Valid parameters for RGB color space model are: 16 bits per pixel, 5 bits per component, kCGImageAlphaNoneSkipFirst 32 bits per pixel, 8 bits per component, kCGImageAlphaNoneSkipFirst 32 bits per pixel, 8 bits per component, kCGImageAlphaNoneSkipLast 32 bits per pixel, 8 bits per component, kCGImageAlphaPremultipliedFirst 32 bits per pixel, 8 bits per component, kCGImageAlphaPremultipliedLast 32 bits per pixel, 10 bits per component, kCGImageAlphaNone|kCGImagePixelFormatRGBCIF10|kCGImageByteOrder16Little 64 bits per pixel, 16 bits per component, kCGImageAlphaPremultipliedLast 64 bits per pixel, 16 bits per component, kCGImageAlphaNoneSkipLast 64 bits per pixel, 16 bits per component, kCGImageAlphaPremultipliedLast|kCGBitmapFloatComponents|kCGImageByteOrder16Little 64 bits per pixel, 16 bits per component, kCGImageAlphaNoneSkipLast|kCGBitmapFloatComponents|kCGImageByteOrder16Little 128 bits per pixel, 32 bits per component, kCGImageAlphaPremultipliedLast|kCGBitmapFloatComponents 128 bits per pixel, 32 bits per component, kCGImageAlphaNoneSkipLast|kCGBitmapFloatComponents See Quartz 2D Programming Guide (available online) for more information. Why is it unsupported if it matches the 6th option? (32 bits per pixel, 10 bits per component, kCGImageAlphaNone|kCGImagePixelFormatRGBCIF10|kCGImageByteOrder16Little)
Replies
3
Boosts
0
Views
780
Activity
Jan ’25
Save UIImage with CATransform3D applied
I have a 3х3 Matrix which I need to apply to UIImage and save it in Documents folder. I successfully converted the 3x3 Matrix (represented as [[Double]]) to CATrasform3D and then I have broken my head with trying to figure out how to apply it to UIImage. The only property where I can I apply it is UIView(or UIImageView in case with working with UIImage) transform property. But it has nothing to do with UIImage itself. I can't save the UIImage from transformed the UIImageView with all the transformations. And all the CoreGraphic methods (like concatenate for CGContext) only work with affine transformations which not suits for me. Please give me a hint what direction I should look. Does Apple has native methods or I have to use 3rd party frameworks for this functionality?
Replies
1
Boosts
0
Views
777
Activity
Aug ’24
Crash in CAMediaTimingCopyRenderTiming
Hi Team, We are facing crash in CAMediaTimingCopyRenderTiming for production users. And we are unable to trace the crash. Below is the crash stack trace - Crashed: com.apple.main-thread 0 QuartzCore 0x14b9c CAMediaTimingCopyRenderTiming + 660 1 QuartzCore 0xfa9c -[CAAnimation _setCARenderAnimation:layer:] + 64 2 QuartzCore 0x146e4 -[CAAnimationGroup _copyRenderAnimationForLayer:] + 356 3 QuartzCore 0x12f3c CA::Layer::commit_animations(CA::Transaction*, double ()(CA::Layer, double, void*), void ()(CA::Layer, CA::Render::Animation*, void*), void ()(CA::Layer, __CFString const*, void*), CA::Render::TimingList* ()(CA::Layer, void*), void*) + 688 4 QuartzCore 0x277c invocation function for block in CA::Context::commit_transaction(CA::Transaction*, double, double*) + 176 5 QuartzCore 0x482bc CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 384 6 QuartzCore 0x48244 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 7 QuartzCore 0x48244 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 8 QuartzCore 0x48244 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 9 QuartzCore 0x48244 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 10 QuartzCore 0x48244 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 11 QuartzCore 0x48244 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 12 QuartzCore 0x48244 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 13 QuartzCore 0x48244 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 14 QuartzCore 0x48244 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 15 QuartzCore 0x48244 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 16 QuartzCore 0x2e078 CA::Context::commit_transaction(CA::Transaction*, double, double*) + 6224 17 QuartzCore 0x59dc0 CA::Transaction::commit() + 644 18 QuartzCore 0x44dbc CA::Transaction::flush_as_runloop_observer(bool) + 84 19 CoreFoundation 0x898e8 CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 32 20 CoreFoundation 0x1951c __CFRunLoopDoObservers + 552 21 CoreFoundation 0x75214 __CFRunLoopRun + 1004 22 CoreFoundation 0x79d20 CFRunLoopRunSpecific + 584 23 GraphicsServices 0x1998 GSEventRunModal + 160 24 UIKitCore 0x371448 -[UIApplication _run] + 868 25 UIKitCore 0x3710c0 UIApplicationMain + 312 26 SwiftUI 0x183c68 OUTLINED_FUNCTION_895 + 2184 27 SwiftUI 0xfdf1c block_copy_helper.1 + 452 28 SwiftUI 0xeaf6c OUTLINED_FUNCTION_901 + 2312 29 Evie Ring 0x2dd20c main + 10 (MovanoRingApp.swift:10) 30 ??? 0x1c7724344 (Missing)
Replies
1
Boosts
0
Views
586
Activity
Jul ’24
How would I go about turning a Quartz Composer composition into a standalone app?
The guide on how to make a QC composition a standalone app assumes I use an earlier version of Xcode (and retired). And Xcode, of course, has changed a lot since the past decade and the guides basically can't be used anymore.
Replies
0
Boosts
0
Views
770
Activity
Jun ’24
Crash in QuartzCore - CA::Render::Encoder::grow(unsigned long) + 288
Hi Team, some of our users are getting crash in QuartzCore. But we are not sure the exact reason for it. Can you please help us in it? App is crashing in production. Xcode version - 15.0 Platform - iOS Below is the crash stack trace. Crashed: com.apple.main-thread 0 libsystem_kernel.dylib 0xa974 __pthread_kill + 8 1 libsystem_pthread.dylib 0x60ec pthread_kill + 268 2 libsystem_c.dylib 0x75b80 abort + 180 3 QuartzCore 0x98ba8 CA::Render::Encoder::grow(unsigned long) + 288 4 QuartzCore 0x97e50 CA::Render::Vector::encode(CA::Render::Encoder*) const + 112 5 QuartzCore 0x10a76c CA::Render::KeyframeAnimation::encode(CA::Render::Encoder*) const + 68 6 QuartzCore 0x975ec CA::Render::Array::encode(CA::Render::Encoder*) const + 172 7 QuartzCore 0x75204 CA::Context::commit_animation(CA::Layer*, CA::Render::Animation*, void*) + 236 8 QuartzCore 0x72998 CA::Layer::commit_animations(CA::Transaction*, double ()(CA::Layer, double, void*), void ()(CA::Layer, CA::Render::Animation*, void*), void ()(CA::Layer, __CFString const*, void*), CA::Render::TimingList* ()(CA::Layer, void*), void*) + 956 9 QuartzCore 0x2b930 invocation function for block in CA::Context::commit_transaction(CA::Transaction*, double, double*) + 148 10 QuartzCore 0x2b838 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 368 11 QuartzCore 0x2b7c4 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 252 12 QuartzCore 0x2b7c4 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 252 13 QuartzCore 0x2b7c4 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 252 14 QuartzCore 0x2b7c4 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 252 15 QuartzCore 0x2b7c4 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 252 16 QuartzCore 0x2b7c4 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 252 17 QuartzCore 0x2b7c4 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 252 18 QuartzCore 0x2b7c4 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 252 19 QuartzCore 0x2b7c4 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 252 20 QuartzCore 0x2b7c4 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 252 21 QuartzCore 0x6f5b0 CA::Context::commit_transaction(CA::Transaction*, double, double*) + 11212 22 QuartzCore 0x661bc CA::Transaction::commit() + 648 23 QuartzCore 0x65e64 CA::Transaction::flush_as_runloop_observer(bool) + 88 24 CoreFoundation 0x35d3c CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 36 25 CoreFoundation 0x34738 __CFRunLoopDoObservers + 552 26 CoreFoundation 0x33e50 __CFRunLoopRun + 1028 27 CoreFoundation 0x33968 CFRunLoopRunSpecific + 608 28 GraphicsServices 0x34e0 GSEventRunModal + 164 29 UIKitCore 0x22aedc -[UIApplication _run] + 888 30 UIKitCore 0x22a518 UIApplicationMain + 340 31 SwiftUI 0x1033860 OUTLINED_FUNCTION_39 + 600 32 SwiftUI 0x10336a8 OUTLINED_FUNCTION_39 + 160 33 SwiftUI 0xc4f9fc get_witness_table 7SwiftUI4ViewRzlAA15ModifiedContentVyxAA30_EnvironmentKeyWritingModifierVySbGGAaBHPxAaBHD1__AgA0cI0HPyHCHCTm + 364 34 Evie Ring 0x324620 main + 10 (MovanoRingApp.swift:10) 35 ??? 0x1ad632d84 (Missing)
Replies
0
Boosts
0
Views
898
Activity
Apr ’24
How to run Quartz Composer on M1 iMac?
I really love Quartz Composer from Apple which is a quite old app, not updated for years. It works well on my 2015 mid MacBook Pro, but not on new M1 iMac. Does anyone know how to run this great app on my new machine? Thank you!
Replies
2
Boosts
0
Views
3.2k
Activity
Jan ’24
Create PDF file with Spot Colors
I am trying to generate a PDF file with certain components draw with Spot Colours. Spot colours are used for printing and I am not clear on how one would do that but I think that if I can create a custom ColorSpace with a specific name or a color that has a specific name - our printer looks for the name Spot1 and they use the colour green. Can anyone shed any light on how I might be able to do this. For reference I have attached two pdf files with two different spot colours in them. I need to be able to create similar using CGContext and CGPDFDocument. I can already generate the PDF documents using CMYK colors but don't know how I can create the equivalent "spot" colors. At the moment I am loading the page from these attached pdf files and scaling them to fill the page to get a background with the spot color. This works fine but I also need to generate text and lines using this same spot color and I am not clear how I could do that using the Core Graphics APIs. My guess is I need to create a custom ColorSpace with a single color and then use that color for drawing with. The only 'custom' option for creating a ColorSpace seems to be the CGColorSpace(propertyListPList:) constructor, however there does not appear to be any documentation on what needs to be in the property list to do so. Nor can I find any examples of that. Any pointers would be appreciated. Regards
Replies
1
Boosts
0
Views
1.1k
Activity
Dec ’23
Got error of PC register does not match crashing frame
the log of error thread is as following Thread 4 Crashed:: Dispatch queue: CA DispatchGroup 0 libwx_osx_cocoau_core-3.1.1.0.0.dylib 0x10f3707f0 wxMacCoreGraphicsBrushData::CalculateShadingValues(void*, double const*, double*) + 240 1 CoreGraphics 0x7ff80acda1ce CGFunctionEvaluate + 243 2 CoreGraphics 0x7ff80acda032 function_evaluate + 369 3 CoreGraphics 0x7ff80acd9758 ripc_AcquireFunction + 831 4 CoreGraphics 0x7ff80acd8934 ripc_DrawShading + 5841 5 CoreGraphics 0x7ff80b1e6e7a CG::DisplayListExecutor::drawShading(CG::DisplayListEntryShading const*) + 438 6 CoreGraphics 0x7ff80b2de843 CG::DisplayList::executeEntries(std::__1::__wrap_iter<std::__1::shared_ptr<CG::DisplayListEntry const>*>, std::__1::__wrap_iter<std::__1::shared_ptr<CG::DisplayListEntry const>*>, CGContextDelegate*, CGRenderingState*, CGGStack*, CGRect const*, __CFDictionary const*, bool) + 195 7 CoreGraphics 0x7ff80ad5cb03 CG::DisplayList::execute(CGContextDelegate*, CGRenderingState*, CGGStack*, CGRect const*, __CFDictionary const*) + 341 8 CoreGraphics 0x7ff80ad5c869 CGDisplayListDrawInContextDelegate + 617 9 AppKit 0x7ff80900769a -[NSViewBackingLayerContentLayer drawInContext:] + 57 10 QuartzCore 0x7ff80dd19293 CABackingStoreUpdate_ + 630 11 QuartzCore 0x7ff80dd77f2e invocation function for block in CA::Layer::display_() + 53 12 QuartzCore 0x7ff80dd182f2 -[CALayer _display] + 2253 13 QuartzCore 0x7ff80dd43d67 display_callback(void*, void*) + 97 14 QuartzCore 0x7ff80dd43ce6 CA::DispatchGroup::dispatch(bool) + 108 15 libdispatch.dylib 0x7ff80510d59a _dispatch_client_callout + 8 16 libdispatch.dylib 0x7ff805113668 _dispatch_lane_serial_drain + 816 17 libdispatch.dylib 0x7ff805114100 _dispatch_lane_invoke + 377 18 libdispatch.dylib 0x7ff80511daee _dispatch_root_queue_drain_deferred_wlh + 271 19 libdispatch.dylib 0x7ff80511d3fd _dispatch_workloop_worker_thread + 451 20 libsystem_pthread.dylib 0x7ff8052b1c47 _pthread_wqthread + 327 21 libsystem_pthread.dylib 0x7ff8052b0b97 start_wqthread + 15 Thread 4 crashed with X86 Thread State (64-bit): rax: 0x0000000000000000 rbx: 0x000000030ee7ea60 rcx: 0x0000600000a4df58 rdx: 0x000000030ee7ea60 rdi: 0x000060000237b9a8 rsi: 0x000000030ee7ea10 rbp: 0x000000030ee7ea00 rsp: 0x000000030ee7ea00 r8: 0xe000000000000002 r9: 0x1ffffffffffffffe r10: 0x000000008ee09001 r11: 0x0000000000000019 r12: 0x0000000000000001 r13: 0x0000000000000001 r14: 0x000060000237bdb0 r15: 0x000000030ee7ea10 rip: <unavailable> rfl: 0x0000000000000242 tmp0: 0x000000010fa69800 tmp1: 0x00007ff80acda1ce tmp2: 0x00007ff89da92500 Binary Images: 0x20606a000 - 0x206109fff dyld (*) <d5406f23-6967-39c4-beb5-6ae3293c7753> /usr/lib/dyld 0x10f2c9000 - 0x10f2d8fff libobjc-trampolines.dylib (*) <7e101877-a6ff-3331-99a3-4222cb254447> /usr/lib/libobjc-trampolines.dylib 0x10ebb0000 - 0x10ebc3fff tdsearch-x64.dylib (*) <1bd85264-ee0d-36f4-ab94-a6d81ec1bb0f> /Applications/BaKoMa TeX/*/tdsearch-x64.dylib 0x10f2fd000 - 0x10f7c1fff libwx_osx_cocoau_core-3.1.1.0.0.dylib (*) <0362fcaf-20bc-39e8-8a36-a8736662480e> /Applications/BaKoMa TeX/*/libwx_osx_cocoau_core-3.1.1.0.0.dylib 0x10ffb0000 - 0x1101a6fff libwx_baseu-3.1.1.0.0.dylib (*) <a0e6ac20-4be1-3f6d-810f-f116d5f29279> /Applications/BaKoMa TeX/*/libwx_baseu-3.1.1.0.0.dylib 0x10ecf2000 - 0x10ed6bfff libwx_osx_cocoau_aui-3.1.1.0.0.dylib (*) <97bc52cb-e328-361a-a7ea-58e1b7c04f58> /Applications/BaKoMa TeX/*/libwx_osx_cocoau_aui-3.1.1.0.0.dylib 0x10ef30000 - 0x10efc8fff libwx_osx_cocoau_html-3.1.1.0.0.dylib (*) <3abef03a-ea27-3b81-bdbe-136afe43eae2> /Applications/BaKoMa TeX/*/libwx_osx_cocoau_html-3.1.1.0.0.dylib 0x1104a8000 - 0x1105c4fff libwx_osx_cocoau_adv-3.1.1.0.0.dylib (*) <048f9971-9720-32ee-9b41-aa1224eba010> /Applications/BaKoMa TeX/*/libwx_osx_cocoau_adv-3.1.1.0.0.dylib 0x10ee4a000 - 0x10ee7cfff libwx_baseu_net-3.1.1.0.0.dylib (*) <4ef643bb-33ba-353e-8f1f-42e3cfd80259> /Applications/BaKoMa TeX/*/libwx_baseu_net-3.1.1.0.0.dylib 0x10ec63000 - 0x10ec7efff liblzma.5.dylib (*) <e4406e42-7bc4-3945-a1a4-e9b6874ef052> /usr/local/Cellar/xz/5.2.5/lib/liblzma.5.dylib 0x7ff7ffc5a000 - 0x7ff7ffc89fff runtime (*) <2c5acb8c-fbaf-31ab-aeb3-90905c3fa905> /usr/libexec/rosetta/runtime 0x10e235000 - 0x10e288fff libRosettaRuntime (*) <a61ec9e9-1174-3dc6-9cdb-0d31811f4850> /Library/Apple/*/libRosettaRuntime 0x104b78000 - 0x104d88fff texword (*) <feb2b054-bd1a-36a5-8803-605478982dc1> /Applications/BaKoMa TeX/*/texword 0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ??? 0x7ff805274000 - 0x7ff8052aeff7 libsystem_kernel.dylib (*) <4df0d732-7fc4-3200-8176-f1804c63f2c8> /usr/lib/system/libsystem_kernel.dylib 0x7ff8052af000 - 0x7ff8052bafff libsystem_pthread.dylib (*) <c64722b0-e96a-3fa5-96c3-b4beaf0c494a> /usr/lib/system/libsystem_pthread.dylib 0x7ff80dcf6000 - 0x7ff80e09dff9 com.apple.QuartzCore (1.11) <75bd9503-d1ab-32d2-bd5b-89ec89d3e8dd> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore 0x7ff8088c1000 - 0x7ff809cc6ffb com.apple.AppKit (6.9) <27fed5dd-d148-3238-bc95-1dac5dd57fa1> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit 0x7ff805314000 - 0x7ff8057acffc com.apple.CoreFoundation (6.9) <4d842118-bb65-3f01-9087-ff1a2e3ab0d5> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 0x7ff8100c5000 - 0x7ff810360ff4 com.apple.HIToolbox (2.1.1) <06bf0872-3b34-3c7b-ad5b-7a447d793405> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox 0x7ff80acad000 - 0x7ff80b53effc com.apple.CoreGraphics (2.0) <c709e588-6adf-33ad-b7c8-5dbe61c7694d> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics 0x7ff80510a000 - 0x7ff805150ffd libdispatch.dylib (*) <4472f1a5-1d47-3665-ac8d-7adb0e9d2d87> /usr/lib/system/libdispatch.dylib 0x7ff805154000 - 0x7ff8051dbfff libsystem_c.dylib (*) <83c7b73c-86fe-32f9-85dd-f46fa2c1315b> /usr/lib/system/libsystem_c.dylib
Replies
0
Boosts
1
Views
2.8k
Activity
Nov ’23
CGColorSpaceIsUncalibrated Crash
I'm attaching the crash log, hopefully someone can help me out. Thanks! crashlog.crash
Replies
0
Boosts
0
Views
746
Activity
Oct ’23
Bring Quartz Composer back
I wonder if anyone else misses Quartz Composer on the mac. It was a really powerful, native and free app for creatives, with a small but devoted user base, which would have only grown if Apple had shown any support. Upvote this post if you also agree Apple should bring support for Quartz Composer back.
Replies
12
Boosts
21
Views
4k
Activity
Jun ’23
QuartzCore CA::Render::Encoder::grow(unsigned long)
Getting crash on user side. not able to reproduce it on our side. Please check the crash log. Xcode version: 13.2.1 (13C100) plateform: iOS Crashed: com.apple.main-thread 0 libsystem_kernel.dylib 0x6bbc __pthread_kill + 8 1 libsystem_pthread.dylib 0xd854 pthread_kill + 208 2 libsystem_c.dylib 0x1f6ac abort + 124 3 QuartzCore 0xce57c CA::Render::Encoder::grow(unsigned long) + 236 4 QuartzCore 0xb179c CA::Render::Layer::encode(CA::Render::Encoder*) const + 104 5 QuartzCore 0xbcbb0 CA::Render::encode_set_object(CA::Render::Encoder*, unsigned long, unsigned int, CA::Render::Object*, unsigned int) + 192 6 QuartzCore 0x47138 invocation function for block in CA::Context::commit_transaction(CA::Transaction*, double, double*) + 280 7 QuartzCore 0x348f4 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 388 8 QuartzCore 0x34878 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 9 QuartzCore 0x34878 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 10 QuartzCore 0x34878 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 11 QuartzCore 0x34878 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 12 QuartzCore 0x457fc CA::Context::commit_transaction(CA::Transaction*, double, double*) + 6204 13 QuartzCore 0x4cc64 CA::Transaction::commit() + 708 14 UIKitCore 0x18a3f4 _UIApplicationFlushRunLoopCATransactionIfTooLate + 80 15 UIKitCore 0x15bb24 __processEventQueue + 7292 16 UIKitCore 0x160c54 __eventFetcherSourceCallback + 168 17 CoreFoundation 0xb34ec CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 24 18 CoreFoundation 0xc361c __CFRunLoopDoSource0 + 204 19 CoreFoundation 0x5880 __CFRunLoopDoSources0 + 348 20 CoreFoundation 0xaef8 __CFRunLoopRun + 768 21 CoreFoundation 0x1e240 CFRunLoopRunSpecific + 572 22 GraphicsServices 0x1988 GSEventRunModal + 160 23 UIKitCore 0x4e541c -[UIApplication _run] + 1080 24 UIKitCore 0x27eb88 UIApplicationMain + 336 25 TCPApp 0xa34528 main + 39 (AppDelegate.swift:39) 26 ??? 0x104bd83d0 (Missing)
Replies
2
Boosts
1
Views
2.3k
Activity
May ’23
iOS 12 Crashed: com.apple.coremedia.player.async.0x2856cf180
my app crashed on iOS 12 only. this is the message, anyone help me , thanks.Crashed: com.apple.coremedia.player.async.0x2856cf1800 QuartzCore 0x1beb61578 X::Ref&lt;CA::Shape&gt;::operator=(CA::Shape*) + 201 QuartzCore 0x1beb61434 CABackingStoreGetFrontTexture(CABackingStore*, CGColorSpace*) + 3482 QuartzCore 0x1beb612a8 CABackingStoreRetainFrontTexture + 483 QuartzCore 0x1bec88e54 -[CALayer(CALayerPrivate) _copyRenderLayer:layerFlags:commitFlags:] + 6764 QuartzCore 0x1bec8e9e4 CA::Layer::commit_if_needed(CA::Transaction*, void (*)(CA::Layer*, unsigned int, unsigned int, void*), void*) + 4485 QuartzCore 0x1bec8e928 CA::Layer::commit_if_needed(CA::Transaction*, void (*)(CA::Layer*, unsigned int, unsigned int, void*), void*) + 2606 QuartzCore 0x1bec8e928 CA::Layer::commit_if_needed(CA::Transaction*, void (*)(CA::Layer*, unsigned int, unsigned int, void*), void*) + 2607 QuartzCore 0x1bec8e928 CA::Layer::commit_if_needed(CA::Transaction*, void (*)(CA::Layer*, unsigned int, unsigned int, void*), void*) + 2608 QuartzCore 0x1bec8e928 CA::Layer::commit_if_needed(CA::Transaction*, void (*)(CA::Layer*, unsigned int, unsigned int, void*), void*) + 2609 QuartzCore 0x1bec8e928 CA::Layer::commit_if_needed(CA::Transaction*, void (*)(CA::Layer*, unsigned int, unsigned int, void*), void*) + 26010 QuartzCore 0x1bec8e928 CA::Layer::commit_if_needed(CA::Transaction*, void (*)(CA::Layer*, unsigned int, unsigned int, void*), void*) + 26011 QuartzCore 0x1bec8e928 CA::Layer::commit_if_needed(CA::Transaction*, void (*)(CA::Layer*, unsigned int, unsigned int, void*), void*) + 26012 QuartzCore 0x1bec8e928 CA::Layer::commit_if_needed(CA::Transaction*, void (*)(CA::Layer*, unsigned int, unsigned int, void*), void*) + 26013 QuartzCore 0x1bebe2528 CA::Context::commit_transaction(CA::Transaction*) + 324014 QuartzCore 0x1bec102f4 CA::Transaction::commit() + 60815 MediaToolbox 0x1bf1012b0 remoteXPCPlayer_setClientVideoLayerArray + 128416 MediaToolbox 0x1bf100548 remoteXPCPlayer_SetProperty + 34017 MediaToolbox 0x1bf0675dc playerasync_runOneCommand + 187618 MediaToolbox 0x1bf06a380 playerasync_runAsynchronousCommandOnQueue + 17219 libdispatch.dylib 0x1ba0d4484 _dispatch_client_callout + 1620 libdispatch.dylib 0x1ba0aefb0 _dispatch_lane_serial_drain$VARIANT$armv81 + 54821 libdispatch.dylib 0x1ba0afb2c _dispatch_lane_invoke$VARIANT$armv81 + 46822 libdispatch.dylib 0x1ba0b6afc _dispatch_root_queue_drain + 34423 libdispatch.dylib 0x1ba0b68a8 _dispatch_worker_thread + 27624 libsystem_pthread.dylib 0x1ba2b52fc _pthread_body + 12825 libsystem_pthread.dylib 0x1ba2b525c _pthread_start + 4826 libsystem_pthread.dylib 0x1ba2b8d08 thread_start + 4the detail message here: http://crashes.to/s/5390fe23bcc
Replies
13
Boosts
0
Views
10k
Activity
May ’23