Bug 2246676 - [abrt] Zim: on_copy(): templateeditordialog.py:113:on_copy:AssertionError
Summary: [abrt] Zim: on_copy(): templateeditordialog.py:113:on_copy:AssertionError
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Zim
Version: 38
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Otto Liljalaakso
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:563f318081d4bc129d31566b510...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-10-28 00:55 UTC by Radiogenes Nautikoloutsopoulos
Modified: 2023-12-07 02:07 UTC (History)
4 users (show)

Fixed In Version: Zim-0.75.2-6.fc40 Zim-0.75.2-4.fc38 Zim-0.75.2-6.fc39
Clone Of:
Environment:
Last Closed: 2023-11-28 20:24:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: os_info (734 bytes, text/plain)
2023-10-28 00:55 UTC, Radiogenes Nautikoloutsopoulos
no flags Details
File: environ (1.42 KB, text/plain)
2023-10-28 00:55 UTC, Radiogenes Nautikoloutsopoulos
no flags Details
File: mountinfo (4.19 KB, text/plain)
2023-10-28 00:55 UTC, Radiogenes Nautikoloutsopoulos
no flags Details
File: open_fds (2.99 KB, text/plain)
2023-10-28 00:55 UTC, Radiogenes Nautikoloutsopoulos
no flags Details
File: namespaces (171 bytes, text/plain)
2023-10-28 00:55 UTC, Radiogenes Nautikoloutsopoulos
no flags Details
File: backtrace (729 bytes, text/plain)
2023-10-28 00:55 UTC, Radiogenes Nautikoloutsopoulos
no flags Details
File: cpuinfo (2.82 KB, text/plain)
2023-10-28 00:55 UTC, Radiogenes Nautikoloutsopoulos
no flags Details

Description Radiogenes Nautikoloutsopoulos 2023-10-28 00:55:11 UTC
Description of problem:
opened zim, clicked edit > templates.  scrolled down to Journal, clicked copy.  Clicked cancel.  Clicked View. Kwrite opened.  Closed Kwrite. Crash

Version-Release number of selected component:
Zim-0.75.2-1.fc38

Additional info:
reporter:       libreport-2.17.11
kernel:         6.5.8-200.fc38.x86_64
cmdline:        /usr/bin/python3 /usr/bin/zim
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-zim-7b233427f4aa411393a068fc9c6696b2.scope
uid:            1000
reason:         templateeditordialog.py:113:on_copy:AssertionError
executable:     /usr/bin/zim
type:           Python3
package:        Zim-0.75.2-1.fc38
runlevel:       N 5
exception_type: AssertionError
crash_function: on_copy
interpreter:    python3-3.11.6-1.fc38.x86_64
comment:        opened zim, clicked edit > templates.  scrolled down to Journal, clicked copy.  Clicked cancel.  Clicked View. Kwrite opened.  Closed Kwrite. Crash

Truncated backtrace:
templateeditordialog.py:113:on_copy:AssertionError

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/zim/gui/templateeditordialog.py", line 113, in on_copy
    assert name is not None
           ^^^^^^^^^^^^^^^^
AssertionError

Local variables in innermost frame:
self: <templateeditordialog.TemplateEditorDialog object at 0x7f6102680e80 (zim+gui+templateeditordialog+TemplateEditorDialog at 0x56390a4cfad0)>
a: (<Gtk.Button object at 0x7f6102652680 (GtkButton at 0x56390a4f2180)>,)
custom: <LocalFile: /home/radionaut/.local/share/zim/templates/wiki/Journal.txt>
default: <LocalFile: /usr/share/zim/templates/wiki/Journal.txt>
source: <LocalFile: /usr/share/zim/templates/wiki/Journal.txt>
name: None

Comment 1 Radiogenes Nautikoloutsopoulos 2023-10-28 00:55:14 UTC
Created attachment 1995858 [details]
File: os_info

Comment 2 Radiogenes Nautikoloutsopoulos 2023-10-28 00:55:15 UTC
Created attachment 1995859 [details]
File: environ

Comment 3 Radiogenes Nautikoloutsopoulos 2023-10-28 00:55:17 UTC
Created attachment 1995860 [details]
File: mountinfo

Comment 4 Radiogenes Nautikoloutsopoulos 2023-10-28 00:55:18 UTC
Created attachment 1995861 [details]
File: open_fds

Comment 5 Radiogenes Nautikoloutsopoulos 2023-10-28 00:55:19 UTC
Created attachment 1995862 [details]
File: namespaces

Comment 6 Radiogenes Nautikoloutsopoulos 2023-10-28 00:55:21 UTC
Created attachment 1995863 [details]
File: backtrace

Comment 7 Radiogenes Nautikoloutsopoulos 2023-10-28 00:55:22 UTC
Created attachment 1995864 [details]
File: cpuinfo

Comment 8 Otto Liljalaakso 2023-10-30 20:11:07 UTC
I can reproduce this issue with the given instructions. I will take a look.

Comment 9 Otto Liljalaakso 2023-10-30 20:33:59 UTC
Actually, ABRT triggers already in "Clicked cancel." step. Zim sometimes uses unhandled exceptions as flow control mechanism, which does not play well with ABRT.

Here is the upstream pull request:
https://github.com/zim-desktop-wiki/zim-desktop-wiki/pull/2505

I will wait for a week to see if I get a review comments, then I will patch all Fedora branches.

Comment 10 Fedora Update System 2023-11-28 20:15:55 UTC
FEDORA-2023-7907e36d6a has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-7907e36d6a

Comment 11 Fedora Update System 2023-11-28 20:24:42 UTC
FEDORA-2023-7907e36d6a has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 Fedora Update System 2023-11-28 20:39:05 UTC
FEDORA-2023-de6e670877 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-de6e670877

Comment 13 Fedora Update System 2023-11-28 20:45:31 UTC
FEDORA-2023-9efee5d884 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-9efee5d884

Comment 14 Fedora Update System 2023-11-29 02:42:30 UTC
FEDORA-2023-9efee5d884 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-2023-9efee5d884`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-9efee5d884

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

Comment 15 Fedora Update System 2023-11-29 03:02:53 UTC
FEDORA-2023-de6e670877 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-2023-de6e670877`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-de6e670877

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

Comment 16 Fedora Update System 2023-12-07 01:57:23 UTC
FEDORA-2023-9efee5d884 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 17 Fedora Update System 2023-12-07 02:07:58 UTC
FEDORA-2023-de6e670877 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.