finestructure / Persequor

1 stars 0 forks source link

File overwrite causes crash? #23

Closed finestructure closed 13 years ago

finestructure commented 13 years ago

Maybe related to overwrite:

2011-10-18 17:03:20.670 Persequor[57974:60b] -[NSSQLCore url]: unrecognized selector sent to instance 0x402823e80 2011-10-18 17:03:20.670 Persequor[57974:60b] An uncaught exception was raised 2011-10-18 17:03:20.670 Persequor[57974:60b] -[NSSQLCore url]: unrecognized selector sent to instance 0x402823e80 2011-10-18 17:03:20.675 Persequor[57974:60b](0 CoreFoundation 0x00007fff8b961286 exceptionPreprocess + 198 1 libobjc.A.dylib 0x00007fff8cdecd5e objc_exception_throw + 43 2 CoreFoundation 0x00007fff8b9ed4ce -[NSObject doesNotRecognizeSelector:] + 190 3 CoreFoundation 0x00007fff8b94e133 __forwarding + 371 4 CoreFoundation 0x00007fff8b94df48 _CF_forwarding_prep_0 + 232 5 AppKit 0x00007fff879c682e -[NSPersistentDocument writeToURL:ofType:forSaveOperation:originalContentsURL:error:] + 3118 6 AppKit 0x00007fff879c57ed -[NSPersistentDocument writeSafelyToURL:ofType:forSaveOperation:error:] + 813 7 AppKit 0x00007fff87889ea7 -[NSDocument saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke_8 + 329 8 AppKit 0x00007fff87889327 __-[NSDocument saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke_14 + 451 9 AppKit 0x00007fff87889c80 -[NSDocument saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke_7 + 1313 10 Foundation 0x00007fff8b586a8d -[NSFileCoordinator%28NSPrivate%29 _invokeAccessor:orDont:thenRelinquishAccessClaimForID:] + 207 11 Foundation 0x00007fff8b589e65 -[NSFileCoordinator%28NSPrivate%29 _coordinateReadingItemAtURL:options:writingItemAtURL:options:error:byAccessor:] + 829 12 AppKit 0x00007fff8787f25c -[NSDocument _fileCoordinator:coordinateReadingContentsAndWritingItemAtURL:byAccessor:] + 248 13 AppKit 0x00007fff8786d702 -[NSDocument saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke_1 + 845 14 AppKit 0x00007fff87868898 -[NSDocument continueFileAccessUsingBlock:] + 227 15 AppKit 0x00007fff87868cad __-[NSDocument performAsynchronousFileAccessUsingBlock:]_block_invoke_6 + 94 16 AppKit 0x00007fff87899333 -[NSDocumentController%28NSInternal%29 _onMainThreadInvokeWorker:]_block_invoke_3 + 492 17 libdispatch.dylib 0x00007fff9142c8ba _dispatch_call_block_and_release + 18 18 libdispatch.dylib 0x00007fff9142e72a _dispatch_main_queue_callback_4CF + 308 19 CoreFoundation 0x00007fff8b8f64dc CFRunLoopRun + 1724 20 CoreFoundation 0x00007fff8b8f5ae6 CFRunLoopRunSpecific + 230 21 HIToolbox 0x00007fff8d0f93d3 RunCurrentEventLoopInMode + 277 22 HIToolbox 0x00007fff8d10063d ReceiveNextEventCommon + 355 23 HIToolbox 0x00007fff8d1004ca BlockUntilNextEventMatchingListInMode + 62 24 AppKit 0x00007fff874ca3f1 _DPSNextEvent + 659 25 AppKit 0x00007fff874c9cf5 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 135 26 AppKit 0x00007fff874c662d -[NSApplication run] + 470 27 AppKit 0x00007fff8774580c NSApplicationMain + 867 28 ??? 0x000000010272061d 0x0 + 4335994397 29 libmacruby.dylib 0x000000010013f9c9 rb_vm_dispatch + 1081 30 ??? 0x0000000102700b64 0x0 + 4335864676 31 ??? 0x00000001027004e9 0x0 + 4335863017 32 libmacruby.dylib 0x000000010015a756 rb_vm_run + 470 33 libmacruby.dylib 0x0000000100030cf0 ruby_run_node + 80 34 libmacruby.dylib 0x0000000100151181 macruby_main + 385 35 Persequor 0x0000000100000f2c main + 44 36 Persequor 0x0000000100000ef4 start + 52) 2011-10-18 17:03:20.677 Persequor[57974:60b] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSSQLCore url]: unrecognized selector sent to instance 0x402823e80' * First throw call stack: ( 0 CoreFoundation 0x00007fff8b961286 exceptionPreprocess + 198 1 libobjc.A.dylib 0x00007fff8cdecd5e objc_exception_throw + 43 2 CoreFoundation 0x00007fff8b9ed4ce -[NSObject doesNotRecognizeSelector:] + 190 3 CoreFoundation 0x00007fff8b94e133 __forwarding + 371 4 CoreFoundation 0x00007fff8b94df48 _CF_forwarding_prep_0 + 232 5 AppKit 0x00007fff879c682e -[NSPersistentDocument writeToURL:ofType:forSaveOperation:originalContentsURL:error:] + 3118 6 AppKit 0x00007fff879c57ed -[NSPersistentDocument writeSafelyToURL:ofType:forSaveOperation:error:] + 813 7 AppKit 0x00007fff87889ea7 -[NSDocument saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke_8 + 329 8 AppKit 0x00007fff87889327 -[NSDocument saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke_14 + 451 9 AppKit 0x00007fff87889c80 -[NSDocument saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke_7 + 1313 10 Foundation 0x00007fff8b586a8d -[NSFileCoordinator(NSPrivate) _invokeAccessor:orDont:thenRelinquishAccessClaimForID:] + 207 11 Foundation 0x00007fff8b589e65 -[NSFileCoordinator(NSPrivate) _coordinateReadingItemAtURL:options:writingItemAtURL:options:error:byAccessor:] + 829 12 AppKit 0x00007fff8787f25c -[NSDocument _fileCoordinator:coordinateReadingContentsAndWritingItemAtURL:byAccessor:] + 248 13 AppKit 0x00007fff8786d702 -[NSDocument saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke_1 + 845 14 AppKit 0x00007fff87868898 -[NSDocument continueFileAccessUsingBlock:] + 227 15 AppKit 0x00007fff87868cad -[NSDocument performAsynchronousFileAccessUsingBlock:]_block_invoke_6 + 94 16 AppKit 0x00007fff87899333 -[NSDocumentController(NSInternal) _onMainThreadInvokeWorker:]_block_invoke_3 + 492 17 libdispatch.dylib 0x00007fff9142c8ba _dispatch_call_block_and_release + 18 18 libdispatch.dylib 0x00007fff9142e72a _dispatch_main_queue_callback_4CF + 308 19 CoreFoundation 0x00007fff8b8f64dc CFRunLoopRun + 1724 20 CoreFoundation 0x00007fff8b8f5ae6 CFRunLoopRunSpecific + 230 21 HIToolbox 0x00007fff8d0f93d3 RunCurrentEventLoopInMode + 277 22 HIToolbox 0x00007fff8d10063d ReceiveNextEventCommon + 355 23 HIToolbox 0x00007fff8d1004ca BlockUntilNextEventMatchingListInMode + 62 24 AppKit 0x00007fff874ca3f1 _DPSNextEvent + 659 25 AppKit 0x00007fff874c9cf5 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 135 26 AppKit 0x00007fff874c662d -[NSApplication run] + 470 27 AppKit 0x00007fff8774580c NSApplicationMain + 867 28 ??? 0x000000010272061d 0x0 + 4335994397 29 libmacruby.dylib 0x000000010013f9c9 rb_vm_dispatch + 1081 30 ??? 0x0000000102700b64 0x0 + 4335864676 31 ??? 0x00000001027004e9 0x0 + 4335863017 32 libmacruby.dylib 0x000000010015a756 rb_vm_run + 470 33 libmacruby.dylib 0x0000000100030cf0 ruby_run_node + 80 34 libmacruby.dylib 0x0000000100151181 macruby_main + 385 35 Persequor 0x0000000100000f2c main + 44 36 Persequor 0x0000000100000ef4 start + 52 ) terminate called throwing an exception[Switching to process 57974 thread 0x60b]

finestructure commented 13 years ago

Note: I think the target file was previously opened. Maybe that has something to do with it.

finestructure commented 13 years ago

Subsequent save worked.

finestructure commented 13 years ago

Cannot reproduce, even with previously opened file.