ONLYOFFICE / DocumentBuilder

ONLYOFFICE Document Builder is powerful text, spreadsheet, presentation and PDF generating tool
https://www.onlyoffice.com/document-builder.aspx
GNU Affero General Public License v3.0
111 stars 54 forks source link

Allocation failed (out of memory) on version 5.1 (and possible on 5.0) #11

Closed ShockwaveNN closed 7 years ago

ShockwaveNN commented 7 years ago
  1. Install latest onlyoffice-documentbuilder v5.1.0.3
  2. Create simple script test.js
    builder.CreateFile("xlsx");
    var oWorksheet = Api.GetActiveSheet();
    oWorksheet.SetName("sheet 1");
    oWorksheet.GetRange("A1").SetValue("Value");
    builder.SaveFile("xlsx", "AddTextToSell.xlsx");
  3. Run documentbuilder test.js

Result: Crash

<--- Last few GCs --->

   10732 ms: Scavenge 1397.7 (1445.0) -> 1397.7 (1445.0) MB, 26.2 / 0 ms [allocation failure].
   10760 ms: Scavenge 1397.7 (1445.0) -> 1397.7 (1445.0) MB, 28.0 / 0 ms [allocation failure].
   10785 ms: Scavenge 1397.7 (1445.0) -> 1397.7 (1445.0) MB, 24.8 / 0 ms [allocation failure].
   10822 ms: Scavenge 1397.7 (1445.0) -> 1397.7 (1445.0) MB, 36.6 / 0 ms [allocation failure].
   10849 ms: Scavenge 1397.7 (1445.0) -> 1397.7 (1445.0) MB, 27.0 / 0 ms [allocation failure].

<--- JS stacktrace --->
Cannot get stack trace in GC.

#
# Fatal error in MarkCompactCollector: semi-space copy, fallback in old gen

# Allocation failed - process out of memory
#

Illegal instruction (core dumped)

Tested on: Debian 8 onlyoffice-documentbuilder v5.1.0.3

ShockwaveNN commented 7 years ago

Fixed in v5.0.0.3