Title:
Bug 73549:imageScaleToFit() randomly causes the request to time out, or if it finishes it takes up to 90 seconds to do so
| View in TrackerStatus/Resolution/Reason: Closed/Withdrawn/
Reporter/Name(from Bugbase): Jared Rypka-Hauer / Jared Rypka-Hauer (Jared Rypka-Hauer)
Created: 11/06/2008
Components: CFIMAGE
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Major / Unknown
Locale/System: English / Platforms All
Vote Count: 0
Duplicate ID: CF-3037251
Problem:
imageScaleToFit() randomly causes the request to time out, or if it finishes it takes up to 90 seconds to do so. This was reported during the Scorpio beta but the bug was declined as impossible to repro. I am re-filing it because it's a serious flaw in ColdFusion and needs to be fixed. I mean, I'd rather you take it out than leave it broken.
Seriously... it IS broken, even if it's extremely unpredictable. I've had it happen on Mac and Windows, with PNG and JPG images, of very large or very small size. It will cause requests to time out, and using it is extremely risky with how unreliable it is.
Method:
use this code:
<cfset image = imageNew("/Users/foo/Desktop/fooImage.jpg")>
<cfimage action="writeToBrowser" source="#image#" />
<cfset imageScaleToFit(image,400,"")>
<cfimage action="writeToBrowser" source="#image#" format="png" />
Although I couldn't get it to repro with that... I've had it happen with very similar code at times.
Result:
Either the browser's "Page unavailable" error or a CF timeout error
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3036635
External Customer Info:
External Company:
External Customer Name: Jared Rypka-Hauer
External Customer Email: 08C411A143BC38A7992016B6
External Test Config: 11/06/2008
Attachments:
Comments: