Package: zim
Version: 0.76.3-2
Severity: important

Dear Maintainer,
Since upgrading python3-gi to 3.56.1-2 from 3.54.5-7+b1
I get:
```
This is zim 0.76.3
Platform: posix
Locale: fr_FR UTF-8
FS encoding: utf-8
Python: (3, 13, 12, 'final', 0)
PyGObject: (3, 56, 1)

======= Traceback =======
  File "/usr/lib/python3/dist-packages/zim/gui/pageview/__init__.py", line 943, 
in set_page
    self.textview.set_buffer(buffer)
    ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
  File "/usr/lib/python3/dist-packages/zim/gui/pageview/textview.py", line 177, 
in set_buffer
    self._object_widgets.remove(child)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
  File "/usr/lib/python3.13/_weakrefset.py", line 113, in remove
    self.data.remove(ref(item))
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: <weakref at 0x7f7d15c38e50; to 
'zim.gui.pageview.objectanchors.LineSeparator' at 0x7f7d15cfd580>
```
when opening a page with a line separator (more than two hyphens, ie
'---')

It is told in upstream report that it triggers after moving a page with
a line separator. I cannot confirm but at least as of now it triggers
every time I open a page with a line separator (I might have moved such
a page previously but it is not needed to move a page each time, or at
least simply only opening a page is enough now).
"KeyError weakref zim.gui.pageview.objectanchors.LineSeparator after moving 
pages"
https://github.com/zim-desktop-wiki/zim-desktop-wiki/issues/2934


I don't know if this is a python3-gi regression bug or an old zim bug
that only triggers with the newer python3-gi thus bugging zim first.


Once this error triggers I cannot edit the page.

The expected outcome is to be able to edit pages with a line separator
inside.

Cheers
Alban



-- System Information:
Debian Release: forky/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'stable-debug'), (500, 
'oldstable-debug'), (500, 'testing'), (500, 'stable'), (90, 'unstable-debug'), 
(90, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.19.8+deb14-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages zim depends on:
ii  gir1.2-gtk-3.0  3.24.51-4
ii  python3         3.13.9-3
ii  python3-gi      3.56.1-2
ii  python3-xdg     0.28-3
ii  xdg-utils       1.2.1-2

Versions of packages zim recommends:
ii  gir1.2-gtkspell3-3.0  3.0.10-3+b1

Versions of packages zim suggests:
pn  bzr                   <none>
ii  ditaa                 0.10+ds1-1.4
ii  dvipng                1.18-1
pn  fossil                <none>
ii  gir1.2-gtksource-3.0  3.24.11-7
ii  git                   1:2.53.0-1
ii  gnuplot               6.0.3+dfsg1-1
ii  gnuplot-qt [gnuplot]  6.0.3+dfsg1-1
ii  graphviz              14.1.2-1
pn  lilypond              <none>
pn  mercurial             <none>
ii  python3-zeitgeist     1.0.4-5
pn  r-base                <none>
ii  scrot                 2.0.0-1

-- no debconf information

Reply via email to