Open Bug 297637 Opened 19 years ago Updated 2 years ago

" Null pres shell" assertion failure on window closing from onblur

Categories

(Core :: Layout, defect)

x86
Linux
defect

Tracking

()

People

(Reporter: chpe, Unassigned)

References

()

Details

firefox trunk debug build from 2005-06-13:

Steps to reproduce:
0) Load the testcase
1) Click the "Test case for bug 116256" link
2) In the popup window, focus the location entry

Now the window closes, and I get this on terminal:

WARNING: Deleting out of flow without tearing down placeholder relationship,
file /opt/source/firefox-trunk/mozilla/layout/generic/nsFrame.cpp, line 641
WARNING: Deleting out of flow without tearing down placeholder relationship,
file /opt/source/firefox-trunk/mozilla/layout/generic/nsFrame.cpp, line 641
WARNING: Deleting out of flow without tearing down placeholder relationship,
file /opt/source/firefox-trunk/mozilla/layout/generic/nsFrame.cpp, line 641
WARNING: Deleting out of flow without tearing down placeholder relationship,
file /opt/source/firefox-trunk/mozilla/layout/generic/nsFrame.cpp, line 641
WARNING: Deleting out of flow without tearing down placeholder relationship,
file /opt/source/firefox-trunk/mozilla/layout/generic/nsFrame.cpp, line 641
GetPrimaryFrameFor() called while nsFrameManager is being destroyed!
###!!! ASSERTION: Null pres shell: 'mShell', file
../../dist/include/layout/nsPresContext.h, line 160
Break: at file ../../dist/include/layout/nsPresContext.h, line 160

(gdb) where
#0  0xb7ea7c5a in nsDebugImpl::Break (this=0x8181928, aFile=0xb5ad3260
"../../dist/include/layout/nsPresContext.h", aLine=160)
    at /opt/source/firefox-trunk/mozilla/xpcom/base/nsDebugImpl.cpp:357
#1  0xb7ea7a9f in nsDebugImpl::Assertion (this=0x8181928, aStr=0xb5ad3291 "Null
pres shell", aExpr=0xb5ad328a "mShell", 
    aFile=0xb5ad3260 "../../dist/include/layout/nsPresContext.h", aLine=160) at
/opt/source/firefox-trunk/mozilla/xpcom/base/nsDebugImpl.cpp:294
#2  0xb7e1a58c in nsDebug::Assertion (aStr=0xb5ad3291 "Null pres shell",
aExpr=0xb5ad328a "mShell", aFile=0xb5ad3260
"../../dist/include/layout/nsPresContext.h", aLine=160)
    at nsDebug.cpp:108
#3  0xb55834a3 in nsPresContext::PresShell (this=0x8b029f8) at nsPresContext.h:160
#4  0xb589f809 in nsEventStateManager::ChangeFocusWith (this=0x8b02cc0,
aFocusContent=0x89ce318, aFocusedWith=eEventFocusedByMouse)
    at
/opt/source/firefox-trunk/mozilla/content/events/src/nsEventStateManager.cpp:2997
#5  0xb589d0f9 in nsEventStateManager::PostHandleEvent (this=0x8b02cc0,
aPresContext=0x8b029f8, aEvent=0xbfffe8f0, aTargetFrame=0x8b46db0,
aStatus=0xbfffe778, aView=0x8991268)
    at
/opt/source/firefox-trunk/mozilla/content/events/src/nsEventStateManager.cpp:1919
#6  0xb55d1b3f in PresShell::HandleEventInternal (this=0x8af8ae8,
aEvent=0xbfffe8f0, aView=0x8991268, aFlags=1, aStatus=0xbfffe778)
    at /opt/source/firefox-trunk/mozilla/layout/base/nsPresShell.cpp:6416
#7  0xb55d0fa8 in PresShell::HandleEvent (this=0x8af8ae8, aView=0x8991268,
aEvent=0xbfffe8f0, aEventStatus=0xbfffe778, aForceHandle=0, aHandled=@0xbfffe708)
    at /opt/source/firefox-trunk/mozilla/layout/base/nsPresShell.cpp:6188
#8  0xb59d9594 in nsViewManager::HandleEvent (this=0x8af84a8, aView=0x8af8528,
aEvent=0xbfffe8f0, aCaptured=0)
    at /opt/source/firefox-trunk/mozilla/view/src/nsViewManager.cpp:2500
#9  0xb59d8a22 in nsViewManager::DispatchEvent (this=0x8af84a8,
aEvent=0xbfffe8f0, aStatus=0xbfffe850) at
/opt/source/firefox-trunk/mozilla/view/src/nsViewManager.cpp:2224
#10 0xb59cd53d in HandleEvent (aEvent=0xbfffe8f0) at
/opt/source/firefox-trunk/mozilla/view/src/nsView.cpp:171
#11 0xb5cfe02e in nsCommonWidget::DispatchEvent (this=0x8af8598,
aEvent=0xbfffe8f0, aStatus=@0xbfffe958)
    at /opt/source/firefox-trunk/mozilla/widget/src/gtk2/nsCommonWidget.cpp:219
#12 0xb5cedd4d in nsWindow::OnButtonPressEvent (this=0x8af8598,
aWidget=0x8b41878, aEvent=0x85c9480) at
/opt/source/firefox-trunk/mozilla/widget/src/gtk2/nsWindow.cpp:1556
[...]
Still around in 2008-01-18 trunk from closing a http://tvtropes.org/ tab, though the stack trace is somewhat different:

#0  NS_DebugBreak_P (aSeverity=1, aStr=0xb6597f70 "Null pres shell",
    aExpr=0xb65a00a7 "mShell",
    aFile=0xb65f859c "../../dist/include/layout/nsPresContext.h", aLine=177)
    at ../../../xpcom/base/nsDebugImpl.cpp:261
#1  0xb5f5fb8b in nsPresContext::PresShell (this=0x9fac558)
    at ../../../../../layout/svg/base/src/../../../base/nsPresContext.h:177
#2  0xb620aef3 in nsDOMUIEvent::GetPagePoint (this=0x98fb2b4)
    at ../../../../content/events/src/nsDOMUIEvent.cpp:203
#3  0xb620b293 in nsDOMUIEvent::DuplicatePrivateData (this=0x98fb2b4)
    at ../../../../content/events/src/nsDOMUIEvent.cpp:418
#4  0xb621654d in nsEventDispatcher::Dispatch (aTarget=0x9bf1b98,
    aPresContext=0x9fac558, aEvent=0xbf99a378, aDOMEvent=0x0,
    aEventStatus=0xbf99a174, aCallback=0xbf99a054)
    at ../../../../content/events/src/nsEventDispatcher.cpp:502
#5  0xb5fa4f17 in PresShell::HandleEventInternal (this=0x9db0658,
    aEvent=0xbf99a378, aView=0x9c74cf0, aStatus=0xbf99a174)
    at ../../../layout/base/nsPresShell.cpp:5823
#6  0xb5fa5c6f in PresShell::HandleEvent (this=0x9db0658, aView=0x9c74cf0,
    aEvent=0xbf99a378, aEventStatus=0xbf99a174)
    at ../../../layout/base/nsPresShell.cpp:5623
#7  0xb634c6e0 in nsViewManager::HandleEvent (this=0x9c74c90, aView=0x9c74cf0,
    aPoint=@0xbf99a240, aEvent=0xbf99a378, aCaptured=0)
    at ../../../view/src/nsViewManager.cpp:1294
#8  0xb634f7d3 in nsViewManager::DispatchEvent (this=0x9c74c90,
    aEvent=0xbf99a378, aStatus=0xbf99a28c)
    at ../../../view/src/nsViewManager.cpp:1250
#9  0xb63481e3 in HandleEvent (aEvent=0xbf99a378)
    at ../../../view/src/nsView.cpp:168
#10 0xb5a921c4 in nsCommonWidget::DispatchEvent (this=0x9cfb2e0,
    aEvent=0xbf99a378, aStatus=@0xbf99a408)
    at ../../../../widget/src/gtk2/nsCommonWidget.cpp:156
#11 0xb5a8708a in nsWindow::OnKeyPressEvent (this=0x9cfb2e0,
    aWidget=0x8437c28, aEvent=0x86d35a8)
    at ../../../../widget/src/gtk2/nsWindow.cpp:2406
#12 0xb5a87255 in key_press_event_cb (widget=0x8437c28, event=0x86d35a8)
    at ../../../../widget/src/gtk2/nsWindow.cpp:4699
#13 0xb7aabcfa in gtk_marshal_BOOLEAN__VOID ()
   from /usr/lib/libgtk-x11-2.0.so.0
#14 0xb77aadfd in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
...

Sometimes associated with bug 265436
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.