Hi,
Can we get an update on this? Were you able to reproduce the issue?
Hi,
I could not reproduce this issue in our examples app. Neither with release 8.7 nor with the latest 8.9.
Are you using the default .wtc file provided with the extended image tracking sample? Or are you using a different file with your own targets?
In our tests with extended tracking in the examples app, with the default targets file, memory usage does not go beyond 182MB. I don't see any memory leaks either. How much memory is available in your device before starting the extended image tracking?
Also, the error you mention is not very specific. Could you enter `bt` in Xcode's lldb terminal? This will print the stack trace and should give us a bit more information about the crash.
Please let us know about this so we can keep looking into the issue.
- Damian
Hi,
Thanks for the update, and the help with xCode lldb.
The example app works fine every time. It's only the downloaded offline wikitude studio xcode project (and my own project) that produces this issue. In my own project I don't use extended tracking at all.
Here's the stack trace:
* thread #5, queue = 'com.wikitude.camera_lifecycle_queue', stop reason = EXC_BAD_ACCESS (code=1, address=0x50) * frame #0: 0x00000001005a7f0c WikitudeSDK`wikitude::universal_sdk::impl::BaseTracker::getExtendedRangeImageRecognitionActive(int, int) + 8 frame #1: 0x0000000100588e4c WikitudeSDK`wikitude::universal_sdk::impl::MusketIrImageTrackingPluginModule::cameraFrameAvailable(wikitude::sdk::impl::ManagedCameraFrame&) + 108 frame #2: 0x0000000100569438 WikitudeSDK`wikitude::sdk::impl::Plugin::iterateEnabledPluginModules(std::__1::function<void (wikitude::sdk::impl::PluginModule&)>) + 84 frame #3: 0x000000010059b54c WikitudeSDK`wikitude::universal_sdk::impl::MusketIrPlugin::cameraFrameAvailable(wikitude::sdk::impl::ManagedCameraFrame&) + 60 frame #4: 0x000000010054d1c8 WikitudeSDK`wikitude::universal_sdk::impl::PluginManagerInternal::iterateEnabledPlugins(std::__1::function<void (std::__1::shared_ptr<wikitude::sdk::impl::Plugin> const&)>) + 92 frame #5: 0x000000010054d258 WikitudeSDK`wikitude::universal_sdk::impl::PluginManagerInternal::newCameraFrameAvailable(wikitude::sdk::impl::ManagedCameraFrame&) + 72 frame #6: 0x0000000100562120 WikitudeSDK`void wikitude::common_code::impl::ObserverManager<wikitude::universal_sdk::impl::CameraServiceObserver>::iterateObserver<wikitude::universal_sdk::impl::CameraServiceObserver>(std::__1::function<void (wikitude::universal_sdk::impl::CameraServiceObserver*)>) + 112 frame #7: 0x0000000100561fd8 WikitudeSDK`wikitude::universal_sdk::impl::CameraService::newUnmanagedCameraFrameAvailable(wikitude::sdk::impl::CameraFrame) + 84 frame #8: 0x0000000100562c78 WikitudeSDK`void std::__1::__invoke_void_return_wrapper<void>::__call<std::__1::__bind<void (wikitude::universal_sdk::impl::CameraService::*)(wikitude::sdk::impl::CameraFrame), wikitude::universal_sdk::impl::CameraService*, std::__1::placeholders::__ph<1> const&>&, wikitude::sdk::impl::CameraFrame>(std::__1::__bind<void (wikitude::universal_sdk::impl::CameraService::*)(wikitude::sdk::impl::CameraFrame), wikitude::universal_sdk::impl::CameraService*, std::__1::placeholders::__ph<1> const&>&, wikitude::sdk::impl::CameraFrame&&) + 224 frame #9: 0x000000010056d96c WikitudeSDK`wikitude::universal_sdk::impl::UniversalCameraInterface::notifyNewCameraFrame(wikitude::sdk::impl::CameraFrame) + 212 frame #10: 0x000000010057650c WikitudeSDK`wikitude::sdk::impl::PlatformCameraModule::notifyNewUnmanagedCameraFrame(wikitude::sdk::impl::CameraFrame const&) const + 224 frame #11: 0x0000000100ad78a8 WikitudeSDK`std::__1::__function::__func<wikitude::ios::impl::iOSCameraModule::iOSCameraModule(wikitude::sdk::impl::WikitudePlatformComponent&, wikitude::ios::impl::iOSCameraModuleInternal&)::$_0, std::__1::allocator<wikitude::ios::impl::iOSCameraModule::iOSCameraModule(wikitude::sdk::impl::WikitudePlatformComponent&, wikitude::ios::impl::iOSCameraModuleInternal&)::$_0>, void (wikitude::sdk::impl::CameraFrame const&)>::operator()(wikitude::sdk::impl::CameraFrame const&) + 192 frame #12: 0x0000000100ae8624 WikitudeSDK`___ZN8wikitude5apple4impl25AppleCameraModuleInternalC2ERNS1_26AppleSystemResourceManagerEPU30objcproto19WTVideoCameraSystem11objc_object_block_invoke_2 + 336 frame #13: 0x0000000100af4588 WikitudeSDK`-[WTVideoCameraDelegateConnector videoCamera:didOutputNextCameraImageBuffer:withId:presentationTimestamp:] + 40 frame #14: 0x0000000100b12e48 WikitudeSDK`__79-[WTVideoCamera captureManager:didOutputSampleBuffer:fromConnection:atFrameId:]_block_invoke + 236 frame #15: 0x000000010034cc78 libdispatch.dylib`_dispatch_client_callout + 16 frame #16: 0x000000010035b480 libdispatch.dylib`_dispatch_lane_barrier_sync_invoke_and_complete + 124 frame #17: 0x0000000100b12d50 WikitudeSDK`-[WTVideoCamera captureManager:didOutputSampleBuffer:fromConnection:atFrameId:] + 88 frame #18: 0x0000000100b0ce1c WikitudeSDK`-[WTCaptureManager processRunningSampleBuffer:fromConnection:] + 100 frame #19: 0x00000001ad6be010 CoreFoundation`<redacted> + 144 frame #20: 0x00000001ad59fbe0 CoreFoundation`<redacted> + 292 frame #21: 0x00000001ad5a0814 CoreFoundation`<redacted> + 60 frame #22: 0x0000000100b0c378 WikitudeSDK`-[WTCaptureManager captureOutput:didOutputSampleBuffer:fromConnection:] + 228 frame #23: 0x00000001b3706800 AVFoundation`<redacted> + 332 frame #24: 0x00000001b37064ac AVFoundation`<redacted> + 100 frame #25: 0x00000001b0c21118 CoreMedia`<redacted> + 280 frame #26: 0x00000001b0c3e718 CoreMedia`<redacted> + 224 frame #27: 0x000000010034cc78 libdispatch.dylib`_dispatch_client_callout + 16 frame #28: 0x000000010034fffc libdispatch.dylib`_dispatch_continuation_pop + 524 frame #29: 0x0000000100362610 libdispatch.dylib`_dispatch_source_invoke + 1444 frame #30: 0x0000000100354a4c libdispatch.dylib`_dispatch_lane_serial_drain + 288 frame #31: 0x00000001003558ec libdispatch.dylib`_dispatch_lane_invoke + 512 frame #32: 0x0000000100354a4c libdispatch.dylib`_dispatch_lane_serial_drain + 288 frame #33: 0x00000001003558b4 libdispatch.dylib`_dispatch_lane_invoke + 456 frame #34: 0x000000010035f77c libdispatch.dylib`_dispatch_workloop_worker_thread + 1148 frame #35: 0x00000001ad2d6114 libsystem_pthread.dylib`_pthread_wqthread + 304 frame #36: 0x00000001ad2d8cd4 libsystem_pthread.dylib`start_wqthread + 4
Thanks again
Hi! I have same bag in WikitubeSDK version 8.9
please take my bag track for understanding issue
* thread #7, queue = 'com.wikitude.camera_lifecycle_queue', stop reason = EXC_BAD_ACCESS (code=1, address=0x50)
* frame #0: 0x00000001051100f8 WikitudeSDK`wikitude::universal_sdk::impl::BaseTracker::getExtendedRangeImageRecognitionActive(int, int) + 8
frame #1: 0x00000001050c1054 WikitudeSDK`wikitude::universal_sdk::impl::MusketIrImageTrackingPluginModule::cameraFrameAvailable(wikitude::sdk::impl::ManagedCameraFrame&) + 108
frame #2: 0x00000001050d9784 WikitudeSDK`wikitude::sdk::impl::Plugin::iterateEnabledPluginModules(std::__1::function<void (wikitude::sdk::impl::PluginModule&)>) + 96
frame #3: 0x00000001050bfecc WikitudeSDK`wikitude::universal_sdk::impl::MusketIrPlugin::cameraFrameAvailable(wikitude::sdk::impl::ManagedCameraFrame&) + 60
frame #4: 0x00000001050bb480 WikitudeSDK`wikitude::universal_sdk::impl::PluginManagerInternal::newCameraFrameAvailable(wikitude::sdk::impl::ManagedCameraFrame&) + 140
frame #5: 0x00000001050ebd78 WikitudeSDK`wikitude::universal_sdk::impl::CameraService::newUnmanagedCameraFrameAvailable(wikitude::sdk::impl::CameraFrame) + 132
frame #6: 0x00000001050ecd10 WikitudeSDK`void std::__1::__invoke_void_return_wrapper<void>::__call<std::__1::__bind<void (wikitude::universal_sdk::impl::CameraService::*)(wikitude::sdk::impl::CameraFrame), wikitude::universal_sdk::impl::CameraService*, std::__1::placeholders::__ph<1> const&>&, wikitude::sdk::impl::CameraFrame>(std::__1::__bind<void (wikitude::universal_sdk::impl::CameraService::*)(wikitude::sdk::impl::CameraFrame), wikitude::universal_sdk::impl::CameraService*, std::__1::placeholders::__ph<1> const&>&, wikitude::sdk::impl::CameraFrame&&) + 236
frame #7: 0x0000000105094f3c WikitudeSDK`wikitude::universal_sdk::impl::UniversalCameraInterface::notifyNewCameraFrame(wikitude::sdk::impl::CameraFrame) + 64
frame #8: 0x00000001050d6bc0 WikitudeSDK`wikitude::sdk::impl::PlatformCameraModule::notifyNewUnmanagedCameraFrame(wikitude::sdk::impl::CameraFrame const&) const + 84
frame #9: 0x0000000105145d40 WikitudeSDK`std::__1::__function::__func<wikitude::ios::impl::iOSCameraModule::iOSCameraModule(wikitude::sdk::impl::WikitudePlatformComponent&, wikitude::ios::impl::iOSCameraModuleInternal&)::$_0, std::__1::allocator<wikitude::ios::impl::iOSCameraModule::iOSCameraModule(wikitude::sdk::impl::WikitudePlatformComponent&, wikitude::ios::impl::iOSCameraModuleInternal&)::$_0>, void (wikitude::sdk::impl::CameraFrame const&)>::operator()(wikitude::sdk::impl::CameraFrame const&) + 48
frame #10: 0x000000010512ecd4 WikitudeSDK`___ZN8wikitude5apple4impl25AppleCameraModuleInternalC2ERNS1_26AppleSystemResourceManagerEPU30objcproto19WTVideoCameraSystem11objc_object_block_invoke_2 + 508
frame #11: 0x000000010512e374 WikitudeSDK`-[WTVideoCameraDelegateConnector videoCamera:didOutputNextCameraImageBuffer:withId:presentationTimestamp:] + 32
frame #12: 0x000000010516a360 WikitudeSDK`__79-[WTVideoCamera captureManager:didOutputSampleBuffer:fromConnection:atFrameId:]_block_invoke + 236
frame #13: 0x00000001047e718c libdispatch.dylib`_dispatch_client_callout + 20
frame #14: 0x00000001047f6c34 libdispatch.dylib`_dispatch_lane_barrier_sync_invoke_and_complete + 176
frame #15: 0x000000010516a268 WikitudeSDK`-[WTVideoCamera captureManager:didOutputSampleBuffer:fromConnection:atFrameId:] + 80
frame #16: 0x00000001051649f8 WikitudeSDK`-[WTCaptureManager processRunningSampleBuffer:fromConnection:] + 92
frame #17: 0x000000019c62ed14 CoreFoundation`__invoking___ + 148
frame #18: 0x000000019c4f7de8 CoreFoundation`-[NSInvocation invoke] + 400
frame #19: 0x000000019c4f8a10 CoreFoundation`-[NSInvocation invokeWithTarget:] + 80
frame #20: 0x0000000105163f7c WikitudeSDK`-[WTCaptureManager captureOutput:didOutputSampleBuffer:fromConnection:] + 212
frame #21: 0x00000001a6b97234 AVFoundation`-[AVCaptureVideoDataOutput _processSampleBuffer:] + 336
frame #22: 0x00000001a6b96f78 AVFoundation`__47-[AVCaptureVideoDataOutput _updateRemoteQueue:]_block_invoke + 92
frame #23: 0x00000001a301895c CoreMedia`__FigRemoteOperationReceiverCreateMessageReceiver_block_invoke + 292
frame #24: 0x00000001a3039b70 CoreMedia`__rqReceiverSetSource_block_invoke + 256
frame #25: 0x00000001047e718c libdispatch.dylib`_dispatch_client_callout + 20
frame #26: 0x00000001047e9ff0 libdispatch.dylib`_dispatch_continuation_pop + 576
frame #27: 0x00000001047fe0e4 libdispatch.dylib`_dispatch_source_invoke + 1332
frame #28: 0x00000001047ee798 libdispatch.dylib`_dispatch_lane_serial_drain + 260
frame #29: 0x00000001047ef580 libdispatch.dylib`_dispatch_lane_invoke + 440
frame #30: 0x00000001047fb0f0 libdispatch.dylib`_dispatch_workloop_worker_thread + 1344
frame #31: 0x000000019c32f714 libsystem_pthread.dylib`_pthread_wqthread + 276
Info
Hi Wikitude team,
About 50% of the time when the application starts I get the following bad_access exception on getExtendedRangeImageRecognitionActive. The error occures with the downloaded offline project with no modifications as well. Tested on iPhone 6 and iPhone Xr. The error also occures with SDK 8.5 which is the one downloaded with the offline project and the latest 8.7.
Thanks for the help,
Udeme