Hi there, when attempting to run sketchtool on the command line I’m getting a bus error. It seems to occur solely when opening files.
This is the command and output:
/Applications/Sketch.app/Contents/MacOS % ./sketchtool list pages /Users/ryanconnolly/Downloads/sketchfile.sketch
objc[26582]: Class MSAssetCollection is implemented in both /System/Library/PrivateFrameworks/CoreMediaStream.framework/Versions/A/CoreMediaStream (0x1e72df3d0) and /Applications/Sketch.app/Contents/Frameworks/SketchModel.framework/Versions/A/SketchModel (0x104675fa0). One of the two will be used. Which one is undefined.
zsh: bus error ./sketchtool list pages /Users/ryanconnolly/Downloads/sketchfile.sketch
I ran the command in LLDB and recieved a pretty lengthy backtrace. Here are the first few frames:
* frame #0: 0x000000000bad4007
frame #1: 0x000000019ad05998 ImageIO`PNGReadPlugin::InitializePluginData(IIOImageReadSession*, IIODictionary*, IIODictionary*, CGImageMetadata*, CGColorSpace**, ReadPluginData&, PNGPluginData&, __CFDictionary*) + 820
frame #2: 0x000000019acfdda4 ImageIO`IIOReadPlugin::callInitialize() + 388
frame #3: 0x000000019acfdb7c ImageIO`IIO_Reader::initImageAtOffset(CGImagePlugin*, unsigned long, unsigned long, unsigned long) + 124
frame #4: 0x000000019acfb340 ImageIO`IIOImageSource::makeImagePlus(unsigned long, IIODictionary*) + 808
frame #5: 0x000000019ad07bb4 ImageIO`IIOImageSource::createImageAtIndex(unsigned long, IIODictionary*) + 100
frame #6: 0x000000019ad078a0 ImageIO`CGImageSourceCreateImageAtIndex + 336
frame #7: 0x00000001021d3d80 SketchModel`MSImageDataCreateCGImageFromData + 88
frame #8: 0x00000001021d2e28 SketchModel`-[MSImageData initWithData:sha:] + 132
frame #9: 0x00000001021d4458 SketchModel`+[MSImageData decodeReferenceFromJSONZipArchive:withReference:] + 272
frame #10: 0x000000010220b1f4 SketchModel`-[MSJSONFileReference initWithJSONDecoder:] + 200
frame #11: 0x0000000100937760 BCFoundation`-[BCJSONDecoder decodeDictionary:] + 360
frame #12: 0x00000001009379d8 BCFoundation`-[BCJSONDecoder decodeObject:] + 68
frame #13: 0x0000000100936e8c BCFoundation`-[BCJSONDecoder decodeObjectForKey:] + 104
frame #14: 0x000000010220a3f0 SketchModel`-[MSJSONUnarchiver decodeObjectOfClasses:forKey:] + 140
frame #15: 0x000000010220a334 SketchModel`-[MSJSONUnarchiver decodeObjectOfClass:forKey:] + 84
frame #16: 0x000000010213dcc8 SketchModel`$s11SketchModel23_MSImmutableBitmapLayerC16decodeProperties4withySo16MSBaseUnarchiverC_tF + 336
frame #17: 0x000000010213deac SketchModel`___lldb_unnamed_symbol36361 + 52
frame #18: 0x0000000102264984 SketchModel`-[MSImmutableModelObject decodePropertiesPreservingUnknownsWithUnarchiver:] + 44
frame #19: 0x0000000102264f34 SketchModel`__69-[MSImmutableModelObject initWithUnarchiver:migratingFrom:toVersion:]_block_invoke + 28
frame #20: 0x00000001022647b0 SketchModel`-[MSImmutableModelObject initWithUnarchiver:decodeBlock:] + 124
frame #21: 0x0000000102264920 SketchModel`-[MSImmutableModelObject initWithUnarchiver:migratingFrom:toVersion:] + 136
frame #22: 0x00000001022505a4 SketchModel`-[MSBaseUnarchiver instanciateObject:] + 212
frame #23: 0x000000010220ae80 SketchModel`-[NSObject(BCJSONDecoding) initWithJSONDecoder:] + 52
frame #24: 0x0000000100937760 BCFoundation`-[BCJSONDecoder decodeDictionary:] + 360
frame #25: 0x00000001009379d8 BCFoundation`-[BCJSONDecoder decodeObject:] + 68
frame #26: 0x0000000100919990 BCFoundation`-[NSArray(BCFoundation) compactMap:] + 216
frame #27: 0x0000000100937980 BCFoundation`-[BCJSONDecoder decodeArray:] + 76
frame #28: 0x0000000100937a0c BCFoundation`-[BCJSONDecoder decodeObject:] + 120
frame #29: 0x0000000100936e8c BCFoundation`-[BCJSONDecoder decodeObjectForKey:] + 104
frame #30: 0x000000010220a3f0 SketchModel`-[MSJSONUnarchiver decodeObjectOfClasses:forKey:] + 140
frame #31: 0x000000010227ca80 SketchModel`-[_MSImmutableLayerGroup decodePropertiesWithUnarchiver:] + 380
frame #32: 0x0000000102264984 SketchModel`-[MSImmutableModelObject decodePropertiesPreservingUnknownsWithUnarchiver:] + 44
frame #33: 0x0000000102264f34 SketchModel`__69-[MSImmutableModelObject initWithUnarchiver:migratingFrom:toVersion:]_block_invoke + 28
frame #34: 0x00000001022647b0 SketchModel`-[MSImmutableModelObject initWithUnarchiver:decodeBlock:] + 124
frame #35: 0x0000000102264920 SketchModel`-[MSImmutableModelObject initWithUnarchiver:migratingFrom:toVersion:] + 136
frame #36: 0x00000001022505a4 SketchModel`-[MSBaseUnarchiver instanciateObject:] + 212
frame #37: 0x000000010220ae80 SketchModel`-[NSObject(BCJSONDecoding) initWithJSONDecoder:] + 52
frame #38: 0x0000000100937760 BCFoundation`-[BCJSONDecoder decodeDictionary:] + 360
frame #39: 0x00000001009379d8 BCFoundation`-[BCJSONDecoder decodeObject:] + 68
frame #40: 0x0000000100919990 BCFoundation`-[NSArray(BCFoundation) compactMap:] + 216
frame #41: 0x0000000100937980 BCFoundation`-[BCJSONDecoder decodeArray:] + 76
frame #42: 0x0000000100937a0c BCFoundation`-[BCJSONDecoder decodeObject:] + 120
frame #43: 0x0000000100936e8c BCFoundation`-[BCJSONDecoder decodeObjectForKey:] + 104
frame #44: 0x000000010220a3f0 SketchModel`-[MSJSONUnarchiver decodeObjectOfClasses:forKey:] + 140
frame #45: 0x000000010227ca80 SketchModel`-[_MSImmutableLayerGroup decodePropertiesWithUnarchiver:] + 380
frame #46: 0x0000000102264984 SketchModel`-[MSImmutableModelObject decodePropertiesPreservingUnknownsWithUnarchiver:] + 44
frame #47: 0x0000000102264f34 SketchModel`__69-[MSImmutableModelObject initWithUnarchiver:migratingFrom:toVersion:]_block_invoke + 28
frame #48: 0x00000001022647b0 SketchModel`-[MSImmutableModelObject initWithUnarchiver:decodeBlock:] + 124
frame #49: 0x0000000102264920 SketchModel`-[MSImmutableModelObject initWithUnarchiver:migratingFrom:toVersion:] + 136
I’m not sure if the above MSAssetCollection warning is related, but have included it anyway.
I’m using the trial version, not sure if that makes a difference.
Operating system: Sonoma 14.1.2
Any help is appreciated.
Thanks