• 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
EXC_BAD_ACCESS when migrating a store, but only sometimes...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

EXC_BAD_ACCESS when migrating a store, but only sometimes...


  • Subject: EXC_BAD_ACCESS when migrating a store, but only sometimes...
  • From: Daniel Kennett <email@hidden>
  • Date: Wed, 28 Oct 2009 10:48:50 +0000

Hi list,

I've come across a rather perplexing problem which is driving me nuts. I'm attempting to migrate a core data SQLite store to the current model version, and most of the time it works fine. However, sometimes I get an EXC_BAD_ACCESS in the following stack:

objc_assign_strongCast + 19
-[NSMigrationManager migrateStoreFromURL:type:options:withMappingModel:toDestinationURL:destinationType:destinationOptions:error :] + 2750
(My methods...)


Most of the time, if I simply try and run the migration again on the same file it works fine. I'm not doing anything fancy - this is how I call -migrateStoreFromURL:...

[manager migrateStoreFromURL:url
    type:NSSQLiteStoreType
    options:nil
    withMappingModel:mappingModel
    toDestinationURL:destinationStoreURL
    destinationType:NSSQLiteStoreType
    destinationOptions:nil error:error]

All of my vars are correct and I have no memory leaks or overreleases. If anyone could help me start debugging what on earth is going on, I'd really appreciate it.

 Thanks,

-- Daniel

 _______________________

   email@hidden
   http://www.kennettnet.co.uk

Please include previous messages in any reply you send.



_______________________________________________

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: EXC_BAD_ACCESS when migrating a store, but only sometimes...
      • From: "Sean McBride" <email@hidden>
  • Prev by Date: Re: Problem with allocating memory
  • Next by Date: Re: waiting for async callback in main thread
  • Previous by thread: Re: Single Static Library for iPhone and Desktop applications
  • Next by thread: Re: EXC_BAD_ACCESS when migrating a store, but only sometimes...
  • Index(es):
    • Date
    • Thread