App crashes on android device. Using numpy fft

92 views
Skip to first unread message

Peter F

unread,
Mar 7, 2019, 4:50:38 PM3/7/19
to Kivy users support
Tried using both python 2 and 3.
In Linux this part works perfectly.
In android, the app runs until the line where the FFT is happening and then I get the following printout on my phone:

03-07 22:42:59.378 24318 24360 F libc    : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 24360 (SDLThread), pid 24318 (t.android_tuner)


The python program is using kivy for some basic GUI stuff, and opens a .wav file on the phone.
This all works fine.

The row that crashes (I have printouts before and after) is:

f = np.fft.rfft(fft_short)

[np is numpy]



I believe I've seen someone posting online that they were doing FFT using numpy and buildozer/kivy, so I would love to know if it is a known problem or if there is something specific wrong for me?

Peter F

unread,
Mar 8, 2019, 9:16:34 AM3/8/19
to Kivy users support
I just noticed that there was more information about the crash.
I am very new to this, but the "Cause: null pointer dereference" and something about multiarray might be some clues? 

03-08 15:13:29.144 12642 12671 I python  : @@@@@@@@@@@@@>>>>>>>shorter_lenth of signal is: 50
03-08 15:13:29.152 12642 12671 F libc    : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 12671 (SDLThread), pid 12642 (t.android_tuner)
03-08 15:13:29.229 12685 12685 I crash_dump32: obtaining output fd from tombstoned, type: kDebuggerdTombstone
03-08 15:13:29.232  1384  1384 I /system/bin/tombstoned: received crash request for pid 12671
03-08 15:13:29.234 12685 12685 I crash_dump32: performing dump of process 12642 (target tid = 12671)
03-08 15:13:29.263 12685 12685 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-08 15:13:29.263 12685 12685 F DEBUG   : Build fingerprint: 'Sony/G8141/G8141:9/47.2.A.6.30/1054238033:user/release-keys'
03-08 15:13:29.263 12685 12685 F DEBUG   : Revision: '0'
03-08 15:13:29.263 12685 12685 F DEBUG   : ABI: 'arm'
03-08 15:13:29.263 12685 12685 F DEBUG   : pid: 12642, tid: 12671, name: SDLThread  >>> org.test.android_tuner <<<
03-08 15:13:29.263 12685 12685 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
03-08 15:13:29.263 12685 12685 F DEBUG   : Cause: null pointer dereference
03-08 15:13:29.263 12685 12685 F DEBUG   :     r0  00000000  r1  cdba8644  r2  00000001  r3  cc45ede0
03-08 15:13:29.263 12685 12685 F DEBUG   :     r4  cc392b31  r5  cbd3c110  r6  cc45f048  r7  cb3f7194
03-08 15:13:29.263 12685 12685 F DEBUG   :     r8  00000000  r9  00000001  r10 cb9c81f0  r11 cd983150
03-08 15:13:29.263 12685 12685 F DEBUG   :     ip  cc462880  sp  cd9830e0  lr  cc3f0b2f  pc  cc3f0b34
03-08 15:13:29.263 12685 12685 I unwind  : Malformed section header found, ignoring...
03-08 15:13:29.263 12685 12685 F DEBUG   : 
03-08 15:13:29.263 12685 12685 F DEBUG   : backtrace:
03-08 15:13:29.263 12685 12685 F DEBUG   :     #00 pc 000a5b34  /data/data/org.test.android_tuner/files/app/_python_bundle/site-packages/numpy/core/multiarray.so
Reply all
Reply to author
Forward
0 new messages