Tencent-RTC / Tencent-RTC/TUICallKit

[微信小程序] 真机调试报错 Cannot add property markTimeline, object is not extensible,导致页面无法渲染

Open
#489 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
249
Forks
170
PR merge metrics
No merged PRs in 30d

Description

环境

项目 版本
微信基础库 3.8.12
@tencentcloud/lite-chat 1.6.15
trtc-wx-sdk 1.1.15
@trtc/call-engine-lite-wx 4.0.0
@trtc/calls-uikit-wx-uniapp 4.1.0
微信开发者工具 2.01.2510290
HBuilderX 5.07

问题描述

使用 TUICallKit uni-app 小程序 Demo(TUICallKit-Vue3),HBuilderX 编译后,微信开发者工具真机调试或预览扫码,控制台大量报错:

\
MiniProgramError: Cannot add property markTimeline, object is not extensible
TypeError: Cannot add property markTimeline, object is not extensible
at (common/vendor.js:17526:42)
at t2 (common/vendor.js:17194:5)
at (common/vendor.js:17195:4)
at (common/vendor.js:20352:2)
\\

影响

  • SDK 自身加载成功(TencentCloudLiteChat.VERSION:1.6.15、trtc-wx loaded 1.1.15)
  • 但每个页面模块初始化时都触发 markTimeline 写入失败
  • 最终导致 [addView] pages/index/login not found\,登录页无法渲染,小程序白屏
  • 微信直接使用的原生版 Demo(MiniProgram/wechat-callkit-demo)同样有此问题

初步排查

  • 微信开发者工具将基础库调低至 2.25.0 则正常工作
  • 推测是 TRTC SDK 的 performance/console 对象 polyfill 与新版微信基础库(3.x)不兼容——新版微信冻结了 console/performance 对象,SDK 尝试写入 markTimeline 时报错

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 with the common/vendor.js stack locations around lines 17194-17526 and the markTimeline initialization in the TUICallKit-Vue3 uni-app Demo. Reproduce on WeChat base library 3.8.12, compare with 2.25.0, and verify that the SDK loads without the object-extensibility error and that pages/index/login renders successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.