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

[Error] AgoraRtmThread (31): EXC_BAD_ACCESS (code=1, address=0x18) #26

Closed
yukitaka13-1110 opened this issue Feb 25, 2020 · 5 comments
Closed

Comments

@yukitaka13-1110
Copy link

yukitaka13-1110 commented Feb 25, 2020

I use AgoraIO / Flutter-SDK and Flutter-RTM both.
I join RTC and RTM using same channel name.

When I call dispose(), this error occurred.

スクリーンショット 2020-02-25 19 48 46

I tried to catch exception but failed.
Even worse, any logs left.
This exception occurs sometimes.

What should I do ?

@override
  Future<void> dispose() async {
    super.dispose();
    try {
      await AgoraRtcEngine.leaveChannel();
      await AgoraRtcEngine.stopPreview();
      await AgoraRtcEngine.destroy();
      await _channelNameSubscription.cancel();
      if (_channel != null) {
        await _client?.releaseChannel(_channel.channelId);
      }
    } on Exception catch (e) {
      debugPrint(e.toString());
    }
  }
[✓] Flutter (Channel master, v1.15.4-pre.97, on Mac OS X 10.14.4 18E227, locale)
    • Flutter version 1.15.4-pre.97 at /xxx/flutter
    • Framework revision f81588a5a3 (6 days ago), 2020-02-18 16:33:55 -0800
    • Engine revision 77c5812d48
    • Dart version 2.8.0 (build 2.8.0-dev.9.0 999eeea5a3)

 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /xxxxx/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.2.1, Build version 11B500
    • CocoaPods version 1.8.4

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 42.0.1
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] VS Code (version 1.42.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.8.1

• No issued found!
@yukitaka13-1110
Copy link
Author

I found this occurs when client.logout()
Not always. I can't understand how situation is triggered.

@LichKing-2234
Copy link
Collaborator

this is a bug of RTM native SDK, can you upgrade to the version 1.1.0 in your local agora_rtm.podspec

@yukitaka13-1110
Copy link
Author

yukitaka13-1110 commented Mar 3, 2020

@LichKing-2234 Thank you for replying.
When will agora_rtm dart package be updated ?
Must I change agora_rtm.podspec version ?

@LichKing-2234
Copy link
Collaborator

Not so fast, pls change your local file before we upgrade

@yukitaka13-1110
Copy link
Author

yukitaka13-1110 commented Mar 7, 2020

@LichKing-2234
I forked and push changes.
https://github.com/yukitaka13-1110/Flutter-RTM

For someone who have encountered the same problem.
When use this repository, specify like as follows.

agora_rtm:
    git:
      url: git://github.com/yukitaka13-1110/Flutter-RTM.git
      ref: master

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