picker-view 退出错误当前页面又重复进入当前页面重复6次以上就会报如下
发布于 6 年前 作者 mintao 11727 次浏览 来自 问答

webviewScriptError

Failed to construct ‘AudioContext’: The number of hardware contexts provided (6) is greater than or equal to the maximum bound (6).;[Exparser] [Error] [Component] Lifetime Method Error @ wx-picker-view#attached

Error: Failed to construct ‘AudioContext’: The number of hardware contexts provided (6) is greater than or equal to the maximum bound (6).

    at e (http://127.0.0.1:9973/__pageframe__/__dev__/WAWebview.js:5:17818)

    at new l (http://127.0.0.1:9973/__pageframe__/__dev__/WAWebview.js:5:19330)

    at e.protoFunc.initScroller (http://127.0.0.1:9973/__pageframe__/__dev__/WAWebview.js:5:30568)

    at e.protoFunc._init (http://127.0.0.1:9973/__pageframe__/__dev__/WAWebview.js:10:9128)

    at http://127.0.0.1:9973/__pageframe__/__dev__/WAWebview.js:10:5564

    at Array.forEach (<anonymous>)

    at e.protoFunc._initColumns (http://127.0.0.1:9973/__pageframe__/__dev__/WAWebview.js:10:5409)

    at e.protoFunc.attached (http://127.0.0.1:9973/__pageframe__/__dev__/WAWebview.js:10:4806)

    at o.safeCallback (http://127.0.0.1:9973/__pageframe__/__dev__/WAWebview.js:2:17387)

    at o.call (http://127.0.0.1:9973/__pageframe__/__dev__/WAWebview.js:2:17151)

(anonymous) @ VM27960:2

VM27962:1 Sun Nov 19 2017 21:05:39 GMT+0800 (中国标准时间) 渲染层错误

VM27962:2 [Exparser] [Error] [Component] Lifetime Method Error @ wx-picker-view#attached

(anonymous) @ VM27962:2

VM27963:1 Sun Nov 19 2017 21:05:39 GMT+0800 (中国标准时间) 渲染层错误

VM27963:2 Error: Failed to construct ‘AudioContext’: The number of hardware contexts provided (6) is greater than or equal to the maximum bound (6).

    at e (:9973/__pageframe__/__dev__/WAWebview.js:5)

    at new l (:9973/__pageframe__/__dev__/WAWebview.js:5)

    at e.protoFunc.initScroller (:9973/__pageframe__/__dev__/WAWebview.js:5)

    at e.protoFunc._init (:9973/__pageframe__/__dev__/WAWebview.js:10)

    at :9973/__pageframe__/__dev__/WAWebview.js:10

    at Array.forEach (<anonymous>)

    at e.protoFunc._initColumns (:9973/__pageframe__/__dev__/WAWebview.js:10)

    at e.protoFunc.attached (:9973/__pageframe__/__dev__/WAWebview.js:10)

    at o.safeCallback (:9973/__pageframe__/__dev__/WAWebview.js:2)

    at o.call (:9973/__pageframe__/__dev__/WAWebview.js:2)

1 回复

https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/AudioContext#Google_Chrome

这个应该是谷歌内核导致,在小程序同个路由页面,重复进入接近6次就会触发这个问题。

理论上这应该算小程序的bug,重复进去应该也需要回收AudioContext才对

回到顶部