Suspicious dependency of CppunitTest on instdir/share/config/images_*.zip

Stephan Bergmann sbergman at redhat.com
Tue Apr 16 13:58:10 UTC 2019


I had accidentally noticed that `make clean && make 
CppunitTest_chart2_export` fails on current master.  I don't know 
whether that is a recent regression or had never actually worked, but 
the backtrace looks somewhat suspicious, as if the fix I came up with 
merely addresses symptoms rather than whatever root cause.  Quoting the 
<https://gerrit.libreoffice.org/#/c/70825/> "Add missing test dependency 
on instdir/share/config/images_*.zip" commit message:

> Add missing test dependency on instdir/share/config/images_*.zip
> 
> ...without which `make clean && make CppunitTest_chart2_export` would fire
> 
>> cppunittester: vcl/source/gdi/bmpacc.cxx:39: BitmapInfoAccess::BitmapInfoAccess(Bitmap &, BitmapAccessMode): Assertion `xImpBmp && "Forbidden Access to empty bitmap!"' failed.
> 
> at
> 
>> __GI___assert_fail at /usr/src/debug/glibc-2.28-95-g7423da211d/assert/assert.c:101
>> BitmapInfoAccess::BitmapInfoAccess(Bitmap&, BitmapAccessMode) at vcl/source/gdi/bmpacc.cxx:39
>> BitmapReadAccess::BitmapReadAccess(Bitmap&, BitmapAccessMode) at vcl/source/gdi/bmpacc.cxx:88
>> BitmapWriteAccess::BitmapWriteAccess(Bitmap&) at vcl/source/gdi/bmpacc.cxx:327
>> Bitmap::AcquireWriteAccess() at vcl/source/bitmap/bitmap.cxx:385
>> vcl::ScopedBitmapAccess<BitmapWriteAccess, Bitmap, &Bitmap::AcquireWriteAccess>::ScopedBitmapAccess(Bitmap&) at include/vcl/scopedbitmapaccess.hxx:53
>> BitmapDisabledImageFilter::execute(BitmapEx const&) const at vcl/source/bitmap/BitmapDisabledImageFilter.cxx:30
>> BitmapFilter::Filter(BitmapEx&, BitmapFilter const&) at vcl/source/bitmap/bitmapfilter.cxx:23
>> ImplImage::getBitmapEx(bool) at vcl/source/image/ImplImage.cxx:107
>> ImplImage::getBitmapExForHiDPI(bool) at vcl/source/image/ImplImage.cxx:137
>> Image::Draw(OutputDevice*, Point const&, DrawImageFlags, Size const*) at vcl/source/image/Image.cxx:124
>> OutputDevice::DrawImage(Point const&, Size const&, Image const&, DrawImageFlags) at vcl/source/outdev/bitmap.cxx:1323
>> OutputDevice::DrawImage(Point const&, Image const&, DrawImageFlags) at vcl/source/outdev/bitmap.cxx:1307
>> ToolBox::ImplDrawItem(OutputDevice&, unsigned long, unsigned short) at vcl/source/window/toolbox.cxx:2817
>> ToolBox::Paint(OutputDevice&, tools::Rectangle const&) at vcl/source/window/toolbox.cxx:3663
>> ScInputWindow::Paint(OutputDevice&, tools::Rectangle const&) at sc/source/ui/app/inputwin.cxx:427
>> PaintHelper::DoPaint(vcl::Region const*) at vcl/source/window/paint.cxx:300
>> vcl::Window::ImplCallPaint(vcl::Region const*, ImplPaintFlags) at vcl/source/window/paint.cxx:604
>> PaintHelper::~PaintHelper() at vcl/source/window/paint.cxx:540
>> vcl::Window::ImplCallPaint(vcl::Region const*, ImplPaintFlags) at vcl/source/window/paint.cxx:610
>> PaintHelper::~PaintHelper() at vcl/source/window/paint.cxx:540
>> vcl::Window::ImplCallPaint(vcl::Region const*, ImplPaintFlags) at vcl/source/window/paint.cxx:610
>> PaintHelper::~PaintHelper() at vcl/source/window/paint.cxx:540
>> vcl::Window::ImplCallPaint(vcl::Region const*, ImplPaintFlags) at vcl/source/window/paint.cxx:610
>> vcl::Window::Update() at vcl/source/window/paint.cxx:1323
>> StatusBar::StartProgressMode(rtl::OUString const&) at vcl/source/window/status.cxx:1325
>> framework::ProgressBarWrapper::start(rtl::OUString const&, int) at framework/source/uielement/progressbarwrapper.cxx:111
>> framework::StatusIndicatorInterfaceWrapper::start(rtl::OUString const&, int) at framework/source/uielement/statusindicatorinterfacewrapper.cxx:52
>> SfxProgress::SetState(unsigned int, unsigned int) at sfx2/source/bastyp/progress.cxx:236
>> ScProgress::SetState(unsigned long, unsigned long) at sc/inc/progress.hxx:86
>> ScfProgressBar::IncreaseProgressBar(unsigned long) at sc/source/filter/ftools/fprogressbar.cxx:129
>> ScfProgressBar::ProgressAbs(unsigned long) at sc/source/filter/ftools/fprogressbar.cxx:186
>> ScfProgressBar::IncreaseProgressBar(unsigned long) at sc/source/filter/ftools/fprogressbar.cxx:121
>> ScfProgressBar::ProgressAbs(unsigned long) at sc/source/filter/ftools/fprogressbar.cxx:186
>> ScfProgressBar::Progress(unsigned long) at sc/source/filter/ftools/fprogressbar.cxx:194
>> XclExpProgressBar::Progress() at sc/source/filter/excel/xehelper.cxx:142
>> XclExpRow::XclExpRow(XclExpRoot const&, unsigned int, XclExpRowOutlineBuffer&, bool, bool, unsigned short) at sc/source/filter/excel/xetable.cxx:1862
>> XclExpRowBuffer::GetOrCreateRow(unsigned int, bool) at sc/source/filter/excel/xetable.cxx:2398
>> XclExpRowBuffer::AppendCell(std::shared_ptr<XclExpCellBase> const&, bool) at sc/source/filter/excel/xetable.cxx:2138
>> XclExpCellTable::XclExpCellTable(XclExpRoot const&) at sc/source/filter/excel/xetable.cxx:2589
>> ExcTable::FillAsTableBinary(short) at sc/source/filter/excel/excdoc.cxx:420
>> ExcDocument::ReadDoc() at sc/source/filter/excel/excdoc.cxx:741
>> ExportBiff5::Write() at sc/source/filter/excel/expop2.cxx:107
>> lcl_ExportExcelBiff(SfxMedium&, ScDocument*, SvStream*, bool, unsigned short) at sc/source/filter/excel/excel.cxx:176
>> ScFormatFilterPluginImpl::ScExportExcel5(SfxMedium&, ScDocument*, ExportFormatExcel, unsigned short) at sc/source/filter/excel/excel.cxx:212
>> ScDocShell::ConvertTo(SfxMedium&) at sc/source/ui/docshell/docsh.cxx:2368
>> SfxObjectShell::SaveTo_Impl(SfxMedium&, SfxItemSet const*) at sfx2/source/doc/objstor.cxx:1510
>> SfxObjectShell::PreDoSaveAs_Impl(rtl::OUString const&, rtl::OUString const&, SfxItemSet const&) at sfx2/source/doc/objstor.cxx:2833
>> SfxObjectShell::CommonSaveAs_Impl(INetURLObject const&, rtl::OUString const&, SfxItemSet&) at sfx2/source/doc/objstor.cxx:2690
>> SfxObjectShell::APISaveAs_Impl(rtl::OUString const&, SfxItemSet&) at sfx2/source/doc/objserv.cxx:326
>> SfxBaseModel::impl_store(rtl::OUString const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&, bool) at sfx2/source/doc/sfxbasemodel.cxx:3026
>> SfxBaseModel::storeToURL(rtl::OUString const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) at sfx2/source/doc/sfxbasemodel.cxx:1697
>> ChartTest::save(rtl::OUString const&) at chart2/qa/extras/charttest.hxx:131
>> ChartTest::reload(rtl::OUString const&) at chart2/qa/extras/charttest.hxx:138
>> Chart2ExportTest::testTrendlineXLS() at chart2/qa/extras/chart2export.cxx:547
> [...]
> 
> due to an earlier
> 
>> warn:vcl:30580:30580:vcl/source/image/ImplImage.cxx:63: Failed to load scaled image from sc/res/sc26047.png at 1

Thoughts, anyone?


More information about the LibreOffice mailing list