Bug 151086 - Writer crashes when insert SVG image with default anchor set to As Character (STR: comment 4 + comment 10)
Summary: Writer crashes when insert SVG image with default anchor set to As Character ...
Status: RESOLVED DUPLICATE of bug 159379
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: haveBacktrace
Depends on:
Blocks:
 
Reported: 2022-09-20 14:18 UTC by csongor
Modified: 2024-05-02 03:02 UTC (History)
6 users (show)

See Also:
Crash report or crash signature: ["IsAnchoredObjShown(SwTextFrame const &,SwFormatAnchor const &)","GetFrameOfModify(SwRootFrame const *,sw::BroadcastingModify const &,SwFrameType,SwPosition const *,std::pair<Point,bool> const *)","libswlo.so"]


Attachments
Inserting this image into an empty Writer doc three times causes crash (4.45 KB, image/svg+xml)
2022-09-20 14:52 UTC, csongor
Details
bt with debug symbols (10.70 KB, text/plain)
2022-09-21 18:33 UTC, Julien Nabet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description csongor 2022-09-20 14:18:33 UTC
I am working with a lot of SVG files. Writer crashes very frequently when I want to insert 5-10 after each other, via Insert -> Image. 

I put some crash report URLs here, they all happened within the last ~hour:
 
https://crashreport.libreoffice.org/stats/crash_details/42a98794-1499-4ce4-87e3-bf833f5e051a
https://crashreport.libreoffice.org/stats/crash_details/15fe28e2-893d-49ac-8483-bd39e31f7955
https://crashreport.libreoffice.org/stats/crash_details/96058aba-1927-4e58-a8ee-cd27453735b0
https://crashreport.libreoffice.org/stats/crash_details/ae452bdb-a7c7-4f4b-ae5d-0e7c5531b2c5
https://crashreport.libreoffice.org/stats/crash_details/38733ce5-0b43-47da-9541-c8755d41a557

Version: 7.4.0.3 (x64) / LibreOffice Community
Build ID: f85e47c08ddd19c015c0114a68350214f7066f5a
CPU threads: 12; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: en-AU (en_AU); UI: en-GB
Calc: threaded
Comment 1 Xisco Faulí 2022-09-20 14:30:34 UTC
Thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug. 
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
(Please note that the attachment will be public, remove any sensitive information before attaching it. 
See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for help on how to do so.)
Comment 2 csongor 2022-09-20 14:45:31 UTC
Here are some from the newest 7.4.1.2 too:

https://crashreport.libreoffice.org/stats/crash_details/bc85e72f-e851-46df-96aa-feccf094531d
https://crashreport.libreoffice.org/stats/crash_details/67d7db01-b1b6-4c1a-8b8d-4820a4fe42d2

Version: 7.4.1.2 (x64) / LibreOffice Community
Build ID: 3c58a8f3a960df8bc8fd77b461821e42c061c5f0
CPU threads: 12; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: en-AU (en_AU); UI: en-GB
Calc: threaded
Comment 3 Xisco Faulí 2022-09-20 14:47:05 UTC
Please attach a svg sample file that crashes for you
Comment 4 csongor 2022-09-20 14:49:59 UTC
I got this code: 
https://crashreport.libreoffice.org/stats/crash_details/6832d7f2-a35f-4141-b0fe-cf087a674984
when I did this:

- opened a new blank document
- Insert -> Image -> betu_a.svg
- press Escape
- Insert -> Image -> betu_a.svg
- press Escape
- Insert -> Image -> betu_a.svg
Comment 5 csongor 2022-09-20 14:52:14 UTC
Created attachment 182575 [details]
Inserting this image into an empty Writer doc three times causes crash
Comment 6 csongor 2022-09-20 14:54:33 UTC
A bit more detail: if I press SPACE after every ESCAPE, the crash does not happen.
Comment 7 QA Administrators 2022-09-21 03:37:20 UTC Comment hidden (obsolete)
Comment 8 Xisco Faulí 2022-09-21 08:00:41 UTC
I can't reproduce it in

Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: 90861cc6f815b3f34edb88d47afed0d1099e72e7
CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: gtk3
Locale: es-ES (es_ES.UTF-8); UI: en-US
Calc: threaded
Comment 9 Xisco Faulí 2022-09-21 08:00:56 UTC
To be certain the reported issue is not related to corruption in the user profile, could you please reset your Libreoffice profile ( https://wiki.documentfoundation.org/UserProfile ) and re-test?

I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the issue is still present
Comment 10 csongor 2022-09-21 09:24:20 UTC
I quit LibreOffice, made a backup of my profile and deleted the whole profile directory. Then restarted Writer and it was working well for me to. 

However, I remembered I made a config change previously which I made now too:

Tool -> Options -> LibreOffice Writer -> Formatting Aids -> Image = As Character. 

After this change, I was able to reproduce the crash. The crash details have been sent with this URL: https://crashreport.libreoffice.org/stats/crash_details/ace7795c-fb7c-4960-9aef-8b908369bea8

Please, let me know if you need any further input from me.
Comment 11 Telesto 2022-09-21 14:09:17 UTC
Confirm with
Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 349e3af0c5dd5ed495ed61aab526f63c16f0e215
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL threaded
Comment 12 Julien Nabet 2022-09-21 18:33:13 UTC
Created attachment 182604 [details]
bt with debug symbols

On pc Debian x86-64 with master sources updated today, I got an assertion.

I had to run:
Tool -> Options -> LibreOffice Writer -> Formatting Aids -> Image = As Character.

then I tried https://bugs.documentfoundation.org/show_bug.cgi?id=151086#c4
Comment 13 Julien Nabet 2022-09-21 18:37:58 UTC
Assertion has been added with 0ed73a0817ad0ff0107cb297208252c0afe3b4a9
fdo#59437: SwFmtAnchor::SetAnchor: Anchors may be on StartNodes
    
Assertion added in 90a0116ccb48388d91b21128fcac2e4609838581 wasn't quite
right.

(in 2013).

Michael: thought you might be interested in this one.
Comment 14 Stéphane Guillou (stragu) 2024-05-02 03:02:06 UTC
The two crash signatures reported by csongor are:
- "IsAnchoredObjShown(SwTextFrame const &,SwFormatAnchor const &)"
- "GetFrameOfModify(SwRootFrame const *,sw::BroadcastingModify const &,SwFrameType,SwPosition const *,std::pair<Point,bool> const *)"

I reproduced in 24.2.2 with uninformative signature "libswlo.so": https://crashreport.libreoffice.org/stats/crash_details/43fb0764-039a-408d-8090-78f0dc8ec3dc

The issue is the same as described in bug 159379, which is already fixed in master and the upcoming 24.2.4. I verified with comment 4 steps and:

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 2f5ab5b8e7bd7dd06e00153abb77a69e5d192dd2
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded

Marking as duplicate, thanks everyone!

*** This bug has been marked as a duplicate of bug 159379 ***