Bug 63482 - Application hang because of autoSizeColumn
Summary: Application hang because of autoSizeColumn
Alias: None
Product: POI
Classification: Unclassified
Component: XSSF (show other bugs)
Version: 4.0.0-FINAL
Hardware: PC All
: P2 critical (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2019-06-03 15:32 UTC by Vladimir
Modified: 2019-06-20 08:15 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir 2019-06-03 15:32:25 UTC
I have a problem with autoSizeColumn with small number of columns and data.
I have an application which generates XLSX files in different threads. 
I have changed the POI version from 3.17 to 4.1.0 and the application became to hang on the autoSizeColumn(sheet, true) line. 
When I had removed this line or had changed to sheet.setColumnWidth(i, SMALL_COLUMN_WIDTH) the problem was resolved.

There aren't excpetions in the log file!


1) OS: Windows 10

2) Java
java version "11.0.3" 2019-04-16 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.3+12-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.3+12-LTS, mixed mode)

POI version: 4.1.0
Comment 1 Vladimir 2019-06-03 15:59:31 UTC
Small clarification: autoSizeColumn() works fine wit POI version 3.17 and Java 8
Comment 2 Dominik Stadler 2019-06-20 08:15:25 UTC
Can you provide a small sample application which reproduces the problem? Without it is very hard to investigate such a bug-report.