需要兼容一下 Xcode 15 和 iOS 17
LisonFan opened this issue · comments
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UIGraphicsBeginImageContext() failed to allocate CGBitampContext: size={0, 0}, scale=3.000000, bitmapInfo=0x2002. Use UIGraphicsImageRenderer to avoid this assert.'
使用 UIGraphicsBeginImageContext
生成图片时,size
不能输入 0,0
了
好的,我尽快处理一下
+1,一用LookIn刷新到一半就崩溃,尽快适配一下吧
![截屏2023-09-21 00 14 40](https://private-user-images.githubusercontent.com/15059475/269350935-c4baa720-874f-4061-8bc3-cbad10336466.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkwNDE4NTAsIm5iZiI6MTcxOTA0MTU1MCwicGF0aCI6Ii8xNTA1OTQ3NS8yNjkzNTA5MzUtYzRiYWE3MjAtODc0Zi00MDYxLThiYzMtY2JhZDEwMzM2NDY2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIyVDA3MzIzMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWEzYmNjZTJjNzhiMDIxZDZjZTNlMTk3MzI2NmNiNGFmYzdmYzJhYjc0MDczMzFiODY1MjhiNjY1YTNkYjJmMmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.MPROrduugVPrBu6wQX_XWNh2X5iyNlqWllxy6hEmIcw)
@WFlame314 @LisonFan Crash 的堆栈是上图这个不?
刚刚发了 LookinServer v1.2.1,应该修复了,你们试试
@WFlame314 这。。。这么奇怪吗?理论上应该可以被上面的 if (pixelWidth <= 0 || pixelHeight <= 0) { 给拦住才对呀
可能是这个 CALayer 应用了一个 transform 导致 frame 和 bounds 不一样,我晚上有时间时加个额外的保护…
发了 1.2.2,应该彻底修了这个,试试。