One way this may go haywire looks like this: [...]
I've added more debugging to x2gostartagent. FC26 have completed already, so you know the drill. Update the system, then start a new session (will fail, but that's fine) and look at the syslog.
I'm only interested in the new message that should pop up there, starting with "started nxagent: ".
With that we'll see what XAUTHORITY is set to (and how nxagent was spawned in general, which is always good to know.)
I had to install the DMG client from Nov. 5 as git20171029.1693.heuler.OSX_10_10.dmg <https://code.x2go.org/releases/X2GoClient_nightly_macosx/x2goclient-4.1.1.1.git20171029.1693.heuler.OSX_10_10.dmg> just hung for 20 minutes with no real logs. But with 20171105.1696.heuler.OSX_10_10.dmg <https://code.x2go.org/releases/X2GoClient_nightly_macosx/x2goclient-4.1.1.1.git20171105.1696.heuler.OSX_10_10.dmg> a coredump of packagekitd:
Nov 5 12:54:31 sobolev systemd-logind[11727]: New session 2323 of user localguy.
Nov 5 12:54:31 sobolev kernel: PK-Backend[2588]: segfault at 8 ip 00007f2701c18724 sp 00007f26e29d1700 error 4 in libc-2.25.so [7f2701b8f000+1cb000]
Nov 5 12:54:31 sobolev systemd[1]: Started Process Core Dump (PID 2677/UID 0).
Nov 5 12:54:31 sobolev systemd[1]: packagekit.service: Main process exited, code=killed, status=11/SEGV
Nov 5 12:54:31 sobolev systemd[1]: packagekit.service: Unit entered failed state.
Nov 5 12:54:31 sobolev systemd[1]: packagekit.service: Failed with result 'signal'.
Nov 5 12:54:31 sobolev /usr/bin/x2gostartagent[2742]: x2gostartagent called with options: 800x600 adsl 16m-jpeg-9 unix-kde-depth_32 us query 0 D XFCE both
Nov 5 12:54:32 sobolev systemd-coredump[2683]: Process 16689 (packagekitd) of user 0 dumped core.#012#012Stack trace of thread 2588:#012#0 0x00007f2701c18724 _int_malloc (libc.so.6)#012#1 0x00007f2701c1bcb8 malloc (libc.so.6)#012#2 0x00007f26f0f4f4c1 parserCreate (libexpat.so.1)#012#3 0x00007f26f272432c lr_yum_repomd_parse_file (librepo.so.0)#012#4 0x00007f26f2728043 lr_yum_perform (librepo.so.0)#012#5 0x00007f26f271d3cb lr_handle_perform (librepo.so.0)#012#6 0x00007f26f29617cc dnf_repo_check (libdnf.so.1)#012#7 0x00007f26f2956084 dnf_sack_add_repo (libdnf.so.1)#012#8 0x00007f26f2956389 dnf_sack_add_repos (libdnf.so.1)#012#9 0x00007f26f81e986b dnf_utils_create_sack_for_filters (libpk_backend_dnf.so)#012#10 0x00007f26f81eaa9b pk_backend_search_thread (libpk_backend_dnf.so)#012#11 0x0000562c24d73b7a pk_backend_job_thread_setup (packagekitd)#012#12 0x00007f270240b536 g_thread_proxy (libglib-2.0.so.0)#012#13 0x00007f2701f6b36d start_thread (libpthread.so.0)#012#14 0x00007f2701c9fe1f __clone (libc.so.6)#012#012Stack trace of thread 16690:#012#0 0x00007f2701c93d2d poll (libc.so.6)#012#1 0x00007f27023e4569 g_main_context_iterate.isra.25 (libglib-2.0.so.0)#012#2 0x00007f27023e467c g_main_context_iteration (libglib-2.0.so.0)#012#3 0x00007f27023e46c1 glib_worker_main (libglib-2.0.so.0)#012#4 0x00007f270240b536 g_thread_proxy (libglib-2.0.so.0)#012#5 0x00007f2701f6b36d start_thread (libpthread.so.0)#012#6 0x00007f2701c9fe1f __clone (libc.so.6)#012#012Stack trace of thread 16691:#012#0 0x00007f2701c93d2d poll (libc.so.6)#012#1 0x00007f27023e4569 g_main_context_iterate.isra.25 (libglib-2.0.so.0)#012#2 0x00007f27023e4902 g_main_loop_run (libglib-2.0.so.0)#012#3 0x00007f27029c9cb6 gdbus_shared_thread_func (libgio-2.0.so.0)#012#4 0x00007f270240b536 g_thread_proxy (libglib-2.0.so.0)#012#5 0x00007f2701f6b36d start_thread (libpthread.so.0)#012#6 0x00007f2701c9fe1f __clone (libc.so.6)#012#012Stack trace of thread 16689:#012#0 0x00007f2701c93d2d poll (libc.so.6)#012#1 0x00007f27023e4569 g_main_context_iterate.isra.25 (libglib-2.0.so.0)#012#2 0x00007f27023e4902 g_main_loop_run (libglib-2.0.so.0)#012#3 0x0000562c24d613eb main (packagekitd)#012#4 0x00007f2701baf88a __libc_start_main (libc.so.6)#012#5 0x0000562c24d615aa _start (packagekitd)#012#012Stack trace of thread 2587:#012#0 0x00007f2701c9a7b9 syscall (libc.so.6)#012#1 0x00007f27024296fa g_cond_wait_until (libglib-2.0.so.0)#012#2 0x00007f27023b8b31 g_async_queue_pop_intern_unlocked (libglib-2.0.so.0)#012#3 0x00007f270240bed4 g_thread_pool_thread_proxy (libglib-2.0.so.0)#012#4 0x00007f270240b536 g_thread_proxy (libglib-2.0.so.0)#012#5 0x00007f2701f6b36d start_thread (libpthread.so.0)#012#6 0x00007f2701c9fe1f __clone (libc.so.6)
Nov 5 12:54:32 sobolev /usr/bin/x2gosessionlimit[2762]: x2gosessionlimit has been called
Nov 5 12:54:32 sobolev x2golistsessions[2765]: x2golistsessions has been called with options: --all-servers
Nov 5 12:54:33 sobolev abrt-dump-journal-core[950]: connect('/var/run/abrt/abrt.socket'): Connection refuse
Nov 5 12:54:44 sobolev systemd-logind[11727]: Removed session 2322.
Nov 5 12:55:39 sobolev /usr/bin/x2gofeature[5935]: x2gofeature called with options: X2GO_RUN_EXTENSIONS
Nov 5 12:55:39 sobolev /usr/share/x2go/x2gofeature.d/x2goserver-extensions.features[5940]: x2goserver-extensions.features called with options: X2GO_RUN_EXTENSIONS
Nov 5 12:55:39 sobolev /usr/bin/x2goserver-run-extensions[5945]: x2goserver-run-extensions called with options: localguy-158-1509904537_stDXFCE_dp32 pre-start
Nov 5 12:55:39 sobolev /usr/bin/x2gostartagent[5956]: creating new session: localguy-158-1509904537_stDXFCE_dp32 987f364647dc4560b0c0eb10e7d16eeb 5954 65.78.12.82 58562 58563 58564 -1 -1
Nov 5 12:55:39 sobolev /usr/bin/x2gostartagent[5965]: blocking creation of agent's keyboard file /tmp/.x2go-localguy/C-localguy-158-1509904537_stDXFCE_dp32/keyboard as requested by session startup command
Nov 5 12:55:39 sobolev /usr/bin/x2gostartagent[5968]: successfully started X2Go agent session with ID localguy-158-1509904537_stDXFCE_dp32
Nov 5 12:55:39 sobolev /usr/bin/x2gofeature[5975]: x2gofeature called with options: X2GO_RUN_EXTENSIONS
Nov 5 12:55:39 sobolev /usr/share/x2go/x2gofeature.d/x2goserver-extensions.features[5980]: x2goserver-extensions.features called with options: X2GO_RUN_EXTENSIONS
Nov 5 12:55:39 sobolev /usr/bin/x2goserver-run-extensions[5985]: x2goserver-run-extensions called with options: localguy-158-1509904537_stDXFCE_dp32 post-start
Nov 5 12:55:45 sobolev /usr/bin/x2gocmdexitmessage[6058]: x2gocmdexitmessage called with options: localguy-158-1509904537_stDXFCE_dp32
Nov 5 12:55:45 sobolev systemd-logind[11727]: Removed session 2323.
And just in case, logs from client:
x2go-DEBUG-../src/sshmasterconnection.cpp:248> Starting SSH connection without Kerberos authentication.
x2go-DEBUG-../src/sshmasterconnection.cpp:252> SshMasterConnection, instance SshMasterConnection(0x7fbb38f20aa0) created.
x2go-DEBUG-../src/sshmasterconnection.cpp:520> SshMasterConnection, instance SshMasterConnection(0x7fbb38f20aa0) entering thread.
x2go-DEBUG-../src/sshmasterconnection.cpp:831> Session port before config file parse: 22
x2go-DEBUG-../src/sshmasterconnection.cpp:841> Session port after config file parse: 22
x2go-DEBUG-../src/sshmasterconnection.cpp:906> Session port before config file parse (part 2): 22
x2go-DEBUG-../src/sshmasterconnection.cpp:916> Session port after config file parse (part 2): 22
x2go-DEBUG-../src/sshmasterconnection.cpp:941> cserverAuth
x2go-DEBUG-../src/sshmasterconnection.cpp:982> state: 1
x2go-DEBUG-../src/sshmasterconnection.cpp:1263> Challenge authentication failed. Trying password mechanism if available.
x2go-DEBUG-../src/sshmasterconnection.cpp:1269> Password mechanism available. Continuing.
x2go-DEBUG-../src/sshmasterconnection.cpp:1273> Password authentication requested.
x2go-DEBUG-../src/sshmasterconnection.cpp:723> User authentication OK.
x2go-DEBUG-../src/sshmasterconnection.cpp:1740> LOGIN CHECK:"LOGIN OK
"
x2go-DEBUG-../src/sshmasterconnection.cpp:1743> don't have interaction
x2go-DEBUG-../src/sshmasterconnection.cpp:1776> LOOP FINISHED
x2go-DEBUG-../src/sshmasterconnection.cpp:1780> No interaction needed, continue session
x2go-DEBUG-../src/sshmasterconnection.cpp:727> Login Check - OK
x2go-DEBUG-../src/onmainwindow.cpp:3056> SSH connection established.
x2go-DEBUG-../src/onmainwindow.cpp:3450> Continue normal X2Go session
x2go-DEBUG-../src/sshprocess.cpp:199> Executing remote command via SshProcess object 0: "export HOSTNAME && x2golistsessions"
x2go-DEBUG-../src/sshprocess.cpp:213> this=SshProcess(0x7fbb38f1cab0) Running masterCon->addChannelConnection(this, ' "717baa06-0796-469b-9c30-4cc2034ab1dd" ', ' "bash -l -c 'echo "X2GODATABEGIN:717baa06-0796-469b-9c30-4cc2034ab1dd"; export PATH="/usr/local/bin:/usr/bin:/bin";export TERM="dumb"; export HOSTNAME && x2golistsessions; echo "X2GODATAEND:717baa06-07" ');
x2go-DEBUG-../src/sshmasterconnection.cpp:1842> Locking SSH channel connection MUTEX.
x2go-DEBUG-../src/sshmasterconnection.cpp:1844> Passing new channel connection object to channelConnections.
x2go-DEBUG-../src/sshmasterconnection.cpp:1846> Unlocking SSH channel connection MUTEX.
x2go-DEBUG-../src/sshmasterconnection.cpp:2034> Creating new channel.
x2go-DEBUG-../src/sshmasterconnection.cpp:2051> New channel:0x7fbb38f26d80
x2go-DEBUG-../src/sshmasterconnection.cpp:2136> Executing remote: "bash -l -c 'echo "X2GODATABEGIN:717baa06-0796-469b-9c30-4cc2034ab1dd"; export PATH="/usr/local/bin:/usr/bin:/bin";export TERM="dumb"; export HOSTNAME && x2golistsessions; echo "X2GODATAEND:717baa06-0796-469b-9c30-4cc2034ab1dd";'"
x2go-DEBUG-../src/sshmasterconnection.cpp:2159> New exec channel created.
x2go-DEBUG-../src/sshmasterconnection.cpp:2208> EOF on channel 0x7fbb38f26d80; SshProcess object: 0
x2go-DEBUG-../src/sshmasterconnection.cpp:2331> EOF sent.
x2go-DEBUG-../src/sshmasterconnection.cpp:2335> Channel closed.
x2go-DEBUG-../src/sshprocess.cpp:526> SSH finished: raw output (stdout): "X2GODATABEGIN:717baa06-0796-469b-9c30-4cc2034ab1dd
X2GODATAEND:717baa06-0796-469b-9c30-4cc2034ab1dd
"
x2go-DEBUG-../src/sshprocess.cpp:537> SSH finished: true - "" (0).
x2go-DEBUG-../src/onmainwindow.cpp:3918> ""
x2go-DEBUG-../src/onmainwindow.cpp:4478> Executing remote command: "X2GODPI=72 x2gostartagent 800x600 adsl 16m-jpeg-9 unix-kde-depth_32 us query 0 D XFCE both"
x2go-DEBUG-../src/sshprocess.cpp:199> Executing remote command via SshProcess object 1: "X2GODPI=72 x2gostartagent 800x600 adsl 16m-jpeg-9 unix-kde-depth_32 us query 0 D XFCE both"
x2go-DEBUG-../src/sshprocess.cpp:213> this=SshProcess(0x7fbb38f6a680) Running masterCon->addChannelConnection(this, ' "27e7d2d0-6286-4186-a83e-7e9d70d4ef46" ', ' "bash -l -c 'echo "X2GODATABEGIN:27e7d2d0-6286-4186-a83e-7e9d70d4ef46"; export PATH="/usr/local/bin:/usr/bin:/bin";export TERM="dumb"; X2GODPI=72 x2gostartagent 800x600 adsl 16m-jpeg-9 unix-kde-depth_3" ');
x2go-DEBUG-../src/sshmasterconnection.cpp:1842> Locking SSH channel connection MUTEX.
x2go-DEBUG-../src/sshmasterconnection.cpp:1844> Passing new channel connection object to channelConnections.
x2go-DEBUG-../src/sshmasterconnection.cpp:1846> Unlocking SSH channel connection MUTEX.
x2go-DEBUG-../src/sshmasterconnection.cpp:2034> Creating new channel.
x2go-DEBUG-../src/sshmasterconnection.cpp:2051> New channel:0x7fbb38e811c0
x2go-DEBUG-../src/sshmasterconnection.cpp:2136> Executing remote: "bash -l -c 'echo "X2GODATABEGIN:27e7d2d0-6286-4186-a83e-7e9d70d4ef46"; export PATH="/usr/local/bin:/usr/bin:/bin";export TERM="dumb"; X2GODPI=72 x2gostartagent 800x600 adsl 16m-jpeg-9 unix-kde-depth_32 us query 0 D XFCE both; echo "X2GODATAEND:27e7d2d0-6286-4186-a83e-7e9d70d4ef46";'"
x2go-DEBUG-../src/sshmasterconnection.cpp:2159> New exec channel created.
2017-11-05 12:55:21.720 x2goclient[37811:2991518] modalSession has been exited prematurely - check for a reentrant call to endModalSession:
x2go-DEBUG-../src/sshmasterconnection.cpp:2208> EOF on channel 0x7fbb38e811c0; SshProcess object: 1
x2go-DEBUG-../src/sshmasterconnection.cpp:2331> EOF sent.
x2go-DEBUG-../src/sshmasterconnection.cpp:2335> Channel closed.
x2go-DEBUG-../src/sshprocess.cpp:526> SSH finished: raw output (stdout): "X2GODATABEGIN:27e7d2d0-6286-4186-a83e-7e9d70d4ef46
158
987f364647dc4560b0c0eb10e7d16eeb
5954
localguy-158-1509904537_stDXFCE_dp32
58562
58563
58564
X2GODATAEND:27e7d2d0-6286-4186-a83e-7e9d70d4ef46
"
x2go-DEBUG-../src/sshprocess.cpp:537> SSH finished: true - "158
987f364647dc4560b0c0eb10e7d16eeb
5954
localguy-158-1509904537_stDXFCE_dp32
58562
58563
58564
" (1).
x2go-DEBUG-../src/onmainwindow.cpp:5297> Agent output: "158
987f364647dc4560b0c0eb10e7d16eeb
5954
localguy-158-1509904537_stDXFCE_dp32
58562
58563
58564
"
x2go-DEBUG-../src/sshprocess.cpp:381> Starting tunnel via SshProcess object 2: "localhost":58562 -> "localhost":59562
x2go-DEBUG-../src/onmainwindow.cpp:5900> "Starting NX proxy, command: "/Applications/x2goclient.app/Contents/exe/"nxproxy -S nx/nx,options=/Users/rkudyba/.x2go/S-localguy-158-1509904537_stDXFCE_dp32/options:158"
x2go-DEBUG-../src/sshprocess.cpp:157> Direct tunnel: waiting for connections on "localhost":59562
x2go-DEBUG-../src/onmainwindow.cpp:6372> Proxy wrote on stderr: "
NXPROXY - Version 3.5.0
Copyright (C) 2001, 2010 NoMachine.
See h"
x2go-DEBUG-../src/onmainwindow.cpp:6372> Proxy wrote on stderr: "ttp:// www.nomachine.com/ for more information.
Info: Proxy running in client mode with pid '37822'.
Session: Starting session at '"
x2go-DEBUG-../src/sshprocess.cpp:109> New TCP connection.
x2go-DEBUG-../src/sshprocess.cpp:114> New socket: 29
x2go-DEBUG-../src/sshmasterconnection.cpp:2034> Creating new channel.
x2go-DEBUG-../src/sshmasterconnection.cpp:2051> New channel:0x7fbb38d9d500
x2go-DEBUG-../src/onmainwindow.cpp:6372> Proxy wrote on stderr: "Sun Nov 5 12:55:40 2017'.
Info: Connecting to remote host 'localhost:59562'.
Info: Connection to remote proxy 'localhost:59562' established.
"
x2go-DEBUG-../src/sshmasterconnection.cpp:2057> Forwarding parameters: from remote ("localhost":58562) to local ("localhost":58632)
x2go-DEBUG-../src/sshmasterconnection.cpp:2094> Temporary session port after config file parse: 58562
x2go-DEBUG-../src/sshmasterconnection.cpp:2098> Temporary session host after config file parse: localhost
x2go-DEBUG-../src/sshmasterconnection.cpp:2128> New channel forwarded.
x2go-DEBUG-../src/onmainwindow.cpp:6372> Proxy wrote on stderr: "Info: Connection with remote proxy completed.
"
x2go-DEBUG-../src/onmainwindow.cpp:6372> Proxy wrote on stderr: "Warning: Unrecognized session type 'unix-kde-depth_32'. Assuming agent session.
"
x2go-DEBUG-../src/onmainwindow.cpp:6372> Proxy wrote on stderr: "Info: Using ADSL link parameters 512/24/1/0.
Info: Using cache pa"
x2go-DEBUG-../src/onmainwindow.cpp:6372> Proxy wrote on stderr: "rameters 4/4096KB/8192KB/8192KB.
Info: Using pack method '16m-jpeg-9' with session 'unix-kde-depth_32'.
Info: Using ZLIB data compression 1/1/32.
Info: Using ZLIB stream compression 4/4.
Info: No suitable cache file found.
Info: Forwarding X11 connections to display '/private/tmp/com.apple.launchd.XQbZF46YQZ/org.macosforge.xquartz:0'.
Session: Session started at 'Sun Nov 5 12:55:41 2017'.
Warning: Protocol mismatch or no X authentication data.
"
x2go-DEBUG-../src/onmainwindow.cpp:6372> Proxy wrote on stderr: "Session: Terminating session at '"
x2go-DEBUG-../src/onmainwindow.cpp:6372> Proxy wrote on stderr: "Sun Nov 5 12:55:45 2017'.
Info: Your session was closed before reaching a usable state.
Info: This can be due to the local X server refusing access to the client.
Info: Please check authorization provided by the remote X application.
Session: Session terminated at 'Sun Nov 5 12:55:45 2017'.
"
x2go-DEBUG-../src/sshmasterconnection.cpp:2312> Socket 29 closed.
x2go-DEBUG-../src/sshmasterconnection.cpp:2331> EOF sent.
x2go-DEBUG-../src/sshmasterconnection.cpp:2335> Channel closed.
x2go-DEBUG-../src/onmainwindow.cpp:6225> Deleting Proxy.
x2go-DEBUG-../src/onmainwindow.cpp:6274> Waiting for proxy to exit.
x2go-DEBUG-../src/onmainwindow.cpp:6298> Checking exit status.
x2go-DEBUG-../src/sshprocess.cpp:199> Executing remote command via SshProcess object 3: "x2gocmdexitmessage localguy-158-1509904537_stDXFCE_dp32"
x2go-DEBUG-../src/sshprocess.cpp:213> this=SshProcess(0x7fbb38d42970) Running masterCon->addChannelConnection(this, ' "fa75f601-dc5a-4dbd-8ef4-a9dd4cdacc0f" ', ' "bash -l -c 'echo "X2GODATABEGIN:fa75f601-dc5a-4dbd-8ef4-a9dd4cdacc0f"; export PATH="/usr/local/bin:/usr/bin:/bin";export TERM="dumb"; x2gocmdexitmessage localguy-158-1509904537_stDXFCE_dp32; echo "X2G" ');
x2go-DEBUG-../src/sshmasterconnection.cpp:1842> Locking SSH channel connection MUTEX.
x2go-DEBUG-../src/sshmasterconnection.cpp:1844> Passing new channel connection object to channelConnections.
x2go-DEBUG-../src/sshmasterconnection.cpp:1846> Unlocking SSH channel connection MUTEX.
x2go-DEBUG-../src/sshmasterconnection.cpp:2034> Creating new channel.
x2go-DEBUG-../src/sshmasterconnection.cpp:2051> New channel:0x7fbb38f0edd0
x2go-DEBUG-../src/sshmasterconnection.cpp:2136> Executing remote: "bash -l -c 'echo "X2GODATABEGIN:fa75f601-dc5a-4dbd-8ef4-a9dd4cdacc0f"; export PATH="/usr/local/bin:/usr/bin:/bin";export TERM="dumb"; x2gocmdexitmessage localguy-158-1509904537_stDXFCE_dp32; echo "X2GODATAEND:fa75f601-dc5a-4dbd-8ef4-a9dd4cdacc0f";'"
x2go-DEBUG-../src/onmainwindow.cpp:6355> Finished proxy.
x2go-DEBUG-../src/sshmasterconnection.cpp:2159> New exec channel created.
x2go-DEBUG-../src/sshmasterconnection.cpp:2208> EOF on channel 0x7fbb38f0edd0; SshProcess object: 3
x2go-DEBUG-../src/sshmasterconnection.cpp:2331> EOF sent.
x2go-DEBUG-../src/sshmasterconnection.cpp:2335> Channel closed.
x2go-DEBUG-../src/sshprocess.cpp:526> SSH finished: raw output (stdout): "X2GODATABEGIN:fa75f601-dc5a-4dbd-8ef4-a9dd4cdacc0f
X2GODATAEND:fa75f601-dc5a-4dbd-8ef4-a9dd4cdacc0f
"
x2go-DEBUG-../src/sshprocess.cpp:537> SSH finished: true - "" (3).
x2go-DEBUG-../src/onmainwindow.cpp:9749> "Command message: "
x2go-DEBUG-../src/sshmasterconnection.cpp:793> SshMasterConnection, instance SshMasterConnection(0x7fbb38f20aa0) waiting for thread to finish.
x2go-DEBUG-../src/sshmasterconnection.cpp:1953> Disconnecting ...
x2go-DEBUG-../src/sshmasterconnection.cpp:1964> Deleting channel connections.
x2go-DEBUG-../src/sshmasterconnection.cpp:1972> Disconnecting session.
x2go-DEBUG-../src/sshmasterconnection.cpp:1978> Deleting sockets.
x2go-DEBUG-../src/sshmasterconnection.cpp:1985> All channels closed and session disconnected. Quitting session loop.
x2go-DEBUG-../src/sshmasterconnection.cpp:797> SshMasterConnection, instance SshMasterConnection(0x7fbb38f20aa0) thread finished.
x2go-DEBUG-../src/sshprocess.cpp:52> SshProcess destructor called.
x2go-DEBUG-../src/sshprocess.cpp:52> SshProcess destructor called.
x2go-DEBUG-../src/sshprocess.cpp:52> SshProcess destructor called.
x2go-DEBUG-../src/sshprocess.cpp:52> SshProcess destructor called.
x2go-DEBUG-../src/sshmasterconnection.cpp:804> SshMasterConnection, instance SshMasterConnection(0x7fbb38f20aa0) finished destructor.
x2go-DEBUG-../src/onmainwindow.cpp:6532> Setting focus.