Skip to content

OpenCV built with NKD 19c and 20 beta3 crashes on armv7 #14265

Closed

Description

@bommo1
System information (version)
  • OpenCV => 3.4.6-pre (Release build)
  • Operating System / Platform => Android 6.0 armeabi-v7a
  • Compiler => clang NKD 19c and 20 beta3
Steps to reproduce

Calling cv::warpAffine() or cv::warpPerspective() will produce a crash: signal 7 (SIGBUS), code 1 (BUS_ADRALN)

The crash doesn't occur on debug builds or on armv8.

Workaround: build OpenCV with NDK 18b.

See also: #13676

Activity

  1. alalek commented on Apr 5, 2019

    @alalek
    Member

    crash

    Try to collect stack trace, instructions, registers values

    Perhaps related: #12961

  2. mukesh1yadav commented on Apr 6, 2019

    @mukesh1yadav

    I think python is not able to take the dta types which cause system to crash or getting signal error.

  3. bommo1 commented on Apr 6, 2019

    @bommo1
    ContributorAuthor
  4. changed the title [-]OpenCV built with NKD 19c and 20 beta2 crashes on armv7[/-] [+]OpenCV built with NKD 19c and 20 beta3 crashes on armv7[/+] on May 12, 2019
  5. comicchang commented on May 31, 2019

    @comicchang

    same crash happens here.

    05-31 03:52:15.852 3433-3470/com.demo.opencv A/libc: Fatal signal 7 (SIGBUS), code 1, fault addr 0x96653469 in tid 3470 (Thread-201)
    05-31 03:52:15.852 3433-3467/com.demo.opencv A/libc: Fatal signal 7 (SIGBUS) in tid 3467 (Thread-201)
    05-31 03:52:15.907 168-168/? I/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    05-31 03:52:15.907 168-168/? I/DEBUG: Build fingerprint: 'Android/rk3288_box/rk3288_box:5.1.1/LMY49F/firefly03081546:userdebug/test-keys'
    05-31 03:52:15.907 168-168/? I/DEBUG: Revision: '0'
    05-31 03:52:15.907 168-168/? I/DEBUG: ABI: 'arm'
    05-31 03:52:15.908 168-168/? I/DEBUG: pid: 3433, tid: 3470, name: Thread-201  >>> com.demo.opencv <<<
    05-31 03:52:15.908 168-168/? I/DEBUG: signal 7 (SIGBUS), code 1 (BUS_ADRALN), fault addr 0x96653469
    05-31 03:52:15.945 168-168/? I/DEBUG:     r0 000b142a  r1 000b142b  r2 96653e88  r3 965a2040
    05-31 03:52:15.946 168-168/? I/DEBUG:     r4 000b1429  r5 96653469  r6 42ff4000  r7 9dd67590
    05-31 03:52:15.946 168-168/? I/DEBUG:     r8 a2e3e4a8  r9 965a2a60  sl b90c400e  fp 96bc5040
    05-31 03:52:15.946 168-168/? I/DEBUG:     ip 965a2040  sp 9dd67510  lr 00000000  pc a27b54f8  cpsr 280f0030
    05-31 03:52:15.946 168-168/? I/DEBUG: backtrace:
    05-31 03:52:15.946 168-168/? I/DEBUG:     #00 pc 004d34f8  /data/app/com.demo.opencv-2/lib/arm/libdemo.so
    05-31 03:52:15.946 168-168/? I/DEBUG:     #01 pc 004b9c53  /data/app/com.demo.opencv-2/lib/arm/libdemo.so
    05-31 03:52:15.946 168-168/? I/DEBUG:     #02 pc 004d0feb  /data/app/com.demo.opencv-2/lib/arm/libdemo.so
    05-31 03:52:15.946 168-168/? I/DEBUG:     #03 pc 0020ed91  /data/app/com.demo.opencv-2/lib/arm/libdemo.so (cv::parallel_for_(cv::Range const&, cv::ParallelLoopBody const&, double)+160)
    05-31 03:52:15.947 168-168/? I/DEBUG:     #04 pc 004b6f57  /data/app/com.demo.opencv-2/lib/arm/libdemo.so (cv::remap(cv::_InputArray const&, cv::_OutputArray const&, cv::_InputArray const&, cv::_InputArray const&, int, int, cv::Scalar_<double> const&)+2022)
    05-31 03:52:15.947 168-168/? I/DEBUG:     #05 pc 004d240d  /data/app/com.demo.opencv-2/lib/arm/libdemo.so
    05-31 03:52:15.947 168-168/? I/DEBUG:     #06 pc 0020f347  /data/app/com.demo.opencv-2/lib/arm/libdemo.so
    05-31 03:52:15.947 168-168/? I/DEBUG:     #07 pc 00210a9f  /data/app/com.demo.opencv-2/lib/arm/libdemo.so
    05-31 03:52:15.947 168-168/? I/DEBUG:     #08 pc 00210e15  /data/app/com.demo.opencv-2/lib/arm/libdemo.so
    05-31 03:52:15.947 168-168/? I/DEBUG:     #09 pc 0020eec7  /data/app/com.demo.opencv-2/lib/arm/libdemo.so (cv::parallel_for_(cv::Range const&, cv::ParallelLoopBody const&, double)+470)
    05-31 03:52:15.947 168-168/? I/DEBUG:     #10 pc 004c8573  /data/app/com.demo.opencv-2/lib/arm/libdemo.so (cv::hal::warpAffine(int, unsigned char const*, unsigned int, int, int, unsigned char*, unsigned int, int, int, double const*, int, int, double const*)+394)
    05-31 03:52:15.947 168-168/? I/DEBUG:     #11 pc 004c8f2f  /data/app/com.demo.opencv-2/lib/arm/libdemo.so (cv::warpAffine(cv::_InputArray const&, cv::_OutputArray const&, cv::_InputArray const&, cv::Size_<int>, int, int, cv::Scalar_<double> const&)+1246)
    
    

    (sorry i messed up with the debug environment, so I can only provide this backtrace)

    image

  6. added a commit that references this issue on Jun 3, 2019
  7. Palladinium commented on Jun 4, 2019

    @Palladinium

    Could be related to #14281, I'll check if your PR fixes that too when I get a chance

  8. added a commit that references this issue on Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions