Bug 152753 - Insert - Image... in a new document: warnings in console with debug LO
Summary: Insert - Image... in a new document: warnings in console with debug LO
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.6.0.0 alpha0+
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Images console-noise
  Show dependency treegraph
 
Reported: 2022-12-31 08:03 UTC by BogdanB
Modified: 2025-03-29 18:27 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description BogdanB 2022-12-31 08:03:06 UTC
Description:
Open a new Writer document. Insert - Image... - and choose any image from your computer

In the dbg build of LibreOffice I get in terminal this warnings:
warn:svl:494675:494675:svl/source/undo/undo.cxx:1070: SfxUndoManager::MarkTopUndoAction(): suspicious call!
warn:vcl:494675:494675:vcl/source/image/ImplImage.cxx:93: Failed to load scaled image from cmd/lc_rotate180.png at 1
warn:vcl:494675:494675:vcl/source/image/ImplImage.cxx:116: Failed to load stock icon cmd/lc_rotate180.png
warn:vcl:494675:494675:vcl/source/image/ImplImage.cxx:93: Failed to load scaled image from cmd/lc_rotatereset.png at 1
warn:vcl:494675:494675:vcl/source/image/ImplImage.cxx:116: Failed to load stock icon cmd/lc_rotatereset.png

Steps to Reproduce:
see description

Actual Results:
warnings

Expected Results:
no warnings


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 12e8d57e791bb1befc0716d4d02af7d1d1ccb4ae
CPU threads: 4; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded
Comment 1 Stéphane Guillou (stragu) 2022-12-31 10:35:36 UTC
Repro in:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 12e8d57e791bb1befc0716d4d02af7d1d1ccb4ae
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Does not happen in Calc.
Comment 2 BogdanB 2023-03-17 20:16:21 UTC
It's 2 lines simpler after retested with
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: f92721bf182952be88b0349a17e46b684d630c29
CPU threads: 4; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded

warn:svl:196983:196983:svl/source/undo/undo.cxx:1070: SfxUndoManager::MarkTopUndoAction(): suspicious call!
warn:vcl:196983:196983:vcl/source/image/ImplImage.cxx:93: Failed to load scaled image from cmd/lc_rotatereset.png at 1
warn:vcl:196983:196983:vcl/source/image/ImplImage.cxx:116: Failed to load stock icon cmd/lc_rotatereset.png
Comment 3 BogdanB 2023-08-03 15:41:08 UTC
Retested with
Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 0e17d8ddccdee7d4f46b256153853e1cab87c99e
CPU threads: 16; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded

warn:svl:347292:347292:svl/source/undo/undo.cxx:1073: SfxUndoManager::MarkTopUndoAction(): suspicious call!
warn:vcl:347292:347292:vcl/source/image/ImplImage.cxx:94: Failed to load scaled image from cmd/lc_rotatereset.png at 1
warn:vcl:347292:347292:vcl/source/image/ImplImage.cxx:117: Failed to load stock icon cmd/lc_rotatereset.png
Comment 4 BogdanB 2024-06-08 07:29:08 UTC
warn:svl:64281:64281:svl/source/undo/undo.cxx:1083: SfxUndoManager::MarkTopUndoAction(): suspicious call!

(soffice:64281): Gtk-WARNING **: 10:28:42.005: Could not load image 'res/unlocked.png': Failed to open file “/home/bogdan/Documente/LibreOfficeDev_24.8.0.0.alpha0_Linux_x86-64_archive/LibreOfficeDev_24.8.0.0.alpha1_Linux_x86-64_archive/program/../share/config/soffice.cfg/svx/ui/res/unlocked.png”: No such file or directory
warn:vcl:64281:64281:vcl/source/image/ImplImage.cxx:100: Failed to load scaled image from cmd/lc_rotatereset.png at 1
warn:vcl:64281:64281:vcl/source/image/ImplImage.cxx:124: Failed to load stock icon cmd/lc_rotatereset.png


Restested with
Version: 24.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 6d39b1a6068bbbd5ca4947f668f989dbfb73342d
CPU threads: 16; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded
Comment 5 BogdanB 2024-12-04 05:36:21 UTC
Michael Stahl, I added you here, please can you take a look, if this should remain a warning, or maybe it is not the case?

Now this is the only warning:

warn:svl:3244:3244:svl/source/undo/undo.cxx:1104: SfxUndoManager::MarkTopUndoAction(): suspicious call!

svl/source/undo/undo.cxx:1104:
------------------
UndoStackMark SfxUndoManager::MarkTopUndoAction()
{
    UndoManagerGuard aGuard( *m_xData );

    SAL_WARN_IF( IsInListAction(), "svl",
            "SfxUndoManager::MarkTopUndoAction(): suspicious call!" );
    assert((m_xData->mnMarks + 1) < (m_xData->mnEmptyMark - 1) &&
            "SfxUndoManager::MarkTopUndoAction(): mark overflow!");

------------------

Retested with
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: a3b0ef4088183c4a3b2ec3fef08ef91314eaef54
CPU threads: 16; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded
Comment 6 Michael Stahl (allotropia) 2024-12-04 10:42:47 UTC
sorry, i forgot what this class is doing...

hmmm ... it looks like RemoveMark() would only look for a top-level action that has the mark, so if you set it on an action inside a list action, it would be pointless?

perhaps that's what the warning is about.
Comment 7 BogdanB 2025-03-29 18:27:08 UTC
warn:svl:13711:13711:svl/source/undo/undo.cxx:1100: SfxUndoManager::MarkTopUndoAction(): suspicious call!
warn:vcl:13711:13711:vcl/source/image/ImplImage.cxx:103: Failed to load scaled image from cmd/lc_rotatereset.png at 1
warn:vcl:13711:13711:vcl/source/image/ImplImage.cxx:127: Failed to load stock icon cmd/lc_rotatereset.png

Retested with
Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 742dbb088b44783c3a4f0fd120b11be3a74fd483
CPU threads: 16; OS: Linux 6.11; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded