Go to bug ID
Hello, guest. We have noticed that you are not registered at this bug tracker. Your experience will be greatly enhanced if you log in. To do so, you first must register by clicking on the Register tab at the top. If you are already registered, you can login at the Login tab.
Syndicate Syndicate Listing Display Search Login/Register
Bug Id ?
Reporter ?
Pvt_Ryan
Product/Version ?
Crimson Editor / Version 3.72 (beta, prior to r241)
Status ?
Assigned
Severity ?
Critical
Duplicate Of ?
- none -
Summary ?
FTP CE crashes on open/save remote
Report Time ?
June 26, 2007 05:23:32 PM
Assignment ?
Pvt_Ryan
Resolution ?
Open
Priority ?
High
Dependencies ?
- none -


Attachments
FixedWinInet.patch Fixed WinInet misspelling
m_bUseWinInet-On.patch Set m_bUseWinInet on by default
Votes
For: 0 (0%)
Against: 0 (0%)
Total: 0

June 26, 2007 05:23:32 PM Pvt_Ryan
Running the debug exe results in a successful file dl & open but the following output is interesting:

-------------------------------------------------------
FTP-RECV: 220 Welcome to ninet.org FTP service.
FTP-SEND: USER ******
FTP-RECV: 331 Please specify the password.
FTP-SEND: PASS ******
FTP-RECV: 230 Login successful.
FTP-SEND: PWD
FTP-RECV: 257 "/"
[PWD]: /
FTP-SEND: PORT 192,168,2,1,6,160
FTP-RECV: 200 PORT command successful. Consider using PASV.
FTP-SEND: LIST
FTP-RECV: 150 Here comes the directory listing.
CArchive exception: endOfFile.
First-chance exception at 0x7d4e2366 in cedt.exe: Microsoft C++ exception: CArchiveException at memory location 0x0012dfd0..
FTP-RECV: 226 Directory send OK.
RemoteFileList: DivX Movies.lnk (1480)
RemoteFileList: file1.txt (23)
RemoteFileList: file2.txt (0)
RemoteFileList: file3.txt (0)
FTP-SEND: QUIT
FTP-RECV: 221 Goodbye.
First-chance exception at 0x7d4e2366 in cedt.exe: 0x000006C5: The tag is invalid.
FTP-RECV: 220 Welcome to ninet.org FTP service.
FTP-SEND: USER ******
FTP-RECV: 331 Please specify the password.
FTP-SEND: PASS ******
FTP-RECV: 230 Login successful.
FTP-SEND: TYPE I
FTP-RECV: 200 Switching to Binary mode.
FTP-SEND: PORT 192,168,2,1,6,202
FTP-RECV: 200 PORT command successful. Consider using PASV.
FTP-SEND: RETR /file1.txt
FTP-RECV: 150 Opening BINARY mode data connection for /file1.txt (23 bytes).
FTP-RECV: 226 File send OK.
FTP-SEND: QUIT
FTP-RECV: 221 Goodbye.
-------------------------------------

PS: I removed the username and password from the transscript as the password is transmitted in plain text..

The line that stands out is:
First-chance exception at 0x7d4e2366 in cedt.exe: 0x000006C5: The tag is invalid.

I am guessing that this causes the crash on the release version

June 26, 2007 10:07:53 PM Ankit Singla
I wonder if any of this has to do with saving FTP stuff? Not likely, but I thought I'd mention that FTP server settings aren't being saved in this rev. Every time you quit CE, you need to put them in again.

June 27, 2007 08:27:14 AM Pvt_Ryan
Hmm I haven't "changed" any of the original FTP code. Just the code I patched ages ago for making the backups..

July 26, 2007 08:49:05 PM mark leeds
If you leave a remote document open when exiting Crimson Editor, it will be reopened automatically in the next session. However, the [FTP Account #xx] section of the cedt.ini file has the UseWinInet line misspelled as UserWinInet. As a result, CE will crash when attempting to reconnect with the remote server. I simply edited the ini file with the correct spelling, and I'm back in business.

July 27, 2007 02:48:39 AM Ankit Singla
how'd you get it open in the first place? I can't open any remote docs

July 27, 2007 04:36:04 AM mark leeds
Assuming you have your FTP settings correct otherwise, from the Open Remote dialog, select Properties for your connection, then select the Advanced button. Check the box for Use WinInet.

July 27, 2007 12:50:20 PM Pvt_Ryan
Thanks for spotting that spelling error..

I have fixed it in rev 185.

Hopefullty that is what is causing the crashes..

I will test later

July 27, 2007 01:09:00 PM Pvt_Ryan
still crashes CE if UseWinInet is off, so as of rev 186 it is on by default as a workaround until we can find the source of the crash.

June 9, 2008 07:54:02 PM Pvt_Ryan
Only breaks on attempted open remote on linux server.

June 20, 2008 02:07:05 PM Pvt_Ryan
*note* there is a unhandled second chance exception thrown which is why the bug seems to be fixed under the debug version. The release version crashes due to this exception. (see 1st post)