Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MTLDebugRenderCommandEncoder setRenderPipelineState:]:1580: failed assertion #63

Open
myh6 opened this issue Oct 18, 2022 · 0 comments

Comments

@myh6
Copy link

myh6 commented Oct 18, 2022

Hello there. I encountered this issue when I'm trying to call getCroppedSignature(). It didn't happen all the time but when it did, the app crashed (signal SIGBART). Compiler showed error in PencilKitSignatureView.swift, open func getCroppedSignature(), line 70.
Detailed information in console:
2022-10-18 14:09:29.706342+0800 XXXXXXXX[793:258910] [Unknown process name] CGBitmapContextInfoCreate: unable to allocate 84965440 bytes for bitmap data
-[MTLDebugRenderCommandEncoder setRenderPipelineState:]:1580: failed assertion Set Render Pipeline State Validation For color attachment 0, the renderPipelineState pixelFormat must be MTLPixelFormatInvalid, as no texture is set. the pipelineState's per sample imageBlock usage(10) is greater than the encoder's perSample imageBlock usage(6) ' dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib -[MTLDebugRenderCommandEncoder setRenderPipelineState:]:1580: failed assertion Set Render Pipeline State Validation
For color attachment 0, the renderPipelineState pixelFormat must be MTLPixelFormatInvalid, as no texture is set.
the pipelineState's per sample imageBlock usage(10) is greater than the encoder's perSample imageBlock usage(6)
I couldn't find any useful information online. Is there anyone who can help me with this issue??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant