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 stops working when joining conference #120

Open
tylert93 opened this issue Oct 15, 2024 · 7 comments
Open

App stops working when joining conference #120

tylert93 opened this issue Oct 15, 2024 · 7 comments

Comments

@tylert93
Copy link

tylert93 commented Oct 15, 2024

Android version: 14
Node version: 18.16.1
Android Studio Version: Android Studio Koala | 2024.1.1

Packages
"@capacitor/android": "^6.0.0",
"@capacitor/app": "^6.0.0",
"@capacitor/browser": "^6.0.0",
"@capacitor/core": "^6.0.0",
"@capacitor/haptics": "^6.0.0",
"@capacitor/ios": "^6.0.0",
"@capacitor/keyboard": "^6.0.0",
"@capacitor/preferences": "^6.0.0",
"@capacitor/splash-screen": "^6.0.0",
"@capacitor/status-bar": "^6.0.0",
"capacitor-jitsi-meet": "^6.1.0",
"react": "^18.2.0",

I have an Android application in development. This is built with React and Capacitor. We are using your capacitor-jitsi-meet package to connect to Jitsi and join a video call. However whenever calling the Jitsi.joinConference() method, the app stops working, however the response we get from the request is {success: true}.

We are using the recommended testing configuration from the NPM page:

Jitsi.joinConference({ roomName: 'room1', url: 'https://meet.jit.si', featureFlags: { 'prejoinpage.enabled': false, 'recording.enabled': false, 'live-streaming.enabled': false, 'android.screensharing.enabled': false, }, })

EDIT:
The IOS build of the application works perfectly and I am able to join a call

@calvinckho
Copy link
Owner

Can you include the logcat debugging log from Android Studio?

@tylert93
Copy link
Author

@calvinckho
Copy link
Owner

{
"header": {
"logLevel": "ERROR",
"pid": 1106,
"tid": 1892,
"applicationId": "surfaceflinger",
"processName": "surfaceflinger",
"tag": "BufferQueueDebug",
"timestamp": {
"seconds": 1729115184,
"nanos": 672000000
}
},
"message": "855f959 co.flowmo.oocrdcp/com.capacitor.jitsi.plugin.JitsiActivity#116613 id info cannot be read from \u0027855f959 co.flowmo.oocrdcp/com.capacitor.jitsi.plugin.JitsiActivity#116613\u0027"
},

The reason it throws an error because 'room1' is too common. You need to choose a text string that is more complicated such as "testjitsiroom2850012"

@tylert93
Copy link
Author

tylert93 commented Oct 16, 2024

Apologies for the confusing since my first post, I have tested the application using production ready configuration where a uuid is used for the roomName and I am still getting the same error. The configuration is as follows:

{ roomName: "1b7f9f9f-7982-4782-a383-d539a6891377", url, displayName: "Tom", subject: "New test meeting", featureFlags: { 'prejoinpage.enabled': false, 'recording.enabled': false, 'live-streaming.enabled': false, 'invite.enabled': false, 'android.screensharing.enabled': false, 'add-people.enabled': false, 'calendar.enabled': false, 'call-integration.enabled': false, 'chat.enabled': false, 'filmstrip.enabled': false, 'kick-out.enabled': false, 'meeting-name.enabled': false, 'video-share.enabled': false, }, token, // jwt authentication token configOverrides: { disableModeratorIndication: true, disableRemoteMute: true, disableReactionsModeration: true, faceLandmarks: { enableFaceCentering: true, faceCenteringThreshold: 20, captureInterval: 1000, }, p2p: { enabled: false, }, breakoutRooms: { hideAddRoomButton: true, hideAutoAssignButton: true, hideJoinRoomButton: true, }, }, }

Please find the logcat file showing the same error attached:
jitsi_error.logcat.zip

If this error was due to the roomName wouldn't this cause an issue on ios aswell?

@tylert93
Copy link
Author

Even when I change to a roomName in the format you suggest i.e. "oocrMeeting19343973947", the previous error goes away however the same behaviour is observed, however the issue now appears to be the following:

FATAL EXCEPTION: main
Process: co.flowmo.oocrdcp, PID: 20022
java.lang.UnsupportedOperationException: This method is not supported for ReactViewGroup instances
at com.facebook.react.views.view.ReactViewGroup.setBackground(ReactViewGroup.java:234)

error.logcat.zip

Any advise you could give would be greatly appreciated.

@calvinckho
Copy link
Owner

I searched the Jitsi Meet SDK source code but could not find ReactViewGroup.java. I was not able to trace the error to any line of code in the SDK.

On the other hand, have you given the Jitsi React Native SDK a try? https://jitsi.github.io/handbook/docs/dev-guide/dev-guide-react-native-sdk/

@calvinckho
Copy link
Owner

we just released 6.2.1 that addresses a bug specific for Android 14. Can you install it and see if you can now join the conference?

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

No branches or pull requests

2 participants