You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the heartbeat fails, the framework enters an infinite cycle, on the video recorder, filling the logs with the same error message until it blows up. Any test with video recording can be impacted.
The error message (repeated until log is 2+ Gb) is:
TypeError: Cannot destructure property 'browserClient' of 'this.openedBrowsers[browserId]' as it is undefined.
at BrowserProviderPluginHost.getVideoFrameData (node_modules\testcafe\src\browser\provider\built-in\dedicated\chrome\index.js:172:17)
at BrowserProvider.getVideoFrameData (node_modules\testcafe\src\browser\provider\index.ts:425:28)
at VideoRecorder._capture (node_modules\testcafe\src\video-recorder\process.js:118:62)
We appreciate you taking the time to share information about this issue. We reproduced the bug and added this ticket to our internal task queue. We'll update this thread once we have news.
What is your Scenario?
When the heartbeat fails, the framework enters an infinite cycle, on the video recorder, filling the logs with the same error message until it blows up. Any test with video recording can be impacted.
The error message (repeated until log is 2+ Gb) is:
We've traced the error to: node_modules\testcafe\lib\video-recorder\process.js, where it keeps calling getVideoFrameData() infinitely:
As a patch, we're modifying node_modules\testcafe\lib\browser\provider\index.js, adding a validation that the browserId is still valid:
Even though the workaround works, it could be possible to find a better way to avid the issue.
What is the Current behavior?
What is the Expected behavior?
The test restarts for a new attempt.
What is the public URL of the test page? (attach your complete example)
https://devexpress.github.io/testcafe/example
What is your TestCafe test code?
bug-reporting.ts:
Your complete configuration file
No response
Your complete test report
N/A
Screenshots
N/A
Steps to Reproduce
Suggest updating HEARTBEAT_TIMEOUT on lib\utils\browser-connection-timeouts.js to 10s (default, 2min).
TestCafe version
3.6.1
Node.js version
18.16.0
Command-line arguments
testcafe chrome bug-reporting.ts --video results/video --selector-timeout 150000
Browser name(s) and version(s)
Chrome 126
Platform(s) and version(s)
Windows 10
Other
Similar to #6288
The text was updated successfully, but these errors were encountered: