Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ARM64 crash. #75

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Fix ARM64 crash. #75

wants to merge 6 commits into from

Conversation

tarigo
Copy link

@tarigo tarigo commented May 28, 2015

No description provided.

@michaelrhughes
Copy link

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

@wildfatduck
Copy link

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.

@davedega
Copy link

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?

@tarigo
Copy link
Author

tarigo commented Nov 27, 2015

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
Copy link
Author

tarigo commented Nov 27, 2015

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

@criscam92
Copy link

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)

@a442509097
Copy link

@tarigo Thanks! "ARM64" it work for me

@AppWerft
Copy link

AppWerft commented Nov 30, 2018

@blantonl
Copy link

blantonl commented Dec 5, 2018

AppWerft, those libs you compiled crash with Titanium 7.5.0 GA

@AppWerft
Copy link

AppWerft commented Dec 5, 2018

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?

@blantonl
Copy link

blantonl commented Dec 5, 2018

I'm seeing the same behavior....

@AppWerft
Copy link

AppWerft commented Dec 5, 2018

we have two ways of fixing:

@AppWerft
Copy link

AppWerft commented Dec 6, 2018

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

@1-laboratory
Copy link

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
Copy link
Author

tarigo commented Jul 16, 2019

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.

@AppWerft
Copy link

AppWerft commented Jul 16, 2019

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 ;-)
Я успешно использовал модуль, и он работает очень хорошо

@mylselgan
Copy link

@tarigo I have identified this maximxt#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

@1-laboratory
Copy link

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

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

@Informatheus
Copy link

@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?

@AppWerft
Copy link

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

@Informatheus
Copy link

Informatheus commented Jun 23, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.