unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#55422: Emacs not starting due to gsettings changes.
@ 2022-05-15  3:20 Pankaj Jangid
  2022-05-15  3:24 ` bug#55422: [Various] " Pankaj Jangid
  2022-05-15  4:02 ` bug#55422: Still not starting Pankaj Jangid
  0 siblings, 2 replies; 16+ messages in thread
From: Pankaj Jangid @ 2022-05-15  3:20 UTC (permalink / raw)
  To: 55422

As suggested on dev list, reporting it to bugs for tracking.

Emacs is crashing probably due to this commit -
526e9758de7d163ce3b25fde69a4e122ce9c3742

Emacs is producing below error. I am running it on Debian stable.

- -8<---------------cut here---------------start------------->8---
pankaj@anant:~/work/gnu/emacs (master)$ emacs

(emacs:1470526): GLib-GIO-ERROR **: 01:22:54.209: Settings schema 'org.gnome.desktop.interface' does not contain a key named 'font-antialiasing'
Fatal error 5: Trace/breakpoint trap
Backtrace:
emacs(+0x14e9d1)[0x55a79a4ac9d1]
emacs(+0x4346c)[0x55a79a3a146c]
emacs(+0x439aa)[0x55a79a3a19aa]
emacs(+0x14cf9d)[0x55a79a4aaf9d]
emacs(+0x14d089)[0x55a79a4ab089]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x14140)[0x7f9d63c8b140]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_log_structured_array+0x117)[0x7f9d64f37ca7]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_log_default_handler+0xb5)[0x7f9d64f380b5]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_logv+0x219)[0x7f9d64f38309]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_log+0x8f)[0x7f9d64f3859f]
/lib/x86_64-linux-gnu/libgio-2.0.so.0(+0xf44e9)[0x7f9d6515c4e9]
/lib/x86_64-linux-gnu/libgio-2.0.so.0(+0xf4b5c)[0x7f9d6515cb5c]
/lib/x86_64-linux-gnu/libgio-2.0.so.0(g_settings_get_value+0x65)[0x7f9d65160cf5]
emacs(+0x26bffd)[0x55a79a5c9ffd]
emacs(+0x26cdb3)[0x55a79a5cadb3]
emacs(+0x2631b2)[0x55a79a5c11b2]
emacs(+0x25431f)[0x55a79a5b231f]
emacs(+0x200175)[0x55a79a55e175]
emacs(+0x1b9e23)[0x55a79a517e23]
emacs(+0x1bb779)[0x55a79a519779]
emacs(+0x200175)[0x55a79a55e175]
emacs(+0x1bed87)[0x55a79a51cd87]
emacs(+0x1bd88d)[0x55a79a51b88d]
emacs(+0x1bfdb7)[0x55a79a51ddb7]
emacs(+0x1b86a7)[0x55a79a5166a7]
emacs(+0x12dee6)[0x55a79a48bee6]
emacs(+0x1b8601)[0x55a79a516601]
emacs(+0x12d4d8)[0x55a79a48b4d8]
emacs(+0x1343c3)[0x55a79a4923c3]
emacs(+0x13473c)[0x55a79a49273c]
emacs(+0x4be6d)[0x55a79a3a9e6d]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea)[0x7f9d63921d0a]
emacs(+0x4c4da)[0x55a79a3aa4da]
Trace/breakpoint trap
- -8<---------------cut here---------------end--------------->8---


Po Lu <luangruo@yahoo.com> writes:

> Pankaj Jangid <pankaj@codeisgreat.org> writes:
>
>> Probably due to this commit - 526e9758de7d163ce3b25fde69a4e122ce9c3742
>>
>> Emacs is producing below error. I am running it on Debian stable.
>
> Show a backtrace from gdb, please.  Thanks.

I am using PGTK build. Here is the stacktrace from master.


- -=-=-=
Content-Type: text/plain
Content-Disposition: inline; filename=gdb.txt

#0  0x00007ffff715dca7 in g_log_structured_array () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007ffff715e0b5 in g_log_default_handler () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff715e309 in g_logv () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff715e59f in g_log () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff73824e9 in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#5  0x00007ffff7382b5c in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#6  0x00007ffff7386cf5 in g_settings_get_value () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#7  0x000055555586a06e in apply_gsettings_font_antialias (settings=0x555555f40ba0)
    at xsettings.c:275
#8  0x000055555586a6fe in init_gsettings () at xsettings.c:1030
#9  0x000055555586a758 in xsettings_initialize (dpyinfo=0x555555fb34f0) at xsettings.c:1133
#10 0x0000555555863ff3 in pgtk_term_init
    (display_name=0x7ffff1b030b4, resource_name=0x555555dc42d0 "emacs") at pgtkterm.c:6511
#11 0x000055555584c991 in Fx_open_connection
    (display=0x7ffff1b030b4, resource_string=0x0, must_succeed=0x0) at pgtkfns.c:2176
#12 0x00005555557878f5 in funcall_subr
    (subr=0x555555c5ea80 <Sx_open_connection>, numargs=3, args=0x7ffff13cf1d0) at eval.c:2957
#13 0x00005555557d7fbd in exec_byte_code
    (fun=0x7ffff1e21525, args_template=514, nargs=2, args=0x7ffff13cf278) at bytecode.c:809
#14 0x0000555555787bad in fetch_and_exec_byte_code
    (fun=0x7ffff1c4045d, args_template=256, nargs=0, args=0x7ffff13cf150) at eval.c:3002
#15 0x0000555555787f21 in funcall_lambda (fun=0x7ffff1c4045d, nargs=0, arg_vector=0x7ffff13cf150)
    at eval.c:3074
#16 0x0000555555787496 in funcall_general (fun=0x7ffff1c4045d, numargs=0, args=0x7ffff13cf150)
    at eval.c:2865
#17 0x00005555557876f2 in Ffuncall (nargs=1, args=0x7ffff13cf148) at eval.c:2915
#18 0x000055555578683e in Fapply (nargs=2, args=0x7ffff13cf148) at eval.c:2539
#19 0x0000555555787ad9 in funcall_subr
    (subr=0x555555c58000 <Sapply>, numargs=2, args=0x7ffff13cf148) at eval.c:2980
#20 0x00005555557d7fbd in exec_byte_code
    (fun=0x7ffff1ece1ed, args_template=770, nargs=3, args=0x7ffff13cf3c0) at bytecode.c:809
#21 0x0000555555787bad in fetch_and_exec_byte_code
    (fun=0x7ffff1c73ab5, args_template=0, nargs=0, args=0x7fffffffd8c0) at eval.c:3002
#22 0x0000555555787f21 in funcall_lambda (fun=0x7ffff1c73ab5, nargs=0, arg_vector=0x7fffffffd8c0)
    at eval.c:3074
#23 0x0000555555787d3f in apply_lambda (fun=0x7ffff1c73ab5, args=0x0, count=...) at eval.c:3024
#24 0x0000555555786437 in eval_sub (form=0x7ffff221dcf3) at eval.c:2465
#25 0x0000555555785a1f in Feval (form=0x7ffff221dcf3, lexical=0x0) at eval.c:2276
#26 0x00005555556c6324 in top_level_2 () at keyboard.c:1149
#27 0x0000555555783cdf in internal_condition_case
    (bfun=0x5555556c6301 <top_level_2>, handlers=0x90, hfun=0x5555556c5c4f <cmd_error>)
    at eval.c:1450
#28 0x00005555556c636c in top_level_1 (ignore=0x0) at keyboard.c:1157
#29 0x00005555557833cc in internal_catch (tag=0xf390, func=0x5555556c6326 <top_level_1>, arg=0x0)
    at eval.c:1180
#30 0x00005555556c6245 in command_loop () at keyboard.c:1117
#31 0x00005555556c57fa in recursive_edit_1 () at keyboard.c:727
#32 0x00005555556c59a3 in Frecursive_edit () at keyboard.c:810
#33 0x00005555556c1e90 in main (argc=2, argv=0x7fffffffde48) at emacs.c:2470
quit

- -=-=-=--





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#55422: [Various] Emacs not starting due to gsettings changes.
  2022-05-15  3:20 bug#55422: Emacs not starting due to gsettings changes Pankaj Jangid
@ 2022-05-15  3:24 ` Pankaj Jangid
  2022-05-15  4:02 ` bug#55422: Still not starting Pankaj Jangid
  1 sibling, 0 replies; 16+ messages in thread
From: Pankaj Jangid @ 2022-05-15  3:24 UTC (permalink / raw)
  To: 55422

Forwarding Pieter and Po’s messages here for tracking.

-------------------- Start of forwarded message --------------------
Date: Sun, 15 May 2022 08:53:21 +0530
From: Various
Subject: Emacs not starting due to gsettings changes.

Topics:
   Re: Emacs not starting due to gsettings changes.
   Re: Emacs not starting due to gsettings changes.


----------------------------------------------------------------------

Date: Sat, 14 May 2022 22:10:34 +0200
From: Pieter van Prooijen <pieter.van.prooijen@teloden.nl>
To: Pankaj Jangid <pankaj@codeisgreat.org>, emacs-devel@gnu.org
Subject: Re: Emacs not starting due to gsettings changes.
Message-ID: <547ba15056f6eea242e4da6c43aa416df54a29fb.camel@teloden.nl>
References: <87o8012oat.fsf@codeisgreat.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

Hello All,

What is probably happening here is that debian stable uses an older
version of the org.gnome.desktop.interface schema?
I see that the keys that the font rendering patch needs were added in
jan 2021:
https://github.com/GNOME/gsettings-desktop-schemas/commit/d6a804b3a73605f9f=
fe917c31b9eb1301f2c4b73

I'll have a look if it's possible to fix this by checking if these
newer font keys are present in the schema and not fetching their value
if they are missing (which is marked in the glib docs as a "programmer
error", which would explain the trap).

Kind Regards,

Pieter


On Sat, 2022-05-14 at 01:33 +0530, Pankaj Jangid wrote:
> Probably due to this commit -
> 526e9758de7d163ce3b25fde69a4e122ce9c3742
>=20
> Emacs is producing below error. I am running it on Debian stable.
>=20
> --8<---------------cut here---------------start------------->8---
> pankaj@anant:~/work/gnu/emacs (master)$ emacs
>=20
> (emacs:1470526): GLib-GIO-ERROR **: 01:22:54.209: Settings schema
> 'org.gnome.desktop.interface' does not contain a key named 'font-
> antialiasing'
> Fatal error 5: Trace/breakpoint trap
> Backtrace:
> emacs(+0x14e9d1)[0x55a79a4ac9d1]
> emacs(+0x4346c)[0x55a79a3a146c]
> emacs(+0x439aa)[0x55a79a3a19aa]
> emacs(+0x14cf9d)[0x55a79a4aaf9d]
> emacs(+0x14d089)[0x55a79a4ab089]
> /lib/x86_64-linux-gnu/libpthread.so.0(+0x14140)[0x7f9d63c8b140]
> /lib/x86_64-linux-gnu/libglib-
> 2.0.so.0(g_log_structured_array+0x117)[0x7f9d64f37ca7]
> /lib/x86_64-linux-gnu/libglib-
> 2.0.so.0(g_log_default_handler+0xb5)[0x7f9d64f380b5]
> /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_logv+0x219)[0x7f9d64f38309]
> /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_log+0x8f)[0x7f9d64f3859f]
> /lib/x86_64-linux-gnu/libgio-2.0.so.0(+0xf44e9)[0x7f9d6515c4e9]
> /lib/x86_64-linux-gnu/libgio-2.0.so.0(+0xf4b5c)[0x7f9d6515cb5c]
> /lib/x86_64-linux-gnu/libgio-
> 2.0.so.0(g_settings_get_value+0x65)[0x7f9d65160cf5]
> emacs(+0x26bffd)[0x55a79a5c9ffd]
> emacs(+0x26cdb3)[0x55a79a5cadb3]
> emacs(+0x2631b2)[0x55a79a5c11b2]
> emacs(+0x25431f)[0x55a79a5b231f]
> emacs(+0x200175)[0x55a79a55e175]
> emacs(+0x1b9e23)[0x55a79a517e23]
> emacs(+0x1bb779)[0x55a79a519779]
> emacs(+0x200175)[0x55a79a55e175]
> emacs(+0x1bed87)[0x55a79a51cd87]
> emacs(+0x1bd88d)[0x55a79a51b88d]
> emacs(+0x1bfdb7)[0x55a79a51ddb7]
> emacs(+0x1b86a7)[0x55a79a5166a7]
> emacs(+0x12dee6)[0x55a79a48bee6]
> emacs(+0x1b8601)[0x55a79a516601]
> emacs(+0x12d4d8)[0x55a79a48b4d8]
> emacs(+0x1343c3)[0x55a79a4923c3]
> emacs(+0x13473c)[0x55a79a49273c]
> emacs(+0x4be6d)[0x55a79a3a9e6d]
> /lib/x86_64-linux-
> gnu/libc.so.6(__libc_start_main+0xea)[0x7f9d63921d0a]
> emacs(+0x4c4da)[0x55a79a3aa4da]
> Trace/breakpoint trap
> --8<---------------cut here---------------end--------------->8---


------------------------------

Date: Sun, 15 May 2022 09:43:10 +0800
From: Po Lu <luangruo@yahoo.com>
To: Pieter van Prooijen <pieter.van.prooijen@teloden.nl>
Cc: Pankaj Jangid <pankaj@codeisgreat.org>,  emacs-devel@gnu.org
Subject: Re: Emacs not starting due to gsettings changes.
Message-ID: <87k0ansh8x.fsf@yahoo.com>
References: <87o8012oat.fsf@codeisgreat.org>
	<547ba15056f6eea242e4da6c43aa416df54a29fb.camel@teloden.nl>
Content-Type: text/plain
MIME-Version: 1.0

Pieter van Prooijen <pieter.van.prooijen@teloden.nl> writes:

> Hello All,
>
> What is probably happening here is that debian stable uses an older
> version of the org.gnome.desktop.interface schema?

I already fixed that bug, you don't have to concern yourself with it any
further.

Thanks.

------------------------------

End of forwardnP8i2F Digest
***************************

-------------------- End of forwarded message --------------------





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#55422: Still not starting
  2022-05-15  3:20 bug#55422: Emacs not starting due to gsettings changes Pankaj Jangid
  2022-05-15  3:24 ` bug#55422: [Various] " Pankaj Jangid
@ 2022-05-15  4:02 ` Pankaj Jangid
  2022-05-15  4:19   ` bug#55422: Emacs not starting due to gsettings changes Po Lu
  1 sibling, 1 reply; 16+ messages in thread
From: Pankaj Jangid @ 2022-05-15  4:02 UTC (permalink / raw)
  To: 55422; +Cc: luangruo, pieter.van.prooijen

Is the fix available on master. Because in the latest pull, I am still
getting the error. And Emacs is not starting.





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#55422: Emacs not starting due to gsettings changes.
  2022-05-15  4:02 ` bug#55422: Still not starting Pankaj Jangid
@ 2022-05-15  4:19   ` Po Lu
  2022-05-15  5:17     ` Pankaj Jangid
  0 siblings, 1 reply; 16+ messages in thread
From: Po Lu @ 2022-05-15  4:19 UTC (permalink / raw)
  To: Pankaj Jangid; +Cc: 55422, pieter.van.prooijen

[Please do not change the subject line when replying to bug reports.]

Pankaj Jangid <pankaj@codeisgreat.org> writes:

> Is the fix available on master. Because in the latest pull, I am still
> getting the error. And Emacs is not starting.

Please set a breakpoint on this part of xsettings.c:

  GVariant *val;
  const char *antialias;

- if (!xg_settings_key_valid_p (settings, GSETTINGS_FONT_ANTIALIASING))
    return;

  val = g_settings_get_value (settings, GSETTINGS_FONT_ANTIALIASING);

What is the return of `xg_settings_key_valid_p'?





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#55422: Emacs not starting due to gsettings changes.
  2022-05-15  4:19   ` bug#55422: Emacs not starting due to gsettings changes Po Lu
@ 2022-05-15  5:17     ` Pankaj Jangid
  2022-05-15  5:56       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 16+ messages in thread
From: Pankaj Jangid @ 2022-05-15  5:17 UTC (permalink / raw)
  To: Po Lu; +Cc: 55422, pieter.van.prooijen

Po Lu <luangruo@yahoo.com> writes:

> Please set a breakpoint on this part of xsettings.c:
>
>   GVariant *val;
>   const char *antialias;
>
> - if (!xg_settings_key_valid_p (settings, GSETTINGS_FONT_ANTIALIASING))
>     return;
>
>   val = g_settings_get_value (settings, GSETTINGS_FONT_ANTIALIASING);
>
> What is the return of `xg_settings_key_valid_p'?

It is returning false.





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#55422: Emacs not starting due to gsettings changes.
  2022-05-15  5:17     ` Pankaj Jangid
@ 2022-05-15  5:56       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-05-15  6:08         ` Pankaj Jangid
  0 siblings, 1 reply; 16+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-05-15  5:56 UTC (permalink / raw)
  To: Pankaj Jangid; +Cc: 55422, pieter.van.prooijen

Pankaj Jangid <pankaj@codeisgreat.org> writes:

> It is returning false.

Then `font-aliasing' is not the problematic key anymore.  There is
another key that is missing, so please show the error message you get
with the current code.





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#55422: Emacs not starting due to gsettings changes.
  2022-05-15  5:56       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-05-15  6:08         ` Pankaj Jangid
  2022-05-15  6:49           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 16+ messages in thread
From: Pankaj Jangid @ 2022-05-15  6:08 UTC (permalink / raw)
  To: Po Lu; +Cc: 55422, pieter.van.prooijen

[-- Attachment #1: Type: text/plain, Size: 2642 bytes --]

Po Lu <luangruo@yahoo.com> writes:

> Pankaj Jangid <pankaj@codeisgreat.org> writes:
>
>> It is returning false.
>
> Then `font-aliasing' is not the problematic key anymore.  There is
> another key that is missing, so please show the error message you get
> with the current code.

Here is the error message. And attached is the stacktrace.

--8<---------------cut here---------------start------------->8---
pankaj@anant:~/work/gnu/emacs (master)$ ./src/emacs -Q

(emacs:1655703): GLib-GIO-ERROR **: 11:33:44.472: Settings schema 'org.gnome.desktop.interface' does not contain a key named 'font-hinting'
Fatal error 5: Trace/breakpoint trap
Backtrace:
./src/emacs(+0x19917f)[0x56146861f17f]
./src/emacs(+0x16b1fd)[0x5614685f11fd]
./src/emacs(+0x1989f0)[0x56146861e9f0]
./src/emacs(+0x1989c5)[0x56146861e9c5]
./src/emacs(+0x198a2b)[0x56146861ea2b]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x14140)[0x7fc97ea94140]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_log_structured_array+0x117)[0x7fc97fd40ca7]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_log_default_handler+0xb5)[0x7fc97fd410b5]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_logv+0x219)[0x7fc97fd41309]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_log+0x8f)[0x7fc97fd4159f]
/lib/x86_64-linux-gnu/libgio-2.0.so.0(+0xf44e9)[0x7fc97ff654e9]
/lib/x86_64-linux-gnu/libgio-2.0.so.0(+0xf4b5c)[0x7fc97ff65b5c]
/lib/x86_64-linux-gnu/libgio-2.0.so.0(g_settings_get_value+0x65)[0x7fc97ff69cf5]
./src/emacs(+0x315f40)[0x56146879bf40]
./src/emacs(+0x3167c1)[0x56146879c7c1]
./src/emacs(+0x31680c)[0x56146879c80c]
./src/emacs(+0x30fff3)[0x561468795ff3]
./src/emacs(+0x2f8991)[0x56146877e991]
./src/emacs(+0x2338f5)[0x5614686b98f5]
./src/emacs(+0x283fbd)[0x561468709fbd]
./src/emacs(+0x233bad)[0x5614686b9bad]
./src/emacs(+0x233f21)[0x5614686b9f21]
./src/emacs(+0x233496)[0x5614686b9496]
./src/emacs(+0x2336f2)[0x5614686b96f2]
./src/emacs(+0x23283e)[0x5614686b883e]
./src/emacs(+0x233ad9)[0x5614686b9ad9]
./src/emacs(+0x283fbd)[0x561468709fbd]
./src/emacs(+0x233bad)[0x5614686b9bad]
./src/emacs(+0x233f21)[0x5614686b9f21]
./src/emacs(+0x233d3f)[0x5614686b9d3f]
./src/emacs(+0x232437)[0x5614686b8437]
./src/emacs(+0x231a1f)[0x5614686b7a1f]
./src/emacs(+0x172324)[0x5614685f8324]
./src/emacs(+0x22fcdf)[0x5614686b5cdf]
./src/emacs(+0x17236c)[0x5614685f836c]
./src/emacs(+0x22f3cc)[0x5614686b53cc]
./src/emacs(+0x172245)[0x5614685f8245]
./src/emacs(+0x1717fa)[0x5614685f77fa]
./src/emacs(+0x1719a3)[0x5614685f79a3]
./src/emacs(+0x16de90)[0x5614685f3e90]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea)[0x7fc97e72ad0a]
...
Trace/breakpoint trap
--8<---------------cut here---------------end--------------->8---


[-- Attachment #2: gdb.txt --]
[-- Type: text/plain, Size: 3268 bytes --]

#0  0x00007ffff715dca7 in g_log_structured_array () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007ffff715e0b5 in g_log_default_handler () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff715e309 in g_logv () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff715e59f in g_log () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff73824e9 in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#5  0x00007ffff7382b5c in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#6  0x00007ffff7386cf5 in g_settings_get_value () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#7  0x0000555555869f40 in apply_gsettings_font_hinting (settings=0x555555f3f7a0) at xsettings.c:246
#8  0x000055555586a7c1 in init_gsettings () at xsettings.c:1063
#9  0x000055555586a80c in xsettings_initialize (dpyinfo=0x555555fb2270) at xsettings.c:1165
#10 0x0000555555863ff3 in pgtk_term_init (display_name=0x7ffff1b030b4, resource_name=0x555555dc42d0 "emacs") at pgtkterm.c:6511
#11 0x000055555584c991 in Fx_open_connection (display=0x7ffff1b030b4, resource_string=0x0, must_succeed=0x0) at pgtkfns.c:2176
#12 0x00005555557878f5 in funcall_subr (subr=0x555555c5ea80 <Sx_open_connection>, numargs=3, args=0x7ffff13cf1d0) at eval.c:2957
#13 0x00005555557d7fbd in exec_byte_code (fun=0x7ffff1e215f5, args_template=514, nargs=2, args=0x7ffff13cf278) at bytecode.c:809
#14 0x0000555555787bad in fetch_and_exec_byte_code (fun=0x7ffff1c4052d, args_template=256, nargs=0, args=0x7ffff13cf150) at eval.c:3002
#15 0x0000555555787f21 in funcall_lambda (fun=0x7ffff1c4052d, nargs=0, arg_vector=0x7ffff13cf150) at eval.c:3074
#16 0x0000555555787496 in funcall_general (fun=0x7ffff1c4052d, numargs=0, args=0x7ffff13cf150) at eval.c:2865
#17 0x00005555557876f2 in Ffuncall (nargs=1, args=0x7ffff13cf148) at eval.c:2915
#18 0x000055555578683e in Fapply (nargs=2, args=0x7ffff13cf148) at eval.c:2539
#19 0x0000555555787ad9 in funcall_subr (subr=0x555555c58000 <Sapply>, numargs=2, args=0x7ffff13cf148) at eval.c:2980
#20 0x00005555557d7fbd in exec_byte_code (fun=0x7ffff1ece2bd, args_template=770, nargs=3, args=0x7ffff13cf3c0) at bytecode.c:809
#21 0x0000555555787bad in fetch_and_exec_byte_code (fun=0x7ffff1c73b85, args_template=0, nargs=0, args=0x7fffffffd8c0) at eval.c:3002
#22 0x0000555555787f21 in funcall_lambda (fun=0x7ffff1c73b85, nargs=0, arg_vector=0x7fffffffd8c0) at eval.c:3074
#23 0x0000555555787d3f in apply_lambda (fun=0x7ffff1c73b85, args=0x0, count=...) at eval.c:3024
#24 0x0000555555786437 in eval_sub (form=0x7ffff221dd8b) at eval.c:2465
#25 0x0000555555785a1f in Feval (form=0x7ffff221dd8b, lexical=0x0) at eval.c:2276
#26 0x00005555556c6324 in top_level_2 () at keyboard.c:1149
#27 0x0000555555783cdf in internal_condition_case (bfun=0x5555556c6301 <top_level_2>, handlers=0x90, hfun=0x5555556c5c4f <cmd_error>) at eval.c:1450
#28 0x00005555556c636c in top_level_1 (ignore=0x0) at keyboard.c:1157
#29 0x00005555557833cc in internal_catch (tag=0xf390, func=0x5555556c6326 <top_level_1>, arg=0x0) at eval.c:1180
#30 0x00005555556c6245 in command_loop () at keyboard.c:1117
#31 0x00005555556c57fa in recursive_edit_1 () at keyboard.c:727
#32 0x00005555556c59a3 in Frecursive_edit () at keyboard.c:810
#33 0x00005555556c1e90 in main (argc=2, argv=0x7fffffffde48) at emacs.c:2470
quit

^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#55422: Emacs not starting due to gsettings changes.
  2022-05-15  6:08         ` Pankaj Jangid
@ 2022-05-15  6:49           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-05-15  7:31             ` Pankaj Jangid
  0 siblings, 1 reply; 16+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-05-15  6:49 UTC (permalink / raw)
  To: Pankaj Jangid; +Cc: 55422, pieter.van.prooijen

Pankaj Jangid <pankaj@codeisgreat.org> writes:

> Here is the error message. And attached is the stacktrace.

Does this fix the problem?

diff --git a/src/xsettings.c b/src/xsettings.c
index 16625bd229..ba75ea5703 100644
--- a/src/xsettings.c
+++ b/src/xsettings.c
@@ -230,6 +230,29 @@ #define GSETTINGS_FONT_HINTING       "font-hinting"
 /* The cairo font_options as obtained using gsettings.  */
 static cairo_font_options_t *font_options;
 
+static bool
+xg_settings_key_valid_p (GSettings *settings, const char *key)
+{
+#ifdef GLIB_VERSION_2_32
+  GSettingsSchema *schema;
+  bool rc;
+
+  g_object_get (G_OBJECT (settings),
+		"settings-schema", &schema,
+		NULL);
+
+  if (!schema)
+    return false;
+
+  rc = g_settings_schema_has_key (schema, key);
+  g_settings_schema_unref (schema);
+
+  return rc;
+#else
+  return false;
+#endif
+}
+
 /* Store an event for re-rendering of the fonts.  */
 static void
 store_font_options_changed (void)
@@ -243,13 +266,21 @@ store_font_options_changed (void)
 static void
 apply_gsettings_font_hinting (GSettings *settings)
 {
-  GVariant *val = g_settings_get_value (settings, GSETTINGS_FONT_HINTING);
+  GVariant *val;
+  const char *hinting;
+
+  if (!xg_settings_key_valid_p (settings, GSETTINGS_FONT_HINTING))
+    return;
+
+  val = g_settings_get_value (settings, GSETTINGS_FONT_HINTING);
+
   if (val)
     {
       g_variant_ref_sink (val);
+
       if (g_variant_is_of_type (val, G_VARIANT_TYPE_STRING))
 	{
-	  const char *hinting = g_variant_get_string (val, NULL);
+	  hinting = g_variant_get_string (val, NULL);
 
 	  if (!strcmp (hinting, "full"))
 	    cairo_font_options_set_hint_style (font_options,
@@ -268,29 +299,6 @@ apply_gsettings_font_hinting (GSettings *settings)
     }
 }
 
-static bool
-xg_settings_key_valid_p (GSettings *settings, const char *key)
-{
-#ifdef GLIB_VERSION_2_32
-  GSettingsSchema *schema;
-  bool rc;
-
-  g_object_get (G_OBJECT (settings),
-		"settings-schema", &schema,
-		NULL);
-
-  if (!schema)
-    return false;
-
-  rc = g_settings_schema_has_key (schema, key);
-  g_settings_schema_unref (schema);
-
-  return rc;
-#else
-  return false;
-#endif
-}
-
 /* Apply changes in the antialiasing system setting.  */
 static void
 apply_gsettings_font_antialias (GSettings *settings)





^ permalink raw reply related	[flat|nested] 16+ messages in thread

* bug#55422: Emacs not starting due to gsettings changes.
  2022-05-15  6:49           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-05-15  7:31             ` Pankaj Jangid
  2022-05-15  7:38               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-05-15  7:42               ` Eli Zaretskii
  0 siblings, 2 replies; 16+ messages in thread
From: Pankaj Jangid @ 2022-05-15  7:31 UTC (permalink / raw)
  To: Po Lu; +Cc: 55422, pieter.van.prooijen

[-- Attachment #1: Type: text/plain, Size: 213 bytes --]

Po Lu <luangruo@yahoo.com> writes:

> Pankaj Jangid <pankaj@codeisgreat.org> writes:
>
>> Here is the error message. And attached is the stacktrace.
>
> Does this fix the problem?
>
Nope. Here is the stacktrace,


[-- Attachment #2: gdb.txt --]
[-- Type: text/plain, Size: 7045 bytes --]

#0  0x00007ffff715dca7 in g_log_structured_array () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007ffff715e0b5 in g_log_default_handler () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff715e309 in g_logv () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff715e59f in g_log () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff73824e9 in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#5  0x00007ffff7382b5c in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#6  0x00007ffff7386cf5 in g_settings_get_value () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#7  0x0000555555869f40 in apply_gsettings_font_hinting (settings=0x555555f3f7a0) at xsettings.c:246
#8  0x000055555586a7c1 in init_gsettings () at xsettings.c:1063
#9  0x000055555586a80c in xsettings_initialize (dpyinfo=0x555555fb2270) at xsettings.c:1165
#10 0x0000555555863ff3 in pgtk_term_init (display_name=0x7ffff1b030b4, resource_name=0x555555dc42d0 "emacs") at pgtkterm.c:6511
#11 0x000055555584c991 in Fx_open_connection (display=0x7ffff1b030b4, resource_string=0x0, must_succeed=0x0) at pgtkfns.c:2176
#12 0x00005555557878f5 in funcall_subr (subr=0x555555c5ea80 <Sx_open_connection>, numargs=3, args=0x7ffff13cf1d0) at eval.c:2957
#13 0x00005555557d7fbd in exec_byte_code (fun=0x7ffff1e215f5, args_template=514, nargs=2, args=0x7ffff13cf278) at bytecode.c:809
#14 0x0000555555787bad in fetch_and_exec_byte_code (fun=0x7ffff1c4052d, args_template=256, nargs=0, args=0x7ffff13cf150) at eval.c:3002
#15 0x0000555555787f21 in funcall_lambda (fun=0x7ffff1c4052d, nargs=0, arg_vector=0x7ffff13cf150) at eval.c:3074
#16 0x0000555555787496 in funcall_general (fun=0x7ffff1c4052d, numargs=0, args=0x7ffff13cf150) at eval.c:2865
#17 0x00005555557876f2 in Ffuncall (nargs=1, args=0x7ffff13cf148) at eval.c:2915
#18 0x000055555578683e in Fapply (nargs=2, args=0x7ffff13cf148) at eval.c:2539
#19 0x0000555555787ad9 in funcall_subr (subr=0x555555c58000 <Sapply>, numargs=2, args=0x7ffff13cf148) at eval.c:2980
#20 0x00005555557d7fbd in exec_byte_code (fun=0x7ffff1ece2bd, args_template=770, nargs=3, args=0x7ffff13cf3c0) at bytecode.c:809
#21 0x0000555555787bad in fetch_and_exec_byte_code (fun=0x7ffff1c73b85, args_template=0, nargs=0, args=0x7fffffffd8c0) at eval.c:3002
#22 0x0000555555787f21 in funcall_lambda (fun=0x7ffff1c73b85, nargs=0, arg_vector=0x7fffffffd8c0) at eval.c:3074
#23 0x0000555555787d3f in apply_lambda (fun=0x7ffff1c73b85, args=0x0, count=...) at eval.c:3024
#24 0x0000555555786437 in eval_sub (form=0x7ffff221dd8b) at eval.c:2465
#25 0x0000555555785a1f in Feval (form=0x7ffff221dd8b, lexical=0x0) at eval.c:2276
#26 0x00005555556c6324 in top_level_2 () at keyboard.c:1149
#27 0x0000555555783cdf in internal_condition_case (bfun=0x5555556c6301 <top_level_2>, handlers=0x90, hfun=0x5555556c5c4f <cmd_error>) at eval.c:1450
#28 0x00005555556c636c in top_level_1 (ignore=0x0) at keyboard.c:1157
#29 0x00005555557833cc in internal_catch (tag=0xf390, func=0x5555556c6326 <top_level_1>, arg=0x0) at eval.c:1180
#30 0x00005555556c6245 in command_loop () at keyboard.c:1117
#31 0x00005555556c57fa in recursive_edit_1 () at keyboard.c:727
#32 0x00005555556c59a3 in Frecursive_edit () at keyboard.c:810
#33 0x00005555556c1e90 in main (argc=2, argv=0x7fffffffde48) at emacs.c:2470
quit
Starting program: /home/pankaj/work/gnu/emacs/src/emacs -Q
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff13cd700 (LWP 1664013)]
[New Thread 0x7ffff0bcc700 (LWP 1664014)]
[New Thread 0x7fffebfff700 (LWP 1664015)]
[New Thread 0x7fffeb7fe700 (LWP 1664016)]

Thread 1 "emacs" received signal SIGTRAP, Trace/breakpoint trap.
0x00007ffff715dca7 in g_log_structured_array () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#0  0x00007ffff715dca7 in g_log_structured_array () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007ffff715e0b5 in g_log_default_handler () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff715e309 in g_logv () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff715e59f in g_log () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff73824e9 in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#5  0x00007ffff7382b5c in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#6  0x00007ffff7386cf5 in g_settings_get_value () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#7  0x000055555586a22a in apply_gsettings_font_rgba_order (settings=0x555555f41fa0) at xsettings.c:339
#8  0x000055555586a7da in init_gsettings () at xsettings.c:1070
#9  0x000055555586a816 in xsettings_initialize (dpyinfo=0x555555fb4330) at xsettings.c:1171
#10 0x0000555555863ff3 in pgtk_term_init (display_name=0x7ffff1b020b4, resource_name=0x555555dc4050 "emacs") at pgtkterm.c:6511
#11 0x000055555584c991 in Fx_open_connection (display=0x7ffff1b020b4, resource_string=0x0, must_succeed=0x0) at pgtkfns.c:2176
#12 0x00005555557878f5 in funcall_subr (subr=0x555555c5ea80 <Sx_open_connection>, numargs=3, args=0x7ffff13ce1d0) at eval.c:2957
#13 0x00005555557d7fbd in exec_byte_code (fun=0x7ffff1e20785, args_template=514, nargs=2, args=0x7ffff13ce278) at bytecode.c:809
#14 0x0000555555787bad in fetch_and_exec_byte_code (fun=0x7ffff1c3f6bd, args_template=256, nargs=0, args=0x7ffff13ce150) at eval.c:3002
#15 0x0000555555787f21 in funcall_lambda (fun=0x7ffff1c3f6bd, nargs=0, arg_vector=0x7ffff13ce150) at eval.c:3074
#16 0x0000555555787496 in funcall_general (fun=0x7ffff1c3f6bd, numargs=0, args=0x7ffff13ce150) at eval.c:2865
#17 0x00005555557876f2 in Ffuncall (nargs=1, args=0x7ffff13ce148) at eval.c:2915
#18 0x000055555578683e in Fapply (nargs=2, args=0x7ffff13ce148) at eval.c:2539
#19 0x0000555555787ad9 in funcall_subr (subr=0x555555c58000 <Sapply>, numargs=2, args=0x7ffff13ce148) at eval.c:2980
#20 0x00005555557d7fbd in exec_byte_code (fun=0x7ffff1ecd58d, args_template=770, nargs=3, args=0x7ffff13ce3c0) at bytecode.c:809
#21 0x0000555555787bad in fetch_and_exec_byte_code (fun=0x7ffff1c72d15, args_template=0, nargs=0, args=0x7fffffffd8f0) at eval.c:3002
#22 0x0000555555787f21 in funcall_lambda (fun=0x7ffff1c72d15, nargs=0, arg_vector=0x7fffffffd8f0) at eval.c:3074
#23 0x0000555555787d3f in apply_lambda (fun=0x7ffff1c72d15, args=0x0, count=...) at eval.c:3024
#24 0x0000555555786437 in eval_sub (form=0x7ffff221d10b) at eval.c:2465
#25 0x0000555555785a1f in Feval (form=0x7ffff221d10b, lexical=0x0) at eval.c:2276
#26 0x00005555556c6324 in top_level_2 () at keyboard.c:1149
#27 0x0000555555783cdf in internal_condition_case (bfun=0x5555556c6301 <top_level_2>, handlers=0x90, hfun=0x5555556c5c4f <cmd_error>) at eval.c:1450
#28 0x00005555556c636c in top_level_1 (ignore=0x0) at keyboard.c:1157
#29 0x00005555557833cc in internal_catch (tag=0xf390, func=0x5555556c6326 <top_level_1>, arg=0x0) at eval.c:1180
#30 0x00005555556c6245 in command_loop () at keyboard.c:1117
#31 0x00005555556c57fa in recursive_edit_1 () at keyboard.c:727
#32 0x00005555556c59a3 in Frecursive_edit () at keyboard.c:810
#33 0x00005555556c1e90 in main (argc=2, argv=0x7fffffffde78) at emacs.c:2470
quit

^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#55422: Emacs not starting due to gsettings changes.
  2022-05-15  7:31             ` Pankaj Jangid
@ 2022-05-15  7:38               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-05-15  9:29                 ` Pankaj Jangid
  2022-05-15  7:42               ` Eli Zaretskii
  1 sibling, 1 reply; 16+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-05-15  7:38 UTC (permalink / raw)
  To: Pankaj Jangid; +Cc: 55422, pieter.van.prooijen

Pankaj Jangid <pankaj@codeisgreat.org> writes:

> Po Lu <luangruo@yahoo.com> writes:
>
>> Pankaj Jangid <pankaj@codeisgreat.org> writes:
>>
>>> Here is the error message. And attached is the stacktrace.
>>
>> Does this fix the problem?
>>
> Nope. Here is the stacktrace,

Please show the error message from GIO accompanying that backtrace.





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#55422: Emacs not starting due to gsettings changes.
  2022-05-15  7:31             ` Pankaj Jangid
  2022-05-15  7:38               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-05-15  7:42               ` Eli Zaretskii
  2022-05-15  9:33                 ` Pankaj Jangid
  1 sibling, 1 reply; 16+ messages in thread
From: Eli Zaretskii @ 2022-05-15  7:42 UTC (permalink / raw)
  To: Pankaj Jangid; +Cc: luangruo, 55422, pieter.van.prooijen

> Cc: 55422@debbugs.gnu.org, pieter.van.prooijen@teloden.nl
> From: Pankaj Jangid <pankaj@codeisgreat.org>
> Date: Sun, 15 May 2022 13:01:24 +0530
> 
> Po Lu <luangruo@yahoo.com> writes:
> 
> > Pankaj Jangid <pankaj@codeisgreat.org> writes:
> >
> >> Here is the error message. And attached is the stacktrace.
> >
> > Does this fix the problem?
> >
> Nope. Here is the stacktrace,
> 
> #0  0x00007ffff715dca7 in g_log_structured_array () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #1  0x00007ffff715e0b5 in g_log_default_handler () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #2  0x00007ffff715e309 in g_logv () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #3  0x00007ffff715e59f in g_log () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #4  0x00007ffff73824e9 in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
> #5  0x00007ffff7382b5c in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
> #6  0x00007ffff7386cf5 in g_settings_get_value () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
> #7  0x0000555555869f40 in apply_gsettings_font_hinting (settings=0x555555f3f7a0) at xsettings.c:246
> #8  0x000055555586a7c1 in init_gsettings () at xsettings.c:1063

Are you sure you applied the patch?  The line numbers in the backtrace
don't seem to match the line numbers in the patch that Po Lu sent.

Can you show the first 30 lines of apply_gsettings_font_hinting in the
patched file xsettings.c, including line numbers?





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#55422: Emacs not starting due to gsettings changes.
  2022-05-15  7:38               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-05-15  9:29                 ` Pankaj Jangid
  2022-05-15  9:39                   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 16+ messages in thread
From: Pankaj Jangid @ 2022-05-15  9:29 UTC (permalink / raw)
  To: Po Lu; +Cc: 55422, pieter.van.prooijen

Po Lu <luangruo@yahoo.com> writes:

> Pankaj Jangid <pankaj@codeisgreat.org> writes:
>
>> Po Lu <luangruo@yahoo.com> writes:
>>
>>> Pankaj Jangid <pankaj@codeisgreat.org> writes:
>>>
>>>> Here is the error message. And attached is the stacktrace.
>>>
>>> Does this fix the problem?
>>>
>> Nope. Here is the stacktrace,
>
> Please show the error message from GIO accompanying that backtrace.

pankaj@anant:~/work/gnu/emacs (gsettings)$ ./src/emacs -Q

(emacs:1663825): GLib-GIO-ERROR **: 12:56:54.466: Settings schema 'org.gnome.desktop.interface' does not contain a key named 'font-rgba-order'
Fatal error 5: Trace/breakpoint trap
Backtrace:
./src/emacs(+0x19917f)[0x55c11188217f]
./src/emacs(+0x16b1fd)[0x55c1118541fd]
./src/emacs(+0x1989f0)[0x55c1118819f0]
./src/emacs(+0x1989c5)[0x55c1118819c5]
./src/emacs(+0x198a2b)[0x55c111881a2b]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x14140)[0x7f68fb568140]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_log_structured_array+0x117)[0x7f68fc814ca7]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_log_default_handler+0xb5)[0x7f68fc8150b5]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_logv+0x219)[0x7f68fc815309]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_log+0x8f)[0x7f68fc81559f]
/lib/x86_64-linux-gnu/libgio-2.0.so.0(+0xf44e9)[0x7f68fca394e9]
/lib/x86_64-linux-gnu/libgio-2.0.so.0(+0xf4b5c)[0x7f68fca39b5c]
/lib/x86_64-linux-gnu/libgio-2.0.so.0(g_settings_get_value+0x65)[0x7f68fca3dcf5]
./src/emacs(+0x31622a)[0x55c1119ff22a]
./src/emacs(+0x3167da)[0x55c1119ff7da]
./src/emacs(+0x316816)[0x55c1119ff816]
./src/emacs(+0x30fff3)[0x55c1119f8ff3]
./src/emacs(+0x2f8991)[0x55c1119e1991]
./src/emacs(+0x2338f5)[0x55c11191c8f5]
./src/emacs(+0x283fbd)[0x55c11196cfbd]
./src/emacs(+0x233bad)[0x55c11191cbad]
./src/emacs(+0x233f21)[0x55c11191cf21]
./src/emacs(+0x233496)[0x55c11191c496]
./src/emacs(+0x2336f2)[0x55c11191c6f2]
./src/emacs(+0x23283e)[0x55c11191b83e]
./src/emacs(+0x233ad9)[0x55c11191cad9]
./src/emacs(+0x283fbd)[0x55c11196cfbd]
./src/emacs(+0x233bad)[0x55c11191cbad]
./src/emacs(+0x233f21)[0x55c11191cf21]
./src/emacs(+0x233d3f)[0x55c11191cd3f]
./src/emacs(+0x232437)[0x55c11191b437]
./src/emacs(+0x231a1f)[0x55c11191aa1f]
./src/emacs(+0x172324)[0x55c11185b324]
./src/emacs(+0x22fcdf)[0x55c111918cdf]
./src/emacs(+0x17236c)[0x55c11185b36c]
./src/emacs(+0x22f3cc)[0x55c1119183cc]
./src/emacs(+0x172245)[0x55c11185b245]
./src/emacs(+0x1717fa)[0x55c11185a7fa]
./src/emacs(+0x1719a3)[0x55c11185a9a3]
./src/emacs(+0x16de90)[0x55c111856e90]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea)[0x7f68fb1fed0a]
...
Trace/breakpoint trap






^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#55422: Emacs not starting due to gsettings changes.
  2022-05-15  7:42               ` Eli Zaretskii
@ 2022-05-15  9:33                 ` Pankaj Jangid
  0 siblings, 0 replies; 16+ messages in thread
From: Pankaj Jangid @ 2022-05-15  9:33 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: luangruo, 55422, pieter.van.prooijen

Eli Zaretskii <eliz@gnu.org> writes:

> Are you sure you applied the patch?  The line numbers in the backtrace
> don't seem to match the line numbers in the patch that Po Lu sent.
>
> Can you show the first 30 lines of apply_gsettings_font_hinting in the
> patched file xsettings.c, including line numbers?

I think so. I did the following,

1. saved patch in a file gs.patch
2. git checkout -b gsettings (from master)
3. git apply gs.patch

I just verified in the gsettings (local branch) using "git diff
master". The patch is indeed applied.





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#55422: Emacs not starting due to gsettings changes.
  2022-05-15  9:29                 ` Pankaj Jangid
@ 2022-05-15  9:39                   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-05-15 11:21                     ` Pankaj Jangid
  0 siblings, 1 reply; 16+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-05-15  9:39 UTC (permalink / raw)
  To: Pankaj Jangid; +Cc: 55422, pieter.van.prooijen

Pankaj Jangid <pankaj@codeisgreat.org> writes:

> (emacs:1663825): GLib-GIO-ERROR **: 12:56:54.466: Settings schema 'org.gnome.desktop.interface' does not contain a key named 'font-rgba-order'

Should be fixed now.  I wonder why your schema is so horribly out of
date: I didn't know systems with those still exist that are capable of
running GTK 3.20 or later.





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#55422: Emacs not starting due to gsettings changes.
  2022-05-15  9:39                   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-05-15 11:21                     ` Pankaj Jangid
  2022-05-15 11:45                       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 16+ messages in thread
From: Pankaj Jangid @ 2022-05-15 11:21 UTC (permalink / raw)
  To: Po Lu; +Cc: 55422, pieter.van.prooijen

Po Lu <luangruo@yahoo.com> writes:

> Should be fixed now.  I wonder why your schema is so horribly out of
> date: I didn't know systems with those still exist that are capable of
> running GTK 3.20 or later.

It’s working now. Thanks.

Debian (Stable) is known for testing the patience. :-)





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#55422: Emacs not starting due to gsettings changes.
  2022-05-15 11:21                     ` Pankaj Jangid
@ 2022-05-15 11:45                       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 0 replies; 16+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-05-15 11:45 UTC (permalink / raw)
  To: Pankaj Jangid; +Cc: 55422-done, pieter.van.prooijen

Pankaj Jangid <pankaj@codeisgreat.org> writes:

> It’s working now. Thanks.

Any time.  I'm closing this bug report.





^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2022-05-15 11:45 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-15  3:20 bug#55422: Emacs not starting due to gsettings changes Pankaj Jangid
2022-05-15  3:24 ` bug#55422: [Various] " Pankaj Jangid
2022-05-15  4:02 ` bug#55422: Still not starting Pankaj Jangid
2022-05-15  4:19   ` bug#55422: Emacs not starting due to gsettings changes Po Lu
2022-05-15  5:17     ` Pankaj Jangid
2022-05-15  5:56       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-15  6:08         ` Pankaj Jangid
2022-05-15  6:49           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-15  7:31             ` Pankaj Jangid
2022-05-15  7:38               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-15  9:29                 ` Pankaj Jangid
2022-05-15  9:39                   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-15 11:21                     ` Pankaj Jangid
2022-05-15 11:45                       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-15  7:42               ` Eli Zaretskii
2022-05-15  9:33                 ` Pankaj Jangid

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).