Bug 152279 - warn:vcl:26270:26270:vcl/source/image/ImplImage.cxx:93: Failed to load scaled image
Summary: warn:vcl:26270:26270:vcl/source/image/ImplImage.cxx:93: Failed to load scaled...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.0.0 alpha0+
Hardware: All Linux (All)
: low trivial
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: KDE, KF5 console-noise Qt6
  Show dependency treegraph
 
Reported: 2022-11-28 20:53 UTC by Eyal Rozenberg
Modified: 2024-11-18 09:04 UTC (History)
4 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 Eyal Rozenberg 2022-11-28 20:53:52 UTC
When I run LO Writer with the qt5 VCL, I get many console output lines complaining about loading scaled images:

warn:vcl:26270:26270:vcl/source/image/ImplImage.cxx:93: Failed to load scaled image from cmd/sc_pastenestedtable.png at 1
warn:vcl:26270:26270:vcl/source/image/ImplImage.cxx:116: Failed to load stock icon cmd/sc_pastenestedtable.png
warn:vcl:26270:26270:vcl/source/image/ImplImage.cxx:93: Failed to load scaled image from cmd/sc_pasterowsbefore.png at 1
warn:vcl:26270:26270:vcl/source/image/ImplImage.cxx:116: Failed to load stock icon cmd/sc_pasterowsbefore.png
warn:vcl:26270:26270:vcl/source/image/ImplImage.cxx:93: Failed to load scaled image from cmd/sc_pastecolumnsbefore.png at 1
warn:vcl:26270:26270:vcl/source/image/ImplImage.cxx:116: Failed to load stock icon cmd/sc_pastecolumnsbefore.png
warn:vcl:26270:26270:vcl/source/image/ImplImage.cxx:93: Failed to load scaled image from cmd/sc_toolbarmodeui.png at 1
warn:vcl:26270:26270:vcl/source/image/ImplImage.cxx:116: Failed to load stock icon cmd/sc_toolbarmodeui.png
warn:vcl:26270:26270:vcl/source/image/ImplImage.cxx:93: Failed to load scaled image from cmd/sc_toolbarlock.png at 1
warn:vcl:26270:26270:vcl/source/image/ImplImage.cxx:116: Failed to load stock icon cmd/sc_toolbarlock.png
warn:vcl:26270:26270:vcl/source/image/ImplImage.cxx:93: Failed to load scaled image from cmd/sc_toolbarlock.png at 1
warn:vcl:26270:26270:vcl/source/image/ImplImage.cxx:116: Failed to load stock icon cmd/sc_toolbarlock.png
warn:vcl:26270:26270:vcl/source/image/ImplImage.cxx:93: Failed to load scaled image from cmd/sc_zoom50percent.png at 1
warn:vcl:26270:26270:vcl/source/image/ImplImage.cxx:116: Failed to load stock icon cmd/sc_zoom50percent.png
warn:vcl:26270:26270:vcl/source/image/ImplImage.cxx:93: Failed to load scaled image from cmd/sc_zoom200percent.png at 1
warn:vcl:26270:26270:vcl/source/image/ImplImage.cxx:116: Failed to load stock icon cmd/sc_zoom200percent.png
warn:vcl:26270:26270:vcl/source/image/ImplImage.cxx:93: Failed to load scaled image from cmd/sc_formattingmarkmenu.png at 1
warn:vcl:26270:26270:vcl/source/image/ImplImage.cxx:116: Failed to load stock icon cmd/sc_formattingmarkmenu.png
warn:vcl:26270:26270:vcl/source/image/ImplImage.cxx:93: Failed to load scaled image from cmd/sc_twainselect.png at 1
warn:vcl:26270:26270:vcl/source/image/ImplImage.cxx:116: Failed to load stock icon cmd/sc_twainselect.png
warn:vcl:26270:26270:vcl/source/image/ImplImage.cxx:93: Failed to load scaled image from cmd/sc_insertnonbreakingspace.png at 1
warn:vcl:26270:26270:vcl/source/image/ImplImage.cxx:116: Failed to load stock icon cmd/sc_insertnonbreakingspace.png
warn:vcl:26270:26270:vcl/source/image/ImplImage.cxx:93: Failed to load scaled image from cmd/sc_inserthardhyphen.png at 1
warn:vcl:26270:26270:vcl/source/image/ImplImage.cxx:116: Failed to load stock icon cmd/sc_inserthardhyphen.png
warn:vcl:26270:26270:vcl/source/image/ImplImage.cxx:93: Failed to load scaled image from cmd/sc_insertsofthyphen.png at 1
warn:vcl:26270:26270:vcl/source/image/ImplImage.cxx:116: Failed to load stock icon cmd/sc_insertsofthyphen.png
warn:vcl:26270:26270:vcl/source/image/ImplImage.cxx:93: Failed to load scaled image from cmd/sc_insertnarrownobreakspace.png at 1
warn:vcl:26270:26270:vcl/source/image/ImplImage.cxx:116: Failed to load stock icon cmd/sc_insertnarrownobreakspace.png

... and so on. Seeing how the UI seems fine, I don't understand why I'm getting these warnings.

Version: 7.5.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 360b5861fb46353e7a6b9f5abf13339cd719a8df
CPU threads: 4; OS: Linux 6.0; UI render: default; VCL: qt5 (qfont+xcb)
Locale: en-IL (en_IL); UI: en-US
Comment 1 Andika Triwidada 2022-12-06 13:08:54 UTC
some (all?) of those files are only exist in icon theme karasa_jaga or sukapura
Comment 2 Stéphane Guillou (stragu) 2022-12-31 15:22:17 UTC
I can't reproduce. Can you please provide some steps that consistently show you the warning, Eyal?

Thank you!

Version: 7.5.0.1 (X86_64) / LibreOffice Community
Build ID: 77cd3d7ad4445740a0c6cf977992dafd8ebad8df
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: qt5 (qfont+xcb)
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 3 Eyal Rozenberg 2022-12-31 15:56:04 UTC
(In reply to Stéphane Guillou (stragu) from comment #2)
> I can't reproduce. Can you please provide some steps that consistently show
> you the warning, Eyal?

I just run:

AL_USE_VCLPLUGIN=qt5 libreofficedev7.6 --writ

with build:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: ad387d5b984c6666906505d25685065f710ed55d
CPU threads: 4; OS: Linux 6.0; UI render: default; VCL: qt5 (qfont+xcb)
Locale: en-IL (en_IL); UI: en-US

... for example. My OS distribution is Devuan GNU/Linux Daedalus, in case that matters.
Comment 4 Telesto 2022-12-31 16:42:05 UTC
(In reply to Eyal Rozenberg from comment #3)
It's probably depending on the Icon theme used. Tools -> Options -> View.

Colibre is default on Windows. Unsure what QT5 is using
Comment 5 Eyal Rozenberg 2022-12-31 19:01:47 UTC
(In reply to Telesto from comment #4)
> (In reply to Eyal Rozenberg from comment #3)
> It's probably depending on the Icon theme used. Tools -> Options -> View.

It says: "Automatic (Elementary)"

(and I didn't set this myself.)
Comment 6 QA Administrators 2023-01-01 03:24:20 UTC Comment hidden (obsolete)
Comment 7 Dieter 2024-01-02 08:04:13 UTC
Eyal, since nobody could confirm the bug. I'd like to ask, if it is still reproducible for you. If yes, is it only related to Elementary icon?
Comment 8 Eyal Rozenberg 2024-01-12 13:59:54 UTC
(In reply to Dieter from comment #7)
> Eyal, since nobody could confirm the bug. I'd like to ask, if it is still
> reproducible for you. If yes, is it only related to Elementary icon?

Still seeing this with:

Version: 24.2.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 516f800f84b533db0082b1f39c19d1af40ab29c8
CPU threads: 4; OS: Linux 6.5; UI render: default; VCL: qt5 (cairo+xcb)
Locale: he-IL (en_IL); UI: en-US
Comment 9 Chris Sherlock 2024-09-24 01:54:59 UTC
Can you try on latest master? I had introduced a regression way back in 2016 when migrating to a new BitmapFilter pattern. 

I recently fixed the mask regression here:

https://gerrit.libreoffice.org/c/core/+/173792
Comment 10 Chris Sherlock 2024-09-24 04:23:25 UTC
Note that for warning to show like this you have to have a debug build of LO.
Comment 11 Eyal Rozenberg 2024-11-14 19:37:19 UTC
(In reply to Chris Sherlock from comment #9)
> Can you try on latest master? I had introduced a regression way back in 2016
> when migrating to a new BitmapFilter pattern. 
> 
> I recently fixed the mask regression here:
> 
> https://gerrit.libreoffice.org/c/core/+/173792

Tried a recent nightly, and the problem persists.

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 5debf32cf09e865f2b241df3edd8461b92b5c1bf
CPU threads: 4; OS: Linux 6.6; UI render: default; VCL: qt5 (cairo+xcb)
Locale: en-US (en_IL); UI: en-US


Note that I don't see it with qt6.
Comment 12 Buovjaga 2024-11-15 04:56:02 UTC
The commercial support for Qt5 ends in 6 months, so I wonder if we should care about such console noise: https://endoflife.date/qt
Comment 13 Eyal Rozenberg 2024-11-15 08:04:30 UTC
(In reply to Buovjaga from comment #12)
> The commercial support for Qt5 ends in 6 months, so I wonder if we should
> care about such console noise: https://endoflife.date/qt

Well, you can reduce the importance if you like. But - these console noise bugs are typically the result of us doing something we probably shouldn't.

If we drop support for QT5, that's something else of course...
Comment 14 Michael Weghorn 2024-11-18 09:04:26 UTC
(In reply to Eyal Rozenberg from comment #11)

> Note that I don't see it with qt6.

I see this with qt6 as well (needs an `--enable-debug` or `--enable-sal-log` build for the output to show up).

Sample backtrace with a corresponding breakpoint:
                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                     
1  ImplImage::loadStockAtScale                                                                                                                                                           ImplImage.cxx           102  0x7fffeebe083a 
2  ImplImage::getSizePixel                                                                                                                                                               ImplImage.cxx           118  0x7fffeebe0bc7 
3  ImplImage::getBitmapEx                                                                                                                                                                ImplImage.cxx           134  0x7fffeebe0ee1 
4  Image::GetBitmapEx                                                                                                                                                                    Image.cxx               99   0x7fffeebdd3e1 
5  Graphic::Graphic                                                                                                                                                                      graph.cxx               201  0x7fffee90ef13 
6  framework::(anonymous namespace)::GetXGraphic                                                                                                                                         imagemanagerimpl.cxx    697  0x7ffff4e74049 
7  framework::ImageManagerImpl::getImages                                                                                                                                                imagemanagerimpl.cxx    742  0x7ffff4e73ee2 
8  framework::ImageManager::getImages                                                                                                                                                    imagemanager.cxx        102  0x7ffff4e6dfaa 
9  non-virtual thunk to framework::ImageManager::getImages(short, com::sun::star::uno::Sequence<rtl::OUString> const&)                                                                   imagemanager.cxx        102  0x7ffff4e6dffa 
10 vcl::CommandInfoProvider::GetXGraphicForCommand                                                                                                                                       commandinfoprovider.cxx 383  0x7fffeec14b25 
11 vcl::CommandInfoProvider::GetImageForCommand                                                                                                                                          commandinfoprovider.cxx 399  0x7fffeec151b7 
12 framework::MenuBarManager::FillMenuImages                                                                                                                                             menubarmanager.cxx      1590 0x7ffff4f03a26 
13 framework::MenuBarManager::Activate                                                                                                                                                   menubarmanager.cxx      588  0x7ffff4f0235d 
14 framework::MenuBarManager::LinkStubActivate                                                                                                                                           menubarmanager.cxx      550  0x7ffff4f01f7d 
15 Link<Menu *, bool>::Call                                                                                                                                                              link.hxx                111  0x7fffee41a4d6 
16 Menu::Activate                                                                                                                                                                        menu.cxx                268  0x7fffee40b828 
17 Menu::HandleMenuActivateEvent                                                                                                                                                         menu.cxx                2615 0x7fffee416c9c 
18 QtMenu::DoFullMenuUpdate                                                                                                                                                              QtMenu.cxx              513  0x7fffe4786e5d 
19 QtMenu::SetFrame                                                                                                                                                                      QtMenu.cxx              482  0x7fffe4786a30 
20 MenuBarWindow::SetMenu                                                                                                                                                                menubarwindow.cxx       193  0x7fffee426d58 
21 MenuBar::ImplCreate                                                                                                                                                                   menu.cxx                2497 0x7fffee416771 
22 SystemWindow::SetMenuBar                                                                                                                                                              syswin.cxx              867  0x7fffee4a0267 
23 framework::LayoutManager::implts_createMenuBar                                                                                                                                        layoutmanager.cxx       187  0x7ffff4d6a774 
24 framework::LayoutManager::createElement                                                                                                                                               layoutmanager.cxx       1434 0x7ffff4d738d6 
25 SfxDispatcher::SetMenu_Impl                                                                                                                                                           dispatch.cxx            1035 0x7ffff3bc2df5 
26 SfxDispatcher::Update_Impl                                                                                                                                                            dispatch.cxx            1100 0x7ffff3bbea9c 
27 SfxBaseController::ConnectSfxFrame_Impl                                                                                                                                               sfxbasecontroller.cxx   1206 0x7ffff41f0761 
28 SfxBaseController::attachFrame                                                                                                                                                        sfxbasecontroller.cxx   530  0x7ffff41ef91e 
29 utl::ConnectFrameControllerModel                                                                                                                                                      fcm.hxx                 48   0x7ffff41c0f8d 
30 (anonymous namespace)::SfxFrameLoader_Impl::impl_createDocumentView                                                                                                                   frmload.cxx             584  0x7ffff41bd661 
31 (anonymous namespace)::SfxFrameLoader_Impl::load                                                                                                                                      frmload.cxx             759  0x7ffff41bac09 
32 framework::LoadEnv::impl_loadContent                                                                                                                                                  loadenv.cxx             1180 0x7ffff4dc0524 
33 framework::LoadEnv::start                                                                                                                                                             loadenv.cxx             415  0x7ffff4dbd685 
34 framework::LoadEnv::startLoading                                                                                                                                                      loadenv.cxx             311  0x7ffff4dbb332 
35 framework::LoadDispatcher::impl_dispatch                                                                                                                                              loaddispatcher.cxx      107  0x7ffff4c54471 
36 framework::LoadDispatcher::dispatchWithReturnValue                                                                                                                                    loaddispatcher.cxx      60   0x7ffff4c551d1 
37 non-virtual thunk to framework::LoadDispatcher::dispatchWithReturnValue(com::sun::star::util::URL const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) loaddispatcher.cxx      60   0x7ffff4c55274 
38 comphelper::SynchronousDispatch::dispatch                                                                                                                                             synchronousdispatch.cxx 62   0x7ffff620fdf0 
39 desktop::DispatchWatcher::executeDispatchRequests                                                                                                                                     dispatchwatcher.cxx     529  0x7ffff7b73dad 
40 desktop::RequestHandler::ExecuteCmdLineRequests                                                                                                                                       officeipcthread.cxx     1347 0x7ffff7b920fa 
41 desktop::Desktop::OpenClients                                                                                                                                                         app.cxx                 2203 0x7ffff7b2c778 
42 desktop::Desktop::OpenClients_Impl                                                                                                                                                    app.cxx                 1979 0x7ffff7b2a6f3 
43 desktop::Desktop::LinkStubOpenClients_Impl                                                                                                                                            app.cxx                 1963 0x7ffff7b28d6d 
44 Link<void *, void>::Call                                                                                                                                                              link.hxx                111  0x7fffee5321c1 
45 ImplHandleUserEvent                                                                                                                                                                   winproc.cxx             2285 0x7fffee52e331 
46 ImplWindowFrameProc                                                                                                                                                                   winproc.cxx             2849 0x7fffee52b24a 
47 SalFrame::CallCallback                                                                                                                                                                salframe.hxx            317  0x7fffe46f07fc 
48 QtInstance::ProcessEvent                                                                                                                                                              QtInstance.cxx          527  0x7fffe47114cf 
49 SalUserEventList::DispatchUserEvents(bool)::$_0::operator()() const                                                                                                                   salusereventlist.cxx    119  0x7fffeec364ad 
50 SalUserEventList::DispatchUserEvents                                                                                                                                                  salusereventlist.cxx    120  0x7fffeec36386 
51 QtInstance::ImplYield                                                                                                                                                                 QtInstance.cxx          453  0x7fffe470df11 
52 QtInstance::DoYield                                                                                                                                                                   QtInstance.cxx          475  0x7fffe4711031 
53 ImplYield                                                                                                                                                                             svapp.cxx               385  0x7fffeed0df86 
54 Application::Yield                                                                                                                                                                    svapp.cxx               473  0x7fffeed0d91f 
55 Application::Execute                                                                                                                                                                  svapp.cxx               360  0x7fffeed0d700 
56 desktop::Desktop::Main                                                                                                                                                                app.cxx                 1679 0x7ffff7b26d4b 
57 ImplSVMain                                                                                                                                                                            svmain.cxx              228  0x7fffeed2e816 
58 SVMain                                                                                                                                                                                svmain.cxx              246  0x7fffeed30409 
59 soffice_main                                                                                                                                                                          sofficemain.cxx         121  0x7ffff7ba089a 
60 sal_main                                                                                                                                                                              main.c                  51   0x555555555a6d 
61 main                                                                                                                                                                                  main.c                  49   0x555555555a47 


At a quick glance, the code calling this seems to handle the case that no image is returned just fine.

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 608257dd5f2b9e361d474a5d8d4d113d9b431209
CPU threads: 32; OS: Linux 6.11; UI render: default; VCL: qt6 (cairo+wayland)
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: CL threaded