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

Maximum call stack size exceeded. #115

Closed
ZengTianShengZ opened this issue Jul 25, 2023 · 5 comments
Closed

Maximum call stack size exceeded. #115

ZengTianShengZ opened this issue Jul 25, 2023 · 5 comments

Comments

@ZengTianShengZ
Copy link

ZengTianShengZ commented Jul 25, 2023

有人遇到类似异常吗,该异常触发概率很小,但都集中在 iOS Safari 浏览器
采集到的异常信息

UA 信息:
Mozilla/5.0 (iPhone; CPU iPhone OS 16_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 QQ/8.9.69.603 V1_IPH_SQ_8.9.69_1_APP_A Pixel/1179 MiniAppEnable SimpleUISwitch/0 StudyMode/0 CurrentMode/0 CurrentFontScale/1.000000 QQTheme/1000 AppId/537165596 Core/WKWebView Device/Apple(iPhone 14 Pro) NetType/WIFI QBWebViewType/1 WKType/1
浏览器:
Safari / 11.x
设备信息:
mobile / iOS / 16.5.1
@DAHUIAAAAA
Copy link
Collaborator

有能复现的代码实例吗,或者看看报错在哪一行呢?

@303182519
Copy link

有在QQ里面,你的是什么版本

@cyfung1031
Copy link
Contributor

這個會不會是因為循環引用的問題呀?
xhr.config.xhr.config.xhr.config.xhr.config.....

雖然 PR #119 應該可以解決掉這個問題,但其實用 WeakMap 去做是最適合。

@ZengTianShengZ
Copy link
Author

ZengTianShengZ commented Sep 1, 2023

找到问题了,在 iOS 15.xx 以上版本 QQ App Webview 存在 xhr 属性,会递归执行照成死循环

image

@303182519
Copy link

用3.0的版本ajax-hook,就可以了

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

4 participants