Bug 112283 - Crash on startup with external display
Summary: Crash on startup with external display
Status: RESOLVED DUPLICATE of bug 103690
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
5.3.5.2 release
Hardware: x86-64 (AMD64) macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: wantBacktrace
Depends on:
Blocks:
 
Reported: 2017-09-08 06:40 UTC by Davi P
Modified: 2018-02-27 11:10 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
macOS crash diagnostic report (55.49 KB, text/plain)
2017-09-08 06:53 UTC, Davi P
Details
macOS crash diagnostic report, LO 5.3.6.1 (56.30 KB, text/plain)
2017-09-08 18:44 UTC, Davi P
Details
LO View Options screenshot (263.31 KB, image/png)
2017-09-18 18:13 UTC, Davi P
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Davi P 2017-09-08 06:40:54 UTC
Description:
On 2015 MacBook Pro with an external display connected (HDMI port), LO crashes on startup with an alert box "LibreOffice quit unexpectedly". Without the external display, LO runs normally. Observed with macOS 10.12.6, LO version 5.3.5002 (have not tested other versions).

Steps to Reproduce:
1. Install LO 5.3.5.2
2. Connect external display (HDMI port)
3. In Displays Prefs, uncheck Mirror Displays, drag menu bar to external display
4. Start LO (it should crash)
5. Disconnect external display
6. Start LO (it should run normally)


Actual Results:  
LO crashes on startup.

Expected Results:
LO should run normally.


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36
Comment 1 Davi P 2017-09-08 06:53:02 UTC
Created attachment 136108 [details]
macOS crash diagnostic report
Comment 2 Alex Thurgood 2017-09-08 16:52:39 UTC
No crash for me with LO5361, but perhaps I am misunderstanding how to reproduce the behaviour.

In step 3, when you write "Drag menu bar to external display", what exactly do you mean ?


My setup is Thunderbolt connection from MBpro 2015 to Apple Thunderbol 27" display 


I unset mirroring, then started LibreOffice from my MBPro, and dragged the StartCenter to the TB display monitor --- no crash.
Comment 3 Davi P 2017-09-08 18:29:33 UTC
Thanks for the quick response.

In Displays Prefs (in Arrangement tab), when Mirror is unchecked, the menu bar can be dragged from one display rectangle to another.

I did some more testing. Sorry, the arrangement and Mirror settings don't make a difference. When the external display is connected, LibreOffice crashes on startup. When I disconnect the external display, it runs.

The external display is connected to the HDMI port via an HDMI to DVI adapter. (The external monitor is an AOC e2450Swd, 24 inch, 1920 x 1080. I don't have a Thunderbolt display or any other way to connect this monitor.)

I have the Dock on the left. I tried moving it to the bottom, LO still crashes on startup with the external display connected.

I just installed LO 5.3.6.1, same behavior.
Comment 4 Davi P 2017-09-08 18:44:53 UTC
Created attachment 136125 [details]
macOS crash diagnostic report, LO 5.3.6.1
Comment 5 Alex Thurgood 2017-09-11 07:21:14 UTC
@DaviP :

- when you plug in the external display, what is the colour profile that is used by MacOS?

- do you have more than one graphics chip in your MBPro ? 

- if so, do you have any settings activated in System Preferences - Energy Savings relating to automatic switching of graphics chips ?
Comment 6 Alex Thurgood 2017-09-11 07:23:27 UTC
@DaviP : forgot to ask:

- do you have any Assistive Technology features activated (screen reader, VoiceOver, screen zoom, Dragon Dictate, etc) ?
Comment 7 Davi P 2017-09-11 18:08:10 UTC
The color profile for the external display is called 2450W. I've also tried several others, including "Generic RGB Profile", LO crashes with each.

The 2015 MacBook Pro has one Graphics chip. System info below.

I am not using Assistive Technology features.

Thanks.


Intel Iris Graphics 6100:

  Chipset Model:	Intel Iris Graphics 6100
  Type:	GPU
  Bus:	Built-In
  VRAM (Dynamic, Max):	1536 MB
  Vendor:	Intel (0x8086)
  Device ID:	0x162b
  Revision ID:	0x0009
  Metal:	Supported
  Displays:
    2450W:
      Resolution:	1920 x 1080 @ 60 Hz
      Pixel Depth:	32-Bit Color (ARGB8888)
      Display Serial Number:	DGNC6HA063261
      Main Display:	Yes
      Mirror:	Off
      Online:	Yes
      Rotation:	Supported
      Automatically Adjust Brightness:	No
Comment 8 Alex Thurgood 2017-09-13 07:45:47 UTC
@DaviP : can you change the resolution of the output on your external monitor ?

Does changing this (up/down) have any effect on whether you can start LO ?
Comment 9 Davi P 2017-09-13 22:25:57 UTC
I tried resolutions 1600 x 900 and 1280 x 720, LO still crashes on startup. (Default resolution is 1920 x 1080) Thanks, keep trying.  :-)
Comment 10 Alex Thurgood 2017-09-14 13:49:30 UTC
(In reply to Davi P from comment #9)
> I tried resolutions 1600 x 900 and 1280 x 720, LO still crashes on startup.
> (Default resolution is 1920 x 1080) Thanks, keep trying.  :-)

OK, so another suggestion I can make is for you to try and find a debug version of LO for OSX, download that and attempt to run LO from a lldb session and obtain a backtrace, as the problem seems specific to your particular setup (perhaps some hiDPI problem with the graphics chip in question?)

Unfortunately, there don't appear to be any LO5.4 debug-enabled developer versions currently for OSX.


Alternatively, by any chance, could you check your settings in Preferences > LibreOffice > View to see whether you've activated OpenGL ? By default, this is disabled (or should be disabled).
Comment 11 Davi P 2017-09-18 18:13:38 UTC
Created attachment 136345 [details]
LO View Options screenshot
Comment 12 Davi P 2017-09-18 18:30:31 UTC
OpenGL not activated. See attached View Options screenshot.

I don't know of anything unusual in my display setup.

I can start LO without an external display connected, and then connect the display and use LO normally. If I then quit LO and try to start it again, it crashes.

Doesn't the backtrace in the macOS crash report help to locate the problem?
Comment 13 Alex Thurgood 2017-09-19 07:54:05 UTC
Unfortunately, we need more information than the Apple traces provide. 


For some reason, at least as I understand it :


0   libvcllo.dylib                	0x000000010fbe152d Application::GetSolarMutex() + 13
1   libvcllo.dylib                	0x000000010f93a1ae SolarMutexGuard::SolarMutexGuard() + 14
2   libvcllo.dylib                	0x000000010fcbe634 -[VCL_NSApplication screenParametersChanged:] + 36
3   com.apple.CoreFoundation      	0x00007fff9e4ca45c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
4   com.apple.CoreFoundation      	0x00007fff9e4ca35b _CFXRegistrationPost + 427
5   com.apple.CoreFoundation      	0x00007fff9e4ca0c2 ___CFXNotificationPost_block_invoke + 50
6   com.apple.CoreFoundation      	0x00007fff9e487523 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1827
7   com.apple.CoreFoundation      	0x00007fff9e48655c _CFXNotificationPost + 604
8   com.apple.Foundation          	0x00007fff9feab677 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
9   com.apple.AppKit              	0x00007fff9c357ba2 -[NSApplication _reactToScreenInvalidationImmediately:] + 399
10  com.apple.AppKit              	0x00007fff9c3579df __44-[NSApplication _reactToScreenInvalidation:]_block_invoke + 59


The LibreOffice process doesn't like, or doesn't know how to react to a screen parameter setting that it receives from

NSApplication _reactToScreenInvalidationImmediately

but that might just be a red herring for some other problem.

That is why a full backtrace from a lldb session with a debug enabled build of LibreOffice would be useful here.
Comment 14 Davi P 2017-10-02 18:04:18 UTC
Alex, thanks for looking at the Apple crash report. I don't know how difficult it would be for me to install lldb and find a debug-enabled LO.

I just installed and tested LO 5.4.1, and it has the same problem.

I hope someone else will be able confirm this issue.
Comment 15 Telesto 2018-02-27 11:10:30 UTC
Looks like a variant of bug 103690. Should be fixed with LibO 6.0.2

*** This bug has been marked as a duplicate of bug 103690 ***