Bug #63764 Replace All Makes MySQL Workbench Hangs
Submitted: 15 Dec 2011 18:55 Modified: 22 Feb 2012 1:58
Reporter: Sambada Budiarga Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S3 (Non-critical)
Version:5.2.36 OS:Linux (Ubuntu 11.10 Desktop Edition)
Assigned to: CPU Architecture:Any
Tags: REPLACE

[15 Dec 2011 18:55] Sambada Budiarga
Description:
MySQL Workbench crashed when I try to replace text using "Replace All" button. But it doesn't happen when I use "Find and Replace" button.
I'm using V 5.2.36 rev.8542 of the MySQL Workbench..

Maybe it is caused by infinite loop.

It is not critical, but it would be bothering to replace text one by one.

How to repeat:
Copy this text,

-------
itm
itm
itm
------

And then, using find and replace feature, Enter "itm" in the text to search And enter "itmbarcde" in the text to be replaced..

It will crashed..

Suggested fix:
Maybe there should be a starting point and ending point of the replacement so it won't get trapped in infinite loop..
[15 Dec 2011 19:54] MySQL Verification Team
I couldn't repeat with 5.2.36 please upgrade. Thanks.
[16 Dec 2011 0:04] Sambada Budiarga
It's strange..
I've already used MySQL Workbench v. 5.2.36..
It is crashing my MySQL Workbench..
[19 Dec 2011 11:10] MySQL Verification Team
Are you able to provide the back trace?. Thanks.
[19 Dec 2011 13:11] Sambada Budiarga
I just did what i wrote in "How to Repeat" section..

In SQL Editor, I write

itm

Then I open Find And Replace with keyboard shortcut, "Ctrl + Shift + F"..
I write "itm" as the text to be searched..
And write "itmbarcde" as the text to replace selection with..
Then I hit "Replace All" button..
It's hangup, no respond..

But, it is strange since you said you couldn't repeat with 5.2.36, same version with mine..
Could you tell me what OS are you using?
[19 Dec 2011 14:40] MySQL Verification Team
Thank you for the feedback. I asked for the back trace because in the synopsis you wrote "...MySQL Workbench Crash" and today trying again it hangs for me, so now I am verifying it because you commented the same (changing synopsis).
[19 Dec 2011 14:43] Sambada Budiarga
I'm sorry, my bad..

Ok, thanks for your attention too..
:)
[22 Feb 2012 1:58] Philip Olson
Fixed as of 5.2.38:

On Linux and Mac OS X, the "Replace All"
search feature would hang, and not function properly.