Bug 160427

Summary: LibreLogo PICTURE SVG opens new window "untitled 1" and hangs LO.
Product: LibreOffice Reporter: Roland Chee <rolandchee>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: UNCONFIRMED ---    
Severity: normal CC: dgp-mail, robert
Priority: medium    
Version: 7.5.9.2 release   
Hardware: x86-64 (AMD64)   
OS: macOS (All)   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: Screenshot of the Untitled window.
LibreOffice 24.2.2

Description Roland Chee 2024-03-30 03:37:26 UTC
Steps to reproduce:
1. Enter the following in new Writer document:
"""
PICTURE "circle.svg" [ CIRCLE 50 ]
"""
2. Save as "circle.odt".
3. Run from LibreLogo toolbar.

Observed outcome:
1. Turtle draws circle and sits inside it.
2. The file "circle.svg" is produced correctly, and in the correct directory.
3. New window appears titled "Untitled 1" followed shortly by the Spinning Beach Ball of Death (SBBOD).
4. The mouse cursor changes to SBBOD on all LibreOffice windows ("circle.odt" and "Untitled 1"); and LibreOffice is marked "unresponsive" on Force Quit Applications dialog.

Tried with same outcome:
1. tick only "Use hardware acceleration". 
2. tick only "Use anti-aliasing".
3. tick only "Use Skia for all rendering".
4. tick none of above.

After force-quit Libreoffice; and file-recovery:
1. "circle.odt" is recovered fully and the turtle is not sitting in a circle.
2. "Untitled 1 (Remote)" is an empty document.
Comment 1 Dieter 2024-04-14 11:54:14 UTC
(In reply to Roland Chee from comment #0)
> Steps to reproduce:
> 1. Enter the following in new Writer document:
> """
> PICTURE "circle.svg" [ CIRCLE 50 ]
Attachment is missing. Please add it.
=> NEEDINFO
Comment 2 Dieter 2024-04-14 11:54:47 UTC
And please also text with a recent version of LO (LO 24.2.2). Thank you.
Comment 3 Roland Chee 2024-04-15 14:25:24 UTC
Created attachment 193687 [details]
Screenshot of the Untitled window.

Strangely, this time it is "Untitled 2", rather than "Untitled 1".
I was unable to re-size the window, because libreoffice is just totally frozen.
Comment 4 Roland Chee 2024-04-15 14:29:37 UTC
LibreOffice Community 7.5.9.2(x86_64)
CPU threads:4
MacOSX 11.7.10
UI render: default
VCL: osx
Locale: en_AU.UTF-8
UI: en-US
Comment 5 Roland Chee 2024-04-15 14:59:49 UTC
Created attachment 193689 [details]
LibreOffice 24.2.2

Similarly, LibreOffice 24.2.2 hangs after running the LibreLogo code.
Comment 6 Roland Chee 2024-04-15 15:06:08 UTC
The difference with LibreOffice 24.2.2 are:
1. The new window has no title.
2. After force-quit, then I re-open "circle.odt", there is no dialog about file recovery for "circle.odt", and no listing of any "untitled (remote)" file.
Comment 7 Robert Großkopf 2024-04-15 15:58:47 UTC
I have tried this in following way:
Activated Libre Logo toolbar.
Activated turtle and 2 page layout by the wand.
Wrote the following code for my German Linux system:

BILD "/home/robby/circle.svg" [
KREIS 50
]

Executed the code.
circle.svg will be created in my home directory.
Turtle sits inside the circle on the first page of LibreLogo layout.

Works also if I try to write direct to "circle.svg" without any path.

My system: OpenSUSE 15.6 64bit rpm Linux with LO 24.2.2.2
Comment 8 Roland Chee 2024-04-22 06:23:59 UTC
(In reply to Robert Großkopf from comment #7)
> I have tried this in following way:
> Activated Libre Logo toolbar.
> Activated turtle and 2 page layout by the wand.
> Wrote the following code for my German Linux system:
> 
> BILD "/home/robby/circle.svg" [
> KREIS 50
> ]
> 
> Executed the code.
> circle.svg will be created in my home directory.
> Turtle sits inside the circle on the first page of LibreLogo layout.
> 
> Works also if I try to write direct to "circle.svg" without any path.
> 
> My system: OpenSUSE 15.6 64bit rpm Linux with LO 24.2.2.2

Thank you for the attempt to reproduce this bug.
If no problem on Linux, maybe the problem is on MacOS?
I am on MacOS 11.7.10 (Big Sur). Same bug with LO 24.2.2 and LO 7.5.9.2.
Of interest, LO has produced the SVG image before LO hangs.
Maybe a script could not finish or close?