Division by zero while cropping

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

Moderators: helmut, 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 »

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: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Division by zero while cropping

Post by xnview »

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 »

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 »

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: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Division by zero while cropping

Post by xnview »

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 »

But what is with division by zero?
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Division by zero while cropping

Post by xnview »

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