Bug 2232504 - [abrt] variety: autoscroll_step(): ThumbsWindow.py:382:autoscroll_step:ZeroDivisionError: float division by zero
Summary: [abrt] variety: autoscroll_step(): ThumbsWindow.py:382:autoscroll_step:ZeroDi...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: variety
Version: 38
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: MartinKG
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:d652f8f6ebf7570a4f6a462b2ff...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-08-17 07:23 UTC by vikram goyal
Modified: 2024-02-12 02:43 UTC (History)
2 users (show)

Fixed In Version: variety-0.8.12-1.fc38 variety-0.8.12-1.fc39
Clone Of:
Environment:
Last Closed: 2024-02-12 01:51:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: os_info (734 bytes, text/plain)
2023-08-17 07:23 UTC, vikram goyal
no flags Details
File: namespaces (171 bytes, text/plain)
2023-08-17 07:23 UTC, vikram goyal
no flags Details
File: backtrace (914 bytes, text/plain)
2023-08-17 07:23 UTC, vikram goyal
no flags Details
File: cpuinfo (3.01 KB, text/plain)
2023-08-17 07:23 UTC, vikram goyal
no flags Details
File: mountinfo (6.25 KB, text/plain)
2023-08-17 07:23 UTC, vikram goyal
no flags Details
File: open_fds (2.95 KB, text/plain)
2023-08-17 07:23 UTC, vikram goyal
no flags Details
File: environ (1.56 KB, text/plain)
2023-08-17 07:23 UTC, vikram goyal
no flags Details

Description vikram goyal 2023-08-17 07:23:18 UTC
Description of problem:
Clicked on Variety icon & selected History. From the presented images in History , I deleted all the images one by one. Deleting the last image crashed Variety.

Version-Release number of selected component:
variety-0.8.10-1.fc38

Additional info:
reporter:       libreport-2.17.11
kernel:         6.4.10-200.fc38.x86_64
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-variety
uid:            1000
reason:         ThumbsWindow.py:382:autoscroll_step:ZeroDivisionError: float division by zero
executable:     /usr/bin/variety
type:           Python3
package:        variety-0.8.10-1.fc38
runlevel:       N 5
exception_type: ZeroDivisionError
crash_function: autoscroll_step
interpreter:    python3-3.11.4-1.fc38.x86_64
comment:        Clicked on Variety icon & selected History. From the presented images in History , I deleted all the images one by one. Deleting the last image crashed Variety.
cmdline:        /usr/bin/python3 /usr/bin/variety --profile /home/user/.config/variety/

Truncated backtrace:
ThumbsWindow.py:382:autoscroll_step:ZeroDivisionError: float division by zero

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/variety/Util.py", line 876, in cb
    args[0](*args[1:])
  File "/usr/lib/python3.11/site-packages/variety/ThumbsWindow.py", line 407, in _go
    self.autoscroll_step(
  File "/usr/lib/python3.11/site-packages/variety/ThumbsWindow.py", line 382, in autoscroll_step
    speed = 30 * (current - right_limit) ** 3 / (total_size - right_limit) ** 3
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ZeroDivisionError: float division by zero

Local variables in innermost frame:
self: <ThumbsWindow.ThumbsWindow object at 0x7f57b8dea640 (variety+ThumbsWindow+ThumbsWindow at 0x555fb6119ba0)>
adj: <Gtk.Adjustment object at 0x7f57b8e7c240 (GtkAdjustment at 0x555fb62e3690)>
total_size: 0
current: 18.0
left_limit: 0.0
right_limit: 0.0

Comment 1 vikram goyal 2023-08-17 07:23:23 UTC
Created attachment 1983738 [details]
File: os_info

Comment 2 vikram goyal 2023-08-17 07:23:24 UTC
Created attachment 1983739 [details]
File: namespaces

Comment 3 vikram goyal 2023-08-17 07:23:26 UTC
Created attachment 1983740 [details]
File: backtrace

Comment 4 vikram goyal 2023-08-17 07:23:28 UTC
Created attachment 1983741 [details]
File: cpuinfo

Comment 5 vikram goyal 2023-08-17 07:23:30 UTC
Created attachment 1983742 [details]
File: mountinfo

Comment 6 vikram goyal 2023-08-17 07:23:33 UTC
Created attachment 1983743 [details]
File: open_fds

Comment 7 vikram goyal 2023-08-17 07:23:35 UTC
Created attachment 1983744 [details]
File: environ

Comment 8 MartinKG 2023-08-17 07:37:30 UTC
upstream ticket: https://github.com/varietywalls/variety/issues/639

Comment 9 Fedora Update System 2024-02-02 10:26:47 UTC
FEDORA-2024-ec60ac3edc has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2024-ec60ac3edc

Comment 10 Fedora Update System 2024-02-02 10:27:07 UTC
FEDORA-2024-0f46b7165e has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2024-0f46b7165e

Comment 11 Fedora Update System 2024-02-03 00:48:55 UTC
FEDORA-2024-0f46b7165e has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-0f46b7165e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-0f46b7165e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2024-02-03 01:08:18 UTC
FEDORA-2024-ec60ac3edc has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-ec60ac3edc`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-ec60ac3edc

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 13 Fedora Update System 2024-02-12 01:51:34 UTC
FEDORA-2024-ec60ac3edc (variety-0.8.12-1.fc38) has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 14 Fedora Update System 2024-02-12 02:43:23 UTC
FEDORA-2024-0f46b7165e (variety-0.8.12-1.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.