FLIR One Developer / Blog / Topics / crash / Intermittent crashes in UpdateOptimizedOMP

Intermittent crashes in UpdateOptimizedOMP

Home Forums FLIR ONE SDK Development iOS development Installation and getting started Intermittent crashes in UpdateOptimizedOMP


This topic contains 2 replies, has 3 voices, and was last updated by Profile photo of Dominique Dominique 2 years, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)

  • Author


  • #5152

    Profile photo of Richard Sewell
    Richard Sewell


    We’re seeing occasional crashes when we connect the FLIR One to an iOS device while our app is running. Adding logging to try to locate the crash has made them much harder to reproduce, which suggests that this might be a timing-related bug.

    A typical stack is below. It would be very helpful to know what might cause this kind of crash, to understand what might cause UpdateOptimizedOMP to attempt a bad buffer creation. For example, is there any way this could result from a failure on our part to set up some precondition ?


    Exception Type:  EXC_BAD_ACCESS (SIGBUS)
    Exception Subtype: KERN_PROTECTION_FAILURE at 0x05cbffff
    Termination Signal: Bus error: 10
    Termination Reason: Namespace SIGNAL, Code 0xa
    Terminating Process: exc handler [0]
    Triggered by Thread:  13
    Thread 13 name:  Dispatch queue:
    Thread 13 Crashed:
    0   TestApp         	0x0042a9b0 CPUBuffer::CacheAlignedMalloc(int, int, int, int&, int&, int, int) (cpu_buffer.cpp:106)
    1   TestApp         	0x0042abd2 CPUBuffer::Create(int, int, int) (cpu_buffer.cpp:260)
    2   TestApp         	0x004291cc DeadPixelMapFilterCPU::UpdateOptimizedOMP(void*, void*) (cpu_dead_pixel_map_filter.cpp:357)
    3   TestApp         	0x0042914c DeadPixelMapFilterCPU::Update(void*, void*) (cpu_dead_pixel_map_filter.cpp:77)
    4   TestApp         	0x0040b6f4 -[RosebudAdapter(FPGA) createDeadPixelMap:] (
    5   TestApp         	0x0040c31a -[RosebudAdapter(FPGA) newFrameFPGA:] (
    6   TestApp         	0x00407cb6 __45-[RosebudAdapter FLIRRosebudDidReceiveFrame:]_block_invoke (RosebudAdapter.m:976)
    7   libdispatch.dylib             	0x1a59e096 _dispatch_call_block_and_release + 10
    8   libdispatch.dylib             	0x1a5acc26 _dispatch_root_queue_drain + 836
    9   libdispatch.dylib             	0x1a5ac882 _dispatch_worker_thread3 + 106
    10  libsystem_pthread.dylib       	0x1a753936 _pthread_wqthread + 1168
    11  libsystem_pthread.dylib       	0x1a753490 start_wqthread + 8


    Profile photo of Jeremy Birch
    Jeremy Birch


    I am seeing similar crashes ie under RosebudAdapter(FPGA) newFrameFPGA at CPUBuffer::CacheAlignedMalloc.

    Did you ever find out if there was a workaround eg some element of initialization that you missed?




    Profile photo of Dominique


    Hello Richard and Jeremy,

    Were you able to resolve this issue?

    Thank you,
    Dominique Strauss

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.