crash in showOpenPanel on ML
crash in showOpenPanel on ML
- Subject: crash in showOpenPanel on ML
- From: Koen van der Drift <email@hidden>
- Date: Thu, 02 Aug 2012 21:35:26 -0400
After updating to M and Xcode 4.4 I get a crash in the beginSheetModalForWindow part of the showOpenPanel part.
The code looks like:
- (IBAction)showOpenPanel:(id)sender
{
__block NSOpenPanel *panel = [NSOpenPanel openPanel];
[panel setAllowedFileTypes: fileTypes];
[panel setAllowsMultipleSelection: NO];
[panel beginSheetModalForWindow:[self window] completionHandler:^ (NSInteger result)
{
if (result == NSOKButton)
{
// etc
based on the Hillegass book. It all worked fine with OSX 10.7 and Xcode 4.3
When the code executes, I briefly see the open panel window, but then it crashes immediately, even before I can select a file. The error I get is for me not clear:
Thread 1, Queue : com.apple.main-thread
Thread 2, Queue : (null)
Thread 3, Queue : com.apple.libdispatch-manager
Thread 4, Queue : (null)
Thread 5 com.apple.NSURLConnectionLoader, Queue : (null)
Thread 6, Queue : (null)
Thread 7, Queue : quicklook.pluginload
#0 0x00007fff92e3aab8 in __cxa_throw ()
#1 0x00007fff8a9c883a in Security::MacOSError::throwMe(int) ()
#2 0x00007fff8a8fb224 in Security::CodeSigning::SecStaticCode::signature() ()
#3 0x00007fff8a8fb449 in Security::CodeSigning::SecStaticCode::verifySignature() ()
#4 0x00007fff8a8fb25e in Security::CodeSigning::SecStaticCode::validateDirectory() ()
#5 0x00007fff8a8fb916 in Security::CodeSigning::SecStaticCode::validateNonResourceComponents() ()
#6 0x00007fff8a8f0601 in validate(Security::CodeSigning::SecStaticCode*, Security::CodeSigning::SecRequirement const*, unsigned int) ()
#7 0x00007fff8a8f0470 in SecStaticCodeCheckValidityWithErrors ()
#8 0x00007fff9163c44a in QLCheckAppleSignature ()
#9 0x00007fff9160e375 in _QLLoadPluginAtURL ()
#10 0x00007fff91612171 in ___QLLaunchUpdatingThread_block_invoke_0 ()
#11 0x00007fff8d0c7f3d in _dispatch_call_block_and_release ()
#12 0x00007fff8d0c40fa in _dispatch_client_callout ()
#13 0x00007fff8d0c54c3 in _dispatch_queue_drain ()
#14 0x00007fff8d0c5335 in _dispatch_queue_invoke ()
#15 0x00007fff8d0c5207 in _dispatch_worker_thread2 ()
#16 0x00007fff8db6bceb in _pthread_wqthread ()
#17 0x00007fff8db561b1 in start_wqthread ()
Thread 8, Queue : (null)
Thread 9, Queue : (null)
Thread 10, Queue : (null)
Thread 11, Queue : quicklook.client
Any ideas what is going on, and what else I can do to debug and/or fix this?
Thanks,
- Koen.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden