• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
UIDocument + NSFileWrapper crashes on opening
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

UIDocument + NSFileWrapper crashes on opening


  • Subject: UIDocument + NSFileWrapper crashes on opening
  • From: Markus Spoettl <email@hidden>
  • Date: Thu, 20 Jun 2013 23:01:52 +0200

Hello everyone,

I have an iOS 6 app that uses UIDocument to implement loading and saving of my app's data. The document data is loaded from and saved to a NSFileWrapper (representing a file package containing many files and folders), handed from and to the document in -loadFromContents::: and -contentsForType::.

This all works well for small documents but I now have a case where a document the app created in a previous session apparently is too big to be loaded.

My app vanishes about 1-2 seconds after UIDocument calls -readFromURL:error: before my implementation of -loadFromContents::: is even called. There is no crash and no useful information (to me anyway) logged to the console. It just logs that my app was killed but gives no reason.

I *suspect* UIDocument tries to load the whole package containing its 140MB of data in about 1000 files and couple of 100 folders and then chokes on it.

The system had no problem creating the file package and saving it to the "disk", but it sure can't load it.

I have tried on the simulator and using the same data as on the device it works, the data loads just fine.

I'm pasting the console output of a typical session from the time the app is started via Springboard until it crashes/vanishes. Maybe it contains a clue I don't see.

Does someone know what may be going on? I'm using Xcode 4.6.3 and iOS 6.1.3 (iPad Retina).

Thanks!
Regards
Markus

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: UIDocument + NSFileWrapper crashes on opening
      • From: Luke the Hiesterman <email@hidden>
    • Re: UIDocument + NSFileWrapper crashes on opening
      • From: Markus Spoettl <email@hidden>
  • Prev by Date: Re: NSDocument and Large File Import?
  • Next by Date: Re: UIDocument + NSFileWrapper crashes on opening
  • Previous by thread: Re: NSDocument and Large File Import?
  • Next by thread: Re: UIDocument + NSFileWrapper crashes on opening
  • Index(es):
    • Date
    • Thread