#1144487 apostrophe: fails to start with Python 3.14: cannot pickle 'ApostropheTextView' object

Package:
apostrophe
Source:
apostrophe
Description:
Distraction free Markdown editor
Submitter:
H4F&P
Date:
2026-08-19 17:35:02 UTC
Severity:
normal
Tags:
#1144487#5
Date:
2026-08-15 19:40:55 UTC
From:
To:
Dear Maintainer,

Apostrophe fails to start on a system with Python 3.14 as the default
python3. The window never appears.

What I did:

  $ apostrophe

What happened:

Two tracebacks are printed. The first one:

  File "/usr/lib/python3/dist-packages/apostrophe/text_view.py", line 139, in __init__
    self.markup = MarkupHandler(self)
  File "/usr/lib/python3/dist-packages/apostrophe/text_view_markup_handler.py", line 142, in __init__
    Process(target=self.parse, args=(child_conn,), daemon=True).start()
  [...]
  File "/usr/lib/python3.14/multiprocessing/popen_forkserver.py", line 47, in _launch
    reduction.dump(process_obj, buf)
  File "/usr/lib/python3.14/multiprocessing/reduction.py", line 60, in dump
    ForkingPickler(file, protocol).dump(obj)
  TypeError: cannot pickle 'ApostropheTextView' object
  when serializing dict item 'textview'
  when serializing apostrophe.text_view_markup_handler.MarkupHandler state
  [...]

Followed by a secondary failure caused by the first:

  File "/usr/lib/python3/dist-packages/apostrophe/application.py", line 261, in _set_color_scheme
    window.textview.markup.on_style_updated()
  AttributeError: 'ApostropheTextView' object has no attribute 'markup'

What I expected:

The editor window to open normally.

Cause:

Python 3.14 changed the default multiprocessing start method on POSIX
platforms from 'fork' to 'forkserver':
https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods

Upstream bug and patch:
https://gitlab.gnome.org/World/apostrophe/-/issues/669

Alpine has already applied that patch:
https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/103093

Workaround:

Forcing the 'fork' start method before Apostrophe creates its processes
makes the application start normally.

#1144487#8
Date:
2026-08-19 17:11:18 UTC
From:
To:
Hello,

Bug #1144487 in apostrophe reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/gnome-team/apostrophe/-/commit/389088196b49f53124bb924f7bdbd9266c5e1d2f

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1144487

#1144487#15
Date:
2026-08-19 17:33:47 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
apostrophe, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1144487@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matthias Geiger <werdahias@debian.org> (supplier of updated apostrophe package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 19 Aug 2026 16:29:16 +0200
Source: apostrophe
Architecture: source
Version: 3.4-3
Distribution: unstable
Urgency: medium
Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>
Changed-By: Matthias Geiger <werdahias@debian.org>
Closes: 1144487
Changes:
 apostrophe (3.4-3) unstable; urgency=medium
 .
   * Add patch to fix compatibility with python 3.14 (Closes: #1144487)
   * d/control: Bump S-V to 4.7.4; no changes needed
Checksums-Sha1:
 0da75a1b9ef13ab02bfbf77b3a10e0b374c10e9f 1521 apostrophe_3.4-3.dsc
 3b79ab0dd7a5ebfaeca71856cecb07e4e46bcb9b 10320 apostrophe_3.4-3.debian.tar.xz
 4ee5a3033f1d63ee8fabb0410eac7760087170cd 15083 apostrophe_3.4-3_amd64.buildinfo
Checksums-Sha256:
 71260a5d4efb320504c385f2a42061b38397f8482cbbe95619f64013f3c1ff77 1521 apostrophe_3.4-3.dsc
 3be6329b7542d334a1bac677bb8733e79132cd4613be46b222be14bcf4fea05a 10320 apostrophe_3.4-3.debian.tar.xz
 4e6d186e9381422241edd85d0d66f90ff2bd7a7a726d846f33a420a04a081aa2 15083 apostrophe_3.4-3_amd64.buildinfo
Files:
 de985e34f6b39e43d486538d63760cd5 1521 gnome optional apostrophe_3.4-3.dsc
 ba9fd5e8b49f03d0e14766219f0dd6ec 10320 gnome optional apostrophe_3.4-3.debian.tar.xz
 e83c71a5de96bebd42bc334d1a649678 15083 gnome optional apostrophe_3.4-3_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQQUWTv/Sl6/b+DpcW7svtu2B7myvgUCaoXjQAAKCRDsvtu2B7my
vk1/AQDE8UAVAAvBKGPGN3P2okGwbIJxl2OtrZJSh6MLhZ20gQEAroGpFzCXJfO6
iLiA9NJy3uZ6RMITOo2vUR6XCfxaPQ4=
=9xQw
-----END PGP SIGNATURE-----