-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Cypress 11.2.0: selectFile command to upload a huge sized file is failing in Electron browser but works fine in Chrome and Firefox #24583
Comments
The file being uploaded is huge in size - 422957367 If I upload a small sized file, it goes through fine in electron browser too. |
Hi @nagash77, Were you able to make any progress on this issue? |
Hi @rockindahizzy are there any updates on this issue? |
Hi @nagash77 , @rockindahizzy please update on the latest status of this issue. |
Hi @DiwanD03 , sorry for the delay getting back to you. We've been heads down on the v12 release of Cypress for the last couple weeks. I will try to carve out time to look into this tomorrow, but in the interim I do want to mention that we had a major upgrade to our bundled Electron in version 10.10.0 of Cypress. I would recommend upgrading to at least that version (or better yet, to v12.0.1 which we released this week) to see if that upgrade fixes your issue. Let me know if you have a chance to try that out |
Hi @mike-plummer , thank you for taking this up. I did try to test the scenario using version |
@DiwanD03 I did some local testing on this and reproduced the issue you've described. After doing a bit of playing around I was able to get a ~400 MB file to work, but a 408 MB file fails, and the tests fail in exactly the same way when run in Do you have a hard requirement to upload a 400+ MB file within an E2E test like this? It sounds like you have a workaround by using Chrome if you absolutely need to validate using the massive file, but could you restructure your test using a smaller file in order to focus your test more on the user interactions in the browser? Update: To correct my earlier statement, I have learned that this is actually a limitation of how Cypress implements the |
@mike-plummer I understand now, that it's a known limitation and as you mentioned we have a workaround(using chrome) in place. Thank you for looking into this, for the detailed explanation and for re-routing it to your team for further action. |
Hi, all. I quite necessary to upload file about 400M (currently - 396M), but selectFile() crashes cypress app with message I test webUI of my device that must accept firmware package, update and restart device with new firmware and I got error above on any browser - Chrome / FireFox / Electron. When I put file and upload it manually all works correctly. Cannot create a string longer than 0x1fffffe8 characters |
Current behavior
I am trying to upload a large file in a web application using 'selectFile' command in cypress. Though the code works fine in chrome and firefox browser, if I select electron the browser crashes with below error:
[7898:1108/172752.248261:ERROR:node_bindings.cc(143)] Fatal error in V8: v8::ToLocalChecked Empty MaybeLocal.
The Test Runner unexpectedly exited via a exit event with signal SIGSEGV
Desired behavior
The file should get successfully uploaded in electron browser too.
Test code to reproduce
cy.get('').selectFile('', {
force: true,
})
Cypress Version
10.4.0
11.2.0
Node version
v14.18.1
Operating System
macOS 12.6
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: