Editra hangs up when it reads a c file

Report Bugs Here

Editra hangs up when it reads a c file

Postby lobosKobayashi » Tue Nov 16, 2010 3:02 am

Hi.

I come across Editra hanging up. It happened when Editra was reading a big file which has '.c' file extension. If the file extension is rewritten to other one as ".txt" then Editra read it without hanging up.

You can download the file rctest.c http://cid-4735d751cf49bd0c.office.live ... r/rctest.c

The rctest.c file is too big. and I found out the smallest file with which Editra hang up

You can download the file test2.c http://cid-4735d751cf49bd0c.office.live ... ir/test2.c

test2.c has only 13 bytes as below

data=open('test2.c', 'rb').read();[hex(ord(ch)) for ch in data]
===============================
['0x8b', '0x4e', '0x93', '0xae', '0x82', '0xaa', '0x82', '0xa9', '0x82', '0xa9', '0xd', '0xa', '0x0']

Hanging up will occur for any c file which includes any strings between ['0x8b', '0x4e', '0x93', '0xae', '0x82', '0xaa', '0x82', '0xa9', '0x82', '0xa9', '0xd', '0xa'] and ['0x0']

----------------------------------
This hanging up will not occur if Editra reads a file which includes only alphabet characters. But Editra will hang up if it reads a file which includes ['0x8b', '0x4e', '0x93', '0xae', '0x82', '0xaa', '0x82', '0xa9', '0x82', '0xa9', '0xd', '0xa'] and ['0x0'] non alphabet byte pattern.

It seem for Editra to hang up frequently if it read a file which includes non alphabet characters. Because It happened when I force Editra to read a big file at the first time.

----------------------------------
My Computer Environment

OS: Windows XP
Editr version:0.5.86
Python 2.6.4 -- EPD 6.1-1 (32-bit)

lobosKobayashi
Last edited by lobosKobayashi on Tue Nov 16, 2010 3:46 am, edited 1 time in total.
lobosKobayashi
User
 
Posts: 11
Joined: Fri Oct 15, 2010 9:29 am

Re: Editra hangs up when it reads a c file

Postby cody » Tue Nov 16, 2010 3:41 am

Hi,

Those links give me a 403 Error (Permission Denied).

Could you just attach them to this post or better yet open an issue in the bug tracker and attach them there. (http://editra.googlecode.com).


Thanks,

Cody
User avatar
cody
Site Admin
 
Posts: 1315
Joined: Mon Oct 09, 2006 2:49 am
Location: United States

Re: Editra hangs up when it reads a c file

Postby lobosKobayashi » Tue Nov 16, 2010 4:00 am

I reportet this to the google issue ID:558 and attached the files.

lobosKobayashi
lobosKobayashi
User
 
Posts: 11
Joined: Fri Oct 15, 2010 9:29 am

Re: Editra hangs up when it reads a c file

Postby cody » Tue Nov 16, 2010 4:20 pm

Thanks, Investigation moved to issue tracker.
User avatar
cody
Site Admin
 
Posts: 1315
Joined: Mon Oct 09, 2006 2:49 am
Location: United States


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 1 guest

cron