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

App crashing on initialisation of react-native-track-player on RN 0.76.1 and newArchEnabled=true #2414

Open
varadaraj772 opened this issue Dec 3, 2024 · 3 comments
Labels

Comments

@varadaraj772
Copy link

Description
(NOBRIDGE) ERROR Error: Exception in HostObject::get for prop 'TrackPlayerModule': com.facebook.react.internal.turbomodule.core.TurboModuleInteropUtils$ParsingException: Unable to parse @ReactMethod annotation from native module method: TrackPlayerModule.add(). Details: Unable to parse JNI signature. Detected unsupported return class: kotlinx.coroutines.Job

Steps To Reproduce
npm install --save react-native-track-player
npm start

Code To Reproduce
import TrackPlayer, { State } from 'react-native-track-player';

Environment Info:
"react-native-track-player": "^4.1.1",
"@react-native-community/cli": "15.0.0",
"react": "18.3.1",
"react-native": "0.76.1",

newArchEnabled=true
ss

@lovegaoshi
Copy link
Contributor

one of many newarch incompatibility duplicates. see #2395 and #2389. please google to reduce SNR

@kapilw360
Copy link

kapilw360 commented Dec 4, 2024

downgrade the version to the 3.2.0. and killed the app and rebuild again

@ega65
Copy link

ega65 commented Dec 23, 2024

downgrade the version to the 3.2.0. and killed the app and rebuild again

Hi ! From where you come with this "solution" ? I have tried it on custom dev mode and got :

ERROR Your app just crashed. See the error below.
java.lang.SecurityException: be.smartconcept.belgahay: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts
android.os.Parcel.createExceptionOrNull(Parcel.java:3057)
android.os.Parcel.createException(Parcel.java:3041)
android.os.Parcel.readException(Parcel.java:3024)
android.os.Parcel.readException(Parcel.java:2966)
android.app.IActivityManager$Stub$Proxy.registerReceiverWithFeature(IActivityManager.java:6205)
android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1863)
android.app.ContextImpl.registerReceiver(ContextImpl.java:1803)
android.app.ContextImpl.registerReceiver(ContextImpl.java:1791)
android.content.ContextWrapper.registerReceiver(ContextWrapper.java:766)
com.google.android.exoplayer2.ui.PlayerNotificationManager.startOrUpdateNotification(PlayerNotificationManager.java:1165)
com.google.android.exoplayer2.ui.PlayerNotificationManager.handleMessage(PlayerNotificationManager.java:1415)
com.google.android.exoplayer2.ui.PlayerNotificationManager.$r8$lambda$HT03vPW8fkob-d_ShBn7r7Xo9SA(Unknown Source:0)
com.google.android.exoplayer2.ui.PlayerNotificationManager$$ExternalSyntheticLambda0.handleMessage(D8$$SyntheticClass:0)
android.os.Handler.dispatchMessage(Handler.java:102)
android.os.Looper.loopOnce(Looper.java:222)
android.os.Looper.loop(Looper.java:314)
android.app.ActivityThread.main(ActivityThread.java:8716)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:565)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
Caused by android.os.RemoteException: Remote stack trace:
at com.android.server.am.ActivityManagerService.registerReceiverWithFeature(ActivityManagerService.java:14691)
at android.app.IActivityManager$Stub.onTransact$registerReceiverWithFeature$(IActivityManager.java:12225)
at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:3194)
at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2884)
at android.os.Binder.execTransactInternal(Binder.java:1346)

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

4 participants