Search results for

LLDB crash

29,555 results found

Post

Replies

Boosts

Views

Activity

Reply to Mail with Exchange logging billions of errors
Same on my side, our Sysop told me last week that I generate millions of errors in the Exchange Server Logs.Deleted all Exchange accounts on El Cap mail - then it works, then I inserted the first account, it took hours to take 16k mails from Exchange server, than mail crashes again. During the download each downloaded email from Exchange to Mail generates around 50 errors in log he told me.So Apple seems to have a bug in the active sync - which is a shame! This protocol is always the same since long time.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to iOS 9 Beta battery life
I have the same issue the phone gets really hot. Battery doesn't last more than 3 hours standby and less than 90 minutes if I slightly use it. Crashes more than it work. Super slow. I have restored it as a new phone several times and still same issues exist as when I restore it from a backup. Hope Apple releases another beta to adress these issues soon.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to How do I get a list of all possible values of a Swift enum?
This is at the top of my list as well! I have an app that has an enum with all of the countries and their country codes, and it isn't feasable to return a list of those by hand (it would easily get out of sync with the list and is a large amount of boilerplate).Here is the closest I have been able to come:protocol EnumerableEnum { static func allValues()->[Self] init?(index:Int) } extension EnumerableEnum { static func allValues()->[Self] { var idx = 0 return Array(anyGenerator{ return Self(index: idx++)}) } }If you have an Enum with integer values like so:enum TestEnum:Int,EnumerableEnum{ case A, B, C init?(index:Int){ self.init(rawValue:index) } }Then you can call the allValues() function to get a list of all values. If it doesn't have integer values, then you can implement the init method (but it doesn't buy you that much over just returning the list by hand).print(TestEnum.allValues()) // [TestEnum.A, TestEnum.B, TestEnum.C]A couple of notes:I couldn't add init?(rawValue:) to the protocol for some r
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Swift 2 #available checking multiple platform versions
I haven't seen any documentation on #available and what the valid platform arguments are, nor how to combine them.For example if we want to check for the existence of the new Contacts framework on iOS and Mac, and watchOS in the same code, how do we OR these requirements together, and what are the valid IDs for Mac OS and watchOS?// How do we specify this for iOS *and* Mac *and* watchOS? if #available(iOS 9, *) { setupWithContacts() }It looks like the valid platform symbols are iOS, OSX and watchOS:@available(iOS 9, *) @available(OSX 10.11, *) @available(watchOS 2, *) class ContactsData { let store = CNContactStore() }but without an ability to use #available with multiple platforms in one clause, this because rather clunky to use.if #available(iOS 9.0, *), #available(OSX 10.11, *), #available(watchOS 2, *) { ContactsData() }...this results in the playground console output:Playground execution failed: /var/folders/0v/626mc7q94fnd6zmh6z6b8qm40000gq/T/./lldb/40279/playground169.swift:14:5: error: 'Conta
2
0
7k
Jun ’15
Photos crash: Service exited due to signal: Filesize limit exceeded: 25
Hello, I'm a 10.10.4 beta tester,in the last two weeks I haven't been able to use Photos for Mac because whenever I open it, it works for a couple of seconds and then quits unexpectedly without even asking me whether I want to report the problem.Looking up in Console App I found this:com.apple.xpc.launchd[1]: (com.apple.Photos.46324[3554]) Service exited due to signal: Filesize limit exceeded: 25Could this be the cause? How shall I fix it?Feel free to ask me for more logs if the one I pasted above isn't very helpful.ThanksStefano
0
0
282
Jun ’15
Reply to Can't fetch JSON due to NSInvalidArgumentException
Hey, thank you ever so much for the great explanation!!! 🙂 I didn't know that NSURLSession is an asynchronous API. 😊 We're a step further; my app downloads the data as expected. There are some other problems, though: The app runs unstably now, sometimes it crashes, sometimes it doesn't. Furthermore the app is as slow as molasses in January. Also some weird display errors occur. It seems that due to the asynchronous API the table view already tries to reload by the time the data isn't loaded completely. Of course I was trying to debug the code, but how to debug when the app is running, actually? As I mentioned, the app crashes sometimes, though. Then it terminates as a result of an EXC_BAD_ACCESS, an URL timeout problem or a 'XPC connection interrupted'. But I think that these are just a red herring. The 'real problem' propably is due to my use of NSURLSession's asynchronous API; I assume that I made a mistake when notifying the delegate that the data is ready to be passed back ... A shorte
Jun ’15
JS closure causing odd behavior with JXA
I'm using JXA to build Cocoa applications and running into a strange issue when attempting to wrap all an app's JavaScript with an immediately-invoked function expression.What's the issue?If the code for an app with a single NSWindow is wrapped in an immediately-invoked function, the app's window will close on it's own without any type of application crash. The app stays running.Here's the code I'm using:(function() { ObjC.import(Cocoa); var styleMask = $.NSTitledWindowMask | $.NSClosableWindowMask | $.NSResizableWindowMask | $.NSMiniaturizableWindowMask; var window = $.NSWindow.alloc.initWithContentRectStyleMaskBackingDefer( $.NSMakeRect(0, 0, 800, 400), styleMask, $.NSBackingStoreBuffered, false ); window.center; window.title = 'NSWindow Closure Bug?'; window.makeKeyAndOrderFront(window); }());Here's the example application https://dl.dropboxusercontent.com/u/271215/jsclosurebugexample.zipor recreate it with- Script Editor > New- Copy/paste the above code- Save > File Format: Applicat
2
0
1k
Jun ’15
Impossible to use threadgroup_barrier
I cannot use threadgroup_barrier into a compute kernel on El Capitan with my MacPro (D500) :It always crashes the compiler with this message after a call to newComputePipelineStateWithFunction :>> ERROR: Failed creating a compute kernel: Error Domain=CompilerError Code=1 Compiler encountered an internal error UserInfo=XXXXXXXXX {NSLocalizedDescription=Compiler encountered an internal error}Even a minimal kernel that contains only the barrier instruction produces a bug.Is someone able to use a barrier into a compute kernel ?
1
0
529
Jun ’15
Reply to Swift: returning Self in class method using error handling for init method
In Swift, functions and methods generally return a specific type , and the return type needs to be optional, since you might be returning nil.(There's also seems to be a Swift bug related to Self?, since trying to return Self? from your class function crashes SourceKit, so until that is fixed you couldn't return Self? anyway)You can return values from inside the do and catch blocks, so this would work for your function:extension NSRegularExpression { class func frequentlyUsedExpression() -> NSRegularExpression? { let pattern = frequently_used_pattern do { let regex = try self(pattern: pattern, options: []) return regex } catch { print(error) return nil } } }If you want subclasses of NSRegularExpression to be able to explicitly return their own type, it would be possible to create a convenience initializer that take an enum parameter and returns the appropriate pattern. (And, I think this is a cleaner way to implement it in Swift, anyway.)enum CommonRegexPatterns: String { case Pattern01 = frequent
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Multiple watch apps for single iOS app in OS 2?
I know it was not possible to have more than one Apple Watch app associated with a single iOS app in watchOS 1.0. Does anyone know if this is possible as of 2.0? I tried it and Xcode seems to allow me to create the multiple extensions, but simulators crash when I try to run. Would be great to hear from Apple on the official stance for this (I do have a very good usecase for it). Thanks!
2
0
1.1k
Jun ’15
Reply to Error handling not working as expected
What you may not grasp is that Cocoa's traditional error handling rules are still in effect:If a method fails and there's only really one failure case for it (trying to convert a non-numeric string to a number, etc.), the method returns nil or false.If an operation fails because of some complex issue with the current state of the computer (no such file, Wi-Fi turned off, etc.), the method emits an NSError. In Swift, NSErrors are handled with the do/try/catch mechanism.If an operation fails because the programmer wrote code that did something invalid (out-of-range array index, etc.), the method fails an assertion or raises an exception, which you should generally allow to crash your app. In Swift, it's not possible to catch exceptions.Creating a fetch request with an inaccurate entity name falls into that third category: failures that can only be the result of programmer error. Such problems are still handled by failing an assertion and crashing your app.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
fatal compiler error: PCH
First attempt building our code base in xCode7 for iOS -- getting a fatal error in the backend running ProcessPCH++. I've included the output below.Is there any further diagnostic details we can turn on to provide information? This is a LARGE codebase, and the chances of me being able to supply it to Apple as-is is zero.COMPILER ERROR==============fatal error: error in backend: Broken module found, compilation aborted!clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)Apple LLVM version 7.0.0 (clang-700.0.53)Target: arm-apple-darwin14.3.0Thread model: posixclang: note: diagnostic msg: PLEASE submit a bug report to http:/ and include the crash backtrace, preprocessed source, and associated run script.Command /Applications/Xcode_7.0-beta1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 11PCH CALL========ProcessPCH++ /Users/XXUSERXX/Library/Developer/Xcode/DerivedData/app-dkfbghqolkiziwhjwearcxydwgsm/Build/Intermediates/
2
0
2.5k
Jun ’15