Division by zero while cropping

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: XnTriq, xnview

Post Reply
User avatar
sanja1989
Posts: 5
Joined: Thu Apr 23, 2015 6:45 pm
Location: Riga, Latvia
Contact:

Division by zero while cropping

Post by sanja1989 » Sun Apr 26, 2015 7:38 am

Sometimes division by zero occurs while cropping images. Just trying to crop part of image with A4 proportions.
Sample image: http://sorokin.pro/dumps/divby0/BWV_538_8.tif
Screenshot: http://sorokin.pro/dumps/divby0/div_by_0.png
Dump: http://sorokin.pro/dumps/divby0/div_by_0.7z
Attachments
div_by_0.png

User avatar
xnview
Author of XnView
Posts: 31598
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Division by zero while cropping

Post by xnview » Sun Apr 26, 2015 8:34 am

which part do you crop to crash?
Pierre.

User avatar
sanja1989
Posts: 5
Joined: Thu Apr 23, 2015 6:45 pm
Location: Riga, Latvia
Contact:

Re: Division by zero while cropping

Post by sanja1989 » Sun Apr 26, 2015 8:56 am

Center. It is not happening every time. I just tried 10 times and all was OK. But few hours ago it happened few times.

User avatar
sanja1989
Posts: 5
Joined: Thu Apr 23, 2015 6:45 pm
Location: Riga, Latvia
Contact:

Re: Division by zero while cropping

Post by sanja1989 » Sun Apr 26, 2015 9:06 am

I reproduced it!
It happens when I trying to open few files.
I want to open 6 files, it opens only 5 of them.
Here is the video: http://sorokin.pro/dumps/divby0/20150426_120124.mp4
And files: http://sorokin.pro/dumps/divby0/TIFF.zip

User avatar
xnview
Author of XnView
Posts: 31598
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Division by zero while cropping

Post by xnview » Sun Apr 26, 2015 1:32 pm

it seems that your pictures are big so you can't open them all
Pierre.

User avatar
sanja1989
Posts: 5
Joined: Thu Apr 23, 2015 6:45 pm
Location: Riga, Latvia
Contact:

Re: Division by zero while cropping

Post by sanja1989 » Sun Apr 26, 2015 2:27 pm

But what is with division by zero?

User avatar
xnview
Author of XnView
Posts: 31598
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Division by zero while cropping

Post by xnview » Sun Apr 26, 2015 4:33 pm

sanja1989 wrote:But what is with division by zero?
it's a crash if xnview can't load picture
Pierre.

Post Reply