Closed Bug 2022727 Opened 8 months ago Closed 7 months ago

Assertion failure: aTimelineDuration (the timeline duration of scroll-timeline is always non-zero now), at /builds/worker/checkouts/gecko/dom/animation/TimingParams.cpp:232

Categories

(Core :: DOM: Animation, defect)

defect
Points:
1

Tracking

()

RESOLVED FIXED
151 Branch
Tracking Status
firefox-esr115 --- disabled
firefox-esr140 --- disabled
firefox149 --- disabled
firefox150 --- disabled
firefox151 --- fixed

People

(Reporter: tsmith, Assigned: boris)

References

(Blocks 2 open bugs, )

Details

(Keywords: assertion, pernosco, Whiteboard: [scrollanimation:mvp])

Attachments

(1 external file)

Found with m-c 20260306-151dbfb1f4ce (--enable-debug)

This was found by visiting a live website with a debug build.

STR:

  • Launch browser and visit site

This issue was triggered by visiting http://notion.com/. A Pernosco session is available here: https://pernos.co/debug/A5i1tnUDj0Jbv6lY9SvqnA/index.html

Assertion failure: aTimelineDuration (the timeline duration of scroll-timeline is always non-zero now), at /builds/worker/checkouts/gecko/dom/animation/TimingParams.cpp:232

0|0|libxul.so|mozilla::TimingParams::Normalize(mozilla::BaseTimeDuration<mozilla::TimeDurationValueCalculator> const&) const|git:github.com/mozilla-firefox/firefox:dom/animation/TimingParams.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|231|0x2b3
0|1|libxul.so|mozilla::dom::AnimationEffect::UpdateNormalizedTiming()|git:github.com/mozilla-firefox/firefox:dom/animation/AnimationEffect.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|372|0xa7
0|2|libxul.so|mozilla::dom::ViewTimeline::UpdateCachedCurrentTime()|git:github.com/mozilla-firefox/firefox:dom/animation/ViewTimeline.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|196|0x6d8
0|3|libxul.so|mozilla::dom::AnimationTimelinesController::TrySampleScrollTimelines()|git:github.com/mozilla-firefox/firefox:dom/animation/AnimationTimelinesController.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|64|0x45
0|4|libxul.so|mozilla::ScrollTimelineAnimationTracker::TriggerPendingAnimations()|git:github.com/mozilla-firefox/firefox:dom/animation/ScrollTimelineAnimationTracker.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|21|0x3a
0|5|libxul.so|mozilla::PresShell::DoFlushPendingNotifications(mozilla::ChangesToFlush)|git:github.com/mozilla-firefox/firefox:layout/base/PresShell.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|4527|0x7c9
0|6|libxul.so|mozilla::PresShell::DidDoReflow(bool)|git:github.com/mozilla-firefox/firefox:layout/base/PresShell.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|10384|0xde
0|7|libxul.so|mozilla::PresShell::ProcessReflowCommands(bool)|git:github.com/mozilla-firefox/firefox:layout/base/PresShell.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|10702|0x230
0|8|libxul.so|mozilla::PresShell::DoFlushPendingNotifications(mozilla::ChangesToFlush)|git:github.com/mozilla-firefox/firefox:layout/base/PresShell.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|4501|0x735
0|9|libxul.so|mozilla::dom::Document::DetermineProximityToViewportAndNotifyResizeObservers()|git:github.com/mozilla-firefox/firefox:dom/base/Document.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|19032|0xe1
0|10|libxul.so|nsRefreshDriver::RunRenderingPhase<nsRefreshDriver::Tick(mozilla::layers::BaseTransactionId<mozilla::VsyncIdType>, mozilla::TimeStamp, nsRefreshDriver::IsExtraTick)::$_11>(mozilla::RenderingPhase, nsRefreshDriver::Tick(mozilla::layers::BaseTransactionId<mozilla::VsyncIdType>, mozilla::TimeStamp, nsRefreshDriver::IsExtraTick)::$_11&&, bool (*)(mozilla::dom::Document const&))|git:github.com/mozilla-firefox/firefox:layout/base/nsRefreshDriver.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|1292|0x274
0|11|libxul.so|nsRefreshDriver::Tick(mozilla::layers::BaseTransactionId<mozilla::VsyncIdType>, mozilla::TimeStamp, nsRefreshDriver::IsExtraTick)|git:github.com/mozilla-firefox/firefox:layout/base/nsRefreshDriver.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|2507|0x87c
0|12|libxul.so|mozilla::RefreshDriverTimer::TickRefreshDrivers(mozilla::layers::BaseTransactionId<mozilla::VsyncIdType>, mozilla::TimeStamp, nsTArray<RefPtr<nsRefreshDriver> >&)|git:github.com/mozilla-firefox/firefox:layout/base/nsRefreshDriver.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|344|0x91
0|13|libxul.so|mozilla::RefreshDriverTimer::Tick(mozilla::layers::BaseTransactionId<mozilla::VsyncIdType>, mozilla::TimeStamp)|git:github.com/mozilla-firefox/firefox:layout/base/nsRefreshDriver.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|360|0x60
0|14|libxul.so|mozilla::VsyncRefreshDriverTimer::RunRefreshDrivers(mozilla::layers::BaseTransactionId<mozilla::VsyncIdType>, mozilla::TimeStamp)|git:github.com/mozilla-firefox/firefox:layout/base/nsRefreshDriver.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|950|0xd
0|15|libxul.so|mozilla::VsyncRefreshDriverTimer::TickRefreshDriver(mozilla::layers::BaseTransactionId<mozilla::VsyncIdType>, mozilla::TimeStamp)|git:github.com/mozilla-firefox/firefox:layout/base/nsRefreshDriver.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|860|0x12a
0|16|libxul.so|mozilla::VsyncRefreshDriverTimer::RefreshDriverVsyncObserver::NotifyVsyncTimerOnMainThread()|git:github.com/mozilla-firefox/firefox:layout/base/nsRefreshDriver.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|591|0xb6
0|17|libxul.so|mozilla::dom::VsyncMainChild::RecvNotify(mozilla::VsyncEvent const&, float const&)|git:github.com/mozilla-firefox/firefox:dom/ipc/VsyncMainChild.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|66|0xe3
0|18|libxul.so|mozilla::dom::PVsyncChild::OnMessageReceived(IPC::Message const&)|s3:gecko-generated-sources:c294870d67d0bbadd275438a6525424fddb8b38154eb580d457ebcc3630c01b36abfb7b18ef9d2f595e6422e0ac45b6bf46d6bb856f9a8561beaa4e44a3a2531/ipc/ipdl/PVsyncChild.cpp:|229|0x306
0|19|libxul.so|mozilla::ipc::PBackgroundChild::OnMessageReceived(IPC::Message const&)|s3:gecko-generated-sources:f028b9ab8479a23937798b8857a1c66f691c44718f79c45fbf9ad190d6e40b23bf2d841775ae9f53f9275bd3d5401f7fb0d8887e77d22f7207d6c8d56f483273/ipc/ipdl/PBackgroundChild.cpp:|4953|0x18a
0|20|libxul.so|mozilla::ipc::MessageChannel::DispatchAsyncMessage(mozilla::ipc::ActorLifecycleProxy*, IPC::Message const&)|git:github.com/mozilla-firefox/firefox:ipc/glue/MessageChannel.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|1801|0x128
0|21|libxul.so|mozilla::ipc::MessageChannel::DispatchMessage(mozilla::ipc::ActorLifecycleProxy*, std::unique_ptr<IPC::Message, std::default_delete<IPC::Message> >)|git:github.com/mozilla-firefox/firefox:ipc/glue/MessageChannel.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|1727|0x250
0|22|libxul.so|mozilla::ipc::MessageChannel::RunMessage(mozilla::ipc::ActorLifecycleProxy*, mozilla::ipc::MessageChannel::MessageTask&)|git:github.com/mozilla-firefox/firefox:ipc/glue/MessageChannel.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|1516|0x178
0|23|libxul.so|mozilla::ipc::MessageChannel::MessageTask::Run()|git:github.com/mozilla-firefox/firefox:ipc/glue/MessageChannel.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|1618|0xcd
0|24|libxul.so|mozilla::RunnableTask::Run()|git:github.com/mozilla-firefox/firefox:xpcom/threads/TaskController.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|721|0x17
0|25|libxul.so|mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&)|git:github.com/mozilla-firefox/firefox:xpcom/threads/TaskController.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|1360|0x5b4
0|26|libxul.so|mozilla::TaskController::ExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&)|git:github.com/mozilla-firefox/firefox:xpcom/threads/TaskController.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|1183|0x57
0|27|libxul.so|mozilla::TaskController::ProcessPendingMTTask(bool)|git:github.com/mozilla-firefox/firefox:xpcom/threads/TaskController.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|657|0x65
0|28|libxul.so|mozilla::detail::RunnableFunction<mozilla::TaskController::TaskController()::$_0>::Run()|git:github.com/mozilla-firefox/firefox:xpcom/threads/nsThreadUtils.h:a70a7b24c8fbc60493b50dd31e8f49162822d11c|549|0x16
0|29|libxul.so|nsThread::ProcessNextEvent(bool, bool*)|git:github.com/mozilla-firefox/firefox:xpcom/threads/nsThread.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|1181|0x5ba
0|30|libxul.so|NS_ProcessNextEvent(nsIThread*, bool)|git:github.com/mozilla-firefox/firefox:xpcom/threads/nsThreadUtils.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|467|0x4f
0|31|libxul.so|mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*)|git:github.com/mozilla-firefox/firefox:ipc/glue/MessagePump.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|85|0xc0
0|32|libxul.so|MessageLoop::Run()|git:github.com/mozilla-firefox/firefox:ipc/chromium/src/base/message_loop.cc:a70a7b24c8fbc60493b50dd31e8f49162822d11c|348|0x61
0|33|libxul.so|nsBaseAppShell::Run()|git:github.com/mozilla-firefox/firefox:widget/nsBaseAppShell.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|152|0x28
0|34|libxul.so|nsAppShell::Run()|git:github.com/mozilla-firefox/firefox:widget/gtk/nsAppShell.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|555|0x114
0|35|libxul.so|XRE_RunAppShell()|git:github.com/mozilla-firefox/firefox:toolkit/xre/nsEmbedFunctions.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|652|0x6b
0|36|libxul.so|mozilla::ipc::MessagePumpForChildProcess::Run(base::MessagePump::Delegate*)|git:github.com/mozilla-firefox/firefox:ipc/glue/MessagePump.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|235|0x3c
0|37|libxul.so|MessageLoop::Run()|git:github.com/mozilla-firefox/firefox:ipc/chromium/src/base/message_loop.cc:a70a7b24c8fbc60493b50dd31e8f49162822d11c|348|0x61
0|38|libxul.so|XRE_InitChildProcess(int, char**, XREChildData const*)|git:github.com/mozilla-firefox/firefox:toolkit/xre/nsEmbedFunctions.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|590|0x931
0|39|firefox-bin|main|git:github.com/mozilla-firefox/firefox:browser/app/nsBrowserApp.cpp:a70a7b24c8fbc60493b50dd31e8f49162822d11c|467|0x21c
Keywords: assertion, pernosco
Severity: -- → S3

I will try to fix this together in Bug 2020822.

The author may specifiy the unexpected animation-range, e.g. 50% 25%,
and this may cause a negative timeline duration. We have to clamp this
value to avoid the negative duration. Also, now its possible to have
zero duration when normalizing the timing parameters, so removing the
assertion.

Also change the default value in IntervalForTimelineRangeName() to be
0 because its type is nscoord, instead of float. We don't have to
worry about this too much because it is just a temporary solution before
we implement all the range keywords.

Assignee: nobody → boris.chiou
Status: NEW → ASSIGNED
Whiteboard: [scrollanimation:triage]
Points: --- → 1
Whiteboard: [scrollanimation:triage] → [scrollanimation:mvp]
Pushed by bchiou@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/4654effbfa9b https://hg.mozilla.org/integration/autoland/rev/45c129f5e759 Avoid getting the negative range when normalizing the timing. r=firefox-style-system-reviewers,layout-scroll-driven-animation-reviewers,dshin
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch

The patch landed in nightly and beta is affected.
:boris, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(boris.chiou)

The pref is off on beta and release, so no need to uplift.

Flags: needinfo?(boris.chiou)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: