I'm trying to call BASS_FX_BPM_Free on a currently playing handle, and it returns true with no error, but the android background process (playing audio) crashes shortly after.
To hopefully provide some clues on the problem, please post the crash log including call stack.
I wasn't able to catch an exception. The call to BASS_FX_BPM_Free returns true. Android monitor reported the following:
08-21 16:55:30.643: E/mono-rt(31903): Stacktrace:
08-21 16:55:30.643: E/mono-rt(31903): Attempting native Android stacktrace:
08-21 16:55:30.643: D/libc-fault-recovery-native(31903): M=0xf728e0f0 B=0xf728e1c8 F=0x9d757100 P=0xac98f010 I=22
08-21 16:55:30.653: D/libc-fault-recovery-native(31903): FIND target F=0x0
08-21 16:55:30.653: A/libc(31903): heap corruption detected by dlmalloc_real
08-21 16:55:30.653: A/libc(31903): Fatal signal 6 (SIGABRT), code -6 in tid 31958 (Thread-704)
08-21 16:55:30.653: W/libc(31903): Security Level: (0), Allow to dump debug information.
08-21 16:55:30.683: I/DEBUG(586): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
08-21 16:55:30.683: I/DEBUG(586): Build fingerprint: 'htc/himauhl_htc_europe/htc_himauhl:5.1/LMY47O/576582.1:user/release-keys'
08-21 16:55:30.683: I/DEBUG(586): Revision: '0'
08-21 16:55:30.683: I/DEBUG(586): ABI: 'arm'
08-21 16:55:30.683: I/DEBUG(586): pid: 31903, tid: 31958, name: Thread-704 >>> com.mr.droid.backgroundaudio <<<
08-21 16:55:30.683: I/DEBUG(586): signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
08-21 16:55:30.693: I/DEBUG(586): Abort message: 'heap corruption detected by dlmalloc_real'
08-21 16:55:30.693: I/DEBUG(586): r0 00000000 r1 00007cd6 r2 00000006 r3 00000000
08-21 16:55:30.693: I/DEBUG(586): r4 d71acdd8 r5 00000006 r6 00000000 r7 0000010c
08-21 16:55:30.693: I/DEBUG(586): r8 00000004 r9 00000001 sl 00000001 fp 00000001
08-21 16:55:30.693: I/DEBUG(586): ip 00007cd6 sp d77eb7f8 lr f72480d5 pc f726ec60 cpsr 60070010
08-21 16:55:30.703: I/DEBUG(586): backtrace:
08-21 16:55:30.703: I/DEBUG(586): #00 pc 0003ac60 /system/lib/libc.so (tgkill+12)
08-21 16:55:30.703: I/DEBUG(586): #01 pc 000140d1 /system/lib/libc.so (pthread_kill+52)
08-21 16:55:30.703: I/DEBUG(586): #02 pc 00014cef /system/lib/libc.so (raise+10)
08-21 16:55:30.703: I/DEBUG(586): #03 pc 00011551 /system/lib/libc.so (__libc_android_abort+36)
08-21 16:55:30.703: I/DEBUG(586): #04 pc 0000f788 /system/lib/libc.so (abort+4)
08-21 16:55:30.703: I/DEBUG(586): #05 pc 000127a3 /system/lib/libc.so (__libc_fatal+16)
08-21 16:55:30.703: I/DEBUG(586): #06 pc 00027509 /system/lib/libc.so (__bionic_heap_corruption_error+8)
08-21 16:55:30.703: I/DEBUG(586): #07 pc 000284a7 /system/lib/libc.so (dlmalloc_real+710)
08-21 16:55:30.703: I/DEBUG(586): #08 pc 0000f52b /system/lib/libc.so (malloc+10)
08-21 16:55:30.703: I/DEBUG(586): #09 pc 000397dd /system/lib/libc.so (strdup+12)
08-21 16:55:30.703: I/DEBUG(586): #10 pc 00008257 /system/lib/libunwind.so
08-21 16:55:30.703: I/DEBUG(586): #11 pc 00008325 /system/lib/libunwind.so
08-21 16:55:30.703: I/DEBUG(586): #12 pc 0000840b /system/lib/libunwind.so
08-21 16:55:30.703: I/DEBUG(586): #13 pc 0000935b /system/lib/libunwind.so
08-21 16:55:30.703: I/DEBUG(586): #14 pc 000094f3 /system/lib/libunwind.so (_ULarm_init_local+242)
08-21 16:55:30.703: I/DEBUG(586): #15 pc 000b03e4 /data/app/Mono.Android.DebugRuntime-1/lib/arm64/libmonosgen-32bit-2.0.so
08-21 16:55:31.233: E/ActivityManager(1115): App crashed! Process: com.mr.droid.backgroundaudio
Is that any use? I'll also try to get the sample app working (in android studio), so I can deploy and test it.
Matt