Last Comment Bug 723523 - Crash [@ nsPluginInstanceOwner::CreateWidget ] [@ nsCOMPtr_base::assign_assuming_AddRef | nsObjectFrame::PrepForDrawing ]
: Crash [@ nsPluginInstanceOwner::CreateWidget ] [@ nsCOMPtr_base::assign_assum...
: crash, regression, reproducible, topcrash, verified-beta
Product: Core
Classification: Components
Component: Plug-ins (show other bugs)
: 13 Branch
: x86_64 Windows 7
-- critical (vote)
: mozilla13
Assigned To: Josh Aas
: Benjamin Smedberg [:bsmedberg]
: 724812 (view as bug list)
Depends on:
Blocks: 90268 285982
  Show dependency treegraph
Reported: 2012-02-02 07:40 PST by Scoobidiver (away)
Modified: 2012-05-22 16:48 PDT (History)
15 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

fix v1.0 (717 bytes, patch)
2012-03-06 08:05 PST, Josh Aas
jmathies: review+
Details | Diff | Splinter Review

Description User image Scoobidiver (away) 2012-02-02 07:40:50 PST
It's currently #21 top crasher in the first build of 13.0a1.
The regression range is:
It's likely caused by bug 90268.

Signature 	nsCOMPtr_base::assign_assuming_AddRef(nsISupports*) | nsObjectFrame::PrepForDrawing(nsIWidget*) More Reports Search
UUID	2d083f0f-8656-49e4-82cb-e78592120202
Date Processed	2012-02-02 11:39:51
Uptime	6723
Install Age	1.9 hours since version was first installed.
Install Time	2012-02-02 09:47:10
Product	Firefox
Version	13.0a1
Build ID	20120201031146
Release Channel	nightly
OS	Windows NT
OS Version	6.0.6002 Service Pack 2
Build Architecture	amd64
Build Architecture Info	family 6 model 30 stepping 5
Crash Address	0xffffffffffffffff
App Notes 	
AdapterVendorID: 0x10de, AdapterDeviceID: 0x0603, AdapterSubsysID: 1058174b, AdapterDriverVersion:
D3D10 Layers? D3D10 Layers-
D3D9 Layers? D3D9 Layers-
WebGL? WebGL-
EMCheckCompatibility	True

Frame 	Module 	Signature [Expand] 	Source
0 	xul.dll 	nsCOMPtr_base::assign_assuming_AddRef 	
1 	xul.dll 	nsObjectFrame::PrepForDrawing 	layout/generic/nsObjectFrame.cpp:389
2 	xul.dll 	nsRefPtr<nsPresContext>::~nsRefPtr<nsPresContext> 	obj-firefox/dist/include/nsAutoPtr.h:907
3 	xul.dll 	nsComponentManagerImpl::GetServiceByContractID 	xpcom/components/nsComponentManager.cpp:1410
4 	xul.dll 	nsPluginInstanceOwner::CreateWidget 	dom/plugins/base/nsPluginInstanceOwner.cpp:3317
5 	xul.dll 	nsPluginHost::SetUpPluginInstance 	dom/plugins/base/nsPluginHost.cpp:1225
6 	xul.dll 	ns_if_addref<nsListScrollSmoother*> 	obj-firefox/dist/include/nsISupportsUtils.h:94
7 	xul.dll 	nsACString_internal::Replace 	obj-firefox/dist/include/nsTSubstring.h:378
8 	xul.dll 	nsPluginInstanceOwner::GetInstance 	dom/plugins/base/nsPluginInstanceOwner.cpp:495
9 	xul.dll 	nsPluginHost::InstantiateEmbeddedPlugin 	dom/plugins/base/nsPluginHost.cpp:1096
10 	xul.dll 	SearchTable 	obj-firefox/xpcom/build/pldhash.cpp:472
11 	xul.dll 	nsPrefBranch::RemoveObserver 	modules/libpref/src/nsPrefBranch.cpp:639
12 	xul.dll 	nsComponentManagerImpl::GetService 	xpcom/components/nsComponentManager.cpp:1215
13 	xul.dll 	nsACString_internal::MutatePrep 	xpcom/string/src/nsTSubstring.cpp:162
14 	xul.dll 	nsCOMPtr_base::assign_from_qi 	obj-firefox/xpcom/build/nsCOMPtr.cpp:96
15 	xul.dll 	nsObjectLoadingContent::InstantiatePluginInstance 	content/base/src/nsObjectLoadingContent.cpp:637
16 	xul.dll 	nsPluginStreamListenerPeer::OnStartRequest 	dom/plugins/base/nsPluginStreamListenerPeer.cpp:640
17 	xul.dll 	nsCOMPtr_base::assign_from_gs_contractid 	obj-firefox/xpcom/build/nsCOMPtr.cpp:134
18 	xul.dll 	nsRefPtr<nsPresContext>::~nsRefPtr<nsPresContext> 	obj-firefox/dist/include/nsAutoPtr.h:907
19 	xul.dll 	nsObjectLoadingContent::OnStartRequest 	content/base/src/nsObjectLoadingContent.cpp:902

More reports at:*%29%20|%20nsObjectFrame%3A%3APrepForDrawing%28nsIWidget*%29
Comment 1 User image Jim Mathies [:jimm] 2012-02-03 03:55:30 PST
This looks like a dead mObjectFrame in nsPluginInstanceOwner. In light of what we discovered in bug 683059, mObjectFrame gets destroyed before the nsPluginInstanceOwner dtor which is where mObjectFrame is nulled out. So in addition to setting the plugin instance in the object frame to null in Destroy, I think we should be nulling out the object frame as well.
Comment 2 User image Scoobidiver (away) 2012-02-03 06:03:45 PST
It's now #3 top crasher in 13.0a1.

Th only comment says:
"This version of Nightly seems to have a little heartburn w/ Intellicast's Flash-powered weather map."
Comment 3 User image Sheila Mooney 2012-02-10 10:42:36 PST
Hey Marcia, can we try and reproduce this?
Comment 4 User image Marcia Knous [:marcia - use ni] 2012-02-14 11:24:25 PST
While I was checking one of the URLs from this signature I crashed in Bug 724812 Comment 1 - wondering if these two signatures are related.
Comment 5 User image Scoobidiver (away) 2012-02-14 21:28:04 PST
(In reply to Marcia Knous [:marcia] from comment #4)
> While I was checking one of the URLs from this signature I crashed in Bug
> 724812 Comment 1 - wondering if these two signatures are related.
This one is specific to 64-bit builds, so it might be the 64-bit version of bug 724812, assuming Breakpad is not good for 64-bit stacks.
Comment 6 User image Marcia Knous [:marcia - use ni] 2012-02-27 06:47:38 PST
I see 185 crashes across the trunk in the last week. 98% of the crashes are on Win 7. One user comment: it keeps shutting down when ever i set my location. That user has no extensions installed.
Comment 7 User image Marcia Knous [:marcia - use ni] 2012-02-28 09:09:43 PST
Here are some manual addon correlations:

nsCOMPtr_base::assign_assuming_AddRef(nsISupports*) | nsObjectFrame::PrepForDrawing(nsIWidget*)|EXCEPTION_ACCESS_VIOLATION_READ (21 crashes)
     10% (2/21) vs.   0% (5/1635) TFToolbarX@torrent-finder (Torrent Finder Toolbar,
     10% (2/21) vs.   0% (8/1635)
     19% (4/21) vs.  12% (189/1635) (Mozilla Labs - Test Pilot,
Comment 8 User image Marcia Knous [:marcia - use ni] 2012-02-29 14:11:54 PST
Here are some better STR that I just got using the latest nightly on Win 7:

1. Load
2. Select "Find a location"
3. Keep changing the location to different zip codes
4. Eventually after 3-4 times I generate a crash

The crash usually happens when I start typing the same of the city in the field.
Comment 9 User image Marcia Knous [:marcia - use ni] 2012-02-29 14:16:22 PST
Actually the crash signatures I am getting match Bug 724812.

(In reply to Marcia Knous [:marcia] from comment #8)
> Here are some better STR that I just got using the latest nightly on Win 7:
> 1. Load
> 2. Select "Find a location"
> 3. Keep changing the location to different zip codes
> 4. Eventually after 3-4 times I generate a crash
> The crash usually happens when I start typing the same of the city in the
> field.
Comment 10 User image Sheila Mooney 2012-03-01 13:14:37 PST
We have STR, it's a top crash - #9 on the trunk. It's not assigned to anybody.
Comment 11 User image Josh Aas 2012-03-06 08:05:14 PST
Created attachment 603276 [details] [diff] [review]
fix v1.0

This might do the trick. Clear out the frame pointer as soon as we know the frame will be destroyed.
Comment 12 User image Josh Aas 2012-03-06 08:08:00 PST
*** Bug 724812 has been marked as a duplicate of this bug. ***
Comment 13 User image Josh Aas 2012-03-06 08:19:42 PST
try run for fix v1.0
Comment 14 User image Josh Aas 2012-03-07 08:50:16 PST
pushed to mozilla-inbound
Comment 15 User image Ed Morley [:emorley] 2012-03-08 14:07:11 PST
Comment 16 User image Anthony Hughes (:ashughes) [GFX][QA][Mentor] 2012-03-22 15:38:37 PDT
Removing qawanted -- the original ask was for a reproducible case which has been found some time ago. We will verify the fix as per our normal schedule -- no need to track any longer with qawanted. Please re-add if there is more we can do.
Comment 17 User image Al Billings [:abillings] 2012-04-10 15:26:16 PDT
There is no testcase to reproduce this crash, right?
Comment 18 User image Anthony Hughes (:ashughes) [GFX][QA][Mentor] 2012-04-26 13:25:42 PDT
(In reply to Al Billings [:abillings] from comment #17)
> There is no testcase to reproduce this crash, right?

My understanding was that comment 9 is the reproducible case. I could be wrong...
Comment 19 User image Al Billings [:abillings] 2012-04-26 14:50:21 PDT
I can't reproduce a crash in Firefox 11, pre-fix, with that testcase.
Comment 20 User image Mihaela Velimiroviciu (:mihaelav) 2012-05-22 06:42:42 PDT
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0 (beta 4)

Could ot reproduce the crash using steps from comment #8. Also, no crashes with this signature were reported in the last 4 weeks.

Is there anything else that can be done before marking this verified for FF13?

Comment 21 User image Anthony Hughes (:ashughes) [GFX][QA][Mentor] 2012-05-22 15:44:29 PDT
I think that's good enough Mihaela. Thanks.

Note You need to log in before you can comment on or make changes to this bug.