Android-OpenCL-Sobel-Filter icon indicating copy to clipboard operation
Android-OpenCL-Sobel-Filter copied to clipboard

clGetPlatformIDs() gets error

Open Lmy0217 opened this issue 7 years ago • 3 comments

Hi, I build and run your code on my MI5 (Qualcomm 820, Adreno 530) with eclipse. The process of build is ok but I get some errors as follows when code run

Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 23010 (Thread-3)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'Xiaomi/gemini/gemini:7.0/NRD90M/7.7.20:user/release-keys'
Revision: '0'
ABI: 'arm'
pid: 22941, tid: 23010, name: Thread-3  >>> com.white.imagesobelfilter <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
    r0 00000001  r1 ce7e3180  r2 cd578f64  r3 00000000
    r4 e8eb1f8c  r5 e8eb2108  r6 e8eaf63c  r7 00000000
    r8 ea5f1d10  r9 00000100  sl 00000000  fp cd57911c
    ip eb414948  sp cd578f28  lr e8ead10f  pc 00000000  cpsr 200f0010
backtrace:
    #00 pc 00000000  <unknown>
    #01 pc 0000210d  /data/app/com.white.imagesobelfilter-1/lib/arm/libSobelFilter.so (_Z9GPU_SobelP9_IplImageS0_+140)
    #02 pc 0000258b  /data/app/com.white.imagesobelfilter-1/lib/arm/libSobelFilter.so (Java_com_white_imagesobelfilter_nativeSobelFilter_sobelFilter+186)
    #03 pc 000652cd  /data/app/com.white.imagesobelfilter-1/oat/arm/base.odex (offset 0x65000)

The failed code is

https://github.com/WhiteIsClosing/Android-OpenCL-Sobel-Filter/blob/8539b2681ab40fca812f47da059291c0041ee9e3/ImageSobelFilter/jni/ImageSobelFilter.cpp#L218

Lmy0217 avatar Aug 11 '17 06:08 Lmy0217

the similar problem with you (MI5) when I run to cllinkprogram func the process will be crashed signal 11 (SIGSEGV), code 1 ,fault addr 0x8 in tid 22049 (pool-1-thread-2)

wanyvic avatar Mar 27 '18 14:03 wanyvic

I got this problem too. have you solved that?

qifengl avatar Jun 16 '18 07:06 qifengl

@qifengl I didn't solved it, have you solved now?

Lmy0217 avatar Jun 28 '18 03:06 Lmy0217