Bug 93047 - EDITING - Inserting images via into a Base image control with Finder AllMyFiles option causes LO to hang (OSX only)
Summary: EDITING - Inserting images via into a Base image control with Finder AllMyFil...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
5.1.0.0.alpha0+ Master
Hardware: x86-64 (AMD64) macOS (All)
: medium major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: haveBacktrace
Depends on:
Blocks: Base-Images
  Show dependency treegraph
 
Reported: 2015-07-31 09:50 UTC by Alex Thurgood
Modified: 2017-07-11 07:22 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Thurgood 2015-07-31 09:50:41 UTC
How to reproduce :
1) Open a Base Form containing an image control
2) Insert image by double clicking on image control
3) In Finder dialog, choose AllMyFiles entry in left hand pane
4) Watch as LO enters spinning beachball mode

lldb spits out :

2015-07-31 11:02:45.341 soffice[5807:831435] Unable to simultaneously satisfy constraints:
(
    "<NSAutoresizingMaskLayoutConstraint:0x148cd8670 h=--& v=-&- V:[FI_TBrowserColumnView:0x14e904a90]-(0)-|   (Names: '|':_NSBrowserColumnsContainerView:0x14c21b220 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x14954bca0 h=--& v=-&- V:|-(0)-[FI_TBrowserColumnView:0x14e904a90]   (Names: '|':_NSBrowserColumnsContainerView:0x14c21b220 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x1203a06b0 h=--& v=-&- V:[_NSBrowserColumnsContainerView:0x14c21b220]-(0)-|   (Names: '|':NSClipView:0x115ff4470 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x1203a0700 h=--& v=-&- V:|-(0)-[_NSBrowserColumnsContainerView:0x14c21b220]   (Names: '|':NSClipView:0x115ff4470 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x148ced660 h=-&- v=-&- V:|-(0)-[NSClipView:0x115ff4470]   (Names: '|':_NSBrowserScrollView:0x14c2019c0 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x148ced6b0 h=-&- v=-&- V:[NSClipView:0x115ff4470]-(15)-|   (Names: '|':_NSBrowserScrollView:0x14c2019c0 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x1495f55e0 h=--& v=--& V:[_NSBrowserScrollView:0x14c2019c0(0)]>"
)

Will attempt to recover by breaking constraint 
<NSAutoresizingMaskLayoutConstraint:0x14954bca0 h=--& v=-&- V:|-(0)-[FI_TBrowserColumnView:0x14e904a90]   (Names: '|':_NSBrowserColumnsContainerView:0x14c21b220 )>

Set the NSUserDefault NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints to YES to have -[NSWindow visualizeConstraints:] automatically called when this happens.  And/or, break on objc_exception_throw to catch this in the debugger.
2015-07-31 11:02:45.353 soffice[5807:831435] Unable to simultaneously satisfy constraints:
(
    "<NSAutoresizingMaskLayoutConstraint:0x14a9784d0 h=-&- v=-&- V:|-(0)-[NSClipView:0x149596300]   (Names: '|':FI_TBrowserColumnView:0x14a956510 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x14951ba40 h=-&- v=-&- V:[NSClipView:0x149596300]-(0)-|   (Names: '|':FI_TBrowserColumnView:0x14a956510 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x147364190 h=--& v=-&- V:[FI_TBrowserColumnView:0x14a956510]-(0)-|   (Names: '|':_NSBrowserColumnsContainerView:0x14c21b220 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x1473641e0 h=--& v=-&- V:|-(0)-[FI_TBrowserColumnView:0x14a956510]   (Names: '|':_NSBrowserColumnsContainerView:0x14c21b220 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x1203a06b0 h=--& v=-&- V:[_NSBrowserColumnsContainerView:0x14c21b220]-(0)-|   (Names: '|':NSClipView:0x115ff4470 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x1203a0700 h=--& v=-&- V:|-(0)-[_NSBrowserColumnsContainerView:0x14c21b220]   (Names: '|':NSClipView:0x115ff4470 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x148ced660 h=-&- v=-&- V:|-(0)-[NSClipView:0x115ff4470]   (Names: '|':_NSBrowserScrollView:0x14c2019c0 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x148ced6b0 h=-&- v=-&- V:[NSClipView:0x115ff4470]-(15)-|   (Names: '|':_NSBrowserScrollView:0x14c2019c0 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x1495f55e0 h=--& v=--& V:[_NSBrowserScrollView:0x14c2019c0(0)]>"
)

Will attempt to recover by breaking constraint 
<NSAutoresizingMaskLayoutConstraint:0x14951ba40 h=-&- v=-&- V:[NSClipView:0x149596300]-(0)-|   (Names: '|':FI_TBrowserColumnView:0x14a956510 )>

Set the NSUserDefault NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints to YES to have -[NSWindow visualizeConstraints:] automatically called when this happens.  And/or, break on objc_exception_throw to catch this in the debugger.
Comment 1 Alex Thurgood 2015-07-31 09:52:10 UTC
In comparison, although Writer stalls when attempting the same thing into a blank Writer document, I see none of the exception ouptut and the operation completes within about 2 minutes.
Comment 2 Alex Thurgood 2017-07-11 07:22:19 UTC
Fixed somewhere along the line.
WFM with

Version: 5.3.4.2
Build ID: f82d347ccc0be322489bf7da61d7e4ad13fe2ff3
Threads CPU : 4; Version de l'OS :Mac OS X 10.12.5; UI Render : par défaut; Moteur de mise en page : nouveau; 
Locale : fr-FR (fr_FR.UTF-8); Calc: group