Bug 151363 - [MacOS Apple Silicon] Writer+Calc hang frequently
Summary: [MacOS Apple Silicon] Writer+Calc hang frequently
Status: RESOLVED DUPLICATE of bug 148435
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.4.1.2 release
Hardware: Other macOS (All)
: medium normal
Assignee: Not Assigned
URL: https://github.com/rxhanson/Rectangle...
Whiteboard:
Keywords:
Depends on:
Blocks: macOS-UI-polish
  Show dependency treegraph
 
Reported: 2022-10-05 16:29 UTC by Chris Peñalver
Modified: 2022-12-02 04:22 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Spindump when LO hangs (3.76 MB, text/plain)
2022-10-06 20:46 UTC, Chris Peñalver
Details
App Hung and Apple Crash Reporter caught it (2.36 MB, text/rtf)
2022-11-30 21:18 UTC, Chris Peñalver
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Peñalver 2022-10-05 16:29:59 UTC
Description:
Frequently, when I have Writer and Calc documents open, the application hangs, and I have to force quit.

Restarting or reinstalling doesn't change anything.

I have somewhat confidential documents I won't be distributing, and no I don't have a non-confidential reproduction scenario, but I don't have a problem providing a trace or whatever else is relevant here.

Version: 7.4.1.2 / LibreOffice Community
Build ID: 3c58a8f3a960df8bc8fd77b461821e42c061c5f0
CPU threads: 8; OS: Mac OS X 12.6; UI render: default; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

Steps to Reproduce:
See description.

Actual Results:
See description.

Expected Results:
See description.


Reproducible: Sometimes


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:

Renderer: Apple M1
Vendor: Apple
Version: 4.1 Metal - 76.3
Device: MacBookAir10,1
Shading language version: 4.10


Max texture size: 16384 x 16384
Max vertex texture image units: 16
Max texture image units: 16
Max geometry texture units: 16
Max anisotropic filtering value: 16
Max viewport size: 16384 x 16384
Max Clip Distances: 8
Max samples: 4


Extensions: 133


GL_ARB_half_float_pixel
GL_APPLE_texture_range
GL_APPLE_vertex_point_size
GL_EXT_framebuffer_multisample_blit_scaled
GL_EXT_packed_depth_stencil
GL_EXT_texture_lod_bias
GL_EXT_provoking_vertex
GL_ARB_color_buffer_float
GL_ARB_texture_compression_rgtc
GL_ARB_draw_instanced
GL_EXT_draw_buffers2
GL_EXT_texture_shared_exponent
GL_IBM_rasterpos_clip
GL_ARB_draw_elements_base_vertex
GL_ARB_window_pos
GL_NV_depth_clamp
GL_ARB_texture_float
GL_ARB_point_parameters
GL_ARB_texture_compression
GL_EXT_transform_feedback
GL_ARB_depth_buffer_float
GL_EXT_bindable_uniform
GL_EXT_timer_query
GL_ARB_vertex_buffer_object
GL_EXT_packed_float
GL_ARB_pixel_buffer_object
GL_NV_texture_barrier
GL_APPLE_aux_depth_stencil
GL_ARB_fragment_program_shadow
GL_ARB_shading_language_100
GL_EXT_blend_func_separate
GL_ARB_texture_env_crossbar
GL_EXT_stencil_wrap
GL_ARB_transpose_matrix
GL_APPLE_vertex_array_object
GL_EXT_texture_compression_dxt1
GL_EXT_texture_compression_s3tc
GL_APPLE_packed_pixels
GL_ARB_vertex_program
GL_EXT_texture_sRGB
GL_ARB_texture_rectangle
GL_ARB_depth_clamp
GL_ARB_framebuffer_sRGB
GL_ARB_texture_env_add
GL_ARB_texture_rg
GL_ATI_texture_float
GL_EXT_texture_sRGB_decode
GL_ARB_half_float_vertex
GL_SGIS_texture_edge_clamp
GL_ARB_texture_cube_map
GL_EXT_shadow_funcs
GL_SGIS_texture_lod
GL_EXT_texture_filter_anisotropic
GL_APPLE_ycbcr_422
GL_EXT_multi_draw_arrays
GL_EXT_texture_rectangle
GL_APPLE_transform_hint
GL_ARB_shadow
GL_ARB_vertex_array_bgra
GL_ARB_shader_texture_lod
GL_SGIS_generate_mipmap
GL_EXT_blend_minmax
GL_ARB_shadow_ambient
GL_ARB_point_sprite
GL_ARB_depth_texture
GL_APPLE_row_bytes
GL_EXT_vertex_array_bgra
GL_ARB_occlusion_query
GL_ARB_fragment_shader
GL_ARB_draw_buffers
GL_ARB_texture_border_clamp
GL_EXT_clip_volume_hint
GL_APPLE_fence
GL_ARB_vertex_shader
GL_ARB_texture_mirrored_repeat
GL_EXT_fog_coord
GL_ARB_fragment_program
GL_EXT_framebuffer_blit
GL_EXT_framebuffer_sRGB
GL_ARB_imaging
GL_ATI_separate_stencil
GL_ARB_texture_env_combine
GL_EXT_abgr
GL_EXT_bgra
GL_ARB_texture_non_power_of_two
GL_ARB_sync
GL_EXT_separate_specular_color
GL_EXT_framebuffer_object
GL_EXT_texture_integer
GL_NV_conditional_render
GL_EXT_blend_color
GL_EXT_gpu_program_parameters
GL_EXT_texture_mirror_clamp
GL_NV_texgen_reflection
GL_APPLE_vertex_program_evaluators
GL_APPLE_float_pixels
GL_NV_light_max_exponent
GL_EXT_blend_subtract
GL_EXT_gpu_shader4
GL_APPLE_element_array
GL_EXT_secondary_color
GL_APPLE_specular_vector
GL_ATI_texture_mirror_once
GL_ARB_provoking_vertex
GL_NV_blend_square
GL_EXT_draw_range_elements
GL_EXT_texture_env_add
GL_APPLE_vertex_array_range
GL_ARB_vertex_blend
GL_ATI_texture_compression_3dc
GL_APPLE_pixel_buffer
GL_ARB_multisample
GL_ARB_shader_objects
GL_EXT_geometry_shader4
GL_EXT_debug_marker
GL_ARB_texture_env_dot3
GL_APPLE_rgb_422
GL_EXT_rescale_normal
GL_EXT_blend_equation_separate
GL_EXT_debug_label
GL_ATI_texture_env_combine3
GL_APPLE_flush_buffer_range
GL_ARB_instanced_arrays
GL_APPLE_client_storage
GL_EXT_framebuffer_multisample
GL_NV_fog_distance
GL_EXT_stencil_two_side
GL_ARB_framebuffer_object
GL_EXT_depth_bounds_test
GL_ARB_multitexture
GL_EXT_texture_array
GL_ARB_seamless_cube_map
GL_APPLE_flush_render

Core features

v3.0 (100 % - 23/23)
v3.1 (100 % - 7/7)
v3.2 (100 % - 10/10)
v3.3 (100 % - 10/10)
v4.0 (100 % - 14/14)
v4.1 (100 % - 7/7)
v4.2 (0 % - 0/13)
v4.3 (0 % - 0/20)
v4.4 (0 % - 0/10)
v4.5 (0 % - 0/11)
v4.6 (0 % - 0/11)
vARB 2015 (0 % - 0/12)

OpenGL driver version check (Current: 4.1 Metal - 76.3, Latest known: ):
Latest version of display drivers found
According the database, you are running the latest display drivers for your video card.

Extension verification:
Comment 1 Alex Thurgood 2022-10-06 08:13:17 UTC
Sigh...another MAcbook Air LO frequent crashing bug report.

Like all the others before it, and without a reproducible test scenario, it'll probably get consigned to the UNCONFIRMED/NEEDINFO for 6 months, and then resolved as INSUFFICIENTDATA, or some such.


@Christopher : could you let us know:

- how much RAM you have on that Macbook Air?

- whether or not Java is activated under the LO Preferences > Advanced configuration settings, and if so, which JDK is selected/installed ?

- whether you have any accessibility software running, e.g. VoiceOver, screen zoom or magnifier, window placement manager such as Rectangle, etc ?
Comment 2 Alex Thurgood 2022-10-06 08:15:44 UTC
@Christopher, if you can provide an Apple stack trace, or a copy of the trace that the Apple Crash Reporter provides (assuming that it gets triggered of course), then that might at least hopefully point in a useful direction.
Comment 3 Chris Peñalver 2022-10-06 11:42:17 UTC
Hi Alex, thanks for the follow up.

>"- how much RAM you have on that Macbook Air?"

8 GB.

>"- whether or not Java is activated under the LO Preferences > Advanced configuration settings, and if so, which JDK is selected/installed ?"

No Java is installed, activated, etc.

>"- whether you have any accessibility software running, e.g. VoiceOver, screen zoom or magnifier, window placement manager such as Rectangle, etc ?"

Only Rectangle v0.59 (latest). This is a required app to actually make MacOS usable, so removing it is not an option.

>"if you can provide an Apple stack trace, or a copy of the trace that the Apple Crash Reporter provides (assuming that it gets triggered of course)"

The crash reporter dialog has never shown itself. The application hangs with the spinning wheel mouse icon but doesn't crash (I leave it hanging for at most 30 seconds before I force quit). However, I will provide a SpinDump next time this occurs:
https://helpx.adobe.com/photoshop-elements/kb/generate-sample-process-or-spindump-macos.html

I'll keep you posted.
Comment 4 Alex Thurgood 2022-10-06 13:38:39 UTC
@Christopher : thanks for getting back with the information.

Unfortunately, Rectangle is a known antagonist for LO freezing / crashing.

I have just updated to v 0.59 from 0.57, but I already have experience of LO freezing, leaving ghost windows, and other weirdness, when running Rectangle, especially when re-arranging the tiling layout, or switching to fullscreen and back for example, or snapping to fill x, y, or z part of the screen.

If the cause of the freezing on your machine is indeed Rectangle, this report would become another duplicate of one of the accessibility bug reports that plague the Mac version of LibreOffice.

Again, unfortunately, LO still has some rather old Cocoa/Aqua code, and you will also have probably noticed that it hasn't integrated with Apple's fullscreen mode, preferring to offer an internally developed version of fullscreen management built into the application itself (which of course, doesn't do the same thing as the native OS fullscreen management).

There are to my knowledge no paid macOS developers working on the LO code. What this means is that updating the window management code of the application to reflect current macOS APIs is something that almost never happens, bar a very few occasional volunteer developers who happen to have access to a Mac for a while and have that itch to scratch.

I'll leave this as NEEDINFO until you can give us some kind of spindump info, just upload it as a text file via the attachment link, rather than pasting the output into reply window.
Comment 5 Alex Thurgood 2022-10-06 13:40:33 UTC
As an example of an existing report regarding Rectangle, see bug 150159, still awaiting confirmation.
Comment 6 Alex Thurgood 2022-10-06 13:54:58 UTC
(In reply to Alex Thurgood from comment #5)
> As an example of an existing report regarding Rectangle, see bug 150159,
> still awaiting confirmation.

Actually, there's an even earlier report about window managers causing the same problem, bug 148435, which has been bisected to a likely older commit that might be the origin of the problem.

Unfortunately, no progress since then.
Comment 7 Chris Peñalver 2022-10-06 20:46:08 UTC
Created attachment 182888 [details]
Spindump when LO hangs

Hi Alex Thurgood,

Thanks for your continued attention, review of potential dup reports, and providing a reasonable expectation in terms of what would need to occur for this issue to be root caused by a developer and fixed.

Attached is the promised spindump.

In terms of reproduction scenario, when using the Rectangle keyboard hotkeys to flip the LO window around quickly, it seemed to cause the hang more quickly versus waiting for it happen organically.
Comment 8 Alex Thurgood 2022-10-07 10:38:56 UTC
Thanks Christopher, the spindump looks very similar to that provided in bug 148435 (certainly at least for the soffice process), with what look to be the same mutex locks.

I'll mark this report as a duplicate of bug 148435.

*** This bug has been marked as a duplicate of bug 148435 ***
Comment 9 Chris Peñalver 2022-10-14 16:47:29 UTC
Reproducible in:
Version: 7.4.2.3 / LibreOffice Community
Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf
CPU threads: 8; OS: Mac OS X 12.6; UI render: default; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

Maintaining my comments here in case report this is dup'd to gets a fix but this doesn't get resolved.
Comment 10 Chris Peñalver 2022-10-27 02:31:39 UTC
Reproducible in:

MacOS 13.0

Rectangle 0.60

Version: 7.4.2.3 / LibreOffice Community
Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf
CPU threads: 8; OS: Mac OS X 13.0; UI render: default; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 11 Chris Peñalver 2022-11-30 21:18:25 UTC
Created attachment 183924 [details]
App Hung and Apple Crash Reporter caught it

Version: 7.4.3.2 / LibreOffice Community
Build ID: 1048a8393ae2eeec98dff31b5c133c5f1d08b890
CPU threads: 8; OS: Mac OS X 13.0; UI render: default; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

sw_vers
ProductName:		macOS
ProductVersion:		13.0
BuildVersion:		22A380

sysctl -n machdep.cpu.brand_string
Apple M1
Comment 12 Alex Thurgood 2022-11-30 21:47:13 UTC
(In reply to Christopher M. Penalver from comment #11)
> Created attachment 183924 [details]
> App Hung and Apple Crash Reporter caught it
> 
> Version: 7.4.3.2 / LibreOffice Community
> Build ID: 1048a8393ae2eeec98dff31b5c133c5f1d08b890
> CPU threads: 8; OS: Mac OS X 13.0; UI render: default; VCL: osx
> Locale: en-US (en_US.UTF-8); UI: en-US
> Calc: threaded
> 

Please try with a daily 7.5 dev build, where the problem is reported as having been fixed.
Comment 13 Chris Peñalver 2022-12-02 04:22:40 UTC
So far, not reproducible using Rectangle 0.61 / 0.63 and LO:
Version: 7.5.0.0.alpha1+ (AARCH64) / LibreOffice Community
Build ID: ce60a3dd4dbff0dcb5b82c9053ae5d90f8ac929d
CPU threads: 8; OS: Mac OS X 13.0; UI render: Skia/Metal; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded