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

PostSharedBufferToScript stops after about 32000x1MB buffers are posted #3360

Closed
ronen37 opened this issue Apr 4, 2023 · 4 comments
Closed
Assignees
Labels
bug Something isn't working tracked We are tracking this work internally.

Comments

@ronen37
Copy link

ronen37 commented Apr 4, 2023

Description
I have modified ScenarioSharedBuffer in WebView2APISample so when the script receives a shared buffer, it releases the received buffer and requests a new 1MB shared buffer indefinitely.
It stops after about 32000x1MB buffers are posted, without any error messages or exception indication.

Version
SDK: WebView2.1.0.1724-prerelease
Runtime: Canary 113.0.1774.0
Framework: Win32
OS: Win10

Repro Steps

Use the ScenarioSharedBuffer.cpp and ScenarioSharedBuffer.html files in the zip file:
ScenarioSharedBuffer.zip

Run WebView2APISample.exe and select "Scenario"->"Shared Buffer"

Click on "Show data in shared buffer"

Expected behavior: totalSizeOfBuffers should increase indefinitely
Actual behavior: totalSizeOfBuffers stops at 32760000000

Screenshots

image

Additional context

AB#44152838

@ronen37 ronen37 added the bug Something isn't working label Apr 4, 2023
@mmiyano
Copy link

mmiyano commented Apr 5, 2023

I'm probably having the same problem.
My sample code is here (modifed only ScenarioSharedBuffer.cpp and html from original):
https://github.com/mmiyano/WebView2Samples/tree/test/crash_by_shared_buffer

To run my code, press "Start sending large data" button in shared buffer scenario page.
Webview2 crashes when transfer reaches 33,882,931,200 bytes (received data count is 27574).

@novac42
Copy link
Contributor

novac42 commented Apr 7, 2023

Thanks for reporting the issue. I've assigned this to a dev that can help follow up on this.

@LiangTheDev LiangTheDev added the tracked We are tracking this work internally. label Apr 12, 2023
@LiangTheDev
Copy link
Member

I can repro it. I've created an internal tracking item for this issue and will investigate.

@LiangTheDev
Copy link
Member

This should be fixed is in Edge version >= 114.0.1802.0. You can test it with Edge Canary build:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tracked We are tracking this work internally.
Projects
None yet
Development

No branches or pull requests

5 participants