Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: NSFireTimer crash 10.6 only
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSFireTimer crash 10.6 only



Hi,

There's a few points from I can tell that are important here:

1) This question doesn't belong at all on the Objective-C mailing list, as it's a Cocoa question, and thus belongs on the cocoa-dev mailing list.
2) Why are you using NSTimer to get an image from your iSight? Are you trying to capture video from it? There's a much more proper (and supported) way to do this.
3) Why are you trying to access main-thread-only (aka thread-unsafe, ie, GUI) APIs on a background-thread?
4) Have you run through this with gdb at all? Have you tried debugging it in any way? Actually, www.WhatHaveYouTried.com ?

-- 
Steven Degutis
http://www.thoughtfultree.com/
http://www.degutis.org/


On Mon, Sep 14, 2009 at 3:46 AM, Anurag khare <email@hidden> wrote:


At least tell me the reason for this crash report.Please

Hi,

I am getting This crash log.

In Code i am firing timer repeatedly in 0.1 second to load camera(iSight) image using 

NSBitmapImageRep (Category). 

/*********************************************************

Code Type: X86 (Native)

Parent Process: launchd 78


Date/Time: 2009-09-08 19:04:13.723 +0530

OS Version: Mac OS X 10.6 (10A432)

Report Version: 6

Sleep/Wake UUID: 77786E52-2FB0-4F48-B327-40A923002183


Interval Since Last Report: 142619 sec

Crashes Since Last Report: 4

Per-App Interval Since Last Report: 18469 sec

Per-App Crashes Since Last Report: 2

Anonymous UUID: 978527EF-85BB-4C5E-97F1-4C387892C9DD


Exception Type: EXC_BAD_ACCESS (SIGBUS)

Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000

Crashed Thread: 0 Dispatch queue: com.apple.main-thread


Application Specific Information:

objc_msgSend() selector name: grayscaleImageRep

Thread 0 Crashed: Dispatch queue: com.apple.main-thread

0 libobjc.A.dylib 0x925de91b objc_msgSend + 27

1 com.apple.Foundation 0x98a839d4 __NSFireTimer + 141

2 com.apple.CoreFoundation 0x97309eee __CFRunLoopRun + 6846

3 com.apple.CoreFoundation 0x97307d34 CFRunLoopRunSpecific + 452

4 com.apple.CoreFoundation 0x97307b61 CFRunLoopRunInMode + 97

5 com.apple.HIToolbox 0x90226fec RunCurrentEventLoopInMode + 392

6 com.apple.HIToolbox 0x90226da3 ReceiveNextEventCommon + 354

7 com.apple.HIToolbox 0x90226c28 BlockUntilNextEventMatchingListInMode + 81

8 com.apple.AppKit 0x94daeb99 _DPSNextEvent + 847

9 com.apple.AppKit 0x94dae40e -NSApplication nextEventMatchingMask:untilDate:inMode:dequeue: + 156

10 com.apple.AppKit 0x94d705fb -NSApplication run + 821

11 com.apple.AppKit 0x94d68695 NSApplicationMain + 574


/*********************************************************

I tried to execute this timer in separate thread but no success.

It's giving problem in NSRunLoop currentRunLoop run; 


Please help me, give some pointer to re-solve this. 


iMac Mac OS X (10.6) Xcode-3.2, but using 3.0 compatible in build setting + Base SDK 10.5 



Thanks,




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >NSFireTimer crash 10.6 only (From: Anurag khare <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.