I have a relatively straightforward master detail application in Xcode 6.0.1 with iOS Simulator 8.0.
The application uses core data. The application is local only. I plan to use iCloud or Dropbox to backup
the data, but not for synchronization. At the moment it is local only.
Everything works beautifully with one huge exception. Every time I use the simulator and simulate iPhone 5s,
as soon as I migrate the store and then access the tableview detail, the app crashes. No log info, no error info,
it simply stops. Same is true for a 5s phone.
If I run the simulator in iPhone 5 mode, or run the app on an iPhone 4s it works perfectly. I've read dozens of
tutorials and articles about core data and the persistent store - never even heard of this issue.
So there must be some issue for post- persistent-store migration on the 64 bit devices. Can anyone help?
(void)migrateStore:(NSString *)newSQLFileName {
// migrate current store from one URL to another
// write out the current store URL before the migration
NSURL *storeURL = [self.persistentStoreCoordinator.persistentStores.lastObject URL];
NSLog(#"storeURL before migration: %#", [storeURL description]);
// get the current store
NSPersistentStore *currentStore = self.persistentStoreCoordinator.persistentStores.lastObject;
// create a new URL
NSURL *newStoreURL = [[self applicationDocumentsDirectory] URLByAppendingPathComponent:newSQLFileName];
//add the options dictionary once you get it working
// migrate current store to new URL
[self.persistentStoreCoordinator migratePersistentStore:currentStore toURL:newStoreURL options:nil withType:NSSQLiteStoreType error:nil];
// check to see if the new store is active, write out the URL again
storeURL = [self.persistentStoreCoordinator.persistentStores.lastObject URL];
NSLog(#"storeURL after migration: %#", [storeURL description]);
}//migrateStore:newSQLFileName
from the debug log window:
2014-10-02 16:35:09.274 BiopLog[31758:2509702] User entered PIN to validate
2014-10-02 16:35:09.277 BiopLog[31758:2509702] ** User Authenticated!!
2014-10-02 16:35:09.389 BiopLog[31758:2509702] the document path is: /Users/john_grauel/Library/Developer/CoreSimulator/Devices/25BCE099-41D2-4679-9A40-615656159E84/data/Containers/Data/Application/39A5A3FF-CBDE-42A0-B6BA-DBC632EE0E31/Documents
2014-10-02 16:35:12.384 BiopLog[31758:2509702] storeURL before migration: file:///Users/john_grauel/Library/Developer/CoreSimulator/Devices/25BCE099-41D2-4679-9A40-615656159E84/data/Containers/Data/Application/39A5A3FF-CBDE-42A0-B6BA-DBC632EE0E31/Documents/BiopLog.sqlite
2014-10-02 16:35:12.843 BiopLog[31758:2509702] storeURL after migration: file:///Users/john_grauel/Library/Developer/CoreSimulator/Devices/25BCE099-41D2-4679-9A40-615656159E84/data/Containers/Data/Application/39A5A3FF-CBDE-42A0-B6BA-DBC632EE0E31/Documents/BiopBak201410021635.sqlite
(lldb)
and the Devices log includes:
Oct 2 17:42:41 JohniPhone SpringBoard[48] : Application 'UIKitApplication:com.carbonrose.BiopLog[0x9dbb]' crashed.
Oct 2 17:42:41 JohniPhone assertiond[58] : pid_suspend failed for : Unknown error: -1, Unknown error: -1
Oct 2 17:42:41 JohniPhone assertiond[58] : Could not set priority of to 2, priority: No such process
Oct 2 17:42:41 JohniPhone assertiond[58] : Could not set priority of to 4096, priority: No such process
Oct 2 17:42:41 JohniPhone UserEventAgent[17] : id=com.carbonrose.BiopLog pid=886, state=0
Oct 2 17:42:41 JohniPhone locationd[55] : Location icon should now be in state 'Active'
Oct 2 17:42:41 JohniPhone geod[127] : Can't get bundle identifier for process 565
Oct 2 17:42:43 JohniPhone locationd[55] : Gesture EnabledForTopCLient: 1, EnabledInDaemonSettings: 0
Oct 2 17:42:43 JohniPhone kernel[0] : xpcproxy[888] Container: /private/var/mobile/Containers/Data/Application/EC6B60D8-510D-4E46-82B1-29891D0F4E79 (sandbox)
Oct 2 17:42:43 JohniPhone yweather[888] : assertion failed: 12A405: libxpc.dylib + 71820 [4BC9CA3D-4DEE-314C-ADBF-53BDCEEFE45C]: 0x7d
Oct 2 17:42:43 JohniPhone Unknown[888] :
Oct 2 17:42:43 JohniPhone yweather[888] : CFURLSetResourcePropertyForKey failed because it was passed this URL which has no scheme: /var/mobile/Containers/Data/Application/EC6B60D8-510D-4E46-82B1-29891D0F4E79/Documents/YI13N/sqlite/yi13nevents.db
Oct 2 17:42:43 JohniPhone yweather[888] : Enabling Crittercism v4.3.4...
I had created an sqlite file with sample data and loaded that file when initializing the app. the difference in the storage of numbers from the 32 bit to the 64 bit machines was the reason the process was failing. The solution is to read in data from code and if later necessary, migrate the core data store to another device. the migration process will create the correct number storage locations.
Related
I've received the following log from a customer who claims to be sharing photos from the photos app via Share Extension. The customer is making an assumption that internet connection to the router is bad. The behavior as described by the customer is as follows:
Upload a file via share extension via a bad connection
Let device sleep, in our case the connection should get terminated and the file is not uploaded to our servers.
Attempt to re-upload the same file.
Expected Result:
The file should upload fine.
Actual Result:
Share Extension never loads, that means that user can infinitely click the app icon with no success of showing the view.
Adding to this, we have never been able to reproduce such a problem in house. However, the customer can do so every time while in the airport.
I took a peek in his device logs, and I can see the following with no clue what is going in. Starting from the out of bound exception which I can't explain due to the fact that the view never loaded.
Any idea or did anyone else encounter the same problem?
Apr 13 15:11:07 audi pkd[153] : assigning plug-in
(2.1.2) to plugin sandbox
Apr 13 15:11:07 audi pkd[153] : enabling pid=386 for plug-in
(2.1.2)
D89CEF37-B025-4C6F-A8B6-FBB6B4D94A84/private/var/containers/Bundle/Application/AF69E215-04AE-4929-A8C8-51BE8FADF397/.app/PlugIns/.appex
Apr 13 15:11:07 audi kernel[0] : xpcproxy[451] Container:
/private/var/mobile/Containers/Data/PluginKitPlugin/669C0F52-1C21-441D-9906-E2EFBD8A7D00(sandbox)
Apr 13 15:11:08 audi kernel[0] :
LwVM::_generateMappedExtentsList - failed to map unmap range to partition
Apr 13 15:11:08 audi backboardd[60] : Unable to
bootstrap_look_up port with name .gsEvents:
unknown error code (1102) Apr 13 15:11:08 audi[451] :
* Terminating app due to uncaught exception 'NSRangeException', reason: '* -[__NSArrayI objectAtIndex:]: index 1 beyond bounds [0 ..
0]' First throw call stack: (0x18400ae38 0x18366ff80 0x183eeb158
0x1000e4a40 0x1000e4738 0x183a554bc 0x183a5547c 0x183a5ab84
0x183fc0dd8 0x183fbec40 0x183ee8d10 0x1857d0088 0x1891bdf70
0x183cacd74 0x183caea2c 0x184acbd30 0x18b2e2c48 0x18b2e28dc
0x18b2e2c6c 0x1848de058 0x183a868b8)
Apr 13 15:11:08 audi MobileSlideShow[386] : plugin
interrupted
Apr 13 15:11:08 audi MobileSlideShow[386] : plugin
invalidated
Apr 13 15:11:08 audi diagnosticd[84] : error evaluating process
info - pid: 451, puniqueid: 451
Apr 13 15:11:08 audi mediaserverd[28] : ''
(pid = 451) setting DiscoveryMode =
DiscoveryMode_None, currentDiscoveryMode = DiscoveryMode_None
Apr 13 15:11:08 audi MobileSlideShow[386] : 2016-04-13
15:11:08.629|MobileSlideShow|0x14ce07cd0: HOST: Failed to load remote
view controller with error: Error Domain=NSCocoaErrorDomain Code=4099
"The connection to service named
.viewservice was interrupted, but the
message was sent over an additional proxy and therefore this proxy has
become invalid." UserInfo= {NSDebugDescription=The connection to
service named .viewservice was interrupted,
but the message was sent over an additional proxy and therefore this
proxy has become invalid.}
Apr 13 15:11:08 audi MobileSlideShow[386] : 2016-04-13
15:11:08.633|MobileSlideShow|0x14ce07cd0: Sheet not being presented,
calling premature completion
Apr 13 15:11:08 audi com.apple.xpc.launchd[1]
([451]) : Service exited due to
signal: Abort trap: 6
Apr 13 15:11:08 audi ReportCrash[452] : Formulating report for
corpse[451]
Apr 13 15:11:08 audi ReportCrash[452] : Report of type
'109(109_)' not saved because the limit of 25 logs has been
reached
Apr 13 15:11:08 audi ReportCrash[452] : Notice: This report is
abbreviated for syslog inclusion because it could not be saved to
disk.
Symbolication may be possible by manually cleaning up and including
the Binary Image section of a full report from this same device – good
luck!
Apr 13 15:11:08 audi ReportCrash[452] : Process:
[451] Path:
/private/var/containers/Bundle/Application/AF69E215-04AE-4929-A8C8-51BE8FADF397/.app/PlugIns/.appex/
in many cases the file is large, and connection is being freed before finishing, or something in same vane is happing, if it is something in this vane, a possible way around, write your file to app document folder first, then upload via a URL link from your document folder in app like this: (example with an image)
let documentsDirectoryPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0]
let path = documentsDirectoryPath.appending("/outImage.jpg")
let outURL = URL(fileURLWithPath: path)
try? FileManager.default.removeItem(at: outURL)
if let data2c = self.newImage.jpegData(compressionQuality:1.0)
{
do
{
try data2c.write(to: outURL)
DispatchQueue.main.async
{
var filesToShare = [Any]()
filesToShare.append(outURL)
let activityVC = UIActivityViewController(activityItems: filesToShare, applicationActivities: nil)
activityVC.excludedActivityTypes = [.print,.assignToContact,.copyToPasteboard,.addToReadingList,.markupAsPDF,.postToTencentWeibo,.postToTencentWeibo]
activityVC.popoverPresentationController?.sourceView = self.view
activityVC.preferredContentSize = CGSize(width: self.view.frame.size.width, height: self.view.frame.size.height-60)
activityVC.modalPresentationCapturesStatusBarAppearance = true
self.present(activityVC, animated: true, completion: nil)
}
} catch {
print("Couldn't write file")
}
}
I'm trying to debug an handoff issue in Xcode, but the debugger disconnects every time I go to the device homescreen. This happens on both the simulator and an actual device.
I have other apps where it works correctly; that is, it continues to debug when I go to the homescreen.
Any ideas what could be causing this? I've rebooted Xcode and my Mac with no luck.
When running on the device, the log has a message that looks like:
Jun 28 16:36:31 Mikes-iPhone com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
[14593] <Warning>: 1 +0.000000 sec [3901/1307]: error: ::read ( -1, 0x16e246a38, 1024 ) => -1 err = Bad file descriptor (0x00000009)
Jun 28 16:36:31 Mikes-iPhone com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
[14593] <Warning>: Exiting.
Jun 28 16:36:31 Mikes-iPhone mediaserverd[14247] <Notice>: '' com.zzzzzz.appname(pid = 14594) setting DiscoveryMode = DiscoveryMode_None, currentDiscoveryMode = DiscoveryMode_None
I'd appreciate any ideas or suggestions....
Well this was dumb. At some point I had changed the "Application does not run in background" plist flag to YES. Simply changing to NO fixed the problem. Duh.
I have an app that takes images periodically, and I would like them to be uploaded to the iCloud Photo Stream right after the images are taken.
It appears that certain conditions need to be met in order for this to work. It only seems to work when running iOS 8, the device is connected to wireless, and by using UIImagePickerController to take pictures (rather than AVCapture) at least once. It seems that the UIImagePickerController when presented alters some system settings that allows for subsequent automatic uploading of images to the iCloud Photo Stream. If I use AVCapture only to take pictures, it will not work. I've confirmed that "Upload to My Photo Stream" is enabled in the iCloud settings, and there is an active wireless connection.
Here is the method used to save an image obtained from UIImagePickerController:
- (void)saveImage : (UIImage *)image {
// Add image to the photo library
[[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{
PHAssetChangeRequest *assetChangeRequest =
[PHAssetChangeRequest creationRequestForAssetFromImage:image];
} completionHandler:^(BOOL success, NSError *error) {
if (!success)
NSLog(#"Error creating asset: %#", error);
}];
}
When running on my iPad with iOS 8, below are the entries that I see in the device system logs:
Oct 22 21:11:06 iPad mstreamd[14409] <Notice>: (Note ) PS: MSPublisher - xxxxxxxx Submitting 1 asset collections for publication.
Oct 22 21:11:06 iPad mstreamd[14409] <Notice>: (Note ) PS: MSPublisher - xxxxxxxx Sending metadata...
Oct 22 21:11:10 iPad mstreamd[14409] <Notice>: (Note ) PS: MSPublisher - xxxxxxxx uploading 1 assets...
Oct 22 21:11:11 iPad mstreamd[14409] <Notice>: (Note ) PS: Received push notification for invitations topic: com.apple.mediastream.subscription.push userInfo: {
r = xxxxxxxx;
}
Oct 22 21:11:11 iPad mstreamd[14409] <Notice>: (Note ) PS: <MSIOSMediaStreamDaemon: 0x1662ad80>: Push notification received for My Photo Stream with targetPersonID xxxxxxxx.
Oct 22 21:11:12 iPad mstreamd[14409] <Notice>: (Note ) mstreamd: <MSPowerBudget: 0x1666fae0>: Plugged in to external power. Allowing file transfers.
Oct 22 21:11:12 iPad mstreamd[14409] <Notice>: (Note ) mstreamd: <MSPowerBudget: 0x1666fae0>: Push received. Allowing file transfers to continue for 60.00 seconds
Oct 22 21:11:12 iPad mstreamd[14409] <Notice>: (Note ) PS: MSPublisher - xxxxxxxx Sending metadata...
Oct 22 21:11:12 iPad mstreamd[14409] <Notice>: (Note ) PS: MSSubscriber - xxxxxxxx Found 1 new asset collections.
Oct 22 21:11:13 iPad assetsd[11536] <Warning>: Unable to open file to save extended attributes (No such file or directory).
When running on my iPhone with iOS 9.1, I have similar log entries, except I have additional warnings/error messages about the caching server bolded:
Oct 25 22:35:28 iPhone mstreamd[1735] <Notice>: (Note ) PS: MSPublisher - xxxxxxxx Submitting 1 asset collections for publication.
Oct 25 22:35:28 iPhone mstreamd[1735] <Notice>: (Note ) PS: MSPublisher - xxxxxxxx Sending metadata...
**Oct 25 22:35:28 iPhone AssetCacheLocatorService[1658] <Warning>: #df99fdd0 [I:AssetCacheLocatorService.queue] found no caching servers**
Oct 25 22:35:28 iPhone mstreamd[1735] <Notice>: (Note ) PS: MSPublisher - xxxxxxxx uploading 1 assets...
**Oct 25 22:35:28 iPhone mstreamd[1735] <Notice>: (Error) mmcs: __mmcs_proxy_locator_exists_block_invoke:167 might have caching server returned with error: Error Domain=NSPOSIXErrorDomain Code=60 "Operation timed out" UserInfo={com.apple.AssetCacheLocator.tag=#1963bd2d, NSLocalizedDescription=quick miss requested}**
**Oct 25 22:35:29 iPhone mstreamd[1735] <Notice>: (Note ) PS: MSPublisher - xxxxxxxx Sending metadata...**
Oct 25 22:35:29 iPhone mstreamd[1735] <Notice>: (Note ) PS: Received push notification for invitations topic: com.apple.mediastream.subscription.push userInfo: {
r = xxxxxxxx;
}
Oct 25 22:35:29 iPhone mstreamd[1735] <Notice>: (Note ) PS: <MSIOSMediaStreamDaemon: 0x157e0c530>: Push notification received for My Photo Stream with targetPersonID xxxxxxxx.
Oct 25 22:35:29 iPhone mstreamd[1735] <Notice>: (Note ) mstreamd: <MSPowerBudget: 0x157e84410>: Plugged in to external power. Allowing file transfers.
Oct 25 22:35:29 iPhone mstreamd[1735] <Notice>: (Note ) mstreamd: <MSPowerBudget: 0x157e84410>: Push received. Allowing file transfers to continue for 60.00 seconds
Oct 25 22:35:29 iPhone mstreamd[1735] <Notice>: (Note ) PS: MSSubscriber - xxxxxxxx Found 1 new asset collections.
Oct 25 22:35:30 iPhone assetsd[1624] <Warning>: Unable to open file to save extended attributes (No such file or directory).
In this situation with iOS 9, the image is not uploaded when my app is active, and is uploaded only when the app goes into the background.
I suspect that the issue is due to 1. some system setting that is is activated with presentation of the UIImagePickerController only in iOS8 or 2. some issue with caching servers in iOS 9 as suggested by the log entries.
Anyone have any idea what is going on? Any ideas would be greatly appreciated! Thanks!
I think I've found a solution. It seems that if an AVCaptureSession is running, the iCloud Photo Stream will not synchronized. Calling the stopRunning method (as below) seems to do the trick:
[self.cameraSession stopRunning];
NSAssert works fine in Xcode 4 (up to 4.6 inclusive) when running debugger. Assertion fires, you breakpoint it, then it outputs the assertion message.
But when running outside the debugger (debug build on device), assertions fire - but with no message.
This makes assertions useless: you can see the line number which asserted, but the detailed message from the programmer has been wiped.
Is this an Xcode problem? A clang/LLVM problem? Is it a setting with the wrong value? Or is there a workaround?
Example code:
NSAssert(FALSE, #"X was invalid: %i", x );
Example output (console):
<Warning>: *** Assertion failure in -[myClass method:], myClass.m:124
<Notice>: Formulating crash report for process MyApp[82]
Expected output (console):
<Warning>: *** Assertion failure in -[myClass method:], myClass.m:124
<Warning>: *** "X was invalid: -435"
<Notice>: Formulating crash report for process MyApp[82]
NB: I'm only guessing how Apple would format the assertion message.
UPDATE: Found the problem. I was wrong with my original description:
The message was not being output to console while running in the debugger
Two observations:
The NSAssert is intended for debugging purposes only. When you build a release version of your app, NSAssert does nothing.
When you use NSAssert in a debug build of an app running on a device (not through the debugger), the message is in the device's console, not Xcode's. If you go to the "Organizer" in Xcode, choose "Devices", select your device and look at the "Console", you'll see your assertion there.
For example, I put in a line of code in a "Assertion Test" app:
NSAssert(FALSE, #"Assertion performed here");
When I look at the device's "Console" through Xcode's Organizer, I see:
Aug 6 09:10:53 Rob-iPod amfid[200] : Aug 6 09:10:53 SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
Aug 6 09:10:53 Rob-iPod Assertion Test[199] : *** Assertion failure in -[ViewController viewDidLoad], /Users/rryan/Documents/Development/Xcode/Assertion Test/Assertion Test/ViewController.m:21
Aug 6 09:10:53 Rob-iPod kernel[0] : launchd[199] Builtin profile: container (sandbox)
Aug 6 09:10:53 Rob-iPod kernel[0] : launchd[199] Container: /private/var/mobile/Applications/7A7A62EF-8CEC-4388-932D-5C02DE77B841 (sandbox)
Aug 6 09:10:53 Rob-iPod Assertion Test[199] : *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Assertion performed here'
*** First throw call stack:
(0x315592a3 0x391d797f 0x3155915d 0x31e2eab7 0x843f7 0x33380595 0x333c0d79 0x333bcaed 0x333fe1e9 0x333c183f 0x333b984b 0x33361c39 0x333616cd 0x3336111b 0x350535a3 0x350531d3 0x3152e173 0x3152e117 0x3152cf99 0x3149febd 0x3149fd49 0x333b8485 0x333b5301 0x84149 0x3960eb20)
Aug 6 09:10:54 Rob-iPod ReportCrash[201] : Formulating crash report for process Assertion Test[199]
Aug 6 09:10:54 Rob-iPod com.apple.launchd[1] (UIKitApplication:com.robertmryan.Assertion-Test[0x7be0][199]) : (UIKitApplication:com.robertmryan.Assertion-Test[0x7be0]) Job appears to have crashed: Abort trap: 6
Aug 6 09:10:54 Rob-iPod backboardd[26] : Application 'UIKitApplication:com.robertmryan.Assertion-Test[0x7be0]' exited abnormally with signal 6: Abort trap: 6
Aug 6 09:10:54 Rob-iPod ReportCrash[201] : libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary
Aug 6 09:10:54 Rob-iPod ReportCrash[201] : Saved crashreport to /var/mobile/Library/Logs/CrashReporter/Assertion Test_2013-08-06-091053_Rob-iPod.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0
If you look at that fifth line, you'll see the assertion message there.
This is very situation specific ... I hadn't realised, but we had HockeyApp / QuincyKit embedded in the app.
Hockey appears to have a nasty bug where it:
captures NSAssertions
Allows them to crash
Deletes the message
Deletes the logging
... does not upload anything to the Hockey website
So ... the messages were visible in the debugger, but only in the debugger variables - I was a fool, and not paying attention: they weren't appearing in the console.
To be clear: some assertions sometimes appear in Hockey (looking at the Hockey console), but most assertions are silently missing. 100% of App crashes appear, but only about 10% of assertion crashes.
I have an app here that could be boiled down to uiscrollviews with images that you can flick through. I'm experiencing something really strange here though.
When flicking through each image (have roughly 60 of them in total), at some point the app just quits. I'm running it in XCode 4 (GM seed 2), and I'm getting no debug info, and no messages in the console at all. Turned on NSZombieEnabled, but that didn't change anything.
I'm not even getting a crash log on the device. I've run it through instruments, and it doesn't report any leaks, and my memory usage goes between 700 and 1100KB when run on the device.
I even checked each of my "pages" (the ones you flick through) and added messages at init and dealloc, and I can confirm that they're all getting deallocated properly (only keep the current and the pages on each side loaded).
Now, this seem to mostly happen at the same point in the app when I just start at the beginning and flick through each page going right, plus or minus a few pages, all pointing toward a memory issue, I do get a memory warning from the device, but there is absolutely nothing pointing to me using a lot of memory at all, nor that there are any leaks.
I got this from the console on the device when the app quits:
Mar 8 14:13:37 unknown configd[26] : jetsam: kernel memory event (92), free: 451, active: 2894, inactive: 2267, purgeable: 0, wired: 16709
Mar 8 14:13:37 unknown configd[26] : jetsam: kernel termination snapshot being created
Mar 8 14:13:37 unknown com.apple.launchd[1] : (com.apple.AOSNotification) Exited: Killed: 9
Mar 8 14:13:37 unknown com.apple.launchd[1] : (UIKitApplication:com.apple.mobilemail[0xc2ee]) Exited: Killed: 9
Mar 8 14:13:37 unknown com.apple.launchd[1] : (UIKitApplication:no.NRC.NRCMag[0x3c6c]) Exited: Killed: 9
Mar 8 14:13:37 unknown com.apple.launchd[1] : (com.apple.dataaccess.dataaccessd) Exited: Killed: 9
Mar 8 14:13:37 unknown SpringBoard[30] : Received memory warning. Level=1
Mar 8 14:13:37 unknown SpringBoard[30] : Application 'Perspective' exited abnormally with signal 9: Killed: 9
Mar 8 14:13:38 unknown SpringBoard[30] : Application 'Mail' exited abnormally with signal 9: Killed: 9
Mar 8 14:13:38 unknown SpringBoard[30] : Memory level is not normal (60%). Delaying auto-relaunch of 'Mail' for 30 seconds.
Mar 8 14:13:38 unknown SpringBoard[30] : Received memory warning. Level=2
Mar 8 14:13:38 unknown kernel[0] : launchd[1253] Builtin profile: dataaccessd (sandbox)
Mar 8 14:13:39 unknown AOSN[1252] : AOSNotification Daemon Starting...
Mar 8 14:13:39 unknown AOSN[1252] : Device Information. Name: Calypso, BuildVersion: 8F190, Product Type: iPad1,1, Unique Device ID: f02b304ed9a62109de1f3efd3e1e23158a76b2d4
Mar 8 14:13:40 unknown ReportCrash[1254] : Saved crashreport to /Library/Logs/CrashReporter/LowMemory-2011-03-08-141339.plist using uid: 0 gid: 0, synthetic_euid: 0 egid: 0
Mar 8 14:13:40 unknown SpringBoard[30] : Received memory warning. Level=1
Mar 8 14:13:40 unknown dataaccessd[1253] : DA|Registered for wake notification
Mar 8 14:13:40 unknown AOSN[1252] : Push: Loading...
Mar 8 14:13:41 unknown profiled[1257] : profiled|Service starting...
Mar 8 14:13:41 unknown dataaccessd[1253] : EAS|EAS Protocol Manager set to ASProtocolUnknown
Mar 8 14:13:41 unknown dataaccessd[1253] : CalDAV|A refresh fired, but we're still waiting on a gatekeeper lock
Mar 8 14:13:42 unknown dataaccessd[1253] : EAS|EAS Protocol Manager set to ASProtocol12_1
Now this mentions a crash report, but how do I get a hold of this when it doesn't show up in the Organizer in XCode? And why am I getting memory warnings when Instruments (and a thorough look at my code) says that I'm not using much memory, nor leaking?
Help!
EDIT: Got 3.2.6 up and running here and the console now gives me this:
Program received signal: “0”.
Data Formatters temporarily unavailable, will re-try after a 'continue'. (Unknown error loading shared library "/Developer/usr/lib/libXcodeDebuggerSupport.dylib")
Okay, so I figured it out here, and it's a bit silly.
I use UIImage's imageNamed method to load each image/page, and apparently this was causing the memory warnings.
There's a couple of things that bother me a bit about this.
The caching is obviously a good thing, but apparently in 4.3 GM it doesn't seem to actually empty its cache when a memory warning occurs.
The memory usage building up isn't being reported as being used by my app.