aacdecoder-android icon indicating copy to clipboard operation
aacdecoder-android copied to clipboard

Fix ARM64 crash.

Open tarigo opened this issue 9 years ago • 21 comments

tarigo avatar May 28 '15 10:05 tarigo

Have you been able to get this to work on ARM64? I am seeing a segfault after I apply this and build against opencore downloaded from here: https://code.google.com/p/aacplayer-android/downloads/list

michaelrhughes avatar Oct 26 '15 21:10 michaelrhughes

michaelrhughes, its easy. Just apply this patch, build, but don't use 64 binaries in your project, put just only 32bit and everything will work fine on both 32 and 64 bit platforms.

wildfatduck avatar Nov 24 '15 09:11 wildfatduck

hello, i have downloaded opencore from this place: https://code.google.com/p/aacplayer-android/downloads/detail?name=opencore-aacdec.zip&can=2&q=

and then set the path in .ant.properties?

I have the following error when i try to build with ant:

BUILD FAILED /Users/dave/Developer/accDecoder-Tarigo/aacdecoder-android/build.xml:21: The following error occurred while executing this line: /Users/dave/Developer/accDecoder-Tarigo/aacdecoder-android/build.xml:11: The following error occurred while executing this line: /Users/dave/Developer/accDecoder-Tarigo/aacdecoder-android/decoder/build.xml:89: exec returned: 2

Could you help me with this?

davedega avatar Nov 26 '15 19:11 davedega

Hi guys, sorry for been silent for so long. :)

@michaelrhughes Yes, it works on ARM64, tested on Nexus 9 and Samsung Galaxy S6. There are applications published on Google Play used by thousands users - no issues for far. Please check that you have rebuild native libs.

@wildfatduck Almost, but not entirely correct.. Of course 32bit binaries are backward compatible, but there is no issues with ARM64 binaries.

@davedega I replaced maven with gradle build scripts to build library as AAR. You can import the project to Android Studio or build it from command line.

tarigo avatar Nov 27 '15 16:11 tarigo

@davedega You can download pre-built binaries here: https://drive.google.com/folderview?id=0B_XRgqPl4GwaeElhMGZCNzI5OU0&usp=sharing

tarigo avatar Nov 27 '15 16:11 tarigo

no working Nexus 6 (shamu) Marshmallow 6.0.1, CyanogenMod cm-13.0-20160411-NIGHTLY-shamu 04-10 21:05:04.272 3287-3287/com.spoledge.aacplay E/linker: /data/app/com.spoledge.aacplay-2/lib/arm/libaacdecoder.so: has text relocations 04-10 21:05:04.272 3287-3287/com.spoledge.aacplay D/AndroidRuntime: Shutting down VM 04-10 21:05:04.277 3287-3287/com.spoledge.aacplay E/AndroidRuntime: FATAL EXCEPTION: main Process: com.spoledge.aacplay, PID: 3287 Theme: themes:{} java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.spoledge.aacplay-2/lib/arm/libaacdecoder.so: has text relocations at java.lang.Runtime.loadLibrary(Runtime.java:372) at java.lang.System.loadLibrary(System.java:1076) at com.spoledge.aacdecoder.Decoder.loadLibrary(Decoder.java:188) at com.spoledge.aacdecoder.Decoder.create(Decoder.java:222) at com.spoledge.aacdecoder.Decoder.create(Decoder.java:199) at com.spoledge.aacdecoder.AACPlayer.createDecoder(AACPlayer.java:508) at com.spoledge.aacdecoder.MultiPlayer.createDecoder(MultiPlayer.java:91) at com.spoledge.aacdecoder.AACPlayer.<init>(AACPlayer.java:130) at com.spoledge.aacdecoder.MultiPlayer.<init>(MultiPlayer.java:81) at com.spoledge.aacplay.AACPlayerActivity.start(AACPlayerActivity.java:288) at com.spoledge.aacplay.AACPlayerActivity.onClick(AACPlayerActivity.java:191) at android.view.View.performClick(View.java:5204) at android.view.View$PerformClick.run(View.java:21158) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5461) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

criscam92 avatar Apr 11 '16 02:04 criscam92

@tarigo Thanks! "ARM64" it work for me

a442509097 avatar Jun 20 '17 15:06 a442509097

You can download from here: https://github.com/AppWerft/ti-android-streamer/tree/master/aacdecoderlibs

AppWerft avatar Nov 30 '18 13:11 AppWerft

AppWerft, those libs you compiled crash with Titanium 7.5.0 GA

blantonl avatar Dec 05 '18 17:12 blantonl

I have no compiled I have downloaded from https://github.com/goldblade/cordova-plugin-aacdecoder-android. It crashes after successful connecting with server and receiving response headers. I'm working on. Do you have an idea?

AppWerft avatar Dec 05 '18 19:12 AppWerft

I'm seeing the same behavior....

blantonl avatar Dec 05 '18 19:12 blantonl

we have two ways of fixing:

  • searching for other ready to use libs in net (still not found)
  • self compile (no expertise)
  • this link on google drive is broken: https://github.com/iammert/RadioPlayerService/issues/59

AppWerft avatar Dec 05 '18 19:12 AppWerft

OK. I have no idea how I can build the so files from sources. Any receipts?

AppWerft avatar Dec 06 '18 19:12 AppWerft

Hello @tarigo You link for download pre-built binaries: https://drive.google.com/folderview?id=0B_XRgqPl4GwaeElhMGZCNzI5OU0&usp=sharing are broken. Can you upload this binaries again or email me? I am interesting libaacdecoder.so 64bit

Thank you

Или может быть Вы знаете где можно найти исходники libaacdecoder.so 64bit и как собрать их? Вы можете это сделать за денежное вознаграждение?

1-laboratory avatar Jul 11 '19 21:07 1-laboratory

Hello @tarigo You link for download pre-built binaries: https://drive.google.com/folderview?id=0B_XRgqPl4GwaeElhMGZCNzI5OU0&usp=sharing are broken. Can you upload this binaries again or email me? I am interesting libaacdecoder.so 64bit

Thank you

Или может быть Вы знаете где можно найти исходники libaacdecoder.so 64bit и как собрать их? Вы можете это сделать за денежное вознаграждение?

Вы можете связаться со мной лично по @tarigo:matrix.org. Я как раз планировал поправить билд и мигрировать на свежий NDK.

tarigo avatar Jul 16 '19 12:07 tarigo

You can find the Binaries in my Hoerdat repo: https://github.com/AppWerft/HoerDat/tree/master/modules/android/com.woohoo.androidaudiostreamer/3.0.0/libs I found it on a phonegap page ;-) Я успешно использовал модуль, и он работает очень хорошо

AppWerft avatar Jul 16 '19 14:07 AppWerft

@tarigo I have identified this https://github.com/maximxt/aacdecoder-android/issues/1 issue occurs only with arm64-v8a when accessing HE-AAC stream example streams http://209.133.216.3:7071 http://198.38.92.217:1160

mylselgan avatar Jul 31 '19 15:07 mylselgan

Спасибо @tarigo, большое не используем aacdecoder, перешли на exoPlayer

Вы можете связаться со мной лично по @tarigo:matrix.org. Я как раз планировал поправить билд и мигрировать на свежий NDK.

1-laboratory avatar Sep 28 '19 15:09 1-laboratory

@tarigo thanks for the work. But the lib doesnt work if i set targetSdkVersion 28 which is what google play requires to update the app. Can you help me pls?

Informatheus avatar Jun 23 '20 03:06 Informatheus

You have to recompile with new version (java part). the *.so are the same.

AppWerft avatar Jun 23 '20 06:06 AppWerft

Sorry to bother you, but I need help. Other streams I can reproduce without a problem, but this gives an error that I cannot detect or resolve. It is also very strange because it only happens on a real device, not on the emulator. Please help me. Thank you in advance. https://streaming.sertaovibe.com.br/radio/8000/aac or http://144.217.31.171:8000

The error is: A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x5c6d000000008c in tid 18115 (Thread-5), pid 17993

Informatheus avatar Jun 23 '20 23:06 Informatheus