Far crashes when opening a big file in editor

Здесь можно сообщить о найденных багах в Far.
Post Reply
pp
Posts: 36
Joined: Wed 24 Jan, 2007 11:39
Location: Česká republika
Has thanked: 8 times
Contact:

Far crashes when opening a big file in editor

Post by pp »

This issue appears with last stable build 4040 as well as with the nightly build 4162 in both x64 and x86 versions (on Windows 7 Pro 64-bit, 4 GB RAM).

Steps to reproduce:
1. Start far.exe /p
2. Select some big file (in my case 834 MB) and press F4
3. Progress bar with message "Editor | Reading the file" takes ~10 seconds and stops at 95%.
4. Red window with text "Exception occured | bad allocation" pops up.

Application Error EventID 1000


Report.wer
User avatar
DrKnS
Posts: 6114
Joined: Thu 04 Aug, 2005 06:44
Location: Kyiv
Has thanked: 12 times
Been thanked: 426 times

Far crashes when opening a big file in editor

Post by DrKnS »

Opening the file in editor requires 3-5 times more memory than file size.
Obviously, 4 Gb is not enough.
User avatar
HaRT
Moderator
Posts: 10866
Joined: Tue 30 Aug, 2005 17:21
Has thanked: 221 times
Been thanked: 358 times

Far crashes when opening a big file in editor

Post by HaRT »

DrKnS wrote: Obviously, 4 Gb is not enough
Obviously, FAR shouldn't crash even if it cannot load a file into the editor. Instead, it should just refuse to load such a file and continue working after having shown an error message.
Фар есть инструмент, а не нянька. © 2009 DrKnS
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Far crashes when opening a big file in editor

Post by NightRoman »

DrKnS wrote:Opening the file in editor requires 3-5 times more memory than file size.
Obviously, 4 Gb is not enough.
pp says it happens on x64, too. Far uses virtual memory and on x64 it should be a lot even though a machine is just 4GB. Yes, there will be swapping, of course. Maybe the swapfile is too small? If the problem is true, it might be something worth to investigate, perhaps.
User avatar
zg
zero-gravity
Posts: 6035
Joined: Tue 15 Mar, 2005 17:36
Location: riga
Been thanked: 185 times
Contact:

Far crashes when opening a big file in editor

Post by zg »

HaRT wrote:Obviously, FAR shouldn't crash even if it cannot load a file into the editor.
что ещё должен фар лично вам?
User avatar
HaRT
Moderator
Posts: 10866
Joined: Tue 30 Aug, 2005 17:21
Has thanked: 221 times
Been thanked: 358 times

Far crashes when opening a big file in editor

Post by HaRT »

zg wrote: что ещё должен фар лично вам?
Please don't take my reply personally.
Also, please consider the difference between “should” and “must”.
Фар есть инструмент, а не нянька. © 2009 DrKnS
User avatar
zg
zero-gravity
Posts: 6035
Joined: Tue 15 Mar, 2005 17:36
Location: riga
Been thanked: 185 times
Contact:

Far crashes when opening a big file in editor

Post by zg »

HaRT wrote:Also, please consider the difference between “should” and “must”.
ок, что ещё следовало бы делать фару лично для вас?
User avatar
HaRT
Moderator
Posts: 10866
Joined: Tue 30 Aug, 2005 17:21
Has thanked: 221 times
Been thanked: 358 times

Far crashes when opening a big file in editor

Post by HaRT »

zg wrote: что ещё следовало бы делать фару лично для вас?
What I consider important enough in this sense, I put to the bugtracker. BTW, I didn't do it for years.
Фар есть инструмент, а не нянька. © 2009 DrKnS
User avatar
DrKnS
Posts: 6114
Joined: Thu 04 Aug, 2005 06:44
Location: Kyiv
Has thanked: 12 times
Been thanked: 426 times

Far crashes when opening a big file in editor

Post by DrKnS »

HaRT wrote: Obviously, FAR shouldn't crash even if it cannot load a file into the editor. Instead, it should just refuse to load such a file and continue working after having shown an error message.
Ok, makes sense.
pp
Posts: 36
Joined: Wed 24 Jan, 2007 11:39
Location: Česká republika
Has thanked: 8 times
Contact:

Far crashes when opening a big file in editor

Post by pp »

NightRoman: Thanks for the hint, increasing Virtual memory (as well as switching off the other programs) helped - I needed bigger file to reproduce this bug.

HaRT: Yes, that's exactly what I had on my mind, FAR should write some message but not crash.
pp
Posts: 36
Joined: Wed 24 Jan, 2007 11:39
Location: Česká republika
Has thanked: 8 times
Contact:

Far crashes when opening a big file in editor

Post by pp »

Fixed in 4165, thanks.
Post Reply

Return to “Глюки и баги”