Bug 84864 - Freeze when deleting sheet from (nearly empty) spreadsheet doc
Summary: Freeze when deleting sheet from (nearly empty) spreadsheet doc
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.2.0.4 release
Hardware: All All
: high major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: haveBacktrace, notBibisectable, regression
Depends on:
Blocks:
 
Reported: 2014-10-10 08:47 UTC by Anton Derbenev
Modified: 2015-12-17 10:58 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
delete 2nd sheet ('БАНК') from that file to get freeze. Doc is mostly empty. (83.50 KB, application/vnd.ms-excel)
2014-10-10 08:47 UTC, Anton Derbenev
Details
OSX backtrace from breaking into the infinite loop (9.86 KB, text/plain)
2014-10-10 16:25 UTC, Matthew Francis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Derbenev 2014-10-10 08:47:43 UTC
Created attachment 107652 [details]
delete 2nd sheet ('БАНК') from that file to get freeze. Doc is mostly empty.

Problem description: 

Steps to reproduce:
1. Open attached document
2. Delete second sheet (titled "БАНК")
3. If LO still works, close file (do not save), open it again, and delete that sheet again.

Current behavior:
For me, from 2nd time and on, LO freezes.

Expected behavior:
Sheet deleted successfully.

Note: reproduction in not 100% stable, but of 4 PCs I tested on (32- bit Windowses 7 and 8.1; different users, different preferences; also tried with fresh LO profile) it steadly halts when document is opened second and next time from e-mail attachment (each time it's saved from email to %TEMP% with new name).
If document is re-saved to ods before deleting, it may succeed, or may not. Saving to ods, re-opening and deleting that sheet leads to same freeze.
Comment 1 Matthew Francis 2014-10-10 16:19:54 UTC
Confirmed on OSX / 4.3.2.2 and master

Master shows an unending stream of

warn:legacy.osl:64997:1:sc/source/core/data/document.cxx:3817: Wrong sheet number

Setting to:
-> NEW
-> OS: All
-> Importance: High
Comment 2 Matthew Francis 2014-10-10 16:25:10 UTC
Created attachment 107672 [details]
OSX backtrace from breaking into the infinite loop

Backtrace - from deliberately stopping the infinite loop rather than a crash
Comment 3 Matthew Francis 2014-10-10 16:57:19 UTC
Based on a selection of past releases on OSX:

4.2.5.2: Present
4.2.0.4: Present
4.1.6.2: Not present
4.1.0.4: Not present

Unfortunately I can't reproduce this on Linux, which is going to make bibisecting it challenging if not impossible

Setting Version -> 4.2.0.4 release (earliest known)
Comment 4 Xisco Faulí 2015-09-16 13:49:41 UTC
I can no longer reproduce this issue with

Version: 5.0.1.2
Build ID: 81898c9f5c0d43f3473ba111d7b351050be20261
Locale: es-ES (es_ES)

on Windows 7 (64-bit)

Thus, I close this as RESOLVED WORKSFORME
Comment 5 Robinson Tryon (qubit) 2015-12-17 10:58:07 UTC
Migrating Whiteboard tags to Keywords: (notBibisectable)
[NinjaEdit]