Subject: bug#55422: Emacs not starting due to gsettings changes.

From: Pankaj Jangid <[email-masked]>
Date: Sun, 15 May 2022 11:38:33 +0530

Po Lu <[email-masked]> writes:

> Pankaj Jangid <[email-masked]> 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---

#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