xiph / libopusenc

Library for encoding .opus audio files and live streams.
BSD 3-Clause "New" or "Revised" License
108 stars 39 forks source link

Crash when opus encoder destory on Android platform #18

Open Ryeeeeee opened 5 years ago

Ryeeeeee commented 5 years ago

I integrated opus enc library(version 0.2.1) to Android platform. but I collected some crash when opus encode destory. error backstrace as following:

 1  #00 pc 0006828e /system/lib/libc.so (je_huge_salloc+133) [armeabi-v7a]
2   #01 pc 0006d303 /system/lib/libc.so (ifree+274) [armeabi-v7a]
3   #02 pc 0006d65d /system/lib/libc.so (je_free+72) [armeabi-v7a]
4   #03 pc 000025ef libopusenc.so ope_encoder_destroy [armeabi-v7a]

or

1   #00 pc 0006d22c /system/lib/libc.so (ifree+59) [armeabi-v7a]
2   #01 pc 0006d65d /system/lib/libc.so (je_free+72) [armeabi-v7a]
3   #02 pc 00002621 libopusenc.so ope_encoder_destroy [armeabi-v7a]

so, how can I resolved this crash? Is it possible to catch this crash or could you provide some information to help me to debug? Thanks. (sorry for my poor english.)

maestroIgor commented 4 years ago

@Ryeeeeee Have you managed to fix the problem or found some workaround?