(Msg. 1) Posted: Thu Jan 10, 2008 7:40 am
Post subject: Conditional hyphens can cause Word 2007 SP1 Find & Replace to hang Add to elertz Archived from groups: microsoft>public>word>application>errors (more info?)
I have been dealing with an interesting problem one of my users brought to me
which I believe has exposed a bug that has appeared in Word 2007 with SP1.
SUMMARY:
Documents containing conditional hyphens can cause Word to hang and consume
100% CPU when using the Find or Find & Replace command.
VERSIONS FOUND AFFECTED:
Word 2007 SP1
Specific build tested Microsoft Office Word 2007 (12.0.6212.1000) SP1 MSO
(12.0.6213.1000) running on Vista Enterprise, Vista Enterprise SP1 RC v.688,
and XP Professional SP2
VERSIONS NOT AFFECTED:
Word 2003 (SP1 and SP2)
Word 2007 (No SP)
VERSIONS UNTESTED:
All other versions.
REPRODUCIBLE: 100% with identified versions.
STEPS TO REPRODUCE:
1. Open the identified affected version of Word.
2. (Optional for readability, does not affect test case) On the Home tab, in
the Paragraph group, click Show/Hide to show formatting marks.
3. Type the word "Test"
4. Press the Enter key
5. Press the Tab key
6. Press the Enter key
7. Press Ctrl+- (Control + Hyphen) twice.
8. Press the Enter key
9. On the Home tab, in the Editing group, click Replace.
10. For 'Find what', enter "Test", and for 'Replace with', enter "Testing"
11. Click Replace All.
12. Observe that Word stops responding. Task Manager can be used to verify
that Word is consuming as much CPU as possible (up to 100%)
BACKGROUND:
The user had a number of documents that she frequently re-used by opening an
existing document, executing a Find & Replace > Replace All on a name in the
document, and saving the modified file as a new document. We recently
released Office 2007 SP1 through our WSUS server, and since then, the user
had found that her normal Find & Replace method was causing Word to hang and
consume 100% CPU, until Word was forcibly terminated using Task Manager.
After some investigation, I found that this behaviour can be reproduced when
you have more than 1 consecutive conditional hyphen in the document at any
point AFTER some other non-printing character (tested with tab and page
break), and the Find function is used to the point where it passes the
conditional hyphens. So, if Find All or Replace All is used, it will fail
immediately, or if the single Find or Replace commands are used, it will fail
as soon as it tries to search beyond the conditional hyphens.
In this case, the conditional hyphens had been entered accidentally,
possibly years ago given the amount of time the user has been producing these
documents. Removing them corrected her problem.
So far I have found this behaviour is only exhibited in Word 2007 SP1. I
can't say for certain that I've narrowed it down completely; other
non-printing characters may trigger this other than tab and page break,
possibly other characters than conditional hyphens will trigger it too, but
the above test case works for me every time.
I'd appreciate any input anyone can give!
----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.
(Msg. 2) Posted: Tue Jan 15, 2008 6:43 am
Post subject: RE: Conditional hyphens can cause Word 2007 SP1 Find & Replace to hang Add to elertz [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Jay, we're having simular problems with find & Replace. Our problems are
happening when we try to find a string (like ~HE) that is on the end of a
paragraph; so we look for ~HE^p
When we do this, it cases hang Word, just like your problem. This happens
mostly when we do it in a macro (Selection.Find.Execute FindText:="~HE^p"),
but sometimes it hangs even when doing this manually.
Hoping that the Powers that be fix this !
"Jay Schlackman" wrote:
> I have been dealing with an interesting problem one of my users brought to me
> which I believe has exposed a bug that has appeared in Word 2007 with SP1.
>
>
> SUMMARY:
> Documents containing conditional hyphens can cause Word to hang and consume
> 100% CPU when using the Find or Find & Replace command.
>
>
> VERSIONS FOUND AFFECTED:
> Word 2007 SP1
> Specific build tested Microsoft Office Word 2007 (12.0.6212.1000) SP1 MSO
> (12.0.6213.1000) running on Vista Enterprise, Vista Enterprise SP1 RC v.688,
> and XP Professional SP2
>
> VERSIONS NOT AFFECTED:
> Word 2003 (SP1 and SP2)
> Word 2007 (No SP)
>
> VERSIONS UNTESTED:
> All other versions.
>
>
> REPRODUCIBLE: 100% with identified versions.
>
>
> STEPS TO REPRODUCE:
>
> 1. Open the identified affected version of Word.
>
> 2. (Optional for readability, does not affect test case) On the Home tab, in
> the Paragraph group, click Show/Hide to show formatting marks.
>
> 3. Type the word "Test"
>
> 4. Press the Enter key
>
> 5. Press the Tab key
>
> 6. Press the Enter key
>
> 7. Press Ctrl+- (Control + Hyphen) twice.
>
> 8. Press the Enter key
>
> 9. On the Home tab, in the Editing group, click Replace.
>
> 10. For 'Find what', enter "Test", and for 'Replace with', enter "Testing"
>
> 11. Click Replace All.
>
> 12. Observe that Word stops responding. Task Manager can be used to verify
> that Word is consuming as much CPU as possible (up to 100%)
>
>
>
> BACKGROUND:
>
> The user had a number of documents that she frequently re-used by opening an
> existing document, executing a Find & Replace > Replace All on a name in the
> document, and saving the modified file as a new document. We recently
> released Office 2007 SP1 through our WSUS server, and since then, the user
> had found that her normal Find & Replace method was causing Word to hang and
> consume 100% CPU, until Word was forcibly terminated using Task Manager.
>
> After some investigation, I found that this behaviour can be reproduced when
> you have more than 1 consecutive conditional hyphen in the document at any
> point AFTER some other non-printing character (tested with tab and page
> break), and the Find function is used to the point where it passes the
> conditional hyphens. So, if Find All or Replace All is used, it will fail
> immediately, or if the single Find or Replace commands are used, it will fail
> as soon as it tries to search beyond the conditional hyphens.
>
> In this case, the conditional hyphens had been entered accidentally,
> possibly years ago given the amount of time the user has been producing these
> documents. Removing them corrected her problem.
>
> So far I have found this behaviour is only exhibited in Word 2007 SP1. I
> can't say for certain that I've narrowed it down completely; other
> non-printing characters may trigger this other than tab and page break,
> possibly other characters than conditional hyphens will trigger it too, but
> the above test case works for me every time.
>
> I'd appreciate any input anyone can give!
>
> ----------------
> This post is a suggestion for Microsoft, and Microsoft responds to the
> suggestions with the most votes. To vote for this suggestion, click the "I
> Agree" button in the message pane. If you do not see the button, follow this
> link to open the suggestion in the Microsoft Web-based Newsreader and then
> click "I Agree" in the message pane.
>
> http://www.microsoft.com/office/community/en-us/default.mspx?mid=7d3bb...-0cee-4
(Msg. 3) Posted: Thu Jan 31, 2008 3:30 am
Post subject: RE: Conditional hyphens can cause Word 2007 SP1 Find & Replace to Add to elertz [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
I too had that problem and found a workaround.
1. In Windows explorer, call up the document/
2. Save the document as a Word 97-2003 file and close it.
3. Close the Windows Explorer dialogue box/
4. Re-open Windows Explorer and re-open the document.
Find & Replace should now work without hanging.
That worked for me.
andy g.
"gilbar" wrote:
> Jay, we're having simular problems with find & Replace. Our problems are
> happening when we try to find a string (like ~HE) that is on the end of a
> paragraph; so we look for ~HE^p
> When we do this, it cases hang Word, just like your problem. This happens
> mostly when we do it in a macro (Selection.Find.Execute FindText:="~HE^p"),
> but sometimes it hangs even when doing this manually.
> Hoping that the Powers that be fix this !
>
> "Jay Schlackman" wrote:
>
> > I have been dealing with an interesting problem one of my users brought to me
> > which I believe has exposed a bug that has appeared in Word 2007 with SP1.
> >
> >
> > SUMMARY:
> > Documents containing conditional hyphens can cause Word to hang and consume
> > 100% CPU when using the Find or Find & Replace command.
> >
> >
> > VERSIONS FOUND AFFECTED:
> > Word 2007 SP1
> > Specific build tested Microsoft Office Word 2007 (12.0.6212.1000) SP1 MSO
> > (12.0.6213.1000) running on Vista Enterprise, Vista Enterprise SP1 RC v.688,
> > and XP Professional SP2
> >
> > VERSIONS NOT AFFECTED:
> > Word 2003 (SP1 and SP2)
> > Word 2007 (No SP)
> >
> > VERSIONS UNTESTED:
> > All other versions.
> >
> >
> > REPRODUCIBLE: 100% with identified versions.
> >
> >
> > STEPS TO REPRODUCE:
> >
> > 1. Open the identified affected version of Word.
> >
> > 2. (Optional for readability, does not affect test case) On the Home tab, in
> > the Paragraph group, click Show/Hide to show formatting marks.
> >
> > 3. Type the word "Test"
> >
> > 4. Press the Enter key
> >
> > 5. Press the Tab key
> >
> > 6. Press the Enter key
> >
> > 7. Press Ctrl+- (Control + Hyphen) twice.
> >
> > 8. Press the Enter key
> >
> > 9. On the Home tab, in the Editing group, click Replace.
> >
> > 10. For 'Find what', enter "Test", and for 'Replace with', enter "Testing"
> >
> > 11. Click Replace All.
> >
> > 12. Observe that Word stops responding. Task Manager can be used to verify
> > that Word is consuming as much CPU as possible (up to 100%)
> >
> >
> >
> > BACKGROUND:
> >
> > The user had a number of documents that she frequently re-used by opening an
> > existing document, executing a Find & Replace > Replace All on a name in the
> > document, and saving the modified file as a new document. We recently
> > released Office 2007 SP1 through our WSUS server, and since then, the user
> > had found that her normal Find & Replace method was causing Word to hang and
> > consume 100% CPU, until Word was forcibly terminated using Task Manager.
> >
> > After some investigation, I found that this behaviour can be reproduced when
> > you have more than 1 consecutive conditional hyphen in the document at any
> > point AFTER some other non-printing character (tested with tab and page
> > break), and the Find function is used to the point where it passes the
> > conditional hyphens. So, if Find All or Replace All is used, it will fail
> > immediately, or if the single Find or Replace commands are used, it will fail
> > as soon as it tries to search beyond the conditional hyphens.
> >
> > In this case, the conditional hyphens had been entered accidentally,
> > possibly years ago given the amount of time the user has been producing these
> > documents. Removing them corrected her problem.
> >
> > So far I have found this behaviour is only exhibited in Word 2007 SP1. I
> > can't say for certain that I've narrowed it down completely; other
> > non-printing characters may trigger this other than tab and page break,
> > possibly other characters than conditional hyphens will trigger it too, but
> > the above test case works for me every time.
> >
> > I'd appreciate any input anyone can give!
> >
> > ----------------
> > This post is a suggestion for Microsoft, and Microsoft responds to the
> > suggestions with the most votes. To vote for this suggestion, click the "I
> > Agree" button in the message pane. If you do not see the button, follow this
> > link to open the suggestion in the Microsoft Web-based Newsreader and then
> > click "I Agree" in the message pane.
> >
> > http://www.microsoft.com/office/community/en-us/default.mspx?mid=7d3bb...-0cee-4
(Msg. 4) Posted: Sun Mar 23, 2008 3:04 pm
Post subject: RE: Conditional hyphens can cause Word 2007 SP1 Find & Replace to Add to elertz [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Hi!
I justed wanted say that for me, this "Windows Explorer" trick didn't make
sense (that's just the .doc trick) and also it did not fix the problem for
me. However, I could save as Other Formats -> Word XML Document (.xml), and
using that, the Find crash didn't occur anymore!
I could also save back to .docx and still have no problems. Also I could
retain all links, images, formatting and so on.
(Msg. 5) Posted: Thu Mar 27, 2008 8:01 am
Post subject: RE: Conditional hyphens can cause Word 2007 SP1 Find & Replace to Add to elertz [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Now, after a couple of days, I have to say that unfortunately my workaround
doesn't work for me any more. I can't use Find in my document, it will result
in a crash. It doesn't help for me any more if I save at other formats. It
will crash anway.
By the way, this problem is only with the SP1 version. It's fine in the
original version. And there is also another bug (on both versions): text
jumps around occasionally during the automatic rewrap while writing so, that
the screen is not updated properly. This results in a total mess; cursor is
not really where it seems to be (or the text is not as it seems).
(Msg. 6) Posted: Thu Mar 27, 2008 2:33 pm
Post subject: RE: Conditional hyphens can cause Word 2007 SP1 Find & Replace to Add to elertz [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Ok, I think I finally found a working workaround.
Word Options -> Display -> Always show.. -> [v] Optional hyphens (or you can
put Show all formatting marks if you want)
Then, find in the document the place where you have multiple (at least two)
hyphen marks consecutively (¬¬) and delete those. Without those, the Find
function will work properly.
(Msg. 7) Posted: Wed Apr 02, 2008 1:32 pm
Post subject: RE: Conditional hyphens can cause Word 2007 SP1 Find & Replace to Add to elertz [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
I have been having this problem as well, and thanks to these posts, now I
know what the problem is.
In addition to jh's reply below, I found that if the formatting (font,
style, size, colours and whatnot...) are not an issue, simply saving the file
as text only, closing, and openning the document again gets rid of any
offending characters.
"jh" wrote:
> Ok, I think I finally found a working workaround.
>
> Word Options -> Display -> Always show.. -> [v] Optional hyphens (or you can
> put Show all formatting marks if you want)
>
> Then, find in the document the place where you have multiple (at least two)
> hyphen marks consecutively (¬¬) and delete those. Without those, the Find
> function will work properly.
(Msg. 8) Posted: Thu Apr 03, 2008 1:06 pm
Post subject: RE: Conditional hyphens can cause Word 2007 SP1 Find & Replace to Add to elertz [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Thank you JH!! This issue has been plaguing me and your solution worked. To
quickly find those problematic hyphens, select the "more>>" button in the
find/replace window, then click the "special" and select "Optional Hyphen",
then click
the "find next" button.
"jh" wrote:
> Ok, I think I finally found a working workaround.
>
> Word Options -> Display -> Always show.. -> [v] Optional hyphens (or you can
> put Show all formatting marks if you want)
>
> Then, find in the document the place where you have multiple (at least two)
> hyphen marks consecutively (¬¬) and delete those. Without those, the Find
> function will work properly.
All times are: Eastern Time (US & Canada) (change) Goto page 1, 2, 3, 4
Page 1 of 4
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum