https://bugs.documentfoundation.org/show_bug.cgi?id=156256

--- Comment #11 from Albrecht Müller <albrecht.muel...@astrail.de> ---
(In reply to Rafael Lima from comment #9)
> It is getting stuck in basctl/source/basicide/baside2b.cxx in method
> WatchWindow::ImplGetSBXForEntry.
> 
> More specifically, when it is searching for the "Data" property, it gets
> stuck in:
> 
> pVar->Get( aRes );
> 
> And never comes out of this Get call.
> 
> I still haven't figured out why =/

I changed the program given in comment 8 a little bit:


Sub Main
Const NumberOfRows = 23 ' 1 ... 1048576
Const NumberOfColumns = 5 ' 1 ... 1024
document = ThisComponent
rangeToSearch = document.createInstance("com.sun.star.sheet.SheetCellRanges")
With document.Sheets 
   For I = 0 To .Count - 1
      rangeToSearch.insertByName("",
.getByIndex(I).getCellRangeByPosition(0,0,NumberOfColumns-1,NumberOfRows-1))
   Next I
End With
Print rangeToSearch
End Sub



The change essentially is that the program does not add complete sheets but
only parts of them. If you use the maximum values for NumberOfRows and
NumberOfColums, this program should be equivalent to the original for our
purposes. I could inspect the rangeToSearch object without problems. But I did
not dare to increase the values for NumberOfRows and NumberOfColums to critical
values.

The content of the Data property suggests that it does not come out of the Get
call because this call tries to allocate memory for 1048576 * 1024 *
document.Sheets.Count (i.e. roughly a billion for each sheet) double values and
to initialize this memory with NotANumber values (2,2250738585072E-308). At
best this may take a while ...

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

Reply via email to