IOS app issues complete without debugging information and log messages

I have an application that can be minimized to uiscrollviews with images that you can scroll through. However, I am experiencing something really strange.

When you view each image (there are about 60 in total), at some point the application simply terminates. I run it in Xcode 4 (GM seed 2) and I do not receive debugging information and no messages in the console at all. NSZombieEnabled is included, but that hasn't changed anything.

I don’t even have a crash log on the device. I run it with the tools and it does not report any leaks, and the use of my memory is from 700 to 1100 KB when run on the device.

I even checked each of my “pages” (the ones you scroll through), and added the messages to init and dealloc, and I can confirm that they are all freed up properly (just keep the current one and the pages on each side are loaded).

Now this seems to be mainly happening in the same place in the application, when I just start from the very beginning and look at every page going to the right, plus or minus several pages, all indicate a memory problem, I get a memory warning from the device, but there is absolutely nothing that would indicate that I use a lot of memory in general, and that there are any leaks.

I got this from the console on the device when the application shuts down:

March 8 14:13:37 Unknown configd [26]: jetsam: kernel memory event (92), free: 451, active: 2894, inactive: 2267, cleaner: 0, wired: 16709

March 8 14:13:37 Unknown configd [26]: jetsam: kernel completion snapshot

March 8 14:13:37 unknown com.apple.launchd [1]: (com.apple.AOSNotification) Exit: killed: 9

March 8 14:13:37 unknown com.apple.launchd [1]: (UIKitApplication: com.apple.mobilemail [0xc2ee]) Exit: killed: 9

March 8 14:13:37 unknown com.apple.launchd [1]: (UIKitApplication: no.NRC.NRCMag [0x3c6c]) Exit: killed: 9

March 8 14:13:37 Unknown com.apple.launchd [1]: (com.apple.dataaccess.dataaccessd) Exit: Killed: 9

Mar 8 14:13:37 unknown SpringBoard [30]: warning about receiving memory. Level = 1

March 8 14:13:37 unknown SpringBoard [30]: the “Perspective” application came out abnormally with signal 9: killed: 9

Mar 8 14:13:38 unknown SpringBoard [30]: the Mail application came out anonymously with a signal of 9: killed: 9

Mar 8 14:13:38 unknown SpringBoard [30]: The memory level is not normal (60%). Delay of automatic restart "Mail" for 30 seconds.

Mar 8 14:13:38 unknown SpringBoard [30]: warning about receiving memory. Level = 2

Mar 8 14:13:38 Unknown kernel [0]: launchd [1253] Built-in profile: dataaccessd (sandbox)

Mar 8 14:13:39 unknown AOSN [1252]: launch of Daewon AOSNotification ...

March 8 14:13:39 unknown AOSN [1252]: Information about the device. Name: Calypso, BuildVersion: 8F190, Product Type: iPad1,1, Unique Device Identifier: f02b304ed9a62109de1f3efd3e1e23158a76b2d4

March 8 14:13:40 ReportCrash unknown [1254]: Crashreport saved in / Library / Logs / CrashReporter / LowMemory -2011-03-08-141339.plist, using uid: 0 gid: 0, syntax: 0 egid: 0

Mar 8 14:13:40 unknown SpringBoard [30]: warning about receiving memory. Level = 1

March 8 14:13:40 Unknown dataaccessd [1253]: DA | Registered to Awaken Alert

March 8 14:13:40 unknown AOSN [1252]: Push: Loading ...

March 8 14:13:41 unknown profiled [1257]: profiled | start of service ...

March 8 14:13:41 unknown dataaccessd [1253]: EAS | EAS Protocol Manager installed in ASProtocolUnknown

March 8 14:13:41 unknown dataaccessd [1253]: CalDAV | Update updated, but we are still waiting for the gatekeeper to lock

March 8 14:13:42 unknown dataaccessd [1253]: EAS | EAS Protocol Manager installed in ASProtocol12_1

Now this mentions a crash report, but how can I hold it when it doesn't show up in Organizer in Xcode? And why do I get memory warnings when the tools (and a careful look at my code) say that I don't use a lot of memory or leakage?

Help!

EDIT: Now you can run 3.6 and run the console here:

Program signal: "0".

Data formats are temporarily unavailable, try again after continuing. (Unknown error loading shared library "/Developer/usr/lib/libXcodeDebuggerSupport.dylib")

+4
source share
1 answer

Ok, so I figured it out here, and it's a little silly.

I am using the UIImage imageNamed method to load each image / page and apparently this causes memory warnings.

Here are a few things that bother me a bit.

  • Caching is certainly a good thing, but apparently in 4.3 GM it doesn't seem to actually empty its cache when a memory warning occurs.
  • Memory utilization is not reported as being used by my application.
-1
source

Source: https://habr.com/ru/post/1342821/


All Articles