Closed Bug 239081 Opened 22 years ago Closed 22 years ago

Save Image As hangs the process

Categories

(SeaMonkey :: General, defect)

x86
Linux
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 237947

People

(Reporter: jtknick, Unassigned)

References

()

Details

(Keywords: hang)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7b) Gecko/20040316 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7b) Gecko/20040316 Attempting to save any image using the Save Image As popup menu causes the process to hang. No save as dialog box comes up. Reproducible: Always Steps to Reproduce: 1. Go to www.google.com 2. Right mouse click on the main Google graphic 3. Choose Save Image As from the popup menu. Actual Results: Afte selecting Save Image As, my cpu meter pegs (mozilla is doing a 'sit & spin'). Mozilla is hung and no longer accepts any input in any of its windows. Expected Results: Save Image As should have displayed a Save As dialog box. I attached the ddd debugger to the hung process and saw the following stack trace. As notede below, I continued and re-interrupted a couple of times. #0 0x404b6600 in _init () from /storage/views/knick/mozilla/libxpcom.so #1 0x404eb152 in NS_CopyUnicodeToNative(nsAString const&, nsACString&) () from /storage/views/knick/mozilla/libxpcom.so #2 0x404ef6bc in nsLocalFile::AppendRelativePath(nsAString const&) () from /storage/views/knick/mozilla/libxpcom.so #3 0x417d2e03 in NSGetModule () from /storage/views/knick/mozilla/components/libdocshell.so #4 0x417d41bc in NSGetModule () from /storage/views/knick/mozilla/components/libdocshell.so #5 0x417d45a9 in NSGetModule () from /storage/views/knick/mozilla/components/libdocshell.so #6 0x417ca3cc in NSGetModule () from /storage/views/knick/mozilla/components/libdocshell.so #7 0x4051a17f in XPTC_InvokeByIndex () from /storage/views/knick/mozilla/libxpcom.so #8 0x405da91a in NSGetModule () from /storage/views/knick/mozilla/components/libxpconnect.so #9 0x405e1a88 in NSGetModule () from /storage/views/knick/mozilla/components/libxpconnect.so #10 0x400513a7 in js_Invoke () from /storage/views/knick/mozilla/libmozjs.so #11 0x40059f9c in js_Interpret () from /storage/views/knick/mozilla/libmozjs.so #12 0x400514a3 in js_Invoke () from /storage/views/knick/mozilla/libmozjs.so #13 0x405d57da in NSGetModule () from /storage/views/knick/mozilla/components/libxpconnect.so #14 0x405d12a1 in NSGetModule () from /storage/views/knick/mozilla/components/libxpconnect.so #15 0x4051a307 in XPTC_InvokeByIndex () from /storage/views/knick/mozilla/libxpcom.so #16 0x406391ba in NSGetModule () from /storage/views/knick/mozilla/components/libnecko.so #17 0x40639875 in NSGetModule () from /storage/views/knick/mozilla/components/libnecko.so #18 0x406a5663 in NSGetModule () from /storage/views/knick/mozilla/components/libnecko.so #19 0x406ad66c in NSGetModule () from /storage/views/knick/mozilla/components/libnecko.so #20 0x4061e27f in NSGetModule () from /storage/views/knick/mozilla/components/libnecko.so #21 0x4061e215 in NSGetModule () from /storage/views/knick/mozilla/components/libnecko.so #22 0x404e7171 in nsInputStreamReadyEvent::EventHandler(PLEvent*) () from /storage/views/knick/mozilla/libxpcom.so #23 0x404fe2c7 in PL_HandleEvent () from /storage/views/knick/mozilla/libxpcom.so #24 0x404fe7c1 in PL_ProcessEventsBeforeID () from /storage/views/knick/mozilla/libxpcom.so #25 0x415dee86 in parent_class_set_focus () from /storage/views/knick/mozilla/components/libwidget_gtk.so #26 0x404cfea1 in nsVoidArray::EnumerateForwards(int (*)(void*, void*), void*) () from /storage/views/knick/mozilla/libxpcom.so #27 0x415deede in parent_class_set_focus () from /storage/views/knick/mozilla/components/libwidget_gtk.so #28 0x415e79db in parent_class_set_focus () from /storage/views/knick/mozilla/components/libwidget_gtk.so #29 0x40259f15 in gdk_wm_protocols_filter () from /usr/lib/libgdk-1.2.so.0 #30 0x4028d9ae in g_get_current_time () from /usr/lib/libglib-1.2.so.0 #31 0x4028de89 in g_get_current_time () from /usr/lib/libglib-1.2.so.0 #32 0x4028e124 in g_main_run () from /usr/lib/libglib-1.2.so.0 #33 0x4019927f in gtk_main () from /usr/lib/libgtk-1.2.so.0 #34 0x415deb46 in parent_class_set_focus () from /storage/views/knick/mozilla/components/libwidget_gtk.so #35 0x415be9f4 in fullsoft_copyright () from /storage/views/knick/mozilla/components/libnsappshell.so #36 0x08056c3b in getCountry(nsAString const&, nsAString&) () #37 0x08057760 in main () #38 0x42015574 in __libc_start_main () from /lib/tls/libc.so.6 Other partial stack traces after having continued and then re-interrupted the hung program. Looks like we're always downstream from AppendRelativePath: #0 0x4164d5a4 in gconv () from /usr/lib/gconv/UTF-16.so #1 0x4164ccff in gconv () from /usr/lib/gconv/UTF-16.so #2 0x420168ea in __gconv () from /lib/tls/libc.so.6 #3 0x42015efa in iconv () from /lib/tls/libc.so.6 #4 0x404eae9b in nsNativeCharsetConverter::UnicodeToNative(unsigned short const**, unsigned*, char**, unsigned*) () from /storage/views/knick/mozilla/libxpcom.so #5 0x404eb152 in NS_CopyUnicodeToNative(nsAString const&, nsACString&) () from /storage/views/knick/mozilla/libxpcom.so #6 0x404ef6bc in nsLocalFile::AppendRelativePath(nsAString const&) () from /storage/views/knick/mozilla/libxpcom.so #0 0x404eb178 in NS_CopyUnicodeToNative(nsAString const&, nsACString&) () from /storage/views/knick/mozilla/libxpcom.so #1 0x404ef6bc in nsLocalFile::AppendRelativePath(nsAString const&) () from #0 0x08060e40 in nsCSubstring::ReplacePrep(unsigned, unsigned, unsigned) () #1 0x0805aa4f in nsACString::Append(char const*, unsigned) () #2 0x404eb1a5 in NS_CopyUnicodeToNative(nsAString const&, nsACString&) () from /storage/views/knick/mozilla/libxpcom.so #3 0x404ef6bc in nsLocalFile::AppendRelativePath(nsAString const&) () from /storage/views/knick/mozilla/libxpcom.so
How long did you wait? It sometimes takes 10-20 for the Save Dialog to appear because of many entrys in download manager (downloads.rdf). If you delete the downloads.rdf file, does this still happen?
I waited over 1 minute on my 3GHz box. My downloads.rdf file had a size of 784307. Even after removing my downloads.rdf, the problem persisted.
*** This bug has been marked as a duplicate of 237947 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Keywords: hang
Resolution: --- → DUPLICATE
I have verified that the problem I encountered is indeed related to the .mailcap file as was bug 237947. If I removed all "image/" entries from my .mailcap file, I can perform the Save Image As operation successfully. Thank you for the very quick diagnosis.
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.