ARWorldMap save and restore makes app crash

Hi there,

I have a function that saves and restores ARWorldMap in my App, my operation flow

  1. open my app and scan around
  2. save ARWorldMap to ipad local storage
  3. load to restore ARWorldMap

After repeat step 2 and 3 several times, my App crashed. I thought it was my code issue but cannot find any clue. Then I downloaded official ARWorldMap Pesistent demo from https://developer.apple.com/documentation/arkit/data_management/saving_and_loading_world_data, repeat the operation as above, it also crashed. My iPad version is iPad Prod 15.3.1, and the error log said dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection.dylib blahblah, please check it from attachment. Any help is appreciated.

Update for more information, I enabled plane visualization for detected plane, when I save and load the ARWorldMap, the planes became denser and denser, and app became much slower.

I have filed a bug in feedback assistant, number is FB9961441, but no response received yet. did anybody encounter this problem? Or anybody implemented save and restore ARWorldMap without this problem? Please let me know. It blocked my development.

I experience the same issue. Do you have any updates/workarounds by now?

The Saving and Loading World Data developer sample has been updated recently. Please try with the latest version of the sample, you should no longer run into the issue shown in the screenshot.

I still experience this error:

Assert: in line 508 dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/usr/lib/libMTLCapture.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib

What has been updated? How can I overcome this error? I have absoult no idea what the error refers to? It is thrown after a short time after the world is restored without triggering a raycast or any other method manually. It seems that the error occurs as soon as a certain area of the map becomes visible.

I am very grateful for any support

Hi Maximilian_, we are sorry that you are still facing errors. My earlier reply was referring to the log message -[NSKeyedUnarchiver validateAllowedClass: forKey:] allowed unarchiving safe plist type " 'NSData'.... We have updated the developer sample to address this.

The assertion that's also described in this thread is not related to that, but we are aware of the issue and actively investigating it.

ARWorldMap save and restore makes app crash
 
 
Q