Closed
Bug 1261686
Opened 8 years ago
Closed 4 years ago
"JavaScript error: resource:///modules/activity/alertHook.js, line 48: NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIMsgMailNewsUrl.server]" in mozmill\composition\test-attachment-reminder.js
Categories
(Thunderbird :: Testing Infrastructure, defect)
Thunderbird
Testing Infrastructure
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: aceman, Assigned: aceman)
References
Details
JavaScript error: resource:///modules/activity/alertHook.js, line 48: NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIMsgMailNewsUrl.server] The error appears in the test mozmill\composition\test-attachment-reminder.js on all platforms. Can be seen in test logs, e.g. at: http://archive.mozilla.org/pub/thunderbird/tinderbox-builds/comm-central-win32/1459673297/comm-central_xp-ix_test-mozmill-bm112-tests1-windows-build6.txt.gz Could be that there is no SMTP server defined when running tests so getting the nsIMsgMailNewsUrl.server may fail. On the other hand, it may be possible to have no SMTP also in a real user profile. 02:53:00 INFO - TEST-START | C:\slave\test\build\tests\mozmill\composition\test-attachment-reminder.js | setupModule 02:53:00 INFO - TEST-PASS | C:\slave\test\build\tests\mozmill\composition\test-attachment-reminder.js | test-attachment-reminder.js::setupModule 02:53:00 INFO - TEST-START | C:\slave\test\build\tests\mozmill\composition\test-attachment-reminder.js | test_attachment_reminder_appears_properly 02:53:00 INFO - TEST-PASS | C:\slave\test\build\tests\mozmill\composition\test-attachment-reminder.js | test-attachment-reminder.js::test_attachment_reminder_appears_properly 02:53:00 INFO - TEST-START | C:\slave\test\build\tests\mozmill\composition\test-attachment-reminder.js | test_attachment_reminder_dismissal 02:53:00 INFO - JavaScript error: resource:///modules/activity/alertHook.js, line 48: NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIMsgMailNewsUrl.server] 02:53:19 INFO - TEST-PASS | C:\slave\test\build\tests\mozmill\composition\test-attachment-reminder.js | test-attachment-reminder.js::test_attachment_reminder_dismissal 02:53:19 INFO - TEST-START | C:\slave\test\build\tests\mozmill\composition\test-attachment-reminder.js | test_attachment_reminder_with_attachment 02:53:19 INFO - TEST-PASS | C:\slave\test\build\tests\mozmill\composition\test-attachment-reminder.js | test-attachment-reminder.js::test_attachment_reminder_with_attachment 02:53:19 INFO - TEST-START | C:\slave\test\build\tests\mozmill\composition\test-attachment-reminder.js | test_attachment_reminder_aggressive_pref 02:53:19 INFO - JavaScript error: resource:///modules/activity/alertHook.js, line 48: NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [rnsIMsgMailNewsUrl.serve] 02:53:25 INFO - TEST-PASS | C:\slave\test\build\tests\mozmill\composition\test-attachment-reminder.js | test-attachment-reminder.js::test_attachment_reminder_aggressive_pref 02:53:25 INFO - TEST-START | C:\slave\test\build\tests\mozmill\composition\test-attachment-reminder.js | test_no_send_now_sends 02:53:25 INFO - JavaScript error: resource:///modules/activity/alertHook.js, line 48: NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIMsgMailNewsUrl.server] 02:53:36 INFO - TEST-PASS | C:\slave\test\build\tests\mozmill\composition\test-attachment-reminder.js | test-attachment-reminder.js::test_no_send_now_sends 02:53:36 INFO - TEST-START | C:\slave\test\build\tests\mozmill\composition\test-attachment-reminder.js | test_manual_attachment_reminder 02:53:36 INFO - JavaScript error: resource:///modules/activity/alertHook.js, line 48: NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIMsgMailNewsUrl.server] 02:54:06 INFO - TEST-PASS | C:\slave\test\build\tests\mozmill\composition\test-attachment-reminder.js | test-attachment-reminder.js::test_manual_attachment_reminder 02:54:06 INFO - TEST-START | C:\slave\test\build\tests\mozmill\composition\test-attachment-reminder.js | test_manual_automatic_attachment_reminder_interaction 02:54:06 INFO - TEST-PASS | C:\slave\test\build\tests\mozmill\composition\test-attachment-reminder.js | test-attachment-reminder.js::test_manual_automatic_attachment_reminder_interaction 02:54:06 INFO - TEST-START | C:\slave\test\build\tests\mozmill\composition\test-attachment-reminder.js | test_attachment_vs_filelink_reminder 02:54:06 INFO - JavaScript error: resource:///modules/activity/alertHook.js, line 48: NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIMsgMailNewsUrl.server] 02:54:28 INFO - TEST-PASS | C:\slave\test\build\tests\mozmill\composition\test-attachment-reminder.js | test-attachment-reminder.js::test_attachment_vs_filelink_reminder 02:54:28 INFO - TEST-START | C:\slave\test\build\tests\mozmill\composition\test-attachment-reminder.js | test_attachment_reminder_in_subject 02:54:28 INFO - TEST-PASS | C:\slave\test\build\tests\mozmill\composition\test-attachment-reminder.js | test-attachment-reminder.js::test_attachment_reminder_in_subject 02:54:28 INFO - TEST-START | C:\slave\test\build\tests\mozmill\composition\test-attachment-reminder.js | test_attachment_reminder_in_subject_and_body 02:54:28 INFO - TEST-PASS | C:\slave\test\build\tests\mozmill\composition\test-attachment-reminder.js | test-attachment-reminder.js::test_attachment_reminder_in_subject_and_body 02:54:28 INFO - TEST-START | C:\slave\test\build\tests\mozmill\composition\test-attachment-reminder.js | test_disabled_attachment_reminder 02:54:28 INFO - JavaScript error: resource:///modules/activity/alertHook.js, line 48: NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIMsgMailNewsUrl.server] 02:54:44 INFO - TEST-PASS | C:\slave\test\build\tests\mozmill\composition\test-attachment-reminder.js | test-attachment-reminder.js::test_disabled_attachment_reminder 02:54:44 INFO - TEST-START | C:\slave\test\build\tests\mozmill\composition\test-attachment-reminder.js | test_reminder_in_draft 02:54:44 INFO - TEST-PASS | C:\slave\test\build\tests\mozmill\composition\test-attachment-reminder.js | test-attachment-reminder.js::test_reminder_in_draft 02:54:44 INFO - TEST-START | C:\slave\test\build\tests\mozmill\composition\test-attachment-reminder.js | teardownModule 02:54:44 INFO - TEST-PASS | C:\slave\test\build\tests\mozmill\composition\test-attachment-reminder.js | test-attachment-reminder.js::teardownModule
Comment 1•7 years ago
|
||
Similar real user problem in bug 1381805.
Yes, it seems this error happens if a SMTP sending fails. This also happens in the test, we abort the sending due to the missing attachment. Before the alertHook.js error appears, there are these messages in the console (stack decoded by myself): [22102] ###!!! ASSERTION: not-null m_mime_delivery_state: 'm_mime_delivery_state != nullptr', file /var/SSD/TB-hg/mailnews/compose/src/nsMsgAttachmentHandler.cpp, line 1074 #01: nsMsgComposeAndSend::Abort() (/var/SSD/TB-hg/mailnews/compose/src/nsMsgSend.cpp:4888) #02: nsMsgComposeAndSend::Fail(nsresult, char16_t const*, nsresult*) (/var/SSD/TB-hg/mailnews/compose/src/nsMsgSend.cpp:3512) #03: nsMsgComposeAndSend::DoDeliveryExitProcessing(nsIURI*, nsresult, bool) (/var/SSD/TB-hg/mailnews/compose/src/nsMsgSend.cpp:3566) #04: nsMsgComposeAndSend::DeliverAsMailExit(nsIURI*, nsresult) (/var/SSD/TB-hg/mailnews/compose/src/nsMsgSend.cpp:3611) #05: nsMsgComposeAndSend::SendDeliveryCallback(nsIURI*, bool, nsresult) (/var/SSD/TB-hg/mailnews/compose/src/nsMsgSend.cpp:3204) #06: MsgDeliveryListener::OnStopRunningUrl(nsIURI*, nsresult) (/var/SSD/TB-hg/mailnews/compose/src/nsMsgSend.cpp:256) #07: nsMsgMailNewsUrl::SetUrlState(bool, nsresult) (/var/SSD/TB-hg/tbird-bin/dist/include/nsCOMPtr.h:402) #08: nsMsgProtocol::OnStopRequest(nsIRequest*, nsISupports*, nsresult) (/var/SSD/TB-hg/tbird-bin/dist/include/nsCOMPtr.h:758) #09: nsSmtpProtocol::OnStopRequest(nsIRequest*, nsISupports*, nsresult) (/var/SSD/TB-hg/mailnews/compose/src/nsSmtpProtocol.cpp:550) #10: nsInputStreamPump::OnStateStop() (/var/SSD/TB-hg/tbird-bin/dist/include/mozilla/RecursiveMutex.h:109) #11: nsInputStreamPump::OnInputStreamReady(nsIAsyncInputStream*) (/var/SSD/TB-hg/mozilla/netwerk/base/nsInputStreamPump.cpp:447) #12: nsInputStreamReadyEvent::Run() (/var/SSD/TB-hg/tbird-bin/dist/include/nsCOMPtr.h:374) #13: nsThread::ProcessNextEvent(bool, bool*) (/var/SSD/TB-hg/tbird-bin/dist/include/mozilla/ScopeExit.h:111) #14: NS_InvokeByIndex (/var/SSD/TB-hg/mozilla/xpcom/reflect/xptcall/md/unix/xptcinvoke_asm_x86_64_unix.S:110) #15: XPCWrappedNative::CallMethod(XPCCallContext&, XPCWrappedNative::CallMode) (/var/SSD/TB-hg/mozilla/js/xpconnect/src/XPCWrappedNative.cpp:1315) #16: XPC_WN_CallMethod(JSContext*, unsigned int, JS::Value*) (/var/SSD/TB-hg/mozilla/js/xpconnect/src/XPCWrappedNativeJSOps.cpp:967) [22102] WARNING: NS_ENSURE_TRUE(msgDocShellItem) failed: file /var/SSD/TB-hg/mailnews/base/src/nsMsgWindow.cpp, line 90 .[22102] ###!!! ASSERTION: not-null m_mime_delivery_state: 'm_mime_delivery_state != nullptr', file /var/SSD/TB-hg/mailnews/compose/src/nsMsgAttachmentHandler.cpp, line 1074 #01: nsMsgComposeAndSend::Abort() (/var/SSD/TB-hg/mailnews/compose/src/nsMsgSend.cpp:4888) #02: nsMsgComposeSendListener::OnStateChange(nsIWebProgress*, nsIRequest*, unsigned int, nsresult) (/var/SSD/TB-hg/tbird-bin/dist/include/nsCOMPtr.h:402) #03: nsMsgProgress::OnStateChange(nsIWebProgress*, nsIRequest*, unsigned int, nsresult) (/var/SSD/TB-hg/mailnews/base/src/nsMsgProgress.cpp:149) #04: nsMsgComposeSendListener::OnStopSending(char const*, nsresult, char16_t const*, nsIFile*) (/var/SSD/TB-hg/mailnews/compose/src/nsMsgCompose.cpp:3755) #05: nsMsgComposeAndSend::NotifyListenerOnStopSending(char const*, nsresult, char16_t const*, nsIFile*) (/var/SSD/TB-hg/mailnews/compose/src/nsMsgSend.cpp:3748) #06: nsMsgComposeAndSend::DoDeliveryExitProcessing(nsIURI*, nsresult, bool) (/var/SSD/TB-hg/tbird-bin/dist/include/nsTSubstring.h:347) #07: nsMsgComposeAndSend::DeliverAsMailExit(nsIURI*, nsresult) (/var/SSD/TB-hg/mailnews/compose/src/nsMsgSend.cpp:3611) #08: nsMsgComposeAndSend::SendDeliveryCallback(nsIURI*, bool, nsresult) (/var/SSD/TB-hg/mailnews/compose/src/nsMsgSend.cpp:3204) #09: MsgDeliveryListener::OnStopRunningUrl(nsIURI*, nsresult) (/var/SSD/TB-hg/mailnews/compose/src/nsMsgSend.cpp:256) #10: nsMsgMailNewsUrl::SetUrlState(bool, nsresult) (/var/SSD/TB-hg/tbird-bin/dist/include/nsCOMPtr.h:402) #11: nsMsgProtocol::OnStopRequest(nsIRequest*, nsISupports*, nsresult) (/var/SSD/TB-hg/tbird-bin/dist/include/nsCOMPtr.h:758) #12: nsSmtpProtocol::OnStopRequest(nsIRequest*, nsISupports*, nsresult) (/var/SSD/TB-hg/mailnews/compose/src/nsSmtpProtocol.cpp:550) #13: nsInputStreamPump::OnStateStop() (/var/SSD/TB-hg/tbird-bin/dist/include/mozilla/RecursiveMutex.h:109) #14: nsInputStreamPump::OnInputStreamReady(nsIAsyncInputStream*) (/var/SSD/TB-hg/mozilla/netwerk/base/nsInputStreamPump.cpp:447) #15: nsInputStreamReadyEvent::Run() (/var/SSD/TB-hg/tbird-bin/dist/include/nsCOMPtr.h:374) #16: nsThread::ProcessNextEvent(bool, bool*) (/var/SSD/TB-hg/tbird-bin/dist/include/mozilla/ScopeExit.h:111) #17: NS_InvokeByIndex (/var/SSD/TB-hg/mozilla/xpcom/reflect/xptcall/md/unix/xptcinvoke_asm_x86_64_unix.S:110) #18: XPCWrappedNative::CallMethod(XPCCallContext&, XPCWrappedNative::CallMode) (/var/SSD/TB-hg/mozilla/js/xpconnect/src/XPCWrappedNative.cpp:1315) #19: XPC_WN_CallMethod(JSContext*, unsigned int, JS::Value*) (/var/SSD/TB-hg/mozilla/js/xpconnect/src/XPCWrappedNativeJSOps.cpp:967) [22102] WARNING: NS_ENSURE_SUCCESS(rv, nullptr) failed with result 0x8000FFFF: file /var/SSD/TB-hg/mailnews/base/util/nsMsgProtocol.cpp, line 1545 JavaScript error: resource:///modules/activity/alertHook.js, line 48: NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECT ED) [nsIMsgMailNewsUrl.server] The failing code is: if (aUrl && aUrl.server && aUrl.server.prettyName) { I have determined 'aUrl' does contain a nsIMsgMailNewsUrl object, but for some reason fetching the .server fails (apparently inside nsMsgProtocol.cpp::FormatStringWithHostNameByName().
Comment 3•4 years ago
|
||
mozmill is gone
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•