Exporting an excel of about 450kb in Chrome/Edge causes the browser memory usage to shoot up to 3.5~5 gigs often resulting in a browser crash.
Everything works fine in Firefox.
The issues has been replicated in 12.1p 2021-04-162, on Windows 10 both on dev and prod.
We tested on a clean browser with no plugins on compiled code (no super dev or dev tool of sort).
The resulting CSV file has 386 rows and 289 columns
Here the code to replicate the issue:
Everything works fine in Firefox.
The issues has been replicated in 12.1p 2021-04-162, on Windows 10 both on dev and prod.
We tested on a clean browser with no plugins on compiled code (no super dev or dev tool of sort).
The resulting CSV file has 386 rows and 289 columns
Here the code to replicate the issue:
Code:
@Override public void onModuleLoad() { VLayout layout = new VLayout(); RootPanel.get().add(layout); Button button = new Button("add"); button.addClickHandler(this::buttonClickHandler); layout.addMember(button); } private void buttonClickHandler(ClickEvent clickevent1) { DSRequest dsRequestProperties = new DSRequest(); dsRequestProperties.setExportAs(ExportFormat.CSV); dsRequestProperties.setExportDisplay(ExportDisplay.DOWNLOAD); dsRequestProperties.setUseStrictJSON(true); Object[] data = IntStream.range(0, 386) .mapToObj(id -> { final Map<String, Object> res = new HashMap<>(); res.put("id", id); res.put("name", "LONG_LONG_LONG_UNIT_NAME"); res.put("total", 0f); IntStream.range(0, 288).forEach(i -> res.put("interval_" + i, i * 10)); return res; }) .toArray(); DataSource.exportClientDataStatic(data, dsRequestProperties); }
Comment