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

AudioSystem not working on Android 64-bit #379

Closed
guygodin opened this issue Feb 15, 2019 · 6 comments
Closed

AudioSystem not working on Android 64-bit #379

guygodin opened this issue Feb 15, 2019 · 6 comments

Comments

@guygodin
Copy link

@guygodin guygodin commented Feb 15, 2019

Release Type: Official Release/GitHub (please choose appropriate option)
GitHub

Version: Version number and/or git branch
3.0.0.4

Platform(s): Does the problem occur on Windows, Android...?
Android

Describe the bug
I've reported this in the old SiliconStudio issues section but wanted to get it submitted as an issue here. I get a DllNotFoundException in AudioLayer.Init() when trying to initialize the AudioSystem. I think the error originates from here:

D/Mono ( 3009): DllImport error loading library ‘libxenkoaudio.so’: 'dlopen failed: cannot locate symbol “_Unwind_SetGR”

Works without issues with armeabi-v7a builds.

Is this a known limitation or can it be fixed to work with 64bit builds?

To Reproduce
Steps to reproduce the behavior:

  1. Create an AudioSystem
  2. initialize it

Expected behavior
It should work with 64-bit builds like it does with 32-bit builds

@guygodin guygodin added the bug label Feb 15, 2019
@xen2

This comment has been minimized.

Copy link
Member

@xen2 xen2 commented Feb 16, 2019

Thanks for the report.
I don't know if it failed since beginning or only at some point.

It says you tried GitHub but 3.0.0.4?

Latest master contains a bump from LLVM 5 to 7, wondering if by chance it could help.
Otherwise it will need further investigation.

@guygodin

This comment has been minimized.

Copy link
Author

@guygodin guygodin commented Feb 16, 2019

It has been failing ever since I started using Xenko (April 2018 before it switched to MIT license). I will need to merge the latest changes and give the latest code a try. Will update this issue once I do so.

@guygodin

This comment has been minimized.

Copy link
Author

@guygodin guygodin commented Mar 3, 2019

The Xenko.Android solution doesn't build correctly with the latest master branch: it just skips every project =/

@guygodin

This comment has been minimized.

Copy link
Author

@guygodin guygodin commented Mar 5, 2019

I've manually merged the LLVM update (and updated to 3.0.0.8 as its the last version that compiles properly on Android) but still experience the same crash with arm64-v8a:

03-05 15:41:41.922: E/VRD(989): System.TypeInitializationException: The type initializer for 'Xenko.Audio.AudioEngine' threw an exception. ---> System.DllNotFoundException: libxenkoaudio
03-05 15:41:41.922: E/VRD(989): at (wrapper managed-to-native) Xenko.Audio.AudioLayer.Init()
03-05 15:41:41.922: E/VRD(989): at Xenko.Audio.AudioEngine..cctor () <0x7f593c0500 + 0x0002f> in <21455326a0234cd5ab6bc7ee54f4c28f>:0
03-05 15:41:41.922: E/VRD(989): --- End of inner exception stack trace ---
03-05 15:41:41.922: E/VRD(989): at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
03-05 15:41:41.922: E/VRD(989): at Xenko.Audio.AudioEngineFactory.NewAudioEngine (Xenko.Audio.AudioDevice device, Xenko.Audio.AudioLayer+DeviceFlags deviceFlags) <0x7f593b9404 + 0x00033> in <21455326a0234cd5ab6bc7ee54f4c28f>:0
03-05 15:41:41.922: E/VRD(989): at Xenko.Audio.AudioSystem.Initialize () <0x7f594ad3d0 + 0x0012f> in <3158c84f01f94be4920c7b032aea7b0a>:0

@xen2

This comment has been minimized.

Copy link
Member

@xen2 xen2 commented Mar 6, 2019

The file is actually there and it is still related to D/Mono ( 3009): DllImport error loading library ‘libxenkoaudio.so’: 'dlopen failed: cannot locate symbol “_Unwind_SetGR”, right?

@guygodin

This comment has been minimized.

Copy link
Author

@guygodin guygodin commented Mar 6, 2019

Correct

xen2 added a commit that referenced this issue Jul 31, 2019
…emove our custom libc++abi (first step for #460 and #379)
@xen2 xen2 closed this in 71e6437 Jul 31, 2019
DaveTheGameDev added a commit to DaveTheGameDev/xenko that referenced this issue Aug 1, 2019
DaveTheGameDev added a commit to DaveTheGameDev/xenko that referenced this issue Aug 1, 2019
…h arm64 due to SLuint32 mapping to long instead of int) (fixes xenko3d#379) (fixes xenko3d#460)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.