Start a new topic

iOS crash at getExtendedRangeImageRecognitionActive

 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

EXC_BAD_ACCESS (code=1, address=0x50)

WikitudeSDK`wikitude::universal_sdk::impl::BaseTracker::getExtendedRangeImageRecognitionActive:
    0x100cc3f04 <+0>:  cmp    w1, #0x2d1                ; =0x2d1 
    0x100cc3f08 <+4>:  b.lt   0x100cc3f24               ; <+32>
->  0x100cc3f0c <+8>:  ldr    w8, [x0, #0x50]
    0x100cc3f10 <+12>: cmp    w8, #0x2                  ; =0x2 
    0x100cc3f14 <+16>: b.hi   0x100cc3f24               ; <+32>
    0x100cc3f18 <+20>: tst    w8, #0x1
    0x100cc3f1c <+24>: cset   w0, eq
    0x100cc3f20 <+28>: ret    
    0x100cc3f24 <+32>: mov    w0, #0x0
    0x100cc3f28 <+36>: ret    

 


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

Login or Signup to post a comment