FileConverter crashed during converting bin file to pdf or images

Suggestions on Document Server Installation/Functionality
Post Reply
libianru
Posts: 3
Joined: Thu May 14, 2020 1:58 am

FileConverter crashed during converting bin file to pdf or images

Post by libianru » Thu May 14, 2020 2:32 am

There is a crash with File Converter program. The crash occurs during converting a bin file to pdf or thumbnails. I tried both Windows and Linux, same crashed. Please suggest the possible solution.

I installed the latest version of onlyoffice document server on Ubuntu 18.04, run the file converter program in cmd line.

cd /var/www/onlyoffice/documentserver/server/FileConverter/bin
./x2t params.xml

And params.xml content are shown below:
-----------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<TaskQueueDataConvert xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m_sKey>a</m_sKey>
<m_sFileFrom>/home/ubuntu/ppts/adebug.bin</m_sFileFrom>
<m_sFileTo>/home/ubuntu/ppts/output.zip</m_sFileTo>
<m_nFormatFrom>8195</m_nFormatFrom>
<m_nFormatTo>1024</m_nFormatTo>
<m_bIsPDFA xsi:nil="true" />
<m_nCsvTxtEncoding>46</m_nCsvTxtEncoding>
<m_nCsvDelimiter>4</m_nCsvDelimiter>
<m_nCsvDelimiterChar xsi:nil="true" />
<m_bPaid xsi:nil="true" />
<m_bEmbeddedFonts>false</m_bEmbeddedFonts>
<m_bFromChanges xsi:nil="true" />
<m_sFontDir>/usr/share/fonts</m_sFontDir>
<m_sThemeDir>/data/app/DocumentServer/sdkjs/slide//themes</m_sThemeDir>
<m_oThumbnail>
<format>4</format>
<aspect>1</aspect>
<first>false</first>
<width>1366</width>
<height>768</height>
</m_oThumbnail>
<m_nDoctParams xsi:nil="true" />
<m_oTimestamp>2020-04-30T02:16:10.572Z</m_oTimestamp>
<m_bIsNoBase64>true</m_bIsNoBase64>
<m_oInputLimits>
<m_oInputLimit type="docx;dotx;docm;dotm">
<m_oZip uncompressed="52428800" template="*.xml"/>
</m_oInputLimit>
<m_oInputLimit type="xlsx;xltx;xlsm;xltm">
<m_oZip uncompressed="314572800" template="*.xml"/>
</m_oInputLimit>
<m_oInputLimit type="pptx;ppsx;potx;pptm;ppsm;potm">
<m_oZip uncompressed="52428800" template="*.xml"/>
</m_oInputLimit>
</m_oInputLimits>
</TaskQueueDataConvert>
-----------------------------------------------------------

crash trace:
-----------------------------------------------------------

<--- Last few GCs --->

[21868:0x555909f329f0] 12394 ms: Mark-sweep 1399.0 (1443.9) -> 1399.0 (1446.4) MB, 1129.3 / 0.0 ms allocation failure scavenge might not succeed
[21868:0x555909f329f0] 13552 ms: Mark-sweep 1401.5 (1446.4) -> 1401.5 (1459.9) MB, 1152.2 / 0.0 ms allocation failure scavenge might not succeed
[21868:0x555909f329f0] 15350 ms: Mark-sweep 1414.8 (1459.9) -> 1414.9 (1460.4) MB, 1764.8 / 0.0 ms allocation failure scavenge might not succeed


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

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

Received signal 4 ILL_ILLOPN 7f6041d6d599

==== C stack trace ===============================

[0x7f6041d6ea42]
[0x7f60411c0890]
[0x7f6041d6d599]
[0x7f60414f9b1b]
[0x7f60414f9d1f]
[0x7f604173740f]
[0x7f6041739323]
[0x7f604173b99c]
[0x7f6041722faf]
[0x7f6041723119]
[0x7f604155a00f]
[0x7f60417240f0]
[0x7f604172f273]
[0x7f604173c3ce]
[0x7f6041704d8c]
[0x7f604170c1a8]
[0x7f604170c8ad]
[0x7f60416b83fe]
[0x7f6041c9479d]
[0x32f58b5846fd]
[end of stack trace]
Illegal instruction (core dumped)
-----------------------------------------------------------

libianru
Posts: 3
Joined: Thu May 14, 2020 1:58 am

Re: FileConverter crashed during converting bin file to pdf or images

Post by libianru » Mon May 18, 2020 10:49 am

The root cause is the input file name is not "Editor.bin" in params.xml

Current design supposes the bin file name is "Editor.bin" and the media folder is also in the same directory. Without Edtior.bin, the js sdk drops into a infinite loop to read an empty binary file. It is why V8 crashes.

So, please close the ticket, and thanks for posting it for further investigation.

Post Reply