Editor cuts off (php) document after 13032 bytes

Bug #755765 reported by MartijnLoth
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Scribes
New
High
Mystilleef

Bug Description

While working on a php document remotely (using ftp) the editor seems to cut off the document at precisely 13032 bytes (or characters). It works
regardless of the php extension, but cannot be reproduced locally. The bug causes document loss and the only way to remedy it is to use a different editor.

Environment:
- Ubuntu 10.10
- Scribes Version: 0.4-dev-build954

I can provide the php document if necessary.

Kind regards,
Martijn

description: updated
Revision history for this message
Mystilleef (mystilleef) wrote :

Is possible to attach the document in question?

Changed in scribes:
importance: Undecided → High
Revision history for this message
Mystilleef (mystilleef) wrote :

Is it possible to attach the document in question?

Revision history for this message
MartijnLoth (martijn-mloth) wrote :

No problem! Per attachment :)

To reproduce:
- upload the file through nautilus ftp (gvfs).
- open up the remote filesystem through nautilus
- double click test.php to open in Scribes.
- Make an edit (remove or add a character for example).
- Save using ctrl + s
- Close Scribes completely
- Re-open the test.php file and you'll notice that the lines have been cut off to the specified number of bytes.

Kind regards,
Martijn

Revision history for this message
Mystilleef (mystilleef) wrote :

Does this problem occur only when you close Scribes immediately? If you leave Scribes open does the file save properly?

Revision history for this message
MartijnLoth (martijn-mloth) wrote :

Closing or leaving Scribes open has no effect.
I can now confirm that it has no effect what the filetype is. I just had a css file cut off as well.

Can I provide you with any more information?

Revision history for this message
Mystilleef (mystilleef) wrote :

Can I see the details of scribes -i ?

Also can you launch Scribes from the shell terminal add see if there are any error messages when loading and saving the file? Post the error messages here if any.

Revision history for this message
MartijnLoth (martijn-mloth) wrote :

martijn@zen:~$ scribes -i
========================================================
System Info: ('Linux', 'zen', '2.6.35-28-generic', '#49-Ubuntu SMP Tue Mar 1 14:40:58 UTC 2011', 'i686')
Python Version: 2.6.6 (r266:84292, Sep 15 2010, 15:52:39)
[GCC 4.4.5]
System Byteorder: little
Python Modules: ('__builtin__', '__main__', '_ast', '_bisect', '_codecs', '_collections', '_functools', '_hashlib', '_locale', '_random', '_socket', '_sre', '_ssl', '_struct', '_symtable', '_warnings', '_weakref', 'array', 'binascii', 'cPickle', 'cStringIO', 'errno', 'exceptions', 'fcntl', 'gc', 'grp', 'imp', 'itertools', 'marshal', 'math', 'operator', 'posix', 'pwd', 'select', 'signal', 'spwd', 'strop', 'sys', 'syslog', 'thread', 'time', 'unicodedata', 'xxsubtype', 'zipimport', 'zlib')
========================================================
Scribes Version: 0.4-dev-build954
Dbus Version: (0, 83, 0)
GTK+ Version: (2, 22, 0)
PyGTK Version: (2, 21, 0)
Psyco Not Installed
========================================================
Running Instance: 0
========================================================
Python Path: /usr/lib/python2.7/dist-packages
Plugin Path: /usr/lib/scribes/GenericPlugins
Data Path: /usr/share/scribes
Executable Path: /usr/bin
========================================================

Launching it from shell does not yield any error messages. System logs have no mention of any failures either.

Revision history for this message
MartijnLoth (martijn-mloth) wrote :

Mystilleef, would it be useful if you had FTP access to the server in question, along with a test file I've made which'll have the "cut off" after editing it with Scribes?

Revision history for this message
MartijnLoth (martijn-mloth) wrote :

In addition to my previous comment (excuse the double-posting) here's the result of the python trace.

python -m trace -t /usr/bin/scribes .gvfs/ftp\ as\ martijn\ on\ testwebsite.com/public_html/test.php > trace.txt

Revision history for this message
Mystilleef (mystilleef) wrote :

Yes, it'll be useful if I had ftp access for testing.

Revision history for this message
MartijnLoth (martijn-mloth) wrote :

Emailed you the credentials :)

Revision history for this message
Mystilleef (mystilleef) wrote :

Okay, I got the credentials and I can't reproduce the problem.

I tested opening from nautilus, the open dialog, ctrl+l, recent open and even the shell terminal and I can't reproduce.

I even left a message for you at the end of the test file to show it doesn't cut off for me.

However, I'm using build 964 so maybe this problem is particular to build954.

I'll leave this open until I make a new release so you can test again with a newer version.

Or if you're feeling rather adventurous, try building from the launchpad and test again.

bzr branch lp:scribes
./autogen.sh
make
sudo make install

If you're using Ubuntu/Debian make sure you have the all the right dev packages installed.

Changed in scribes:
assignee: nobody → Mystilleef (mystilleef)
Revision history for this message
MartijnLoth (martijn-mloth) wrote :

Hi Mystilleef,

Sorry for the delay, I got help up with work. I pulled the latest build from git and I still have the problem on a fresh copy of Arch Linux.
However, I have found out that the problem does not exist using sftp.

I'm eagerly awaiting the next build anyway :)

Best regards!

Revision history for this message
Maurice Fallou (maurice-fallou) wrote :

Hi,

I have the same problem with a CSS file.

I open it from a FTP, I modify it, I save, and then the file is saved cut.

I am on Jolilcoud, and I install Scribes today from PPA. If you need more information don't hesitate to ask.

In the meantime, I am going to try in sftp.

Revision history for this message
Heber (professor-heber) wrote :

Hello,

I also had the same problem with PHP file!

it is bug??

Revision history for this message
Frederick J. Henderson (frederickjh) wrote :

I wanted to add my voice to this report and say that I am having the same problem of files being cut off. The ftp server I am connecting to does not allow sftp so I have not been able to try that.

My files are being cut off at 15.6k the file was 19.3k before saving with scribes.

In Ubuntu go to > Places > Connect to Server> Enter details to connect to a FTP server.

Open a text file on the server that is larger than 15.6k make a change, wait for Scribes to save check file size.

I did scribes -i and got - > Scribes Version: 0.4-dev-build508

I remembered that I was not using the version from your PPA and then upgraded to:

Scribes Version: 0.4-dev-build1052

I have the same results with this version.

Using gedit this way does not cut off the files.

Please contact me if I can be of help fixing this.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.