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
{{ message }}
Repository navigation
Support for BigBuffer in IPC broken in 6.x and nightly #18758
@issacgerges hm.. i'm not sure how that change could result in an error in 6.x since it was introduced in Chrome 66?
I think the right way to handle this would be to add something like ipcRenderer.sendBuffer('channel', args, buf) that uses the mojo_base.mojom.BigBuffer data type under the hood, rather than trying to make send support arbitrarily large data. @issacgerges I'd be happy to help you out getting a PR up for that :)
Activity
issacgerges commentedon Jun 12, 2019
Using lldb it looks like the 6.x error was introduced with this change https://chromium.googlesource.com/chromium/src/+/66.0.3359.158/mojo/edk/system/node_channel.cc#900
The 7.x-nightly error appears to be unrelated, due to porting away from legacy ipc
coreh commentedon Jun 12, 2019
Yeah, perhaps there is a way we can set
max_message_num_bytes?I tried using something like
But it doesn't seem to be recognized
Edit: Looks like it's hardcoded to
kMaximumMessageSize:https://github.com/chromium/chromium/blob/8a7f35f9ff2de4a52d053b9a15969663077c2178/content/app/mojo/mojo_init.cc#L24-L25
nornagon commentedon Jun 28, 2019
@issacgerges hm.. i'm not sure how that change could result in an error in 6.x since it was introduced in Chrome 66?
I think the right way to handle this would be to add something like
ipcRenderer.sendBuffer('channel', args, buf)that uses themojo_base.mojom.BigBufferdata type under the hood, rather than trying to makesendsupport arbitrarily large data. @issacgerges I'd be happy to help you out getting a PR up for that :)nornagon commentedon Jul 3, 2019
I don't have time to work on this at the moment, but I'm happy to help someone else who wants to tackle it.
codebytere commentedon Oct 25, 2019
Resolved by #20214.