Closed Bug 299331 Opened 20 years ago Closed 7 years ago

###!!! ASSERTION: URI is empty: '!aURI.IsEmpty()', file c:/mozilla/mozilla/rdf/base/src/nsRDFService.cpp, line 1023

Categories

(Firefox :: Bookmarks & History, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jaime.bugzilla, Unassigned)

References

(Depends on 1 open bug)

Details

(Keywords: assertion)

Attachments

(1 file, 1 obsolete file)

37.06 KB, text/plain
Details
Current CVS Debug Build

Assertion occurs when loading a new page

Caused by the reference in 
http://lxr.mozilla.org/seamonkey/source/toolkit/components/history/src/nsGlobalHistory.cpp#1867

Call Stack:

	firefox.exe!nsGlobalHistory::GetTarget(nsIRDFResource * aSource=0x00000000,
nsIRDFResource * aProperty=0x00000000, int aTruthValue=57201260, nsIRDFNode * *
aTarget=0x0012d078)  Line 1873	C++
 	xpcom_core.dll!XPTC_InvokeByIndex(nsISupports * that=0x03625070, unsigned int
methodIndex=6, unsigned int paramCount=4, nsXPTCVariant * params=0x0012d048) 
Line 102	C++
 	firefox.exe!XPCWrappedNative::CallMethod(XPCCallContext & ccx={...},
XPCWrappedNative::CallMode mode=CALL_METHOD)  Line 2119 + 0x15	C++
 	firefox.exe!XPC_WN_CallMethod(JSContext * cx=0x02905288, JSObject *
obj=0x0367d930, unsigned int argc=3, long * argv=0x0371063c, long *
vp=0x0012d2bc)  Line 1348 + 0xa	C++
 	js3250.dll!js_Invoke(JSContext * cx=0x00000000, unsigned int argc=57201260,
unsigned int flags=1233016)  Line 1178 + 0x11	C
 	js3250.dll!js_Interpret(JSContext * cx=0x00000000, unsigned char *
pc=0x0368d26c, long * result=0x0012d078)  Line 3470	C
 	js3250.dll!js_Invoke(JSContext * cx=0x00000000, unsigned int argc=57201260,
unsigned int flags=1233016)  Line 1198 + 0xf	C
 	firefox.exe!nsXPCWrappedJSClass::CallMethod(nsXPCWrappedJS *
wrapper=0x00000000, unsigned short methodIndex=0, const nsXPTMethodInfo *
info=0x0368d26c, nsXPTCMiniVariant * nativeParams=0x0012d078)  Line 1339 + 0x10	C++
 	firefox.exe!nsXPCWrappedJS::CallMethod(unsigned short methodIndex=3, const
nsXPTMethodInfo * info=0x02859800, nsXPTCMiniVariant * params=0x0012d70c) 
Line 462	C++
 	xpcom_core.dll!PrepareAndDispatch(nsXPTCStubBase * self=0x02b63578, unsigned
int methodIndex=3, unsigned int * args=0x0012d7d0, unsigned int *
stackBytesToPop=0x0012d7c0)  Line 117 + 0x1a	C++
 	xpcom_core.dll!SharedStub()  Line 147	C++
 	firefox.exe!nsEventListenerManager::HandleEventSubType(nsListenerStruct *
aListenerStruct=0x03625060, nsIDOMEvent * aDOMEvent=0x00000000,
nsIDOMEventTarget * aCurrentTarget=0x00000000, unsigned int aSubType=57201260,
unsigned int aPhaseFlags=1233016)  Line 1581	C++
 	firefox.exe!nsEventListenerManager::HandleEvent(nsPresContext *
aPresContext=0x00000000, nsEvent * aEvent=0x0012e1ac, nsIDOMEvent * *
aDOMEvent=0x0012e180, nsIDOMEventTarget * aCurrentTarget=0x02905034, unsigned
int aFlags=4, nsEventStatus * aEventStatus=0x0012e220)  Line 1661	C++
 	firefox.exe!nsGlobalWindow::HandleDOMEvent(nsPresContext *
aPresContext=0x04771c58, nsEvent * aEvent=0x0012e1ac, nsIDOMEvent * *
aDOMEvent=0x0012e180, unsigned int aFlags=4, nsEventStatus *
aEventStatus=0x0012e220)  Line 927	C++
 	firefox.exe!nsXULDocument::HandleDOMEvent(nsPresContext *
aPresContext=0x04771c58, nsEvent * aEvent=0x00000000, nsIDOMEvent * *
aDOMEvent=0x0012e180, unsigned int aFlags=4, nsEventStatus *
aEventStatus=0x0012e220)  Line 1238	C++
 	firefox.exe!nsXULElement::HandleDOMEvent(nsPresContext *
aPresContext=0x03625060, nsEvent * aEvent=0x00000000, nsIDOMEvent * *
aDOMEvent=0x00000000, unsigned int aFlags=57201260, nsEventStatus *
aEventStatus=0x0012d078)  Line 2183 + 0x1e	C++
 	firefox.exe!nsXULElement::HandleDOMEvent(nsPresContext *
aPresContext=0x03625060, nsEvent * aEvent=0x00000000, nsIDOMEvent * *
aDOMEvent=0x00000000, unsigned int aFlags=57201260, nsEventStatus *
aEventStatus=0x0012d078)  Line 2180	C++
 	firefox.exe!nsXULElement::HandleDOMEvent(nsPresContext *
aPresContext=0x03625060, nsEvent * aEvent=0x00000000, nsIDOMEvent * *
aDOMEvent=0x00000000, unsigned int aFlags=57201260, nsEventStatus *
aEventStatus=0x0012d078)  Line 2180	C++
 	firefox.exe!nsXULElement::HandleDOMEvent(nsPresContext *
aPresContext=0x03625060, nsEvent * aEvent=0x00000000, nsIDOMEvent * *
aDOMEvent=0x00000000, unsigned int aFlags=57201260, nsEventStatus *
aEventStatus=0x0012d078)  Line 2180	C++
 	firefox.exe!nsXULElement::HandleDOMEvent(nsPresContext *
aPresContext=0x03625060, nsEvent * aEvent=0x00000000, nsIDOMEvent * *
aDOMEvent=0x00000000, unsigned int aFlags=57201260, nsEventStatus *
aEventStatus=0x0012d078)  Line 2180	C++
 	firefox.exe!nsXULElement::HandleDOMEvent(nsPresContext *
aPresContext=0x03625060, nsEvent * aEvent=0x00000000, nsIDOMEvent * *
aDOMEvent=0x00000000, unsigned int aFlags=57201260, nsEventStatus *
aEventStatus=0x0012d078)  Line 2180	C++
 	firefox.exe!nsXULElement::HandleDOMEvent(nsPresContext *
aPresContext=0x03625060, nsEvent * aEvent=0x00000000, nsIDOMEvent * *
aDOMEvent=0x00000000, unsigned int aFlags=57201260, nsEventStatus *
aEventStatus=0x0012d078)  Line 2180	C++
 	firefox.exe!nsXULElement::HandleDOMEvent(nsPresContext *
aPresContext=0x03625060, nsEvent * aEvent=0x00000000, nsIDOMEvent * *
aDOMEvent=0x00000000, unsigned int aFlags=57201260, nsEventStatus *
aEventStatus=0x0012d078)  Line 2180	C++
 	firefox.exe!nsXULElement::HandleChromeEvent(nsPresContext *
aPresContext=0x04771c58, nsEvent * aEvent=0x0012e1ac, nsIDOMEvent * *
aDOMEvent=0x0012e180, unsigned int aFlags=4, nsEventStatus *
aEventStatus=0x0012e220)  Line 2882 + 0x16	C++
 	firefox.exe!nsGlobalWindow::HandleDOMEvent(nsPresContext *
aPresContext=0x04771c58, nsEvent * aEvent=0x0012e1ac, nsIDOMEvent * *
aDOMEvent=0x0012e180, unsigned int aFlags=4, nsEventStatus *
aEventStatus=0x0012e220)  Line 916	C++
 	firefox.exe!nsDocument::HandleDOMEvent(nsPresContext *
aPresContext=0x04771c58, nsEvent * aEvent=0x00000000, nsIDOMEvent * *
aDOMEvent=0x0012e180, unsigned int aFlags=1, nsEventStatus *
aEventStatus=0x0012e220)  Line 3970	C++
 	firefox.exe!nsEventStateManager::PreHandleEvent(nsPresContext *
aPresContext=0x04771c58, nsEvent * aEvent=0x00000000, nsIFrame *
aTargetFrame=0x00000000, nsEventStatus * aStatus=0x04d95108, nsIView *
aView=0x0290500c)  Line 599	C++
 	firefox.exe!PresShell::HandleEventInternal(nsEvent * aEvent=0x00000000,
nsIView * aView=0x04dadda0, unsigned int aFlags=1, nsEventStatus *
aStatus=0x0012e370)  Line 6343	C++
 	firefox.exe!PresShell::HandleEvent(nsIView * aView=0x04dadda0, nsGUIEvent *
aEvent=0x0012e470, nsEventStatus * aEventStatus=0x0012e370, int aForceHandle=1,
int & aHandled=14177880)  Line 6189 + 0x13	C++
 	firefox.exe!nsViewManager::HandleEvent(nsView * aView=0x04dadda0, nsGUIEvent *
aEvent=0x00000000, int aCaptured=1)  Line 2457	C++
 	firefox.exe!nsViewManager::DispatchEvent(nsGUIEvent * aEvent=0x3d888889,
nsEventStatus * aStatus=0x0012e3cc)  Line 2224 + 0x14	C++
 	firefox.exe!HandleEvent(nsGUIEvent * aEvent=0x0012e470)  Line 174	C++
 	firefox.exe!nsWindow::DispatchEvent(nsGUIEvent * event=0x0012e470,
nsEventStatus & aStatus=nsEventStatus_eIgnore)  Line 1173 + 0x3	C++
 	firefox.exe!nsWindow::DispatchWindowEvent(nsGUIEvent * event=0x00000000) 
Line 1194	C++
 	firefox.exe!nsWindow::DispatchFocus(unsigned int aEventType=105, int
isMozWindowTakingFocus=1)  Line 5996 + 0xe	C++
 	firefox.exe!nsWindow::ProcessMessage(unsigned int msg=7, unsigned int
wParam=9635148, long lParam=0, long * aRetValue=0x0012e760)  Line 4616	C++
 	firefox.exe!nsWindow::WindowProc(HWND__ * hWnd=0x00b41040, unsigned int msg=7,
unsigned int wParam=9635148, long lParam=77119532)  Line 1350 + 0x10	C++
 	user32.dll!77d48734() 	
 	user32.dll!77d48816() 	
 	user32.dll!77d4b4c0() 	
 	user32.dll!77d4b50c() 	
 	ntdll.dll!7c90eae3() 	
 	user32.dll!77d4da6c() 	
 	firefox.exe!nsWindow::SetFocus(int aRaise=1)  Line 2216	C++
 	firefox.exe!nsGlobalWindow::Focus()  Line 2617 + 0x10	C++
 	firefox.exe!nsEventStateManager::PreHandleEvent(nsPresContext *
aPresContext=0x056858bc, nsEvent * aEvent=0x00000000, nsIFrame *
aTargetFrame=0x028e70e8, nsEventStatus * aStatus=0x00dd5f10, nsIView *
aView=0x0288ea78)  Line 774	C++
 	firefox.exe!PresShell::HandleEventInternal(nsEvent * aEvent=0x00000000,
nsIView * aView=0x0288ea78, unsigned int aFlags=1, nsEventStatus *
aStatus=0x0012eadc)  Line 6343	C++
 	firefox.exe!PresShell::HandleEvent(nsIView * aView=0x0288ea78, nsGUIEvent *
aEvent=0x0012ebdc, nsEventStatus * aEventStatus=0x0012eadc, int aForceHandle=1,
int & aHandled=13970280)  Line 6189 + 0x13	C++
 	firefox.exe!nsViewManager::HandleEvent(nsView * aView=0x0288ea78, nsGUIEvent *
aEvent=0x00000000, int aCaptured=1)  Line 2457	C++
 	firefox.exe!nsViewManager::DispatchEvent(nsGUIEvent * aEvent=0x3d888889,
nsEventStatus * aStatus=0x0012eb38)  Line 2224 + 0x14	C++
 	firefox.exe!HandleEvent(nsGUIEvent * aEvent=0x0012ebdc)  Line 174	C++
 	firefox.exe!nsWindow::DispatchEvent(nsGUIEvent * event=0x0012ebdc,
nsEventStatus & aStatus=nsEventStatus_eIgnore)  Line 1173 + 0x3	C++
 	firefox.exe!nsWindow::DispatchWindowEvent(nsGUIEvent * event=0x00000000) 
Line 1194	C++
 	firefox.exe!nsWindow::DispatchFocus(unsigned int aEventType=107, int
isMozWindowTakingFocus=1)  Line 5996 + 0xe	C++
 	firefox.exe!nsWindow::ProcessMessage(unsigned int msg=7, unsigned int
wParam=7013668, long lParam=0, long * aRetValue=0x0012eecc)  Line 4619 + 0x16	C++
 	firefox.exe!nsWindow::WindowProc(HWND__ * hWnd=0x0093054c, unsigned int msg=7,
unsigned int wParam=7013668, long lParam=43706740)  Line 1350 + 0x10	C++
 	user32.dll!77d48734() 	
 	user32.dll!77d48816() 	
 	user32.dll!77d4b4c0() 	
 	user32.dll!77d4b50c() 	
 	ntdll.dll!7c90eae3() 	
 	user32.dll!77d4da6c() 	
 	firefox.exe!nsWindow::SetFocus(int aRaise=1)  Line 2216	C++
 	firefox.exe!nsGlobalWindow::Focus()  Line 2617 + 0x10	C++
 	firefox.exe!nsWebShellWindow::HandleEvent(nsGUIEvent * aEvent=0x056858bc) 
Line 499	C++
 	firefox.exe!nsWindow::DispatchEvent(nsGUIEvent * event=0x0012f164,
nsEventStatus & aStatus=nsEventStatus_eIgnore)  Line 1173 + 0x3	C++
 	firefox.exe!nsWindow::DispatchWindowEvent(nsGUIEvent * event=0x00000000) 
Line 1194	C++
 	firefox.exe!nsWindow::DispatchFocus(unsigned int aEventType=105, int
isMozWindowTakingFocus=1)  Line 5996 + 0xe	C++
 	firefox.exe!nsWindow::ProcessMessage(unsigned int msg=7, unsigned int
wParam=0, long lParam=0, long * aRetValue=0x0012f454)  Line 4616	C++
 	firefox.exe!nsWindow::WindowProc(HWND__ * hWnd=0x006b0524, unsigned int msg=7,
unsigned int wParam=0, long lParam=42886468)  Line 1350 + 0x10	C++
 	user32.dll!77d48734() 	
 	user32.dll!77d48816() 	
 	user32.dll!77d4b4c0() 	
 	user32.dll!77d4b50c() 	
 	ntdll.dll!7c90eae3() 	
 	user32.dll!77d494be() 	
 	user32.dll!77d4bfe9() 	
 	user32.dll!77d4b3f9() 	
 	user32.dll!77d4b393() 	
 	firefox.exe!nsWindow::DefaultWindowProc(HWND__ * hWnd=0x006b0524, unsigned int
msg=6, unsigned int wParam=1, long lParam=0)  Line 1376	C++
 	user32.dll!77d48734() 	
 	user32.dll!77d48816() 	
 	user32.dll!77d4c63f() 	
 	user32.dll!77d4c665() 	
 	firefox.exe!nsWindow::WindowProc(HWND__ * hWnd=0x006b0524, unsigned int msg=6,
unsigned int wParam=1, long lParam=42886468)  Line 1357 + 0x15	C++
 	user32.dll!77d48734() 	
 	user32.dll!77d48816() 	
 	user32.dll!77d4b4c0() 	
 	user32.dll!77d4b50c() 	
 	ntdll.dll!7c90eae3() 	
 	user32.dll!77d493e9() 	
 	user32.dll!77d493a8() 	
 	user32.dll!77d49402() 	
 	firefox.exe!PeekKeyAndIMEMessage(tagMSG * msg=0x0012f988, HWND__ *
hwnd=0x00000000)  Line 91	C++
 	firefox.exe!nsAppShell::Run()  Line 128 + 0xa	C++
 	firefox.exe!nsAppStartup::Run()  Line 146	C++
 	firefox.exe!XRE_main(int argc=0, char * * argv=0x0368d26c, const nsXREAppData
* aAppData=0x0012d078)  Line 2214	C++
 	firefox.exe!main(int argc=1, char * * argv=0x010e8090)  Line 61 + 0x12	C++
 	firefox.exe!mainCRTStartup()  Line 398 + 0x11	C
 	kernel32.dll!7c816d4f() 	
 	kernel32.dll!7c8399f3()
I just hit this assertion, but with a different stack.  The assertion is one biesi added.  CC'ing him.
Attached file testcase (obsolete) —
I'm seeing this assertion with this testcase in current trunk debug build.
Component: History → RDF
Keywords: assertion, testcase
Product: Firefox → Core
QA Contact: history → rdf
I have no clue what the two bugs have to do with each other, and why this would be a RDF bug.

You're calling in to RDF implementations with bad values, and the assertions barf at you, rightly so. Fix the callers.

The original bug seems to be somewhere in js land, fire up a debugger and get a js stack. The testcase that Martijn did belongs into xul, to the rest of the templating engine. I'd be tempted to guess that that's different, as that is unlikely to involve a js caller.
Component: RDF → History
Product: Core → Firefox
QA Contact: rdf → history
Comment on attachment 289299 [details]
testcase

Ok, sorry for attaching this testcase here.
I've now file the assertion in the testcase as bug 404346.
Attachment #289299 - Attachment is obsolete: true
Keywords: testcase
I see the problem with mailer when I try to Compose a new message with current cvs HEAD build.

ASSERTION: URI is empty: '!aURI.IsEmpty()', file nsRDFService.cpp, line 940
Attached file stacktrace
Component: History → Bookmarks & History
QA Contact: history → bookmarks
Depends on: 509336
(In reply to comment #5)
> I see the problem with mailer when I try to Compose a new message with current
> cvs HEAD build.
> 
> ASSERTION: URI is empty: '!aURI.IsEmpty()', file nsRDFService.cpp, line 940

Could that one rather be bug 509336?
[6920] ###!!! ASSERTION: URI is empty: '!aURI.IsEmpty()', file /scratch/var/tmp/portage/www-client/seamonkey-2.49.2.0_p0/work/thunderbird-52.2.0/mozilla/rdf/base/nsRDFService.cpp, line 823



about:buildconfig
Build platform
target
x86_64-pc-linux-gnu
Build tools
Compiler 	Version 	Compiler flags
/usr/bin/x86_64-pc-linux-gnu-gcc -std=gnu99 	4.9.4 	-Wall -Wempty-body -Wignored-qualifiers -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -ggdb -pipe -maes -mpclmul -mpopcnt -mavx -march=native -mno-avx -fno-strict-aliasing -fno-math-errno -pthread -pipe
/usr/bin/x86_64-pc-linux-gnu-g++ -std=gnu++11 	4.9.4 	-Wall -Wc++11-compat -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -ggdb -pipe -maes -mpclmul -mpopcnt -mavx -march=native -mno-avx -fno-exceptions -fno-strict-aliasing -fno-rtti -fno-exceptions -fno-math-errno -pthread -pipe -g -O0 -fno-omit-frame-pointer
Configure options

--host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu --enable-application=suite --with-external-source-dir=/scratch/var/tmp/portage/www-client/seamonkey-2.49.2.0_p0/work/thunderbird-52.2.0 --enable-debug PKG_CONFIG=x86_64-pc-linux-gnu-pkg-config CC=x86_64-pc-linux-gnu-gcc CXX=x86_64-pc-linux-gnu-g++ HOST_CC=x86_64-pc-linux-gnu-gcc HOST_CXX=x86_64-pc-linux-gnu-g++ LD=x86_64-pc-linux-gnu-ld MOZ_JEMALLOC4=1 --enable-replace-malloc --enable-system-ffi --with-l10n-base=/scratch/var/tmp/portage/www-client/seamonkey-2.49.2.0_p0/work/l10n-sources --enable-default-toolkit=cairo-gtk2 --with-google-api-keyfile=/scratch/var/tmp/portage/www-client/seamonkey-2.49.2.0_p0/work/thunderbird-52.2.0/google-api-key MAKE=make XARGS=/usr/bin/xargs --enable-system-hunspell --enable-alsa --disable-crashreporter --enable-dbus --enable-extensions=default --disable-gconf --enable-gio --disable-gnomeui --disable-gold --disable-install-strip --enable-necko-wifi --enable-optimize=-O0 --enable-pie --disable-pulseaudio --enable-safe-browsing --enable-startup-notification --disable-strip --disable-system-cairo --enable-system-sqlite --disable-updater --libdir=/usr/lib64 --prefix=/usr --with-default-mozilla-five-home=/usr/lib64/seamonkey --with-intl-api --with-nspr-prefix=/usr --with-nss-prefix=/usr --with-system-bz2 --with-system-icu --with-system-jpeg --with-system-libvpx --with-system-nspr --with-system-nss --with-system-png --with-system-zlib --x-includes=/usr/include --x-libraries=/usr/lib64 --enable-calendar
Comment 0 says the assertion was caused by nsGlobalHistory.cpp, that is long gone, so I think we can close this now.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
Note: issues in Thunderbird should be filed in separate bugs, probably Thunderbird specific until determined where the actual cause is. This bug was originally a bug about browsing, not about email.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: