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

[Android] Crash Fatal Exception: java.lang.AbstractMethodError: abstract method "void android.media.Spatializer$OnSpatializerStateChangedListener.onSpatializerAvailableChanged(android.media.Spatializer, boolean)" #1813

Closed
RamProg opened this issue Nov 7, 2022 · 4 comments
Labels

Comments

@RamProg
Copy link

RamProg commented Nov 7, 2022

Describe the Bug
Getting consistent crashes on production on Android since updating to 3.0.0

Steps To Reproduce
Only happens on Samsung devices with Android 12 and 98% of the times the app is on the background.

Code To Reproduce

Fatal Exception: java.lang.AbstractMethodError: abstract method "void android.media.Spatializer$OnSpatializerStateChangedListener.onSpatializerAvailableChanged(android.media.Spatializer, boolean)"
       at android.media.Spatializer$SpatializerInfoDispatcherStub.lambda$dispatchSpatializerAvailableChanged$1$Spatializer$SpatializerInfoDispatcherStub(Spatializer.java:529)
       at android.media.Spatializer$SpatializerInfoDispatcherStub$$ExternalSyntheticLambda0.run(Spatializer.java:6)
       at android.os.Handler.handleCallback(Handler.java:938)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loopOnce(Looper.java:226)
       at android.os.Looper.loop(Looper.java:313)
       at android.os.HandlerThread.run(HandlerThread.java:67)

Replicable on Example App?
I haven't been able to replicate it yet.

Environment Info:
It only happens on real devices on production at the moment
react-native-track-player 3.2.0-d23c3fb990aaf9d6783881fabe21e059b62b0782

How I can Help
Here to help however I can.

@RamProg RamProg added the Bug label Nov 7, 2022
@puckey
Copy link
Collaborator

puckey commented Nov 7, 2022

Are specific android devices experiencing these crashes?

@puckey
Copy link
Collaborator

puckey commented Nov 7, 2022

You might want to look at the following exoplayer issue: google/ExoPlayer#10684

(If it helps you to distill the issue, please let us know what you found)

@RamProg
Copy link
Author

RamProg commented Nov 7, 2022

Are specific android devices experiencing these crashes?

These are the main ones:

13%
Galaxy Z Fold3 5G
12%
Galaxy Z Flip3 5G
10%
Galaxy Z Flip3 5G

It seems I need to update the compileSDKVersion to at least 32, I'll try it out and let you know.

@jspizziri
Copy link
Collaborator

@RamProg for 3.2.0 you need at least 33. Closing for now, let me know if its still an issue.

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

No branches or pull requests

3 participants