Open Bug 1761754 Opened 3 years ago Updated 3 years ago

gfx/skia/skia/include/core/SkColorPriv.h:105: fatal error: "assert(r <= a)"

Categories

(Core :: Graphics, defect)

Firefox 100
Other
Other
defect

Tracking

()

UNCONFIRMED

People

(Reporter: petr.sumbera, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0

Steps to reproduce:

I see this assertion on Solaris SPARC everytime I visit: www.wikipedia.org .

/builds2/psumbera/mozilla-central-build/gfx/skia/skia/include/core/SkColorPriv.h:105: fatal error: "assert(r <= a)"
Abort from sk_abort
Hit MOZ_CRASH(Abort from sk_abort) at /builds2/psumbera/mozilla-central-build/memory/mozalloc/mozalloc_abort.cpp:35
#01: mozalloc_abort[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/firefox +0xea168]
#02: sk_abort_no_print()[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1c7f87c4]
#03: SkPackARGB32(unsigned int, unsigned int, unsigned int, unsigned int)::{lambda()#2}::operator()() const[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1c490330]
#04: SkPackARGB32(unsigned int, unsigned int, unsigned int, unsigned int)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1c4904ec]
#05: SkFourByteInterp256(unsigned int, unsigned int, unsigned int)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1c4908d8]
#06: SkFourByteInterp(unsigned int, unsigned int, unsigned int)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1c490958]
#07: SkARGB32_Shader_Blitter::blitV(int, int, int, unsigned char)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1c49a248]
#08: SkRectClipCheckBlitter::blitV(int, int, int, unsigned char)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1c489e08]
#09: aaa_walk_convex_edges(SkAnalyticEdge*, AdditiveBlitter*, int, int, int, int, bool)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1cb53b20] #10: SkScan::AAAFillPath(SkPath const&, SkBlitter*, SkIRect const&, SkIRect const&, bool)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1cb5c3d8]
#11: SkScan::AntiFillPath(SkPath const&, SkRegion const&, SkBlitter*, bool)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1c567498]
#12: SkScan::AntiFillPath(SkPath const&, SkRasterClip const&, SkBlitter*)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1c567864]
#13: SkDraw::drawDevPath(SkPath const&, SkPaint const&, bool, SkBlitter*, bool) const[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1c95235c]
#14: SkDraw::drawPath(SkPath const&, SkPaint const&, SkMatrix const*, bool, bool, SkBlitter*) const[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1c952890]
#15: SkDraw::drawPath(SkPath const&, SkPaint const&, SkMatrix const*, bool) const[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1c696ee0]
#16: SkBitmapDevice::drawPath(SkPath const&, SkPaint const&, bool)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1c6857c0]
#17: SkCanvas::onDrawPath(SkPath const&, SkPaint const&)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1c6b9440]
#18: SkCanvas::drawPath(SkPath const&, SkPaint const&)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1c6b4d3c]
#19: mozilla::gfx::DrawTargetSkia::Fill(mozilla::gfx::Path const*, mozilla::gfx::Pattern const&, mozilla::gfx::DrawOptions const&)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1436f5bc]
#20: mozilla::SVGGeometryFrame::Render(gfxContext*, unsigned int, mozilla::gfx::BaseMatrix<double> const&, mozilla::image::imgDrawingParams&)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1ad9e3cc]
#21: mozilla::SVGGeometryFrame::PaintSVG(gfxContext&, mozilla::gfx::BaseMatrix<double> const&, mozilla::image::imgDrawingParams&, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> const*)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1ad9bc08]
#22: mozilla::DisplaySVGGeometry::Paint(mozilla::nsDisplayListBuilder*, gfxContext*)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1ad9af80]
#23: mozilla::nsDisplayList::Paint(mozilla::nsDisplayListBuilder*, gfxContext*, int)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1af5af98]
#24: mozilla::nsDisplayTransform::Paint(mozilla::nsDisplayListBuilder*, gfxContext*, mozilla::Maybe<mozilla::gfx::PolygonTyped<mozilla::gfx::UnknownUnits> > const&)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1af76db8]
#25: mozilla::nsDisplayTransform::Paint(mozilla::nsDisplayListBuilder*, gfxContext*)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1af768e8]
#26: mozilla::nsDisplayList::Paint(mozilla::nsDisplayListBuilder*, gfxContext*, int)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1af5af98]
#27: mozilla::nsDisplayTransform::Paint(mozilla::nsDisplayListBuilder*, gfxContext*, mozilla::Maybe<mozilla::gfx::PolygonTyped<mozilla::gfx::UnknownUnits> > const&)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1af76db8]
#28: mozilla::nsDisplayTransform::Paint(mozilla::nsDisplayListBuilder*, gfxContext*)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1af768e8]
#29: mozilla::nsDisplayList::Paint(mozilla::nsDisplayListBuilder*, gfxContext*, int)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1af5af98]
#30: mozilla::nsDisplayTransform::Paint(mozilla::nsDisplayListBuilder*, gfxContext*, mozilla::Maybe<mozilla::gfx::PolygonTyped<mozilla::gfx::UnknownUnits> > const&)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1af76db8]
#31: mozilla::nsDisplayTransform::Paint(mozilla::nsDisplayListBuilder*, gfxContext*)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1af768e8]
#32: mozilla::nsDisplayList::Paint(mozilla::nsDisplayListBuilder*, gfxContext*, int)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1af5af98]
#33: mozilla::nsDisplayList::PaintRoot(mozilla::nsDisplayListBuilder*, gfxContext*, unsigned int, mozilla::Maybe<double>)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1af5b4d4]
#34: nsLayoutUtils::PaintFrame(gfxContext*, nsIFrame*, nsRegion const&, unsigned int, mozilla::nsDisplayListBuilderMode, nsLayoutUtils::PaintFrameFlags)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1a954208]
#35: mozilla::PresShell::RenderDocument(nsRect const&, mozilla::RenderDocumentFlags, unsigned int, gfxContext*)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1a82df44]
#36: mozilla::image::SVGDrawingCallback::operator()(gfxContext*, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double> const&, mozilla::gfx::SamplingFilter, mozilla::gfx::BaseMatrix<double> const&)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x14e2d940]
#37: gfxCallbackDrawable::Draw(gfxContext*, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double> const&, mozilla::gfx::ExtendMode, mozilla::gfx::SamplingFilter, double, mozilla::gfx::BaseMatrix<double> const&)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x14ab9318]
#38: gfxUtils::DrawPixelSnapped(gfxContext*, gfxDrawable*, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double> const&, mozilla::image::ImageRegion const&, mozilla::gfx::SurfaceFormat, mozilla::gfx::SamplingFilter, unsigned int, double, bool)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x14bf6b94]
#39: mozilla::image::imgFrame::InitWithDrawable(gfxDrawable*, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits> const&, mozilla::gfx::SurfaceFormat, mozilla::gfx::SamplingFilter, unsigned int, mozilla::gfx::BackendType)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x14e71bd8]
#40: mozilla::image::VectorImage::GetImageProvider(mozilla::WindowRenderer*, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits> const&, mozilla::Maybe<mozilla::SVGImageContext> const&, mozilla::Maybe<mozilla::image::ImageIntRegion> const&, unsigned int, mo[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x14e30ab4] #41: mozilla::nsImageRenderer::BuildWebRenderDisplayItems(nsPresContext*, mozilla::wr::DisplayListBuilder&, mozilla::wr::IpcResourceUpdateQueue&, mozilla::layers::StackingContextHelper const&, mozilla::layers::RenderRootStateManager*, mozilla::nsDisplayItem*, [/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1afe045c] #42: mozilla::nsImageRenderer::BuildWebRenderDisplayItemsForLayer(nsPresContext*, mozilla::wr::DisplayListBuilder&, mozilla::wr::IpcResourceUpdateQueue&, mozilla::layers::StackingContextHelper const&, mozilla::layers::RenderRootStateManager*, mozilla::nsDispla[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1afe1624] #43: nsCSSRendering::BuildWebRenderDisplayItemsForStyleImageLayerWithSC(nsCSSRendering::PaintBGParams const&, mozilla::wr::DisplayListBuilder&, mozilla::wr::IpcResourceUpdateQueue&, mozilla::layers::StackingContextHelper const&, mozilla::layers::RenderRootStat[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1af28268] #44: nsCSSRendering::BuildWebRenderDisplayItemsForStyleImageLayer(nsCSSRendering::PaintBGParams const&, mozilla::wr::DisplayListBuilder&, mozilla::wr::IpcResourceUpdateQueue&, mozilla::layers::StackingContextHelper const&, mozilla::layers::RenderRootStateManag[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1af249e8] #45: mozilla::nsDisplayBackgroundImage::CreateWebRenderCommands(mozilla::wr::DisplayListBuilder&, mozilla::wr::IpcResourceUpdateQueue&, mozilla::layers::StackingContextHelper const&, mozilla::layers::RenderRootStateManager*, mozilla::nsDisplayListBuilder*)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1af61c90]
#46: mozilla::layers::WebRenderCommandBuilder::CreateWebRenderCommands(mozilla::nsDisplayItem*, mozilla::wr::DisplayListBuilder&, mozilla::wr::IpcResourceUpdateQueue&, mozilla::layers::StackingContextHelper const&, mozilla::nsDisplayListBuilder*)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x149a1194]
#47: mozilla::layers::WebRenderCommandBuilder::CreateWebRenderCommandsFromDisplayList(mozilla::nsDisplayList*, mozilla::nsDisplayItem*, mozilla::nsDisplayListBuilder*, mozilla::layers::StackingContextHelper const&, mozilla::wr::DisplayListBuilder&, mozilla::wr[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x149a1e40] #48: mozilla::nsDisplayWrapList::CreateWebRenderCommandsNewClipListOption(mozilla::wr::DisplayListBuilder&, mozilla::wr::IpcResourceUpdateQueue&, mozilla::layers::StackingContextHelper const&, mozilla::layers::RenderRootStateManager*, mozilla::nsDisplayListBui[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1af69704] #49: mozilla::nsDisplayWrapList::CreateWebRenderCommands(mozilla::wr::DisplayListBuilder&, mozilla::wr::IpcResourceUpdateQueue&, mozilla::layers::StackingContextHelper const&, mozilla::layers::RenderRootStateManager*, mozilla::nsDisplayListBuilder*)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1ad09b74]
#50: mozilla::nsDisplayOwnLayer::CreateWebRenderCommands(mozilla::wr::DisplayListBuilder&, mozilla::wr::IpcResourceUpdateQueue&, mozilla::layers::StackingContextHelper const&, mozilla::layers::RenderRootStateManager*, mozilla::nsDisplayListBuilder*)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1af6d55c]
#51: mozilla::layers::WebRenderCommandBuilder::CreateWebRenderCommands(mozilla::nsDisplayItem*, mozilla::wr::DisplayListBuilder&, mozilla::wr::IpcResourceUpdateQueue&, mozilla::layers::StackingContextHelper const&, mozilla::nsDisplayListBuilder*)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x149a1194]
#52: mozilla::layers::WebRenderCommandBuilder::CreateWebRenderCommandsFromDisplayList(mozilla::nsDisplayList*, mozilla::nsDisplayItem*, mozilla::nsDisplayListBuilder*, mozilla::layers::StackingContextHelper const&, mozilla::wr::DisplayListBuilder&, mozilla::wr[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x149a1e40]
#53: mozilla::layers::WebRenderCommandBuilder::BuildWebRenderCommands(mozilla::wr::DisplayListBuilder&, mozilla::wr::IpcResourceUpdateQueue&, mozilla::nsDisplayList*, mozilla::nsDisplayListBuilder*, mozilla::layers::WebRenderScrollData&, WrFiltersHolder&&)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x149a0ba0]
#54: mozilla::layers::WebRenderLayerManager::EndTransactionWithoutLayer(mozilla::nsDisplayList*, mozilla::nsDisplayListBuilder*, WrFiltersHolder&&, mozilla::layers::WebRenderBackgroundData*, double)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x14a30424]
#55: mozilla::nsDisplayList::PaintRoot(mozilla::nsDisplayListBuilder*, gfxContext*, unsigned int, mozilla::Maybe<double>)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1af5b880]
#56: nsLayoutUtils::PaintFrame(gfxContext*, nsIFrame*, nsRegion const&, unsigned int, mozilla::nsDisplayListBuilderMode, nsLayoutUtils::PaintFrameFlags)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1a954208]
#57: mozilla::PresShell::PaintInternal(nsView*, mozilla::PaintInternalFlags)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1a8372f8]
#58: mozilla::PresShell::PaintAndRequestComposite(nsView*, mozilla::PaintFlags)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1a836680]
#59: nsViewManager::ProcessPendingUpdatesPaint(nsIWidget*)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1a16d178]
#60: nsViewManager::ProcessPendingUpdatesForView(nsView*, bool)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1a16cae0]
#61: nsViewManager::ProcessPendingUpdates()[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1a16f954]
#62: nsRefreshDriver::Tick(mozilla::layers::BaseTransactionId<mozilla::VsyncIdType>, mozilla::TimeStamp, nsRefreshDriver::IsExtraTick)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1a7c8644]
#63: mozilla::RefreshDriverTimer::TickDriver(nsRefreshDriver*, mozilla::layers::BaseTransactionId<mozilla::VsyncIdType>, mozilla::TimeStamp)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1a7d0b00]
#64: mozilla::RefreshDriverTimer::TickRefreshDrivers(mozilla::layers::BaseTransactionId<mozilla::VsyncIdType>, mozilla::TimeStamp, nsTArray<RefPtr<nsRefreshDriver> >&)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1a7d0890]
#65: mozilla::RefreshDriverTimer::Tick(mozilla::layers::BaseTransactionId<mozilla::VsyncIdType>, mozilla::TimeStamp)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1a7d0a50]
#66: mozilla::VsyncRefreshDriverTimer::RunRefreshDrivers(mozilla::layers::BaseTransactionId<mozilla::VsyncIdType>, mozilla::TimeStamp)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1a7d3d6c]
#67: mozilla::VsyncRefreshDriverTimer::RefreshDriverVsyncObserver::TickRefreshDriver(mozilla::layers::BaseTransactionId<mozilla::VsyncIdType>, mozilla::TimeStamp)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1a7d34dc]
#68: mozilla::VsyncRefreshDriverTimer::RefreshDriverVsyncObserver::NotifyVsyncOnMainThread()[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1a7d29fc]
#69: mozilla::VsyncRefreshDriverTimer::RefreshDriverVsyncObserver::NotifyVsync(mozilla::VsyncEvent const&)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1a7d2030]
#70: mozilla::dom::VsyncMainChild::RecvNotify(mozilla::VsyncEvent const&, float const&)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x193df264] #71: mozilla::dom::PVsyncChild::OnMessageReceived(IPC::Message const&)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x197aabf8]
#72: mozilla::ipc::PBackgroundChild::OnMessageReceived(IPC::Message const&)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x13d0522c]
#73: mozilla::ipc::MessageChannel::DispatchAsyncMessage(mozilla::ipc::ActorLifecycleProxy*, IPC::Message const&)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x13c61da8]
#74: mozilla::ipc::MessageChannel::DispatchMessage(mozilla::ipc::ActorLifecycleProxy*, IPC::Message&&)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x13c61464]
#75: mozilla::ipc::MessageChannel::RunMessage(mozilla::ipc::ActorLifecycleProxy*, mozilla::ipc::MessageChannel::MessageTask&)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x13c6008c]
#76: mozilla::ipc::MessageChannel::MessageTask::Run()[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x13c60944]
#77: mozilla::RunnableTask::Run()[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1287eabc]
#78: mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x12850028]
#79: mozilla::TaskController::ExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1284f188]
#80: mozilla::TaskController::ProcessPendingMTTask(bool)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1284e1b4]
#81: mozilla::TaskController::InitializeInternal()::{lambda()#1}::operator()() const[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1284c918]
#82: mozilla::detail::RunnableFunction<mozilla::TaskController::InitializeInternal()::{lambda()#1}>::Run()[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1287bd04]
#83: nsThread::ProcessNextEvent(bool, bool*)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x12864b98]
#84: NS_ProcessNextEvent(nsIThread*, bool)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x12875280]
#85: mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x13c66810]
#86: mozilla::ipc::MessagePumpForChildProcess::Run(base::MessagePump::Delegate*)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x13c67b5c]
#87: MessageLoop::RunInternal()[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x13b4589c]
#88: MessageLoop::RunHandler()[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x13b457c4]
#89: MessageLoop::Run()[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x13b45768]
#90: nsBaseAppShell::Run()[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1a2531bc]
#91: XRE_RunAppShell()[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1d9308dc]
#92: mozilla::ipc::MessagePumpForChildProcess::Run(base::MessagePump::Delegate*)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x13c678d0]
#93: MessageLoop::RunInternal()[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x13b4589c]
#94: MessageLoop::RunHandler()[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x13b457c4]
#95: MessageLoop::Run()[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x13b45768]
#96: XRE_InitChildProcess(int, char**, XREChildData const*)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1d92fe14]
#97: mozilla::BootstrapImpl::XRE_InitChildProcess(int, char**, XREChildData const*)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1d9436a4]
#98: content_process_main(mozilla::Bootstrap*, int, char**)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/firefox +0x7eca0]
#99: main[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/firefox +0x7f66c]
#100: _start[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/firefox +0x7deec]

The Bugbug bot thinks this bug should belong to the 'Core::Graphics: WebRender' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Graphics: WebRender
Product: Firefox → Core
Severity: -- → S4
Component: Graphics: WebRender → Graphics
OS: Unspecified → Other
Hardware: Unspecified → Other
See Also: → 1716707

Do you see the same in Nightly?

Flags: needinfo?(petr.sumbera)

Yes, this is the nightly.

Flags: needinfo?(petr.sumbera)

What are the parameters to SkFourByteInterp and what's the mFormat of the DrawTargetSkia?

Flags: needinfo?(petr.sumbera)
Thread 2 hit Breakpoint 2, mozilla::gfx::DrawTargetSkia::DrawTargetSkia (this=0x7b0e871fda50) at /builds2/psumbera/mozilla-central-build/gfx/2d/DrawTargetSkia.cpp:297
297     }
(gdb) print  mFormat
$2 = 228
(gdb) cont
Continuing.

Thread 2 hit Breakpoint 1, SkFourByteInterp (src=3286233855, dst=4294967295, srcWeight=72)
    at /builds2/psumbera/mozilla-central-build/gfx/skia/skia/include/private/SkColorData.h:181
181         unsigned scale = SkAlpha255To256(srcWeight);
Flags: needinfo?(petr.sumbera)

228 doesn't seem like a a sensible value for mFormat and 3286233855 (0xc3dff2ff) has an alpha value '0xc3' less than the color components which is what the assert seems to be complaining about.

What kind of pattern is passed to DrawTargetSkia::Fill()?

Flags: needinfo?(petr.sumbera)

What can I do to get some usefull data?

Thread 2 hit Breakpoint 3, mozilla::gfx::DrawTargetSkia::Fill (this=0x7cbc81513bf0, aPath=0x7cbc7f70a900, aPattern=..., aOptions=...)
    at /builds2/psumbera/mozilla-central-build/gfx/2d/DrawTargetSkia.cpp:991
991                               const DrawOptions& aOptions) {
(gdb) print aPattern
$7 = (const mozilla::gfx::Pattern &) @0x7dee351c8ad0: {_vptr.Pattern = 0x7cbcb785ea98 <vtable for mozilla::gfx::ColorPattern+16>}
Flags: needinfo?(petr.sumbera)

Something like print *(ColorPattern*)aPattern

(gdb) print *(ColorPattern*)aPattern
warning: can't find linker symbol for virtual table for `mozilla::gfx::ColorPattern' value
warning:   found `mozilla::gfx::LinearGradientPattern::~LinearGradientPattern()' instead
$9 = {<mozilla::gfx::Pattern> = {_vptr.Pattern = 0x7cbca43d9dac <mozilla::gfx::ColorPattern::~ColorPattern()>}, mColor = {r = 4.47462626e-41, g = -4.11166601e-17,
    b = 4.47462626e-41, a = -4.06431687e-17}}

Those values don't make much sense. Perhaps the debugger is confused?

How about this?

(gdb) print aPattern.GetType()
$20 = mozilla::gfx::PatternType::COLOR
(gdb) print ((ColorPattern)aPattern).mColor
$21 = {r = 0, g = 0, b = 0, a = 1}

Ah, that's better. Can you find the url of the image that's causing the problem? It should be in mURI on the VectorImage.

(In reply to Jeff Muizelaar [:jrmuizel] from comment #13)

Ah, that's better. Can you find the url of the image that's causing the problem? It should be in mURI on the VectorImage.

Where can get to it?

It doesn't seem to hit: https://searchfox.org/mozilla-central/rev/570f6e5c06b6c8140f53bf104d785a18165212ab/image/VectorImage.cpp#307 .

mozilla::image::VectorImage::GetImageProvider is on the stack so you should be able to just move up to that frame and pull it out of the this pointer.

(In reply to Jeff Muizelaar [:jrmuizel] from comment #15)

mozilla::image::VectorImage::GetImageProvider is on the stack so you should be able to just move up to that frame and pull it out of the this pointer.

Sorry I'm beginner to this. Following doesn't relly work. Can you please elaborate.

(gdb) print mozilla::image::VectorImage::GetImageProvider
Cannot reference virtual member function "GetImageProvider"

No problem. You can move up the stack in gdb with the up command. Do that until you're in the mozilla::image::VectorImage::GetImageProvider frame. From there, you should be able to do something like print this->mURI

Ahh, thanks for the explanation. I'm now actually debuging without display (to avoid the need for VNC): --screenshot https://www.wikipedia.org

And I don't have mozilla::image::VectorImage::GetImageProvider on stack (se below). Is there anything interesing here too or should I rerun in VNC?

#01: mozalloc_abort[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/firefox +0xea168]
[New LWP    78        ]
#02: sk_abort_no_print()[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1c8100b4]
#03: SkPackARGB32(unsigned int, unsigned int, unsigned int, unsigned int)::{lambda()#2}::operator()() const[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1c4a7c20]
#04: SkPackARGB32(unsigned int, unsigned int, unsigned int, unsigned int)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1c4a7ddc]
#05: SkFourByteInterp256(unsigned int, unsigned int, unsigned int)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1c4a81c8]
#06: SkFourByteInterp(unsigned int, unsigned int, unsigned int)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1c4a8248]
#07: SkARGB32_Shader_Blitter::blitV(int, int, int, unsigned char)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1c4b1b38]
#08: SkRectClipCheckBlitter::blitV(int, int, int, unsigned char)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1c4a16f8]
#09: aaa_walk_convex_edges(SkAnalyticEdge*, AdditiveBlitter*, int, int, int, int, bool)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1cb6b410] #10: SkScan::AAAFillPath(SkPath const&, SkBlitter*, SkIRect const&, SkIRect const&, bool)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1cb73cc8]
#11: SkScan::AntiFillPath(SkPath const&, SkRegion const&, SkBlitter*, bool)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1c57ed88]
#12: SkScan::AntiFillPath(SkPath const&, SkRasterClip const&, SkBlitter*)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1c57f154]
#13: SkDraw::drawDevPath(SkPath const&, SkPaint const&, bool, SkBlitter*, bool) const[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1c969c4c]
#14: SkDraw::drawPath(SkPath const&, SkPaint const&, SkMatrix const*, bool, bool, SkBlitter*) const[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1c96a180]
#15: SkDraw::drawPath(SkPath const&, SkPaint const&, SkMatrix const*, bool) const[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1c6ae7d0]
#16: SkBitmapDevice::drawPath(SkPath const&, SkPaint const&, bool)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1c69d0b0]
#17: SkCanvas::onDrawPath(SkPath const&, SkPaint const&)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1c6d0d30]
#18: SkCanvas::drawPath(SkPath const&, SkPaint const&)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1c6cc62c]
#19: mozilla::gfx::DrawTargetSkia::Fill(mozilla::gfx::Path const*, mozilla::gfx::Pattern const&, mozilla::gfx::DrawOptions const&)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x14386354]
#20: mozilla::gfx::RecordedFill::PlayEvent(mozilla::gfx::Translator*) const[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x143c11cc]
#21: mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::{lambda(mozilla::gfx::RecordedEvent*)#1}::operator()(mozilla::gfx::RecordedEvent*) const[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x143aeb04]
#22: bool std::__invoke_impl<bool, mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::{lambda(mozilla::gfx::RecordedEvent*)#1}&, mozilla::gfx::RecordedEvent*>(std::__invoke_other, mozilla::gfx::InlineTranslator::TranslateRecording(char*,[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x143b6154] #23: std::enable_if<is_invocable_r_v<bool, mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::{lambda(mozilla::gfx::RecordedEvent*)#1}&, mozilla::gfx::RecordedEvent*>, bool>::type std::__invoke_r<bool, mozilla::gfx::InlineTranslator::Tra[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x143b427c] #24: std::_Function_handler<bool (mozilla::gfx::RecordedEvent*), mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::{lambda(mozilla::gfx::RecordedEvent*)#1}>::_M_invoke(std::_Any_data const&, mozilla::gfx::RecordedEvent*&&)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x143b0344]
#25: std::function<bool (mozilla::gfx::RecordedEvent*)>::operator()(mozilla::gfx::RecordedEvent*) const[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x143cede0]
#26: bool mozilla::gfx::RecordedEvent::DoWithEvent<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&, mozilla::gfx::RecordedEvent::EventType[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x143af654] #27: mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x143aed50]
#28: mozilla::gfx::CrossProcessPaint::Start(mozilla::dom::WindowGlobalParent*, mozilla::dom::DOMRect const*, float, unsigned int, mozilla::gfx::CrossProcessPaintFlags, mozilla::dom::Promise*)::{lambda(nsRefCountedHashtable<nsIntegralHashKey<unsigned long, 0>, [/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x14c70f2c] #29: std::enable_if<std::integral_constant<bool, mozilla::detail::MethodTrait<void (mozilla::gfx::CrossProcessPaint::Start(mozilla::dom::WindowGlobalParent*, mozilla::dom::DOMRect const*, float, unsigned int, mozilla::gfx::CrossProcessPaintFlags, mozilla::dom:[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x14c8c41c]
#30: std::enable_if<!(false), void>::type mozilla::MozPromise<nsRefCountedHashtable<nsIntegralHashKey<unsigned long, 0>, RefPtr<mozilla::gfx::RecordedDependentSurface> >, nsresult, true>::InvokeCallbackMethod<false, mozilla::gfx::CrossProcessPaint::Start(mozil[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x14c8bd4c] #31: mozilla::MozPromise<nsRefCountedHashtable<nsIntegralHashKey<unsigned long, 0>, RefPtr<mozilla::gfx::RecordedDependentSurface> >, nsresult, true>::ThenValue<mozilla::gfx::CrossProcessPaint::Start(mozilla::dom::WindowGlobalParent*, mozilla::dom::DOMRect con[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x14c8b5c4] #32: mozilla::MozPromise<nsRefCountedHashtable<nsIntegralHashKey<unsigned long, 0>, RefPtr<mozilla::gfx::RecordedDependentSurface> >, nsresult, true>::ThenValueBase::DoResolveOrReject(mozilla::MozPromise<nsRefCountedHashtable<nsIntegralHashKey<unsigned long, 0[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x14cac8dc] #33: mozilla::MozPromise<nsRefCountedHashtable<nsIntegralHashKey<unsigned long, 0>, RefPtr<mozilla::gfx::RecordedDependentSurface> >, nsresult, true>::ThenValueBase::ResolveOrRejectRunnable::Run()[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x14cab74c]
#34: mozilla::RunnableTask::Run()[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x12890838]
#35: mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x12861da4]
#36: mozilla::TaskController::ExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x12860f04]
#37: mozilla::TaskController::ProcessPendingMTTask(bool)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1285ff30]
#38: mozilla::TaskController::InitializeInternal()::{lambda()#1}::operator()() const[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1285e694]
#39: mozilla::detail::RunnableFunction<mozilla::TaskController::InitializeInternal()::{lambda()#1}>::Run()[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1288da80]
#40: nsThread::ProcessNextEvent(bool, bool*)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x12876914]
#41: NS_ProcessNextEvent(nsIThread*, bool)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x12886ffc]
#42: mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x13c79900]
#43: MessageLoop::RunInternal()[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x13b5898c]
#44: MessageLoop::RunHandler()[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x13b588b4]
#45: MessageLoop::Run()[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x13b58858]
#46: nsBaseAppShell::Run()[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1a26858c]
#47: nsAppStartup::Run()[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1d6d8524]
#48: XREMain::XRE_mainRun()[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1d93d690]
#49: XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1d93e8b4]
#50: XRE_main(int, char**, mozilla::BootstrapConfig const&)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1d93ebc4]
#51: mozilla::BootstrapImpl::XRE_main(int, char**, mozilla::BootstrapConfig const&)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1d95b280]
#52: do_main(int, char**, char**)[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/firefox +0x7f290]
#53: main[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/firefox +0x7f7a4]
#54: _start[/builds2/psumbera/mozilla-central-build/INSTALLED/lib/firefox/firefox +0x7deec]

(In reply to Jeff Muizelaar [:jrmuizel] from comment #17)

No problem. You can move up the stack in gdb with the up command. Do that until you're in the mozilla::image::VectorImage::GetImageProvider frame. From there, you should be able to do something like print this->mURI

And what I can do with this?

(gdb) print this->mURI
$3 = {mRawPtr = 0x7ee7078dab00}
You need to log in before you can comment on or make changes to this bug.