WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
25213
ASSERT during Inspector destruction
https://bugs.webkit.org/show_bug.cgi?id=25213
Summary
ASSERT during Inspector destruction
Eric Seidel (no email)
Reported
2009-04-15 11:20:52 PDT
ASSERTION FAILED: !m_page || (m_page && !m_page->parentInspectorController()) I had opened:
http://www.carto.net/papers/svg/samples/canvas.shtml
brought up the inspector by clicking on the image of austria. Then i right-clicked on the image of austria again, and selected "open in new window" The window opened with just the image (not the SVG as I had expected!) So I closed the window, and then right-clicked on the SVG again, and Safari crashed: (/Users/eseidel/Projects/WebKit/WebCore/inspector/InspectorController.cpp:201 virtual 0 com.apple.WebCore 0x039266db WebCore::InspectorController::~InspectorController() + 343 1 com.apple.WebCore 0x03a0a65d WTF::RefCounted<WebCore::InspectorController>::deref() + 53 (RefCounted.h:94) 2 com.apple.WebCore 0x03a0a6a6 WTF::RefPtr<WebCore::InspectorController>::~RefPtr() + 34 3 com.apple.WebCore 0x03a0a301 WebCore::JSInspectorController::~JSInspectorController() + 107 4 com.apple.JavaScriptCore 0x00660c2b unsigned long JSC::Heap::sweep<(JSC::HeapType)0>() + 181 (Collector.cpp:901) 5 com.apple.JavaScriptCore 0x005ce1e0 JSC::Heap::collect() + 676 (Collector.cpp:999) 6 com.apple.WebCore 0x0384502f WebCore::GCController::gcTimerFired(WebCore::Timer<WebCore::GCController>*) + 43 (GCController.cpp:74)WebCore::InspectorController::~InspectorController())
Attachments
full stack trace
(31.98 KB, text/plain)
2009-04-15 11:21 PDT
,
Eric Seidel (no email)
no flags
Details
Fix assert during Inspector destruction, v1.
(1.36 KB, patch)
2009-05-11 09:47 PDT
,
Dimitri Glazkov (Google)
timothy
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Eric Seidel (no email)
Comment 1
2009-04-15 11:21:22 PDT
Created
attachment 29505
[details]
full stack trace
Adam Roben (:aroben)
Comment 2
2009-04-28 09:17:10 PDT
Here's how I can reproduce this in Safari for Windows: 1. Open a tab and load a page 2. Inspect something 3. Close the tab while the Inspector is still open
Dimitri Glazkov (Google)
Comment 3
2009-04-28 15:31:17 PDT
Looking.
Dimitri Glazkov (Google)
Comment 4
2009-05-05 18:41:23 PDT
I can't repro on Mac :( Will try Win tomorrow.
Dimitri Glazkov (Google)
Comment 5
2009-05-05 18:41:43 PDT
BTW, if anyone has good repro steps for Mac, pls let me know.
Alexey Proskuryakov
Comment 6
2009-05-06 01:22:46 PDT
I've just reproduced this on Mac: 1. Open a new window, type about:blank in address bar, hit Enter. 2. Open Web Inspector. 3. Close the about:blank window. Results in console: file:///Users/ap/Safari/OpenSource/WebKitBuild/Debug/WebCore.framework/Resources/inspector/ScriptsPanel.js:388: JS ERROR: file:///Users/ap/Safari/OpenSource/WebKitBuild/Debug/WebCore.framework/Resources/inspector/ScriptsPanel.js:388: JS ERROR: file:///Users/ap/Safari/OpenSource/WebKitBuild/Debug/WebCore.framework/Resources/inspector/ElementsPanel.js:59: JS ERROR: file:///Users/ap/Safari/OpenSource/WebKitBuild/Debug/WebCore.framework/Resources/inspector/inspector.js:394: JS ERROR: ReferenceError: Can't find variable: InspectorController ASSERTION FAILED: !m_page || (m_page && !m_page->parentInspectorController()) (/Users/ap/Safari/OpenSource/WebCore/inspector/InspectorController.cpp:202 virtual WebCore::InspectorController::~InspectorController())
Dimitri Glazkov (Google)
Comment 7
2009-05-11 09:47:40 PDT
Created
attachment 30192
[details]
Fix assert during Inspector destruction, v1. WebCore/ChangeLog | 12 ++++++++++++ WebCore/inspector/InspectorController.cpp | 8 +++++--- 2 files changed, 17 insertions(+), 3 deletions(-)
Dimitri Glazkov (Google)
Comment 8
2009-05-11 10:01:05 PDT
Landed as
http://trac.webkit.org/changeset/43500
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug