libreoffice in Bionic freezes when running libreoffice-librelogo script

Bug #1794299 reported by Stephen Hamer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LibreOffice
Unknown
Medium
libreoffice (Ubuntu)
New
Undecided
Unassigned

Bug Description

i) azed@azed-H270N:~$ lsb_release -rd
Description: Ubuntu 18.04.1 LTS
Release: 18.04

ii) azed@azed-H270N:~$ apt-cache policy libreoffice
libreoffice:
  Installed: (none)
  Candidate: 1:6.0.6-0ubuntu0.18.04.1
  Version table:
     1:6.0.6-0ubuntu0.18.04.1 500
        500 http://gb.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
     1:6.0.3-0ubuntu1 500
        500 http://gb.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
azed@azed-H270N:~$

iii) - iv)

Try the script attached. Works in 16.04 and OS "Tumbleweed", but in Bionic, LO freezes-up. I have to force a quit to get it back. Other logo scripts behave the same. Shame. Being able to run LOGO in LO is really cool.

I got an error message when I first tried to report this bug. Take 2

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: libreoffice-core 1:6.0.3-0ubuntu1
ProcVersionSignature: Ubuntu 4.15.0-34.37-generic 4.15.18
Uname: Linux 4.15.0-34-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
CurrentDesktop: communitheme:ubuntu:GNOME
Date: Tue Sep 25 13:56:43 2018
ExecutablePath: /usr/lib/libreoffice/program/soffice.bin
InstallationDate: Installed on 2018-04-28 (149 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
ProcEnviron:
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: libreoffice
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Stephen Hamer (stephen-hamer-uk) wrote :
Revision history for this message
Stephen Hamer (stephen-hamer-uk) wrote :

This was the script mentioned in my report:

;KOCH C

;Draws a sequence of Koch “C” curves. The size of the curve is determined by n≤256; its position in the sequence by p≥0.
;The embedded, tabbed routine, kc, below is a “daemon”, which actually draws the curve. The daemon draws the p=0 curve directly, and the (p+1)th curve by replacing the line segments of the p=1 curve with scaled-down pth curves ( p≥0).
;The main kcurve-routine, “wrapped around” the daemon, merely positions the drawing-point so that the curve appears in the centre of the page. It also colours the sub-curves of the curve to show how the Koch “C” curve is constructed.
;Run the script in LibreOffice by accessing the LOGO-toolbar and hitting the green triangle button
;lines preceded by a “;” are ignored by logo

CLEARSCREEN
HOME
HIDETURTLE

To kcurve :n :p

GLOBAL c
c=SQRT 2

 TO kc :n :p
 IF :p=0 [ FD :n ] [
 LT 45
 kc :n/c :p-1
 RT 90
 kc :n/c :p-1
 LT 45 ]
 END

PU BK :n/2 LT 90 BK (3*:n)/8 RT 90 PS 4 PD
IF :p=0 [ PC [5] FD :n PC [0] ] [
LT 45
PC [5] kc :n/c :p-1 PC [0]
RT 90
PC [8] kc :n/c :p-1 PC [0]
LEFT 45 ]
PU RT 90 BK (3*:n)/8 LT 90 BK :n/2 PD PS 1

END

;”Groups” the components of the curve drawn by the command ‘kcurve (256, 10)’ “
PICTURE [ kcurve (256, 10) ]

;Exports an .svg-image of the curve (on a white background) to the folder containing the script
;PICTURE “LibreLogoKochCurve.svg” [ PU POS [0, 0] PD POS [PAGESIZE[0], 0] POS [PAGESIZE[0], (SQRT 2)*PAGESIZE[0]] POS [0, (SQRT 2)*PAGESIZE[0]] POS [0,0] PU HOME PD FILLCOLOR [3] FILL kcurve (256, 10) ]
;this .svg-image can be opened in LibreOffice and then “exported” as .png or .jpg

Revision history for this message
Olivier Tilloy (osomon) wrote :

Just tested in an up-to-date virtual machine running bionic (18.04) and libreoffice 6.0.6.2, and the script runs fine. See attached screenshot.

When does the script hang?

Changed in libreoffice (Ubuntu):
status: New → Incomplete
Revision history for this message
Stephen Hamer (stephen-hamer-uk) wrote :

Thanks for responding, Oliver

Typically, the script will run once, but, when run again, it hangs mid-draw.

I'd send you a screenshot, but once LO has hung, shutter won't take a screenshot.

I usually insert a page-break on p. 1 (which thereafter acts as a "screen"), with the script on p. 2

Revision history for this message
Olivier Tilloy (osomon) wrote :

Would you mind filing an upstream bug report at https://bugs.documentfoundation.org/enter_bug.cgi?product=LibreOffice&format=guided, and share the link to it here? Thanks!

Revision history for this message
In , Stephen Hamer (stephen-hamer-uk) wrote :

Description:
Working in Ubuntu Bionic with the std LibreOffice pkg.

"lsb_release -rd" returns:

Description: Ubuntu 18.04.1 LTS
Release: 18.04

"apt-cache policy libreoffice" gives:

libreoffice:
  Installed: (none)
  Candidate: 1:6.0.6-0ubuntu0.18.04.1
  Version table:
     1:6.0.6-0ubuntu0.18.04.1 500
        500 http://gb.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
     1:6.0.3-0ubuntu1 500
        500 http://gb.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages

The problem:

1. Go -> View -> Toolbars -> Check "Logo"

Open new doc and Insert page break. On the (new) 2nd page paste this logo script:

;KOCH C

;Draws a sequence of Koch “C” curves. The size of the curve is determined by n≤256; its position in the sequence by p≥0.
;The embedded, tabbed routine, kc, below is a “daemon”, which actually draws the curve. The daemon draws the p=0 curve directly, and the (p+1)th curve by replacing the line segments of the p=1 curve with scaled-down pth curves ( p≥0).
;The main kcurve-routine, “wrapped around” the daemon, merely positions the drawing-point so that the curve appears in the centre of the page. It also colours the sub-curves of the curve to show how the Koch “C” curve is constructed.
;Run the script in LibreOffice by accessing the LOGO-toolbar and hitting the green triangle button
;lines preceded by a “;” are ignored by logo

CLEARSCREEN
HOME
HIDETURTLE

To kcurve :n :p

GLOBAL c
c=SQRT 2

 TO kc :n :p
 IF :p=0 [ FD :n ] [
 LT 45
 kc :n/c :p-1
 RT 90
 kc :n/c :p-1
 LT 45 ]
 END

PU BK :n/2 LT 90 BK (3*:n)/8 RT 90 PS 4 PD
IF :p=0 [ PC [5] FD :n PC [0] ] [
LT 45
PC [5] kc :n/c :p-1 PC [0]
RT 90
PC [8] kc :n/c :p-1 PC [0]
LEFT 45 ]
PU RT 90 BK (3*:n)/8 LT 90 BK :n/2 PD PS 1

END

;”Groups” the components of the curve drawn by the command ‘kcurve (256, 10)’ “
PICTURE [ kcurve (256, 10) ]

;Exports an .svg-image of the curve (on a white background) to the folder containing the script
;PICTURE “LibreLogoKochCurve.svg” [ PU POS [0, 0] PD POS [PAGESIZE[0], 0] POS [PAGESIZE[0], (SQRT 2)*PAGESIZE[0]] POS [0, (SQRT 2)*PAGESIZE[0]] POS [0,0] PU HOME PD FILLCOLOR [3] FILL kcurve (256, 10) ]
;this .svg-image can be opened in LibreOffice and then “exported” as .png or .jpg

[script ends]

Run the script by hitting the (Logo) green triangle in the main toolbar.

Not untypically, the script will run once, and draw the Koch curve, but if the 1st page "screen" is cleared (hit the "blank-page"-icon in the Logo-toolbar) and the script is run again, LO freezes. Nothing works. I have to force a "quit" to get it back.

The above script runs fine with the std LO pkgs in Ubuntu 16.04.5 and OS "Tumbleweed"

Steps to Reproduce:
1. See my description
2.
3.

Actual Results:
See my description

Expected Results:
See my description

Reproducible: Always

User Profile Reset: No

Additional Info:

Revision history for this message
Stephen Hamer (stephen-hamer-uk) wrote :

Find my bugzilla bug-report here:

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

I couldn't discover if OpenGL was enabled or not - the LO bug-report wiki was interested in this

Revision history for this message
In , julien2412 (serval2412-6) wrote :

reporter: could you give a try to a more recent LO version by using LO ppa?
Indeed, last one is 6.1.2.

László: thought you might be interested in this one since it concerns LibreLogo.

Olivier Tilloy (osomon)
Changed in libreoffice (Ubuntu):
status: Incomplete → New
Revision history for this message
In , László Németh (nemeth-libreoffice) wrote :

I cannot reproduce the problem on Ubuntu 16.04 LTS with the TDF LibreOffice build 6.0.6.2.

Could you check the OpenGL usage, showed in Help->About LibreOffice, please?

For example, in my machine, without OpenGL, the dialog window print "UI Render: default"?

If your LibreOffice uses OpenGL (UI Render: GL), could you try to switch off in Tools->Options->View->Use OpenGL for all rendering, and check the LibreLogo program again?

Thanks for your help!

Julien: thanks for forwarding the problem!

Revision history for this message
In , Stephen Hamer (stephen-hamer-uk) wrote :

Re: use of OpenGL, I have "UI Render: default"

The fault is in the Ubuntu 18.04 LO package (or Ubuntu 18.04?). The std LO package in Ubuntu 16.04 runs fine

Revision history for this message
In , László Németh (nemeth-libreoffice) wrote :

@Stephen: thanks for checking.

@Björn: it is possible, that LibreOffice 6.0.6 of Ubuntu 18.04 crashes (on Ubuntu 18.04), but the the same release from TDF is stable (on Ubuntu 16.04)?

Revision history for this message
In , Björn Michaelsen (bjoern-michaelsen) wrote :

Im not the Ubuntu maintainer anymore, please file downstream. (Self-removal of CC)

Changed in df-libreoffice:
importance: Unknown → Medium
status: Unknown → Incomplete
Revision history for this message
In , Qa-admin-q (qa-admin-q) wrote :

Dear Stephen_Hamer_UK,

This bug has been in NEEDINFO status with no change for at least
6 months. Please provide the requested information as soon as
possible and mark the bug as UNCONFIRMED. Due to regular bug
tracker maintenance, if the bug is still in NEEDINFO status with
no change in 30 days the QA team will close the bug as INSUFFICIENTDATA
due to lack of needed information.

For more information about our NEEDINFO policy please read the
wiki located here:
https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status/NEEDINFO

If you have already provided the requested information, please
mark the bug as UNCONFIRMED so that the QA team knows that the
bug is ready to be confirmed.

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-NeedInfo-Ping

Revision history for this message
In , Qa-admin-q (qa-admin-q) wrote :

Dear Stephen_Hamer_UK,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp

Changed in df-libreoffice:
status: Incomplete → Unknown
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.