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
**GWT version:2.9.0
**Browser (with version): Chrome 130.0.6723.92
**Operating System: Mac
Description
Basically I am trying to remove unsafe-eval and as per a previous issue I upgraded th rpc version to 8 and as well as increased the maxPayloadChunkSize. Everything seems to be working really nice apart from the string with node size more than 64kb, those were throwing eval errors. So I have increased the node size as well. But once I increase the node size, the entire project doesn't load at all, keeps reloading at a certain init phase.
Seems like in the clas ServerSerializationStreamWriter.java,
private void writeHeader(LengthConstrainedArray stream) {
stream.addToken(getFlags());
if (stream.isJavaScript() && getVersion() >= SERIALIZATION_STREAM_JSON_VERSION) {
// Ensure we are not using the JSON supported version if stream is Javascript instead of JSON
stream.addToken(SERIALIZATION_STREAM_JSON_VERSION - 1);
} else {
stream.addToken(getVersion());
}
}
When ever the large strings are being passed through SERIALIZATION_STREAM_JSON_VERSION > 7 it is going into some spiral mode. Can anybody help here?
Steps to reproduce
Known workarounds
Links to further discussions
The text was updated successfully, but these errors were encountered:
This sounds a little like #10043, where one of the flags was missed. To confirm, you raised bothgwt.rpc.maxPayloadChunkSize and gwt.rpc.maxStringNodeLength using server-side system properties to something like Integer.MAX_VALUE, and gwt.rpc.version to 8?
Can you confirm what is causing your app to refresh? Nothing in GWT itself should make the app refresh, perhaps you have some error handler that is trying to recover by starting over?
**GWT version:2.9.0
**Browser (with version): Chrome 130.0.6723.92
**Operating System: Mac
Description
Basically I am trying to remove unsafe-eval and as per a previous issue I upgraded th rpc version to 8 and as well as increased the maxPayloadChunkSize. Everything seems to be working really nice apart from the string with node size more than 64kb, those were throwing eval errors. So I have increased the node size as well. But once I increase the node size, the entire project doesn't load at all, keeps reloading at a certain init phase.
Seems like in the clas ServerSerializationStreamWriter.java,
private void writeHeader(LengthConstrainedArray stream) {
stream.addToken(getFlags());
if (stream.isJavaScript() && getVersion() >= SERIALIZATION_STREAM_JSON_VERSION) {
// Ensure we are not using the JSON supported version if stream is Javascript instead of JSON
stream.addToken(SERIALIZATION_STREAM_JSON_VERSION - 1);
} else {
stream.addToken(getVersion());
}
}
When ever the large strings are being passed through SERIALIZATION_STREAM_JSON_VERSION > 7 it is going into some spiral mode. Can anybody help here?
Steps to reproduce
Known workarounds
Links to further discussions
The text was updated successfully, but these errors were encountered: