Post by smolaghi on Dec 25, 2022 13:22:10 GMT -5
Hi:)
I recently started making my own CAS cc and today while trying to upload a texture image on S4S I got an error. The actual error redirected me to the error reports page, but I couldn't seem to post there (probably because I still don't properly know how to use the website, lol). I wanted to ask what I should do and where I should post what I think is less of a software error and more of me making a mistake. I am a Mac user running Apple Blossom, this is the error I got:
Sims 4 Studio 1.3.4.2 (Apple Blossom)
System.Exception: Could not initialize an instance of the type 'CoreGraphics.CGBitmapContext': handle is null.
It is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false.
at ObjCRuntime.DisposableObject.InitializeHandle (System.IntPtr handle, System.Boolean verify) [0x00038] in <e4522fda950a42e1a61f97b36f071593>:0
at ObjCRuntime.DisposableObject..ctor (System.IntPtr handle, System.Boolean owns, System.Boolean verify) [0x00008] in <e4522fda950a42e1a61f97b36f071593>:0
at CoreFoundation.NativeObject..ctor (System.IntPtr handle, System.Boolean owns, System.Boolean verify) [0x00000] in <e4522fda950a42e1a61f97b36f071593>:0
at CoreFoundation.NativeObject..ctor (System.IntPtr handle, System.Boolean owns) [0x00000] in <e4522fda950a42e1a61f97b36f071593>:0
at CoreGraphics.CGContext..ctor (System.IntPtr handle, System.Boolean owns) [0x00000] in <e4522fda950a42e1a61f97b36f071593>:0
at CoreGraphics.CGBitmapContext..ctor (System.Byte[] data, System.nint width, System.nint height, System.nint bitsPerComponent, System.nint bytesPerRow, CoreGraphics.CGColorSpace colorSpace, CoreGraphics.CGImageAlphaInfo bitmapInfo) [0x00013] in <e4522fda950a42e1a61f97b36f071593>:0
at S4Studio.MacBitmap.ResizeCoreGraphics (System.Int32 width, System.Int32 height) [0x0002b] in <6f064ec3ebe048448397ea60b2ecded2>:0
at S4Studio.MacBitmap.Resize (System.Int32 width, System.Int32 height) [0x00000] in <6f064ec3ebe048448397ea60b2ecded2>:0
at S4Studio.AMDCompress.CompressImage (S4Studio.IBitmap bmp, System.Boolean requiresAlpha, System.Boolean uncompressed) [0x00200] in <6f064ec3ebe048448397ea60b2ecded2>:0
at S4Studio.TC.ConvertData (System.String src_ext, System.String dest_ext, System.Byte[] convert_d, System.Boolean requiresAlpha) [0x000c2] in <6f064ec3ebe048448397ea60b2ecded2>:0
at S4Studio.TC.ConvertData (System.String filename, System.String dest_ext, System.Boolean requiresAlpha) [0x00026] in <6f064ec3ebe048448397ea60b2ecded2>:0
at S4Studio.ViewModels.Generic.Sims4SwatchTextureBase.Import (System.String file) [0x00012] in <6f064ec3ebe048448397ea60b2ecded2>:0
at S4Studio.ViewModels.CAS.CASSwatchTexture.Import (System.String file) [0x00028] in <6f064ec3ebe048448397ea60b2ecded2>:0
at S4Studio.ViewModels.Generic.Sims4SwatchContent+<>c__DisplayClass66_0.<ExecuteImportTexture>b__0 () [0x00011] in <6f064ec3ebe048448397ea60b2ecded2>:0
at S4S.UI.Core.S4SWindow+<>c__DisplayClass11_0.<BeginLoading>b__1 () [0x00014] in <6f064ec3ebe048448397ea60b2ecded2>:0
I recently started making my own CAS cc and today while trying to upload a texture image on S4S I got an error. The actual error redirected me to the error reports page, but I couldn't seem to post there (probably because I still don't properly know how to use the website, lol). I wanted to ask what I should do and where I should post what I think is less of a software error and more of me making a mistake. I am a Mac user running Apple Blossom, this is the error I got:
Sims 4 Studio 1.3.4.2 (Apple Blossom)
System.Exception: Could not initialize an instance of the type 'CoreGraphics.CGBitmapContext': handle is null.
It is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false.
at ObjCRuntime.DisposableObject.InitializeHandle (System.IntPtr handle, System.Boolean verify) [0x00038] in <e4522fda950a42e1a61f97b36f071593>:0
at ObjCRuntime.DisposableObject..ctor (System.IntPtr handle, System.Boolean owns, System.Boolean verify) [0x00008] in <e4522fda950a42e1a61f97b36f071593>:0
at CoreFoundation.NativeObject..ctor (System.IntPtr handle, System.Boolean owns, System.Boolean verify) [0x00000] in <e4522fda950a42e1a61f97b36f071593>:0
at CoreFoundation.NativeObject..ctor (System.IntPtr handle, System.Boolean owns) [0x00000] in <e4522fda950a42e1a61f97b36f071593>:0
at CoreGraphics.CGContext..ctor (System.IntPtr handle, System.Boolean owns) [0x00000] in <e4522fda950a42e1a61f97b36f071593>:0
at CoreGraphics.CGBitmapContext..ctor (System.Byte[] data, System.nint width, System.nint height, System.nint bitsPerComponent, System.nint bytesPerRow, CoreGraphics.CGColorSpace colorSpace, CoreGraphics.CGImageAlphaInfo bitmapInfo) [0x00013] in <e4522fda950a42e1a61f97b36f071593>:0
at S4Studio.MacBitmap.ResizeCoreGraphics (System.Int32 width, System.Int32 height) [0x0002b] in <6f064ec3ebe048448397ea60b2ecded2>:0
at S4Studio.MacBitmap.Resize (System.Int32 width, System.Int32 height) [0x00000] in <6f064ec3ebe048448397ea60b2ecded2>:0
at S4Studio.AMDCompress.CompressImage (S4Studio.IBitmap bmp, System.Boolean requiresAlpha, System.Boolean uncompressed) [0x00200] in <6f064ec3ebe048448397ea60b2ecded2>:0
at S4Studio.TC.ConvertData (System.String src_ext, System.String dest_ext, System.Byte[] convert_d, System.Boolean requiresAlpha) [0x000c2] in <6f064ec3ebe048448397ea60b2ecded2>:0
at S4Studio.TC.ConvertData (System.String filename, System.String dest_ext, System.Boolean requiresAlpha) [0x00026] in <6f064ec3ebe048448397ea60b2ecded2>:0
at S4Studio.ViewModels.Generic.Sims4SwatchTextureBase.Import (System.String file) [0x00012] in <6f064ec3ebe048448397ea60b2ecded2>:0
at S4Studio.ViewModels.CAS.CASSwatchTexture.Import (System.String file) [0x00028] in <6f064ec3ebe048448397ea60b2ecded2>:0
at S4Studio.ViewModels.Generic.Sims4SwatchContent+<>c__DisplayClass66_0.<ExecuteImportTexture>b__0 () [0x00011] in <6f064ec3ebe048448397ea60b2ecded2>:0
at S4S.UI.Core.S4SWindow+<>c__DisplayClass11_0.<BeginLoading>b__1 () [0x00014] in <6f064ec3ebe048448397ea60b2ecded2>:0