Tencent-RTC / Tencent-RTC/TRTC_Flutter

【web】-【2.7.8】进入房间失败 错误 dart.global.TrtcWrapper is not a constructor

Open
#89 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dart
Stars
82
Forks
39
Avg merge
27m
Merged PRs (30d)
1

Description

【当前现象】:进房失败,提示错误 dart.global.TrtcWrapper is not a constructor
【SDKAppID】:1400288099
【房间号】: 207380
【useID】:5c44202670569252686d78ffee1de035
【问题时间段】:2024-05-20 11:30~12:50
【机型】:mac系统版本14.1.1 ,chrome:版本 124.0.6367.209
【之前版本有无此问题】:第一次接入
【是否必现】:必现,
【日志或者描述、截图】:[ +347 ms] Error: PlatformException(error, TypeError: dart.global.TrtcWrapper is not a constructor, null, null) dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 297:3 throw_ packages/flutter/src/services/message_codecs.dart 651:7 decodeEnvelope packages/flutter/src/services/platform_channel.dart 334:18 _invokeMethod dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 45:50 <fn> dart-sdk/lib/async/zone.dart 1661:54 runUnary dart-sdk/lib/async/future_impl.dart 162:18 handleValue dart-sdk/lib/async/future_impl.dart 838:44 handleValueCallback dart-sdk/lib/async/future_impl.dart 867:13 _propagateToListeners dart-sdk/lib/async/future_impl.dart 643:5 [_completeWithValue] dart-sdk/lib/async/future_impl.dart 713:7 callback dart-sdk/lib/async/schedule_microtask.dart 40:11 _microtaskLoop dart-sdk/lib/async/schedule_microtask.dart 49:5 _startMicrotaskLoop dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 181:7 <fn> [+33275 ms] ============>>> method: destroySharedInstance , arguments : null [ ] _trtcCloudWrapper is null

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing web initialization of dart.global.TrtcWrapper and the destroySharedInstance call shown in the report. Reproduce the issue on Flutter web with the reported Chrome environment and verify that entering a room no longer raises the constructor error and that _trtcCloudWrapper is initialized.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.