Post

Replies

Boosts

Views

Activity

newLibraryWithSource Crash when bundle path containing chinese characters
Hey, recently our app need adapt to new m1 MacBook and Big Sur. It crashed on newLibraryWithSource of Metal.framework when recompiling our app. I created a minimal demo - https://github.com/FinleyPan/Metal_newLibraryWithSource_Test originated from an official metal example - https://developer.apple.com/documentation/metal/using_a_render_pipeline_to_render_primitives?language=objc to reproduce this problem. To trigger this crash a MacBook(m1 or intel cpu) with Big Sur is needed, besides there are three steps to follow after cloning my demo: open project with xcode, switch target to HelloTriangle-macOS. open File-Project Settings-Advanced, change Build Location to what containing Chinese characters. open Product-Scheme-Edit Scheme, check Address Sanitizer for HelloTriangle-macOS target on Diagnostics tab. Then press command+R to launch the project, this crash will appear. I find this bug on most MacBook with Big Sur of both m1 and intel cpu, while it seemed not appear on iMac Big Sur
10
0
1.5k
Feb ’21