Bug#1050462: gtg: crashes on startup often

2023-09-03 Thread François Mazen
Hi Antonio,

> We probably want to fix the code to *not* segfault when the workaround
> is not in place. 

Agreed!

> I'm not sure whether this is a bug in gtg itself, or
> in pango.

The issue is likely in the g_object_get_property or in
pango_font_description_to_string, or in the code calling both methods in
GTG/gtk/general_preferences.py

For now, I've followed the upstream advice to revert the behavior to get a
default font when font_name is not available, hence by-passing the two
problematic methods. I've just committed the patch [1], and I'll likely upload a
new package shortly to prevent package removal.

Let me know if this sounds acceptable to you.

Best,
François

[1]
https://salsa.debian.org/python-team/packages/gtg/-/commit/e9ac644f40629704a4e85b56ff887a59d6748d58


signature.asc
Description: This is a digitally signed message part


Bug#1050462: gtg: crashes on startup often

2023-08-26 Thread Antonio Terceiro
On Fri, Aug 25, 2023 at 08:52:49PM +0200, François Mazen wrote:
> Dear Antonio,
> 
> thanks for the crash report! I can reproduce it easily with unstable
> distribution and the call stack points to pango_font_description_to_string
> method.
> 
> The issues seems to have been already reported upstream [1] and the suggested
> worj around is to add "font_name = Sans 11" in the [browser] section of the
> ~/.config/gtg/gtg.conf config file.

Thanks, this indeed seem to work around the issue.

> I've checked the fix and no more crash occurs, so it could be integrated as a
> quilt patch for the Debian package.

We probably want to fix the code to *not* segfault when the workaround
is not in place. I'm not sure whether this is a bug in gtg itself, or
in pango.


signature.asc
Description: PGP signature


Bug#1050462: gtg: crashes on startup often

2023-08-25 Thread François Mazen
Dear Antonio,

thanks for the crash report! I can reproduce it easily with unstable
distribution and the call stack points to pango_font_description_to_string
method.

The issues seems to have been already reported upstream [1] and the suggested
worj around is to add "font_name = Sans 11" in the [browser] section of the
~/.config/gtg/gtg.conf config file.

I've checked the fix and no more crash occurs, so it could be integrated as a
quilt patch for the Debian package.

Best Regards,
François


[1]
https://github.com/getting-things-gnome/gtg/issues/961#issuecomment-1475321154


signature.asc
Description: This is a digitally signed message part


Bug#1050462: gtg: crashes on startup often

2023-08-24 Thread Antonio Terceiro
Package: gtg
Version: 0.6-4
Severity: grave
Justification: renders package unusable

Dear Maintainer,

gtg crashes on startup very often.

~$ gtg
2023-08-24 14:38:12,928 - WARNING - adaptive_button:do_forall:279 - Got error 
in for but it should've stay valid: AttributeError("'AdaptiveFittingWidget' 
object has no attribute '_children'")
~$ gtg
2023-08-24 14:38:17,288 - WARNING - adaptive_button:do_forall:279 - Got error 
in for but it should've stay valid: AttributeError("'AdaptiveFittingWidget' 
object has no attribute '_children'")
~$ gtg
Segmentation fault
~[139]$ gtg
2023-08-24 14:38:25,240 - WARNING - adaptive_button:do_forall:279 - Got error 
in for but it should've stay valid: AttributeError("'AdaptiveFittingWidget' 
object has no attribute '_children'")
~$ gtg
Segmentation fault
~[139]$ gtg
Segmentation fault
~[139]$ gtg
2023-08-24 14:38:40,377 - WARNING - adaptive_button:do_forall:279 - Got error 
in for but it should've stay valid: AttributeError("'AdaptiveFittingWidget' 
object has no attribute '_children'")

I can reproduce this issue:

- on both arm64 and amd64 systems, running testing;
- with or without wiping out ~/.local/share/gtg/ before each attempt at
  starting it.

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (900, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: arm64 (aarch64)

Kernel: Linux 6.5.0-0-arm64 (SMP w/32 CPU threads)
Kernel taint flags: TAINT_UNSIGNED_MODULE
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.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 gtg depends on:
ii  gir1.2-gtk-3.0 [gir1.2-gdk-3.0]  3.24.38-2
ii  gir1.2-gtksource-4   4.8.4-4
ii  gir1.2-pango-1.0 1.51.0+ds-2
ii  gir1.2-secret-1  0.21.0-1
ii  pdftk-java   3.3.3-1
ii  python3  3.11.4-5+b1
ii  python3-caldav   0.11.0-1
ii  python3-cheetah  3.3.2-1
ii  python3-gi   3.44.1-2
ii  python3-gi-cairo 3.44.1-2
ii  python3-liblarch 3.2.0-3
ii  python3-lxml 4.9.3-1
ii  texlive-extra-utils  2022.20230122-4
ii  texlive-latex-base   2022.20230122-3

gtg recommends no packages.

gtg suggests no packages.

-- no debconf information


signature.asc
Description: PGP signature