Closed asciiz closed 10 years ago
Yes, I just came across the issue myself. Clearly a bug. I am fixing it now.
I assume this is for Ensembles 2. I just pushed a fix to the master. If you have a source code license, I can give you access. Otherwise I can build you a library. Maybe best to email info@mentalfaculty.com
I got the following exception when trying to sync. The entity contains an image attribute (NSImage, transformable).
* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Invalid type in JSON write (NSImage)' * First throw call stack: ( 0 CoreFoundation 0x00007fff96f18b06 exceptionPreprocess + 198 1 libobjc.A.dylib 0x00007fff928043f0 objc_exception_throw + 43 2 CoreFoundation 0x00007fff96f188dc +[NSException raise:format:] + 204 3 Foundation 0x00007fff8ea014a0 writeJSONValue + 710 4 Foundation 0x00007fff8ea05481 writeJSONObject_block_invoke_0 + 254 5 CoreFoundation 0x00007fff96f048a9 NSDictionaryEnumerate + 1081 6 Foundation 0x00007fff8ea050a3 _writeJSONObject + 475 7 Foundation 0x00007fff8ea013e6 _writeJSONValue + 524 8 Foundation 0x00007fff8ea05338 ___writeJSONArray_block_invoke_0 + 130 9 CoreFoundation 0x00007fff96f114a6 NSArrayEnumerate + 582 10 Foundation 0x00007fff8ea0524d _writeJSONArray + 277 11 Foundation 0x00007fff8ea0142a _writeJSONValue + 592 12 Foundation 0x00007fff8ea05481 _writeJSONObject_block_invoke_0 + 254 13 CoreFoundation 0x00007fff96f048a9 NSDictionaryEnumerate + 1081 14 Foundation 0x00007fff8ea050a3 _writeJSONObject + 475 15 Foundation 0x00007fff8ea013e6 _writeJSONValue + 524 16 Foundation 0x00007fff8ea05338 _writeJSONArray_block_invoke_0 + 130 17 CoreFoundation 0x00007fff96f114a6 NSArrayEnumerate + 582 18 Foundation 0x00007fff8ea0524d _writeJSONArray + 277 19 Foundation 0x00007fff8ea0142a _writeJSONValue + 592 20 Foundation 0x00007fff8ea05481 _writeJSONObject_block_invoke_0 + 254 21 CoreFoundation 0x00007fff96f048a9 NSDictionaryEnumerate + 1081 22 Foundation 0x00007fff8ea050a3 _writeJSONObject + 475 23 Foundation 0x00007fff8ea013e6 _writeJSONValue + 524 24 Foundation 0x00007fff8ea05481 _writeJSONObject_block_invoke_0 + 254 25 CoreFoundation 0x00007fff96f048a9 NSDictionaryEnumerate + 1081 26 Foundation 0x00007fff8ea050a3 _writeJSONObject + 475 27 Foundation 0x00007fff8ea013e6 _writeJSONValue + 524 28 Foundation 0x00007fff8ea0155d -[_NSJSONWriter writeRootObject:toStream:options:error:] + 153 29 Foundation 0x00007fff8ea04533 +[NSJSONSerialization writeJSONObject:toStream:options:error:] + 429 30 Ensembles 0x0000000100348121 -[CDEJSONEventExport saveToFile:] + 192 31 Ensembles 0x0000000100348e04 -[CDEJSONEventExport completeMigrationSuccessfully:] + 53 32 Ensembles 0x000000010036ef9c 22-[CDEEventExport main]_block_invoke103 + 161 33 CoreData 0x00007fff984814dc developerSubmittedBlockToNSManagedObjectContextPerform + 92 34 libdispatch.dylib 0x00007fff9932b0b6 _dispatch_client_callout + 8 35 libdispatch.dylib 0x00007fff9932c723 _dispatch_barrier_sync_f_invoke + 39 36 CoreData 0x00007fff98481457 -[NSManagedObjectContext performBlockAndWait:] + 183 37 Ensembles 0x000000010036e3cb -[CDEEventExport main] + 1835 38 Foundation 0x00007fff8e8af8f6 -[NSOperationInternal start] + 684 39 Foundation 0x00007fff8e8b70c1 __block_global_6 + 129 40 libdispatch.dylib 0x00007fff9932ef01 _dispatch_call_block_and_release + 15 41 libdispatch.dylib 0x00007fff9932b0b6 _dispatch_client_callout + 8 42 libdispatch.dylib 0x00007fff9932c1fa _dispatch_worker_thread2 + 304 43 libsystem_c.dylib 0x00007fff9941dcdb _pthread_wqthread + 404 44 libsystem_c.dylib 0x00007fff99408191 start_wqthread + 13