From 2e3b0912f5726ddcccd0844b67891adc50fd4226 Mon Sep 17 00:00:00 2001 From: Kartikaya Gupta Date: Tue, 31 Mar 2015 08:50:14 -0400 Subject: [PATCH] Bug 1145295 - Add some debug logging to try and trace an intermittent assertion. r=nical --- gfx/layers/ipc/CompositorParent.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gfx/layers/ipc/CompositorParent.cpp b/gfx/layers/ipc/CompositorParent.cpp index 9b1e600c8f2c..0d97f1936197 100644 --- a/gfx/layers/ipc/CompositorParent.cpp +++ b/gfx/layers/ipc/CompositorParent.cpp @@ -1121,6 +1121,14 @@ CompositorParent::ShadowLayersUpdated(LayerTransactionParent* aLayerTree, mRootLayerTreeID, aPaintSequenceNumber); } +#ifdef DEBUG + if (aTransactionId <= mPendingTransaction) { + // Logging added to help diagnose why we're triggering the assert below. + // See bug 1145295 + printf_stderr("CRASH: aTransactionId %" PRIu64 " <= mPendingTransaction %" PRIu64 "\n", + aTransactionId, mPendingTransaction); + } +#endif MOZ_ASSERT(aTransactionId > mPendingTransaction); mPendingTransaction = aTransactionId;