Python Code ----------- openpyxl 2.1.0 (latest) ~~~python from openpyxl.workbook import Workbook from openpyxl.cell import get_column_letter, Cell, column_index_from_string, coordinate_from_string data_filename = 'empty_book.xlsx' wb = Workbook() ws = wb.active ws.title = "range names" # inserting sample data for col_idx in xrange(1, 10): col = get_column_letter(col_idx) for row in xrange(1, 10): ws.cell('%s%s' % (col, row)).value = '%s%s' % (col, row) wb.save(filename=data_filename) ~~~ above py create a file "empty_book.xlsx". open empty_book.xlsx cause libreoffice crash, everytime. both libreoffice 4.3.1.2 and 4.2.6 are crash. 4.1.6 is OK.
PS: ms-office on windows is OK.
would it be possible you attach the generated file?
Created attachment 106851 [details] xlsx file generated by openpyxl
I can open the attached xslx with LO 4.3.1.2 under Win7x64
Created attachment 106875 [details] console bt On pc Debian x86-64 with master sources updated today, I had a crash too. However, with LO Debian package 4.3.1.2, I don't reproduce this.
I could reproduce this too with 4.3.1 on MacOs. The problem is I had no trace. Perhaps the bt in master branch could help to pinpoint the problem. Anyway, I confirm the problem.
It appears to be an unexpected exception. We build release versions under Linux with non enforcing exceptions, but debug versions with enforcing exceptions. Mac is built with clang which always enforces exception specifications. Which would explain why 4.3.1 on Mac falls over, but release build 4.3.1 on Debian doesn't. A self-build 4.3.1 dbgutil on Debian probably falls over in the same place.
Caolan McNamara committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=4652700776666e385946c47235363c1120846d5d Resolves: fdo#84261 unexpected exception -> clang builds terminate The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Caolan McNamara committed a patch related to this issue. It has been pushed to "libreoffice-4-3": http://cgit.freedesktop.org/libreoffice/core/commit/?id=3d468017ababdf4d2bb96c662373c96ec06c6c0c&h=libreoffice-4-3 Resolves: fdo#84261 unexpected exception -> clang builds terminate It will be available in LibreOffice 4.3.3. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.