Long text files are corrupted while transfering

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Long text files are corrupted while transfering

Postby vbhjckfd » 03. August 2009 10:14

Hi

I have some site with Prototype framework included. Nothing was working, so I start to digg in js code with Firefox 3.5.1. I figured out that prototype.js was corrupted while loading approximately on half of file. Some screen shoots (from FF source code browser and notepad++):

Image Image

Of course i checked original file but all was good with it.
Here is difference between original and returned by xampp file

xammp version: 1.7.2
os: windows xp sp3 eng
vbhjckfd
 
Posts: 6
Joined: 03. August 2009 09:51

Re: Long text files are corrupted while transfering

Postby Wiedmann » 03. August 2009 11:15

Some screen shoots (from FF source code browser and notepad++):

Hm. I don't see a difference in the pictures. Maybe you have uploaded a wrong browser screenshot?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Long text files are corrupted while transfering

Postby vbhjckfd » 03. August 2009 11:21

But you see that file content is corrupted and duplicated? First screenshot is from FF source code explorer, and second is the same just copypasted to notepad++ to see line numbers.
vbhjckfd
 
Posts: 6
Joined: 03. August 2009 09:51

Re: Long text files are corrupted while transfering

Postby Wiedmann » 03. August 2009 11:27

But you see that file content is corrupted and duplicated?

Well, both screens are the same code. But...

and second is the same just copypasted to notepad++ to see line numbers.

... if you just copy 'n paste the ff source to notepad++ that's clear.

If we should see a difference, you must open the original code in notepad++ (file open).
(I don't know anything about or have this "Prototype".)
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Long text files are corrupted while transfering

Postby vbhjckfd » 03. August 2009 11:37

Ok. Just first difference, that show corruption of file.

Original: Image
Returned:Image

Full visual difference here
vbhjckfd
 
Posts: 6
Joined: 03. August 2009 09:51

Re: Long text files are corrupted while transfering

Postby Wiedmann » 03. August 2009 11:46

Ok. Just first difference, that show corruption of file.

Ok, there is a difference.

Is the file also corrupted, if you just download the file "prototype.js"?
(e.g. "wget http://localhost/prototype.js", if you have wget)
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Long text files are corrupted while transfering

Postby vbhjckfd » 03. August 2009 11:51

I've just putted into FF direct link to prototype.js.
File is corrupted in 1.7.2 and normal in 1.6.8
vbhjckfd
 
Posts: 6
Joined: 03. August 2009 09:51

Re: Long text files are corrupted while transfering

Postby Wiedmann » 03. August 2009 12:11

And other downloads (similar or greater size), like a zip or exe or a simple txt file, and if you rename this file to *.txt?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Long text files are corrupted while transfering

Postby vbhjckfd » 03. August 2009 14:00

Still corrupted after changing file extension to txt.

50 Mb executable file is corrupted and won't start.
Image
vbhjckfd
 
Posts: 6
Joined: 03. August 2009 09:51

Re: Long text files are corrupted while transfering

Postby Wiedmann » 03. August 2009 14:10

Sometimes it can help to set EnableMMAP and/or EnableSendfile to Off.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Long text files are corrupted while transfering

Postby vbhjckfd » 03. August 2009 14:18

Yes. It helps. Thank you.
I think it will be good to append link to this topic to FAQ
vbhjckfd
 
Posts: 6
Joined: 03. August 2009 09:51


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 172 guests

cron