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

PlatformException when calling leaveChannel() after joinChannelWithUserAccount() in v3.1.2 #193

Closed
ratherNotB opened this issue Oct 3, 2020 · 6 comments
Assignees
Labels
question Further information is requested

Comments

@ratherNotB
Copy link

In release v3.1.2 an exception is thrown when I try to call leaveChannel() on a channel that was joined using a uid string rather than int:

await _AgoraRtcEngine.joinChannelWithUserAccount(
token, channelName, userStr);

I/flutter (29071): Error caught by Crashlytics plugin :
E/BufferQueueProducer(29071): SurfaceTexture-0-29071-3 dequeueBuffer: BufferQueue has been abandoned
I/flutter (29071): PlatformException(7, not initialized, null, null)
I/flutter (29071): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:582:7)
I/flutter (29071): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:159:18)
I/flutter (29071):
I/flutter (29071): #2 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:332:12)
I/flutter (29071): #3 RtcEngine._invokeMethod (package:agora_rtc_engine/src/rtc_engine.dart:32:27)
I/flutter (29071): #4 RtcEngine.leaveChannel (package:agora_rtc_engine/src/rtc_engine.dart:136:12)
I/flutter (29071): #5 _AgoraCallPageState.dispose (package:Tuter/widgets/agora_call.dart:134:25)
I/flutter (29071): #6 StatefulElement.unmount (package:flutter/src/widgets/framework.dart:4854:12)
I/flutter (29071): #7 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1998:13)
I/flutter (29071): #8 ListIterable.forEach (dart:_internal/iterable.dart:39:13)
I/flutter (29071): #9 _InactiveElements._unmountAll (package:flutter/src/widgets/framework.dart:2007:25)
I/flutter (29071): #10 BuildOwner.finalizeTree. (package:flutter/src/widgets/framework.dart:2821:27)
I/flutter (29071): #11 BuildOwne
I/flutter (29071): Error caught by Crashlytics plugin :
I/flutter (29071): PlatformException(7, not initialized, null, null)
I/flutter (29071): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:582:7)
I/flutter (29071): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:159:18)
I/flutter (29071):
I/flutter (29071): #2 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:332:12)
I/flutter (29071): #3 RtcEngine._invokeMethod (package:agora_rtc_engine/src/rtc_engine.dart:32:27)
I/flutter (29071): #4 RtcEngine.destroy (package:agora_rtc_engine/src/rtc_engine.dart:93:12)
I/flutter (29071): #5 _AgoraCallPageState.dispose (package:Tuter/widgets/agora_call.dart:135:25)
I/flutter (29071): #6 StatefulElement.unmount (package:flutter/src/widgets/framework.dart:4854:12)
I/flutter (29071): #7 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1998:13)
I/flutter (29071): #8 ListIterable.forEach (dart:_internal/iterable.dart:39:13)
I/flutter (29071): #9 _InactiveElements._unmountAll (package:flutter/src/widgets/framework.dart:2007:25)
I/flutter (29071): #10 BuildOwner.finalizeTree. (package:flutter/src/widgets/framework.dart:2821:27)
I/flutter (29071): #11 BuildOwner.lock

@ratherNotB ratherNotB changed the title unable to PlatformException when calling leaveChannel() after joinChannelWithUserAccount() in v3.1.2 Oct 3, 2020
@jacksonw765
Copy link

I am seeing this issue as well, only on Android.

@tushardubey121
Copy link

I am facing the same issue in android and iOS both. Anyone have any update.

@LichKing-2234 LichKing-2234 self-assigned this Oct 8, 2020
@LichKing-2234 LichKing-2234 added the question Further information is requested label Oct 8, 2020
@LichKing-2234
Copy link
Contributor

I will check it later.

@LichKing-2234
Copy link
Contributor

@ratherNotB could you provide the code about this issue? I have tested it, it works.

PlatformException(7, not initialized, null, null) means the RtcEngine did not init or has been destroyed.

maybe you call destroy twice, or click the button twice.

@LichKing-2234
Copy link
Contributor

I will close the issue because it is not active, you can reopen it if the issue still exists.

@github-actions
Copy link
Contributor

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please raise a new issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants