Crash after "Insufficient memory"

Discussion of bugs and problems found in Altap Salamander. In your reports, please be as descriptive as possible, and report one incident per report. Do not post crash reports here, send us the generated bug report by email instead, please.
User avatar
mdruiter
Posts: 263
Joined: 22 Feb 2006, 15:33
Location: Amsterdam, The Netherlands
Contact:

Crash after "Insufficient memory"

Post by mdruiter »

I have two files, 1,724,600,320 bytes each. I tried to compare them, but by accident "Files Type" was set to Text. Probably because of that, I got this error:
Insufficient memory to allocate 1724600321 bytes. Try to release some memory (e.g. close some running application) and click Retry. Click Cancel to terminate this application (it may result in data loss).
Retry Cancel

I think the error is perfectly legitimate, considering the size of the files and the fact that the comparison is done in memory. But after I clicked Cancel, I got:
Do you really want to terminate this application?
WARNING: All unsaved data will be lost!

No matter what I tried, the only way out was to choose Yes here, so I lost my Salamander instance. Maybe this can be prevented easily?
Groente, Michel.
Petr Solin
ALTAP Staff
ALTAP Staff
Posts: 1112
Joined: 08 Dec 2005, 09:13
Location: Novy Bor, Czech Republic
Contact:

Re: Crash after "Insufficient memory"

Post by Petr Solin »

This problem is solved in prepared version 2.52 beta 2. We have added third button (Ignore) to allow user to pass allocation error to application (allocator returns NULL, application should solve this error state).
User avatar
mdruiter
Posts: 263
Joined: 22 Feb 2006, 15:33
Location: Amsterdam, The Netherlands
Contact:

Re: Crash after "Insufficient memory"

Post by mdruiter »

Petr Solin wrote:This problem is solved in prepared version 2.52 beta 2. We have added third button (Ignore) to allow user to pass allocation error to application (allocator returns NULL, application should solve this error state).
Confirmed! It works well with (for example) the File Comparator plugin.
Post Reply