poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53515] SXSSFWorkbook.write() fails when called more than once
Date Mon, 13 May 2013 14:43:18 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53515

--- Comment #1 from Jonathan Drapeau <dranon@gmail.com> ---
Created attachment 30275
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30275&action=edit
Command line application to reproduce a JVM crash writing twice

I ran into a very similar problem with XSSFWorkbook and my research on the
problem brought me here. I have added a test case to show that trying to write
twice the same workbook but closing it before the second time, produce a JVM
crash.

I used the first application and did some simple modifications to reproduce the
crash. It happens with a XSSFWorkbook or a SXSSFWorkbook. The added dispose
method to the SXSSFWorkbook doesn't help sadly.

The case is with a SXSSFWorkbook using poi 3.9. I added the log from Java 6
(update 33) and 7 of the occuring crash.

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGBUS (0x7) at pc=0x00007f45b940da82, pid=11737, tid=139937491703552
#
# JRE version: 7.0_21-b11
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode linux-amd64
compressed oops)
# Problematic frame:
# C  [libzip.so+0x4a82]  newEntry+0x62
#
# Failed to write core dump. Core dumps have been disabled. To enable core
dumping, try "ulimit -c unlimited" before sta
rting Java again
#
# An error report file with more information is saved as:
# /home/jonathan/workspace/client/detl/hs_err_pid11737.log

I tried using -Dsun.zip.disableMemoryMapping=true which avoid the JVM crash but
causes this error instead, with either XSSF or SXSSF workbooks :
"ERROR: failed on calling org.apache.poi.xssf.streaming.SXSSFWorkbook.write()
with exception java.io.IOException: Can't obtain the input stream from
/docProps/app.xml"

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message