Bug 124250 - LibreOffice crashes when applying an hyperlink to text inside a text box
Summary: LibreOffice crashes when applying an hyperlink to text inside a text box
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.0.7.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-21 20:55 UTC by me
Modified: 2019-04-30 09:12 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
sample document where repeating the [CTRL-K] op causes LibreOffice to crash (211.38 KB, application/vnd.oasis.opendocument.text)
2019-03-21 20:55 UTC, me
Details
The example file saved by current 6.3 master (211.55 KB, application/vnd.oasis.opendocument.text)
2019-03-25 21:35 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description me 2019-03-21 20:55:12 UTC
Created attachment 150159 [details]
sample document where repeating the [CTRL-K] op causes LibreOffice to crash

Platform:
---------
    • linux Mint (Linux GIPSY 4.15.0-45-generic #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux)

    • LibreOffice:
------------------
        ◦ Versione: 6.0.7.3
        ◦ Build ID: 1:6.0.7-0ubuntu0.18.04.2
        ◦ Thread CPU: 8; SO: Linux 4.15; Resa interfaccia: predefinito; VCL: gtk3; 
        ◦ Versione locale: it-IT (en_US.UTF-8); Calc: group

How to reproduce the crash:
---------------------------
Please refer to the attached sample document and repeat the above instructions.

    1. in the “2013 ...” text box select the text “Certificate of Cloud Security Knowledge”;
    2. press [CTRL-K] to add an hyperlink to the selected text;
    3. insert an  hyperlink (I used https://ccsk.cloudsecurityalliance.org/en);
    4. press OK to confirm;
    5. LibreOffice hangs;
    6. if you force to close the dialog box, LibreOffice crashes.
Comment 1 Dieter 2019-03-21 20:59:07 UTC
Thank you for reporting the bug. Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ? I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version. Change to RESOLVED WORKSFORME, if the problem went away.
Comment 2 Gabor Kelemen (allotropia) 2019-03-25 21:35:05 UTC
Created attachment 150285 [details]
The example file saved by current 6.3 master

I gave it a try and with my own build it no longer hangs. 
With the 6.0.7 build from Ubuntu 18.04 I can reproduce the hanging.

However, there are several problems with this document:
- The "Certificate of Cloud Security Knowledge" text in the textbox had line breaks, these got lost on adding the link. Now the text is "Certificateof CloudSecurityKnowledge"
- The link as a grey clickable object appears only when I click into the shape object to edit it. 
- Even then the link does not open the site, although when it is selected and the hyperlink window is opened the address is correctly present.

So even if in master Writer does no longer freeze, there are many problems with reaching the expected behavior.
 
Maybe you could try positioning the link in your document in a 1x1 table cell as plain text until all the above is sorted out.
Comment 3 Xisco Faulí 2019-04-30 09:12:53 UTC
(In reply to Gabor Kelemen from comment #2)
> Created attachment 150285 [details]
> The example file saved by current 6.3 master
> 
> I gave it a try and with my own build it no longer hangs. 
> With the 6.0.7 build from Ubuntu 18.04 I can reproduce the hanging.
> 
> However, there are several problems with this document:
> - The "Certificate of Cloud Security Knowledge" text in the textbox had line
> breaks, these got lost on adding the link. Now the text is "Certificateof
> CloudSecurityKnowledge"
> - The link as a grey clickable object appears only when I click into the
> shape object to edit it. 
> - Even then the link does not open the site, although when it is selected
> and the hyperlink window is opened the address is correctly present.
> 
> So even if in master Writer does no longer freeze, there are many problems
> with reaching the expected behavior.
>  
> Maybe you could try positioning the link in your document in a 1x1 table
> cell as plain text until all the above is sorted out.

Hi Gabor,
Could you please report the mentioned problems as follow-up bugs ?
closing this one as RESOLVED WORKSFORME since it no longer crashes...