Bug 92853 - Repeatedly changing text orientation in Calc using the sidebar causes a UI hang
Summary: Repeatedly changing text orientation in Calc using the sidebar causes a UI hang
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.0.0.3 rc
Hardware: x86-64 (AMD64) Linux (All)
: high major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: VCL-Scheduler
  Show dependency treegraph
 
Reported: 2015-07-21 10:17 UTC by Filip Mutterer
Modified: 2017-06-13 11:42 UTC (History)
8 users (show)

See Also:
Crash report or crash signature:


Attachments
LibreOffice 5.1 (9.07 KB, text/x-log)
2015-07-22 19:51 UTC, Filip Mutterer
Details
Pull down menues where I found it, but i didn't search for more of them... (45.19 KB, image/jpeg)
2015-07-23 14:45 UTC, Filip Mutterer
Details
17. second error appears every thing seems frozen except the mouse. 27. second i switch to another terminal to kill libreoffice (4.70 MB, video/x-matroska)
2015-10-20 17:33 UTC, Filip Mutterer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Filip Mutterer 2015-07-21 10:17:26 UTC
I was just playing with the textorientation in the 5.1.0.0 alpha then the system crashed.

The only recovery was over a terminal ( control + alt + f2 ) and kill the libreoffice process after that system worked normal.

I tried the same with 5.0.0.3 rc and the Problem was the same.

My system is a Linux Mint 17.2 x64 i can provide further details if needed.
Comment 1 Thomas Hackert 2015-07-21 17:21:17 UTC
Hello Filip, *,
could you give us a step-by-step instruction, please? I tried it on Debian Testing AMD64 with LO

Version: 5.0.0.3
Build-ID: f79b5ba13f5e6cbad23f8038060e556217e66632
Gebietsschema: de-DE (de_DE.UTF-8)
,
Version: 5.0.1.0.0+
Build ID: 21be4e095056800fc8869868448e005728d1bb65
TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:libreoffice-5-0, Time: 2015-07-21_02:14:15
Locale: de-DE (de_DE.UTF-8)

and

Version: 5.1.0.0.alpha1+
Build ID: 2fd3560e0815b547ada7d7f6557857fe3c8678ba
TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:master, Time: 2015-07-20_23:36:28
Locale: de-DE (de_DE.UTF-8)

(all three parallel installed, following the instructions from https://wiki.documentfoundation.org/Installing_in_parallel/Linux), but did not find a possibility to crash LO ... :(

What I did:
1. Started Calc
2. inserted "Test" in A1
3. Opened "Format – Cells"
4. Clicked on tab "Alignment"
5. Changed the text orientation to 90° there
6. Hit enter

No crash so far :) Did you do something different? Further questions:
1. Which graphics card / driver are you using? Mine is an NVidia GM108M (GeForce 840M), and I am using xserver-xorg-video-nouveau 1:1.0.11-1+b1.
2. Have you enabled GLX in LO / on your system? Mine is neither enabled nor installed.

HTH and HAND
Thomas.
Comment 2 Filip Mutterer 2015-07-21 20:03:33 UTC
Hi,

after you have written it to a field do not hit enter or select another field, just directly change alignment, it doesn't might crash instantly sometimes you can just change it a few times, after the 5. change it will have crashed on my system.

I choose from the menu to the right.


glxinfo |grep -i opengl
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 970/PCIe/SSE2
OpenGL core profile version string: 4.3.0 NVIDIA 346.72
OpenGL core profile shading language version string: 4.30 NVIDIA via Cg compiler
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.5.0 NVIDIA 346.72
OpenGL shading language version string: 4.50 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:

P.S.: Ok this time it crashed while searching for your way how you did it. I have no idea where to search for the error within my system, hints are welcome.
Comment 3 Filip Mutterer 2015-07-21 20:05:51 UTC
Disable "Hardware Acceleration" didn't help!
Comment 4 Filip Mutterer 2015-07-21 22:07:41 UTC
I am not sure wether i found a solution, but after i changed Icon size and style to small and sifr and both back to auto i didn't get a crash till now.

Graphics Output is left back on default.

I think i had a similar bug like that in the past, fixing was exactly the same but i do not remember which option, and its long time ago.
Comment 5 Filip Mutterer 2015-07-21 22:12:32 UTC
One last check i want to do, i need a checksum from this file:

master~2015-07-20_23.36.28_LibreOfficeDev_5.1.0.0.alpha1_Linux_x86-64_deb.tar.gz
Comment 6 Filip Mutterer 2015-07-21 23:18:25 UTC
Did some checks again and error is still there, but takes long to reproduce sometimes.

How i did it this time:
1. wrote something in a cell
2. selected another one
3. selected the previous one
4. from the menu to the right i change the orientation
5. i open the menu for the orientation selction again, and moveing my mouse over that menu, over every point, on and on till it crashes (if it takes to long to crash you can move your mouse out of the pull down menu and normaly then it crashes maybe only then!)

The same thing you can do with pulldown menu where you can select the cell format.

Nobody can confirm this?
Comment 7 Thomas Hackert 2015-07-22 15:36:03 UTC
Hello Filip, *,
thanks for your answers :) To not click on reply at every of your comments, I will try to answer a couple of questions, where I may know the answer, and add some further comments ... ;)

To Comment2: I did entered the text and changed the orientation without and with hitting enter, but it still did not crash, although if I repeat the steps a couple of times ... :(

I seem to be wrong with my NVidia graphics chip (or I have two ... ;) ), as glxinfo gives me
<quote>
glxinfo | grep -i opengl
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile 
OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.5.9
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 10.5.9
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 10.5.9
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:
</quote>
.

To Comment3: You got me wrong: I did not mean to disable "Hardware acceleration", but to look, if you have enabled "Use OpenGL for all rendering" and "Force OpenGL, even if blacklisted"

To Comment4: Nice, that you have found a workaround :) Congrats :)

To Comment5: Sorry, I have no idea, where you can find this .... :(

To Comment6: Still not confirmed here, sorry ... :( Could you do me a favour and start Calc with

<quote>
/path/to/your/installation/scalc --backtrace
</quote

and try to crash it again, please? This would produce a file called "gbdtrace.log". It would be nice, if you could attach it to this bug, though I for myself would not be able to help you with its output, sorry ... :(
Sorry for the inconvenience
Thomas.
Comment 8 Filip Mutterer 2015-07-22 19:51:50 UTC
Created attachment 117383 [details]
LibreOffice 5.1
Comment 9 Robinson Tryon (qubit) 2015-07-23 14:26:38 UTC
(In reply to Filip Mutterer from comment #0)
> I was just playing with the textorientation in the 5.1.0.0 alpha then the
> system crashed.
> 

Filip: Can you reproduce the issue on another system?  (it's possible that there's something specific to your standard setup, or in how you're exercising the system when you repro...)
Comment 10 Filip Mutterer 2015-07-23 14:45:44 UTC
Created attachment 117391 [details]
Pull down menues where I found it, but i didn't search for more of them...
Comment 11 Filip Mutterer 2015-07-23 17:54:55 UTC
(In reply to Robinson Tryon (qubit) from comment #9)
> (In reply to Filip Mutterer from comment #0)
> > I was just playing with the textorientation in the 5.1.0.0 alpha then the
> > system crashed.
> > 
> 
> Filip: Can you reproduce the issue on another system?  (it's possible that
> there's something specific to your standard setup, or in how you're
> exercising the system when you repro...)

Yesterday I made a fresh install of linux mint 17.2

Distributor ID:	LinuxMint
Release:	17.2
Codename:	rafaela

Linux Pluto 3.19.0-23-generic #24~14.04.1-Ubuntu SMP Wed Jul 8 11:15:13 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

The Office shipped with it doesn't crash.

I tried to make a video from what I am doing, but while I tried cutting it with openshot it crashed. 

To me it looks like a specific problem with my system, can you point my to an info which tells me which libraries are used for loffice 5.1 and 4.4?
Comment 12 Buovjaga 2015-07-30 18:21:31 UTC
Could not repro crash.

Ubuntu 15.04 64-bit 
Version: 5.1.0.0.alpha1+
Build ID: 902255645328efde34ddf62227c8278e8dd61ff0
TinderBox: Linux-rpm_deb-x86_64@70-TDF-dbg, Branch:master, Time: 2015-07-30_03:52:32
Locale: en-US (en_US.UTF-8)
Comment 13 raal 2015-08-03 04:24:20 UTC
Cannot reproduce Version: 5.1.0.0.alpha1+
Build ID: 2d9db406d301d722649ca539cacad823b89191ca
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2015-07-31_00:59:07
Comment 14 Joel Madero 2015-10-18 01:37:08 UTC
Given that this issue arose on a single machine, cannot be reproduced by 2 qualified QA members, and cannot be reproduced on a separate system by the original reporter, I am closing this as WFM. 

@Filip - as far as questions about why it crashed on the one system consistently but then stopped (or you can't make it on another system) please feel free to email the QA mailing list with any questions. It could be your video card, it could be a corrupt profile, it could be other driver related issues...it's really quite hard to gauge.

Also feel free to jump into the QA chat to talk through what might be going on: http://webchat.freenode.net/?channels=libreoffice-qa

Lastly, if you want to create a crash log that might help determine what in the world was going on:

https://wiki.documentfoundation.org/Development/How_to_debug#A_gdb_primer
Comment 15 Filip Mutterer 2015-10-20 17:33:46 UTC
Created attachment 119795 [details]
17. second error appears every thing seems frozen except the mouse. 27. second i switch to another terminal to kill libreoffice

bug #92853.mkv is from master~2015-10-19_04.22.32_LibreOfficeDev_5.1.0.0.alpha1_Linux_x86-64_deb.tar.gz
Comment 16 Joel Madero 2015-10-20 17:38:08 UTC
Please slow down and read warnings that appear when messing with the top settings. When you update the version it specifically says that version is the oldest version affected, not the latest tested on. Ignoring said warnings results in valuable time being wasted by others - thanks.
Comment 17 Matthew Francis 2015-10-20 18:46:34 UTC
Reproduced on Linux as shown in the video of attachment 119795 [details], daily dbgutil build 2015-10-20: source-hash-2ce151c7de49f05072185dba7cd3e1945763ae2d

After a few changes of orientation using the sidebar, the orientation dropdown livelocks open

-> NEW


Reproduction steps:
1. Open a new Calc spreadsheet
2. Type "Test" in A1, press return
3. Return the cursor to A1
4. Using the sidebar, repeatedly change the text orientation of A1 (scrubbing up and down the dropdown list with the mouse as shown in the video may or may not be useful to aid reproduction - not clear if this is a factor)

The UI usually locks for me after 5-10 tries in step 4.


Running with SAL_NO_MOUSEGRABS=1 is very useful to avoid getting locked out of your X session
Comment 18 Filip Mutterer 2015-10-20 21:22:38 UTC
if you do not leave the list with the mousecoursor it might not crash, but needs to confirm.
Comment 19 Matthew Francis 2015-10-21 10:58:47 UTC
This began somewhere in 9e678c14e4fc8e58b1e0530744f648fa3958d338^..d05a64df34fd143670cb939b72abfb32d6b714c7 which is the Timer/Idle series

Scrubbing with the mouse does seem relevant, the key to triggering it in one go is to open the orientation dropdown in the sidebar so the list points downwards, then quickly move the mouse up to where the "merge cells" checkbox/label opens a tooltip while the list is open

Adding Cc: to tobias.madl.dev@gmail.com; Could you possibly take a look at this one? Thanks
Comment 20 Robinson Tryon (qubit) 2015-12-13 11:13:04 UTC Comment hidden (obsolete)
Comment 21 Filip Mutterer 2015-12-17 15:14:03 UTC
Can't reproduce this bug on 5.2:
Version: 5.2.0.0.alpha0+
Build ID: dab2582f05979cd99a5937cb95a387cfed70bb8d
CPU Threads: 4; OS Version: Linux 4.2; UI Render: default;
Comment 22 Telesto 2017-06-13 11:42:39 UTC
Setting to WFM based on comment 21