This forum has been archived. All content is frozen. Please use KDE Discuss instead.

4 000 x 90 000 File

Tags: None
(comma "," separated)
wayneqq
Registered Member
Posts
27
Karma
0

4 000 x 90 000 File

Mon Jan 25, 2021 8:05 pm
Hello,

I'm creating a file with a size 4 000 x 90 000p and in the process of file saving Krita crashes.

Any fix?
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS

Re: 4 000 x 90 000 File

Mon Jan 25, 2021 8:49 pm
wayneqq wrote:Hello,

I'm creating a file with a size 4 000 x 90 000p and in the process of file saving Krita crashes.

Any fix?


No... A file like that will just take enormous amounts of memory, more than can be handled even with swap files and virtual memory. If you're into astronomy photo's or mega scans of paintings, vips probably is the right tool for you.
wayneqq
Registered Member
Posts
27
Karma
0

Re: 4 000 x 90 000 File

Tue Jan 26, 2021 7:42 pm
boudewijn wrote:
wayneqq wrote:Hello,

I'm creating a file with a size 4 000 x 90 000p and in the process of file saving Krita crashes.

Any fix?


No... A file like that will just take enormous amounts of memory, more than can be handled even with swap files and virtual memory. If you're into astronomy photo's or mega scans of paintings, vips probably is the right tool for you.


Well I can create and draw succecifully in SAI with that resolution.
It's just 1,4 GB or Ram, but when yo uare saving the file it crashes in Krita.
User avatar
tymond
KDE Developer
Posts
240
Karma
5

Re: 4 000 x 90 000 File  Topic is solved

Tue Jan 26, 2021 11:33 pm
Hi, it turned out that there is in fact a problem in Krita for such big files. It looks like when the file is bigger than 65.535 pixels in any direction, then while trying to scale the image down to 256x256 pixels (to get a preview), it calculates the scale and the scale ends up later being 0., which of course leads to dividing by 0.
Since I checked it and got a crash log, I made a bug report here: https://bugs.kde.org/show_bug.cgi?id=432182 . You can subscribe to it if you're interested in getting updates when it's fixed etc.

It looks like for now it's better to just not make canvases bigger than 65k pixels in any dimension :/

(The RAM concern is still a thing though - it does take 1.4GB for one fully painted layer, plus 1.4GB for projection, plus the RAM Krita takes just for opening (~0.5GB I believe?), plus the undo stack and any other things like that. If you wish to paint on such big canvases, make sure that the Swap File Size in Configure Krita -> Performance is as big as you can make it).
wayneqq
Registered Member
Posts
27
Karma
0

Re: 4 000 x 90 000 File

Sun Jan 31, 2021 12:28 am
tymond wrote:Hi, it turned out that there is in fact a problem in Krita for such big files. It looks like when the file is bigger than 65.535 pixels in any direction, then while trying to scale the image down to 256x256 pixels (to get a preview), it calculates the scale and the scale ends up later being 0., which of course leads to dividing by 0.
Since I checked it and got a crash log, I made a bug report here: https://bugs.kde.org/show_bug.cgi?id=432182 . You can subscribe to it if you're interested in getting updates when it's fixed etc.

It looks like for now it's better to just not make canvases bigger than 65k pixels in any dimension :/

(The RAM concern is still a thing though - it does take 1.4GB for one fully painted layer, plus 1.4GB for projection, plus the RAM Krita takes just for opening (~0.5GB I believe?), plus the undo stack and any other things like that. If you wish to paint on such big canvases, make sure that the Swap File Size in Configure Krita -> Performance is as big as you can make it).


Wow, thank you for the help! Fill follow that thread and thanks for that note about swap file size. ;D


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]