Search results for

LLDB crash

29,562 results found

Post

Replies

Boosts

Views

Activity

Reply to iOS 9 beta 2
You mean beta 3. Eddy Cue tweeted on Tuesday (6/30) saying early next week, and typical beta release schedules are on a Tuesday at 10 AM PDT / 1 PM EST. It will definitely contain the music app, bringing along Apple Music. As for crash fixes, who knows. It's a beta.
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’15
Crosscasting confusion, part 2
I'm still struggling with trying to match types against empty arrays. In this case, I have an array that was originally created like this:var x: [X] = [] // X is a structThis empty array is passed around as an 'Any' parameter:func jValueForPValue (pValue: Any) -> AnyObject { …and eventually I try to test if the parameter is an array: if let pArray = pValue as? [Any] { …This test fails. If I set a breakpoint just after it fails, I get this:(lldb) p pValue error: Execution was interrupted, reason: EXC_BAD_ACCESS (code=1, address=0x80000007). The process has been returned to the state before expression evaluation. (lldb) frame v pValue (Any) pValue = { payload_data_0 = 0x000000010247efa0 -> 0x000000010081cd70 _swiftEmptyArrayStorage payload_data_1 = 0x000000010247efa0 -> 0x000000010081cd70 _swiftEmptyArrayStorage payload_data_2 = 0x000000010247efa0 -> 0x000000010081cd70 _swiftEmptyArrayStorage instance_type = 0x000000010247efa0 -> 0x000000010081cd70 _swiftEmptyArrayStorage }I don
0
0
559
Jul ’15
Reply to Desultory crashes in my app since introducing Swift code
The crash seemed due to calling a new datatask on NSURLSession.sharedSession() before the previous one was terminated. I came to that by trial an error by trying and removing all code specific for the target.Apple said crashes happened closer to the problem in Swift, than in Objective-c, but it seems to be returning to the time of the C dangling pointers! That is where 90's computer science and php programming experience come to the fore!Please Apple take note Swift should be a 21 century language for the next 20 years and the runtime support should be consequent!
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’15
Reply to Desultory crashes in my app since introducing Swift code
I think another problem is using .ReloadRevalidatingCacheData as the cache policy. I had yet another silent crash before the returing of the data.Now I set .ReloadIgnoringLocalAndRemoteCacheData.Thi thing is getting one of trial and error - in fact in the WWDC talked of a language lating 20 years, no of its run-time! : this is my method, anyway:private func downloadCloseBuses(){ / let localizer=referenceSingleton.sharedReferenceCounter() let location=localizer.referenceLocation let urlString=http:/ println(urlString) let url=NSURL(string:urlString)! let urlRequest=NSURLRequest(URL: url, cachePolicy:.ReloadIgnoringLocalAndRemoteCacheData, timeoutInterval: 50) let request = NSURLRequest(URL: NSURL(string: urlString)!) let task = NSURLSession.sharedSession().dataTaskWithRequest(urlRequest, completionHandler: {[weak self] (data, response, error) -> Void in let datastring = NSString(data: data, encoding: NSUTF8StringEncoding) println(Task completed: +(datastring! as String)) dispatch_async(dispatch_get
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’15
Reply to Desultory crashes in my app since introducing Swift code
This is the amended class:@objc public class ExpressBackofficeLoader: NSObject { public class func sharedLoader() -> ExpressBackofficeLoader { struct Static { static let instance : ExpressBackofficeLoader = ExpressBackofficeLoader() } return Static.instance } override private init(){ super.init() println(init called: calling download); downloadCloseBuses() } let session:NSURLSession = NSURLSession(configuration: NSURLSessionConfiguration.defaultSessionConfiguration()) private func downloadCloseBuses(){ / let localizer=referenceSingleton.sharedReferenceCounter() let location=localizer.referenceLocation let urlString=http:/ println(urlString) let url=NSURL(string:urlString)! / let task = session.dataTaskWithURL(url, completionHandler: {[weak self] (data, response, error) -> Void in println(in the closure) let datastring = NSString(data: data, encoding: NSUTF8StringEncoding) println(Task completed: +(datastring! as String)) dispatch_async(dispatch_get_main_queue(), { NSTimer.scheduledTimerWithTimeInterval(
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’15
Reply to Desultory crashes in my app since introducing Swift code
I updated the function to use GCD instead of a timer and it seems to crash no longer: let session:NSURLSession = NSURLSession(configuration: NSURLSessionConfiguration.defaultSessionConfiguration()) private func downloadCloseBuses(){ / let localizer=referenceSingleton.sharedReferenceCounter() let location=localizer.referenceLocation let urlString=http:/ println(urlString) let url=NSURL(string:urlString)! / let task = session.dataTaskWithURL(url, completionHandler: {[weak self] (data, response, error) -> Void in println(in the closure) let datastring = NSString(data: data, encoding: NSUTF8StringEncoding) println(Task completed: +(datastring! as String)) let delayTime = dispatch_time(DISPATCH_TIME_NOW, Int64(60 * Double(NSEC_PER_SEC))) dispatch_after(delayTime, dispatch_get_main_queue()) { self!.downloadCloseBuses() } }) task.resume() }
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’15
ios 9 update and app error
Hello i was installed ios 9 beta 2 and everything worked fine, until i was going to update some apps, it was saying that i most login to iTunes but when i just install apps i can use my touch ID, but when after i writing the correct password it loading but stops updating, when i try to open the app it crashes and i cannot open it, what sould i do?
1
0
166
Jul ’15
Reply to CoreSpotlight error (iOS9)
The API is available on iPad mini (it doesn't crash) but it shouldn't be used??How do I determine if I should bother pushing info to CoreSpotlight?Right now I simply check for OS ≥ 9 as seems to be the latest MO. (I'm from the oldschool where we used to check for the class or selector being present. :-)All three of the classes used when talking to CoreSpotlight... CSSearchableItemAttributeSet, CSSearchableItem, and CSSearchableIndex are returning objects and seem to be working fine, it's just that final call to submit the results that's generating an error. Should I simply ignore that error then?[[CSSearchableIndex defaultSearchableIndex] indexSearchableItems:itemArray completionHandler: ^(NSError * __nullable error) { NSLog(@CSSearchableIndex: %@,error ? error.description : @successfully added all books); }];
Topic: App & System Services SubTopic: General Tags:
Jul ’15
Reply to CoreData completion handler memory leak
When I do NSArray *objects = [[mutObjects copy] autorelease];the code crashes.If I don't copy, it loses the object and crashes as well.I'm not sure how to pass the variable across the completion handler and release it later, it seems to stay there?I was doing weakself as a test there I thought it was keeping the performblock with a retain count of self but that didn't help either.
Jul ’15
-[UIKBBlurredKeyView candidateList]: unrecognized selector sent to instance 0x15fd70890
I tried my best to find the answer, but I failed. Someone showed me one possible reson :overridden touchesBegan method of UIScrollView in a categoryBut it was not true. I didn't overridden overridden touchesBegan method of UIScrollView.The crash stack is like this :0 CoreFoundation 0x0000000184c942d8 ___exceptionPreprocess1 libobjc.A.dylib 0x00000001969600e4 objc_exception_throw + 562 CoreFoundation 0x0000000184c9b3a4 ___methodDescriptionForSelector3 CoreFoundation 0x0000000184c98154 ____forwarding___4 CoreFoundation 0x0000000184b9accc _CF_forwarding_prep_0 + 805 UIKit 0x0000000189821450 -[UIKeyboardImpl shouldShowCandidateBar]6 UIKit 0x0000000189736028 -[UIKeyboardImpl updateTextCandidateView]7 UIKit 0x00000001897354ec -[UIKeyboardImpl updateCandidateDisplay]8 UIKit 0x00000001898d57f8 -[UIKeyboardImpl completeAddInputString:generateCandidates:]9 UIKit 0x0000000189aa7e64 ___82-[UIKeyboardImpl completeAcceptCandidateBeforeAddingInputObject:executionContext:]_block_invoke10 UIKit 0x0000000189e7c49c -[U
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
624
Jul ’15
Reply to iOS 9 simulator black screen
Out of curiosity, do you have the simulator showing an external display from under Hardware > External Displays?I eventually found that the simulator will hang on the black screen / white Apple logo when it gets started with an external display window active. My workaround in Beta 2 is to close the display window, re-run the project, then turn the display window. You may get a Springboard crash (and log) when you close the external display window, but the sim will carry on.
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’15