Assertion failure: GetApzc()->GetParent() == aParent, at /builds/worker/checkouts/gecko/gfx/layers/apz/src/HitTestingTreeNode.cpp:377
Categories
(Core :: Panning and Zooming, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox146 | --- | affected |
People
(Reporter: tsmith, Unassigned)
References
(Blocks 2 open bugs, )
Details
(Keywords: assertion, testcase)
Attachments
(1 file)
|
488 bytes,
text/html
|
Details |
Found while fuzzing m-c 20250906-5d1b48dc057d (--enable-debug --enable-fuzzing)
This is currently only reproducible on Android.
Assertion failure: GetApzc()->GetParent() == aParent, at /builds/worker/checkouts/gecko/gfx/layers/apz/src/HitTestingTreeNode.cpp:377
36|0|libxul.so|mozilla::layers::HitTestingTreeNode::SetApzcParent(mozilla::layers::AsyncPanZoomController*)|hg:hg.mozilla.org/mozilla-central:gfx/layers/apz/src/HitTestingTreeNode.cpp:28553dbd41b69719386bc09fe09d84c3de72daa4|377|0xe4
36|1|libxul.so|mozilla::layers::APZCTreeManager::PrepareNodeForLayer(mozilla::RecursiveMutexAutoLock const&, mozilla::layers::WebRenderScrollDataWrapper const&, mozilla::layers::FrameMetrics const&, mozilla::layers::LayersId, mozilla::Maybe<mozilla::layers::ZoomConstraints> const&, mozilla::layers::AncestorTransform const&, mozilla::layers::HitTestingTreeNode*, mozilla::layers::HitTestingTreeNode*, mozilla::layers::APZCTreeManager::TreeBuildingState&)|hg:hg.mozilla.org/mozilla-central:gfx/layers/apz/src/APZCTreeManager.cpp:28553dbd41b69719386bc09fe09d84c3de72daa4|1417|0x5f1
36|2|libxul.so|mozilla::layers::ForEachNode<mozilla::layers::ReverseIterator, mozilla::layers::WebRenderScrollDataWrapper, mozilla::layers::APZCTreeManager::UpdateHitTestingTree(mozilla::layers::WebRenderScrollDataWrapper const&, mozilla::layers::LayersId, unsigned int)::$_1, mozilla::layers::APZCTreeManager::UpdateHitTestingTree(mozilla::layers::WebRenderScrollDataWrapper const&, mozilla::layers::LayersId, unsigned int)::$_2>(mozilla::layers::WebRenderScrollDataWrapper, mozilla::layers::APZCTreeManager::UpdateHitTestingTree(mozilla::layers::WebRenderScrollDataWrapper const&, mozilla::layers::LayersId, unsigned int)::$_1 const&, mozilla::layers::APZCTreeManager::UpdateHitTestingTree(mozilla::layers::WebRenderScrollDataWrapper const&, mozilla::layers::LayersId, unsigned int)::$_2 const&)|hg:hg.mozilla.org/mozilla-central:gfx/layers/TreeTraversal.h:28553dbd41b69719386bc09fe09d84c3de72daa4|139|0x5d9
36|3|libxul.so|mozilla::layers::ForEachNode<mozilla::layers::ReverseIterator, mozilla::layers::WebRenderScrollDataWrapper, mozilla::layers::APZCTreeManager::UpdateHitTestingTree(mozilla::layers::WebRenderScrollDataWrapper const&, mozilla::layers::LayersId, unsigned int)::$_1, mozilla::layers::APZCTreeManager::UpdateHitTestingTree(mozilla::layers::WebRenderScrollDataWrapper const&, mozilla::layers::LayersId, unsigned int)::$_2>(mozilla::layers::WebRenderScrollDataWrapper, mozilla::layers::APZCTreeManager::UpdateHitTestingTree(mozilla::layers::WebRenderScrollDataWrapper const&, mozilla::layers::LayersId, unsigned int)::$_1 const&, mozilla::layers::APZCTreeManager::UpdateHitTestingTree(mozilla::layers::WebRenderScrollDataWrapper const&, mozilla::layers::LayersId, unsigned int)::$_2 const&)|hg:hg.mozilla.org/mozilla-central:gfx/layers/TreeTraversal.h:28553dbd41b69719386bc09fe09d84c3de72daa4|143|0x1121
36|4|libxul.so|mozilla::layers::ForEachNode<mozilla::layers::ReverseIterator, mozilla::layers::WebRenderScrollDataWrapper, mozilla::layers::APZCTreeManager::UpdateHitTestingTree(mozilla::layers::WebRenderScrollDataWrapper const&, mozilla::layers::LayersId, unsigned int)::$_1, mozilla::layers::APZCTreeManager::UpdateHitTestingTree(mozilla::layers::WebRenderScrollDataWrapper const&, mozilla::layers::LayersId, unsigned int)::$_2>(mozilla::layers::WebRenderScrollDataWrapper, mozilla::layers::APZCTreeManager::UpdateHitTestingTree(mozilla::layers::WebRenderScrollDataWrapper const&, mozilla::layers::LayersId, unsigned int)::$_1 const&, mozilla::layers::APZCTreeManager::UpdateHitTestingTree(mozilla::layers::WebRenderScrollDataWrapper const&, mozilla::layers::LayersId, unsigned int)::$_2 const&)|hg:hg.mozilla.org/mozilla-central:gfx/layers/TreeTraversal.h:28553dbd41b69719386bc09fe09d84c3de72daa4|143|0x1121
36|5|libxul.so|mozilla::layers::ForEachNode<mozilla::layers::ReverseIterator, mozilla::layers::WebRenderScrollDataWrapper, mozilla::layers::APZCTreeManager::UpdateHitTestingTree(mozilla::layers::WebRenderScrollDataWrapper const&, mozilla::layers::LayersId, unsigned int)::$_1, mozilla::layers::APZCTreeManager::UpdateHitTestingTree(mozilla::layers::WebRenderScrollDataWrapper const&, mozilla::layers::LayersId, unsigned int)::$_2>(mozilla::layers::WebRenderScrollDataWrapper, mozilla::layers::APZCTreeManager::UpdateHitTestingTree(mozilla::layers::WebRenderScrollDataWrapper const&, mozilla::layers::LayersId, unsigned int)::$_1 const&, mozilla::layers::APZCTreeManager::UpdateHitTestingTree(mozilla::layers::WebRenderScrollDataWrapper const&, mozilla::layers::LayersId, unsigned int)::$_2 const&)|hg:hg.mozilla.org/mozilla-central:gfx/layers/TreeTraversal.h:28553dbd41b69719386bc09fe09d84c3de72daa4|143|0x1121
36|6|libxul.so|mozilla::layers::ForEachNode<mozilla::layers::ReverseIterator, mozilla::layers::WebRenderScrollDataWrapper, mozilla::layers::APZCTreeManager::UpdateHitTestingTree(mozilla::layers::WebRenderScrollDataWrapper const&, mozilla::layers::LayersId, unsigned int)::$_1, mozilla::layers::APZCTreeManager::UpdateHitTestingTree(mozilla::layers::WebRenderScrollDataWrapper const&, mozilla::layers::LayersId, unsigned int)::$_2>(mozilla::layers::WebRenderScrollDataWrapper, mozilla::layers::APZCTreeManager::UpdateHitTestingTree(mozilla::layers::WebRenderScrollDataWrapper const&, mozilla::layers::LayersId, unsigned int)::$_1 const&, mozilla::layers::APZCTreeManager::UpdateHitTestingTree(mozilla::layers::WebRenderScrollDataWrapper const&, mozilla::layers::LayersId, unsigned int)::$_2 const&)|hg:hg.mozilla.org/mozilla-central:gfx/layers/TreeTraversal.h:28553dbd41b69719386bc09fe09d84c3de72daa4|143|0x1121
36|7|libxul.so|mozilla::layers::ForEachNode<mozilla::layers::ReverseIterator, mozilla::layers::WebRenderScrollDataWrapper, mozilla::layers::APZCTreeManager::UpdateHitTestingTree(mozilla::layers::WebRenderScrollDataWrapper const&, mozilla::layers::LayersId, unsigned int)::$_1, mozilla::layers::APZCTreeManager::UpdateHitTestingTree(mozilla::layers::WebRenderScrollDataWrapper const&, mozilla::layers::LayersId, unsigned int)::$_2>(mozilla::layers::WebRenderScrollDataWrapper, mozilla::layers::APZCTreeManager::UpdateHitTestingTree(mozilla::layers::WebRenderScrollDataWrapper const&, mozilla::layers::LayersId, unsigned int)::$_1 const&, mozilla::layers::APZCTreeManager::UpdateHitTestingTree(mozilla::layers::WebRenderScrollDataWrapper const&, mozilla::layers::LayersId, unsigned int)::$_2 const&)|hg:hg.mozilla.org/mozilla-central:gfx/layers/TreeTraversal.h:28553dbd41b69719386bc09fe09d84c3de72daa4|143|0x1121
36|8|libxul.so|mozilla::layers::ForEachNode<mozilla::layers::ReverseIterator, mozilla::layers::WebRenderScrollDataWrapper, mozilla::layers::APZCTreeManager::UpdateHitTestingTree(mozilla::layers::WebRenderScrollDataWrapper const&, mozilla::layers::LayersId, unsigned int)::$_1, mozilla::layers::APZCTreeManager::UpdateHitTestingTree(mozilla::layers::WebRenderScrollDataWrapper const&, mozilla::layers::LayersId, unsigned int)::$_2>(mozilla::layers::WebRenderScrollDataWrapper, mozilla::layers::APZCTreeManager::UpdateHitTestingTree(mozilla::layers::WebRenderScrollDataWrapper const&, mozilla::layers::LayersId, unsigned int)::$_1 const&, mozilla::layers::APZCTreeManager::UpdateHitTestingTree(mozilla::layers::WebRenderScrollDataWrapper const&, mozilla::layers::LayersId, unsigned int)::$_2 const&)|hg:hg.mozilla.org/mozilla-central:gfx/layers/TreeTraversal.h:28553dbd41b69719386bc09fe09d84c3de72daa4|143|0x1121
36|9|libxul.so|mozilla::layers::APZCTreeManager::UpdateHitTestingTree(mozilla::layers::WebRenderScrollDataWrapper const&, mozilla::layers::LayersId, unsigned int)|hg:hg.mozilla.org/mozilla-central:gfx/layers/apz/src/APZCTreeManager.cpp:28553dbd41b69719386bc09fe09d84c3de72daa4|497|0x65d
36|10|libxul.so|mozilla::detail::RunnableFunction<mozilla::layers::APZUpdater::UpdateScrollDataAndTreeState(mozilla::layers::LayersId, mozilla::layers::LayersId, mozilla::wr::Epoch const&, mozilla::layers::WebRenderScrollData&&)::$_1>::Run()|hg:hg.mozilla.org/mozilla-central:xpcom/threads/nsThreadUtils.h:28553dbd41b69719386bc09fe09d84c3de72daa4|550|0x372
36|11|libxul.so|mozilla::layers::APZUpdater::ProcessQueue()|hg:hg.mozilla.org/mozilla-central:gfx/layers/apz/src/APZUpdater.cpp:28553dbd41b69719386bc09fe09d84c3de72daa4|523|0x2d2
36|12|libxul.so|mozilla::layers::APZUpdater::CompleteSceneSwap(mozilla::wr::WrWindowId const&, mozilla::wr::WrPipelineInfo const&)|hg:hg.mozilla.org/mozilla-central:gfx/layers/apz/src/APZUpdater.cpp:28553dbd41b69719386bc09fe09d84c3de72daa4|124|0x19b
36|13|libxul.so|apz_post_scene_swap|hg:hg.mozilla.org/mozilla-central:gfx/layers/apz/src/APZUpdater.cpp:28553dbd41b69719386bc09fe09d84c3de72daa4|591|0x21
36|14|libxul.so|<webrender_bindings::bindings::APZCallbacks as webrender::renderer::init::SceneBuilderHooks>::post_scene_swap|hg:hg.mozilla.org/mozilla-central:gfx/webrender_bindings/src/bindings.rs:28553dbd41b69719386bc09fe09d84c3de72daa4|1037|0x35
36|15|libxul.so|webrender::scene_builder_thread::SceneBuilderThread::run|hg:hg.mozilla.org/mozilla-central:gfx/wr/webrender/src/scene_builder_thread.rs:28553dbd41b69719386bc09fe09d84c3de72daa4|341|0x7296
36|16|libxul.so|std::sys::backtrace::__rust_begin_short_backtrace|/builds/worker/fetches/rustc/lib/rustlib/src/rust/library/std/src/sys/backtrace.rs|152|0x4c8
36|17|libxul.so|core::ops::function::FnOnce::call_once{{vtable.shim}}|/builds/worker/fetches/rustc/lib/rustlib/src/rust/library/core/src/ops/function.rs|250|0xa6
36|18|libxul.so|std::sys::pal::unix::thread::Thread::new::thread_start|git:github.com/rust-lang/rust:library/std/src/sys/pal/unix/thread.rs:05f9846f893b09a1be1fc8560e33fc3c815cfecb|106|0x1a
36|19|libmozglue.so|set_alt_signal_stack_and_start(PthreadCreateParams*)|hg:hg.mozilla.org/mozilla-central:mozglue/interposers/pthread_create_interposer.cpp:28553dbd41b69719386bc09fe09d84c3de72daa4|81|0xd5
Comment 1•1 year ago
|
||
The severity field is not set for this bug.
:botond, could you have a look please?
For more information, please visit BugBot documentation.
Comment 2•1 year ago
|
||
Thanks for the report. How do I run this locally? What is '20250906-5d1b48dc057d', a Nightly build number?
| Reporter | ||
Comment 3•1 year ago
|
||
To reproduce via Grizzly Replay on Android:
Install the tools:
$ pip install fuzzfetch grizzly-framework --upgrade
Download the apk:
$ python -m fuzzfetch -d --fuzzing --build 5d1b48dc057d -n gv
Then you can follow instructions here: https://github.com/MozillaSecurity/grizzly/wiki/Android
Comment 4•1 year ago
|
||
(In reply to Alex Jakobi [:ajakobi] from comment #2)
How do I run this locally?
If you have a local debug build for the relevant platform, you can also often reproduce these without Grizzly just by loading the page in your build.
For example, in a local debug android emulator build, just running ./mach run 'https://bugzilla.mozilla.org/attachment.cgi?id=9522121' (that being the URL of the attached testcase), which runs the GeckoView Example app, reproduces the assertion for me (I can see it in adb logcat).
Comment 5•1 year ago
•
|
||
(In reply to Alex Jakobi [:ajakobi] from comment #2)
What is '20250906-5d1b48dc057d', a Nightly build number?
For future reference, 5d1b48dc057d is a Mercurial commit hash (https://hg-edge.mozilla.org/mozilla-central/rev/5d1b48dc057d), and 20250906 is the (I assume first) Nightly that it appears in.
(But note that for reproducing these I don't initially bother to check out the specific affected revision. In the test I describe in comment 4, my local build was from Oct 17, and still it reproduced the assertion, because the issue the fuzzer is catching here is not a recent regression. If I can't reproduce the assertion in whatever local build I have, that's when I'll next try e.g. a nightly from the date indicated in the bug report.)
| Reporter | ||
Comment 6•6 months ago
|
||
This issue has also been detected via live site testing.
Description
•