tracker issue : CFB-4198458

select a category, or use search below
(searches all categories and all time range)

Pasting cfscript tags inside cfscript tags causes a race condition

| View in Tracker

Status/Resolution/Reason: Open//

Reporter/Name(from Bugbase): David B. / ()

Created: 01/24/2020

Components: Editor Features, Syntax Checking

Versions: 2018

Failure Type: Crash

Found In Build/Fixed In Build: 313943 /

Priority/Frequency: Normal / Some users will encounter

Locale/System: English / Windows 10 64 bit

Vote Count: 0

Problem Description:

In the process of programming, I copied some code from one open cfm file to another open cfm file.  I hadn't noticed that the file I was pasting into was 100% cfscript and the code I pasted had cfscript tags in it.

At that point I'm guessing the Syntax Checking got stuck in a loop because my processor usage hit 100% (and it's an 8 core processor)

Steps to Reproduce:
- Ensure "Enable Syntax Checking" is enabled in ColdFusion > Profiles > Editor > Syntax Checking
- Open the attached file

Alternatively you could simply paste the code in the attached file into a new CF Editor window and the same race condition occurs

Actual Result:
Processor shoots up to 100% and cripples the whole system.

Expected Result:
Duplicate tag highlighted as an error to be removed

Any Workarounds:
You'll need to kill the CFB process via the Task Manager.  If you've managed to save the file before the condition, you'll need to open the file with another editor (like Notepad) and remove the extra cfscript tags or CFB won't open again.