Closed Bug 282252 Opened 20 years ago Closed 19 years ago

Copy & paste of text causes hang

Categories

(MailNews Core :: Composition, defect)

defect
Not set
critical

Tracking

(Not tracked)

RESOLVED EXPIRED

People

(Reporter: benjamingslade+mozilla, Assigned: sspitzer)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a6) Gecko/20050111
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a6) Gecko/20050111

For the web page ref'd above, when I copy the paragraph titled "Apache network
server option, with WebDAV/DeltaV protocol" and try and paste it into either the
HTML Composer or the Email Compose screen, Mozilla hangs.  (note, the URL above
points to a web page which is a copy of http://subversion.tigris.org )

I can click on the red "X" thingy to exit, but when I do, Windows XP gives a
"program not responding" error and then kills Mozilla.

This is on Micrsoft Windows XP Professional (5.1.2600 Service Pack 2 Build 2600)

Reproducible: Always

Steps to Reproduce:
1.Go to the web page referenced above
2.Copy the paragraph titled, "Apache network server option, with WebDAV/DeltaV
protocol"
3.Paste the HTML into either the HTML Composer or the Email Compose screen

Actual Results:  
Mozilla hangs

Expected Results:  
HTML formatted text should be pasted normally

I've manually enabled Talkback on my PC, but it doesn't seem to run.  
Microsoft's crash reporter *does* run.
(In reply to comment #0)
> User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a6)
Gecko/20050111
> Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a6)
Gecko/20050111

> I've manually enabled Talkback on my PC, but it doesn't seem to run.  

How did you enable it manually?
Don´t copy talkback related files from one copy of Mozilla to another,
it will trigger, but sent garbage as report to the talkback server.

Talkback isn´t packed with tinderbox builds, sometimes also missing from
nightlies, or not all files needed included.
Talkback.exe is in the \Mozilla\Components\ directory.

Currently talkback from zip builds isn´t working right from the start.
You must delete compreg.dat once. When it is rebuild automatically at next start
of Mozilla, talkback gets registered and working from then on.
Well, the hang problem *does* recreate for me on my Mac OS X (10.3.8) with Mozilla 1.8a6.   I went 
ahead and  killed the hung Moz process using "kill -6" which generated a Talkback incident, 
id=TB3716204X (for pasting into HTML Composer) and id=TB3716504E (for pasting into the Email 
Compose screen).   

Note, this bug is listed under "MailNews: Composition", but the problem also occurs when pasting into 
the HTML composer.

FYI, my Moz rev info is: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8a6) Gecko/
20050111.

Since this hang now recreates on multiple platforms, I've changed Hardware and OS for this bug to "All"

Re: getting Talkback to work on Windows XP.
Previously, I found the talkback executable on XP (which was already there), ran that, and checked the 
"enable talkback" option, but it still didn't work.   In the near future, I will try your (Schwab's) new 
instructions for removing compreg.dat (since I did get my Windows XP Moz from the .zip version of the 
release)
OS: Windows XP → All
Hardware: PC → All
related to bug 281828? ("Paste of HTML containing certain styles does nothing")
TB3716204X:
http://talkback-public.mozilla.org/talkback/fastfind.jsp?search=2&type=iid&id=3716204#id
...
Trigger Reason	SIGABRT: Abort: (signal 6)
Source File, Line No.
/builds/release/trunk/mozilla/content/base/src/nsGenericElement.cpp, line 3129
Stack Trace 	
nsGenericElement::QueryInterface() 
[/builds/release/trunk/mozilla/content/base/src/nsGenericElement.cpp, line 3129]


TB3716504E:

http://talkback-public.mozilla.org/talkback/fastfind.jsp?search=2&type=iid&id=TB3716504E

Stack Signature	 nsHTMLLIElement::AddRef() da6ea4d7
Product ID	MozillaTrunk
Build ID	2005011116
Trigger Time	2005-02-15 10:53:36.0
Platform	MacOSX
Operating System	Darwin 7.8.0
Module	libgklayout.dylib + (0020da00)
URL visited	http://www.benslade.com/misc/subversion.tigris.org.html
User Comments	
Since Last Crash	636 sec
Total Uptime	448325 sec
Trigger Reason	SIGABRT: Abort: (signal 6)
Source File, Line No.
/builds/release/trunk/mozilla/content/html/content/src/nsHTMLLIElement.cpp, line 93
Stack Trace 	
nsHTMLLIElement::AddRef() 
[/builds/release/trunk/mozilla/content/html/content/src/nsHTMLLIElement.cpp,
line 93]
nsGenericHTMLElement::DOMQueryInterface() 
[/builds/release/trunk/mozilla/content/html/content/src/nsGenericHTMLElement.cpp,
line 267]
nsQueryInterface::operator() 
[/builds/release/trunk/mozilla/xpcom/build/nsCOMPtr.cpp, line 47]
nsCOMPtr_base::assign_from_qi() 
[/builds/release/trunk/mozilla/xpcom/build/nsCOMPtr.cpp, line 96]
nsEditorUtils::IsDescendantOf() 
[/builds/release/trunk/mozilla/editor/libeditor/base/nsEditorUtils.cpp, line 202]
nsHTMLEditor::ReplaceOrphanedStructure() 
[/builds/release/trunk/mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp,
line 842]
nsHTMLEditor::InsertHTMLWithContext() 
[/builds/release/trunk/mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp,
line 490]
nsHTMLEditor::InsertFromTransferable() 
[/builds/release/trunk/mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp,
line 1314]
nsHTMLEditor::Paste() 
[/builds/release/trunk/mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp,
line 842]
nsPasteCommand::DoCommand() 
[/builds/release/trunk/mozilla/editor/libeditor/base/nsEditorCommands.cpp, line 848]
nsControllerCommandTable::DoCommand() 
[/builds/release/trunk/mozilla/embedding/components/commandhandler/src/nsControllerCommandTable.cpp,
line 848]
nsXBLPrototypeHandler::ExecuteHandler() 
[/builds/release/trunk/mozilla/content/xbl/src/nsXBLPrototypeHandler.cpp, line 59]
nsXBLWindowHandler::WalkHandlersInternal() 
[/builds/release/trunk/mozilla/content/xbl/src/nsXBLWindowHandler.cpp, line 305]
nsXBLWindowKeyHandler::WalkHandlers() 
[/builds/release/trunk/mozilla/content/xbl/src/nsXBLWindowKeyHandler.cpp, line 197]
DispatchToInterface(nsIDOMEvent*, nsIDOMEventListener*, unsigned
(nsIDOMEventListener::*)() 
[/builds/release/trunk/mozilla/content/events/src/nsEventListenerManager.cpp,
line 136]
nsEventListenerManager::HandleEvent() 
[/builds/release/trunk/mozilla/content/events/src/nsEventListenerManager.cpp,
line 1607]
nsWindowRoot::HandleChromeEvent() 
[/builds/release/trunk/mozilla/dom/src/base/nsWindowRoot.cpp, line 227]
nsGlobalWindow::HandleDOMEvent() 
[/builds/release/trunk/mozilla/dom/src/base/nsGlobalWindow.cpp, line 848]
nsXULDocument::HandleDOMEvent() 
[/builds/release/trunk/mozilla/content/xul/document/src/nsXULDocument.cpp, line
1248]
nsXULElement::HandleDOMEvent() 
[/builds/release/trunk/mozilla/content/xul/content/src/nsXULElement.cpp, line 2841]
nsXULElement::HandleDOMEvent() 
[/builds/release/trunk/mozilla/content/xul/content/src/nsXULElement.cpp, line 2841]
nsXULElement::HandleDOMEvent() 
[/builds/release/trunk/mozilla/content/xul/content/src/nsXULElement.cpp, line 2841]
nsXULElement::HandleChromeEvent() 
[/builds/release/trunk/mozilla/content/xul/content/src/nsXULElement.cpp, line 3947]
nsGlobalWindow::HandleDOMEvent() 
[/builds/release/trunk/mozilla/dom/src/base/nsGlobalWindow.cpp, line 848]
nsDocument::HandleDOMEvent() 
[/builds/release/trunk/mozilla/content/base/src/nsDocument.cpp, line 3837]
nsGenericElement::HandleDOMEvent() 
[/builds/release/trunk/mozilla/content/base/src/nsGenericElement.cpp, line 2019]
PresShell::HandleEventInternal() 
[/builds/release/trunk/mozilla/layout/base/nsPresShell.cpp, line 848]
PresShell::HandleEvent() 
[/builds/release/trunk/mozilla/layout/base/nsPresShell.cpp, line 5772]
nsViewManager::HandleEvent() 
[/builds/release/trunk/mozilla/view/src/nsViewManager.cpp, line 2360]
nsViewManager::DispatchEvent() 
[/builds/release/trunk/mozilla/view/src/nsViewManager.cpp, line 2133]
HandleEvent()  [/builds/release/trunk/mozilla/view/src/nsView.cpp, line 175]
nsWindow::DispatchEvent() 
[/builds/release/trunk/mozilla/widget/src/mac/nsWindow.cpp, line 2021]
nsWindow::DispatchWindowEvent() 
[/builds/release/trunk/mozilla/widget/src/mac/nsWindow.cpp, line 2037]
nsMacEventHandler::HandleUKeyEvent() 
[/builds/release/trunk/mozilla/widget/src/mac/nsMacEventHandler.cpp, line 1276]
nsMacTSMMessagePump::UnicodeNotFromInputMethodHandler() 
[/builds/release/trunk/mozilla/widget/src/mac/nsMacTSMMessagePump.cpp, line 570]
AE.287.0.0 + 0x4a10 (0x92ccea10)
AE.287.0.0 + 0xbec4 (0x92cd5ec4)
AE.287.0.0 + 0x8108 (0x92cd2108)
AE.287.0.0 + 0xba74 (0x92cd5a74)
HIToolbox.145.0.0 + 0x11d8a8 (0x928ed8a8)
HIToolbox.145.0.0 + 0x786b0 (0x928486b0)
HIToolbox.145.0.0 + 0x12c78 (0x927e2c78)
HIToolbox.145.0.0 + 0x205c (0x927d205c)
HIToolbox.145.0.0 + 0x2214 (0x927d2214)
HIToolbox.145.0.0 + 0x146bc (0x927e46bc)
HIToolbox.145.0.0 + 0x80ed0 (0x92850ed0)
HIToolbox.145.0.0 + 0x46de8 (0x92816de8)
HIToolbox.145.0.0 + 0x50f88 (0x92820f88)
HIToolbox.145.0.0 + 0x80dd0 (0x92850dd0)
HIToolbox.145.0.0 + 0x322ac (0x928022ac)
HIToolbox.145.0.0 + 0x63af4 (0x92833af4)
HIToolbox.145.0.0 + 0x24c88 (0x927f4c88)
HIToolbox.145.0.0 + 0x1fa0 (0x927d1fa0)
HIToolbox.145.0.0 + 0x2214 (0x927d2214)
HIToolbox.145.0.0 + 0x6694 (0x927d6694)
HIToolbox.145.0.0 + 0x3b054 (0x9280b054)
HIToolbox.145.0.0 + 0x12c6c (0x927e2c6c)
HIToolbox.145.0.0 + 0x205c (0x927d205c)
HIToolbox.145.0.0 + 0x2214 (0x927d2214)
HIToolbox.145.0.0 + 0x146bc (0x927e46bc)
HIToolbox.145.0.0 + 0x185d8 (0x927e85d8)
HIToolbox.145.0.0 + 0x28718 (0x927f8718)
HIToolbox.145.0.0 + 0x8d88 (0x927d8d88)
HIToolbox.145.0.0 + 0x9064 (0x927d9064)
HIToolbox.145.0.0 + 0x1c9f0 (0x927ec9f0)
HIToolbox.145.0.0 + 0x2d708 (0x927fd708)
nsMacMessagePump::GetEvent() 
[/builds/release/trunk/mozilla/widget/src/mac/nsMacMessagePump.cpp, line 384]
nsMacMessagePump::DoMessagePump() 
[/builds/release/trunk/mozilla/widget/src/mac/nsMacMessagePump.cpp, line 289]
nsAppShell::Run()  [/builds/release/trunk/mozilla/widget/src/mac/nsAppShell.cpp,
line 114]
mozilla-bin + 0xb088 (0x0000b088)
mozilla-bin + 0xb5dc (0x0000b5dc)
mozilla-bin + 0x8874 (0x00008874)
mozilla-bin + 0x86f4 (0x000086f4)
I've tried doing everything I could to enable Talkback on my Windows XP box 
(after each step below, I reran the copy/paste/hang/abort test):

* I removed the compreg.dat as mentioned in comment #2
* I disabled Windows XP crash error reporting
* I rebooted
* I reinstalled Mozilla 1.8a6 from the "installer" (not the .zip file)
* I rebooted
* I removed compreg.dat again

Maybe the problem with Talkback is that, strictly speaking, Moz didn't crash.  
Instead it was killed by the Windows XP operating system for being "non-
responsive" (after I clicked on the "X" to kill the Moz Email Composer window 
after it was hung).  But Windows XP's crash error reporting does run in this 
situation (when it's enabled)

In anycase, I will continue researching how to get Talkback to run in this 
copy/paste/hang/abort situation.
Ok, it turns out that Talkback *is* enabled on my Windows XP box.   A misc 
crash in Mozilla caused it to run (id=TB3764777K).  But apparently, the 
problem with this bug just causes Moz to go into a 100% CPU endless loop, and 
when Windows aborts Moz, this isn't considered a crash by Talkback.

I need to figure out how to force Moz to crash on Windows XP when it's in a 
hung (CPU loop) state.

(In reply to comment #6)
> Ok, it turns out that Talkback *is* enabled on my Windows XP box.   A misc 
> crash in Mozilla caused it to run (id=TB3764777K).  

http://talkback-public.mozilla.org/talkback/fastfind.jsp?search=2&type=iid&id=TB3764777K

maybe it is a dupe of Bug 279858 Trunk FFTrunk crash [@ UnmarkedGCThingFlags]
fixed today.

> But apparently, the 
> problem with this bug just causes Moz to go into a 100% CPU endless loop, and 
> when Windows aborts Moz, this isn't considered a crash by Talkback.
> 
> I need to figure out how to force Moz to crash on Windows XP when it's in a 
> hung (CPU loop) state.

inofficial: start talkback.exe, iirc press ctrl+N. 
I don´t know if that is a useful option besides you want to look yourself at
your forced crash at random location, so I won´t recommend it.
There is a bug about killing that 'feature'.


 
I think I have a crash (after a hang) resulting from drag and drop (cut & 
paste) operation on my Windows XP box (while composing an email).  I'm not 
sure if it's the same problem as the copy & paste hang in this bug.

See the traceback info at:
http://talkback-public.mozilla.org/talkback/fastfind.jsp?
search=2&type=iid&id=TB3892725X

nsHTMLEditor::InsertHTMLWithContext  
[c:/builds/tinderbox/MozillaTrunk/WINNT_5.0_Clobber/mozilla/editor/libeditor/ht
ml/nsHTMLDataTransfer.cpp, line 443]
nsHTMLEditor::InsertFromTransferable  
[c:/builds/tinderbox/MozillaTrunk/WINNT_5.0_Clobber/mozilla/editor/libeditor/ht
ml/nsHTMLDataTransfer.cpp, line 1319]
nsHTMLEditor::InsertFromDrop  
[c:/builds/tinderbox/MozillaTrunk/WINNT_5.0_Clobber/mozilla/editor/libeditor/ht
ml/nsHTMLDataTransfer.cpp, line 1637]
nsTextEditorDragListener::DragDrop  
[c:/builds/tinderbox/MozillaTrunk/WINNT_5.0_Clobber/mozilla/editor/libeditor/te
xt/nsEditorEventListeners.cpp, line 658]
DispatchToInterface  
[c:/builds/tinderbox/MozillaTrunk/WINNT_5.0_Clobber/mozilla/content/events/src/
nsEventListenerManager.cpp, line 136]
nsEventListenerManager::HandleEvent  
[c:/builds/tinderbox/MozillaTrunk/WINNT_5.0_Clobber/mozilla/content/events/src/
nsEventListenerManager.cpp, line 1604]
nsDocument::HandleDOMEvent  
[c:/builds/tinderbox/MozillaTrunk/WINNT_5.0_Clobber/mozilla/content/base/src/ns
Document.cpp, line 3827]
nsGenericElement::HandleDOMEvent  
[c:/builds/tinderbox/MozillaTrunk/WINNT_5.0_Clobber/mozilla/content/base/src/ns
GenericElement.cpp, line 2021]
nsGenericElement::HandleDOMEvent  
[c:/builds/tinderbox/MozillaTrunk/WINNT_5.0_Clobber/mozilla/content/base/src/ns
GenericElement.cpp, line 2013]
PresShell::HandleEventInternal  
[c:/builds/tinderbox/MozillaTrunk/WINNT_5.0_Clobber/mozilla/layout/base/nsPresS
hell.cpp, line 5917]
PresShell::HandleEvent  
[c:/builds/tinderbox/MozillaTrunk/WINNT_5.0_Clobber/mozilla/layout/base/nsPresS
hell.cpp, line 5773]
...snip...

In this case, Moz hung, I clicked on the "x" at the top right of the window, 
Windows XP gave me the "End Now" prompt which I clicked.
This is an automated message, with ID "auto-resolve01".

This bug has had no comments for a long time. Statistically, we have found that
bug reports that have not been confirmed by a second user after three months are
highly unlikely to be the source of a fix to the code.

While your input is very important to us, our resources are limited and so we
are asking for your help in focussing our efforts. If you can still reproduce
this problem in the latest version of the product (see below for how to obtain a
copy) or, for feature requests, if it's not present in the latest version and
you still believe we should implement it, please visit the URL of this bug
(given at the top of this mail) and add a comment to that effect, giving more
reproduction information if you have it.

If it is not a problem any longer, you need take no action. If this bug is not
changed in any way in the next two weeks, it will be automatically resolved.
Thank you for your help in this matter.

The latest beta releases can be obtained from:
Firefox:     http://www.mozilla.org/projects/firefox/
Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html
Seamonkey:   http://www.mozilla.org/projects/seamonkey/
This bug has been automatically resolved after a period of inactivity (see above
comment). If anyone thinks this is incorrect, they should feel free to reopen it.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → EXPIRED
*** Bug 227550 has been marked as a duplicate of this bug. ***
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.