Bug 351229 - Unable to create new (Google) account
Summary: Unable to create new (Google) account
Status: RESOLVED FIXED
Alias: None
Product: telepathy
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: git-latest
Platform: unspecified Linux
: NOR crash
Target Milestone: Future
Assignee: Telepathy Bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2015-08-12 19:26 UTC by Emil Sedgh
Modified: 2015-11-12 17:00 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot with added account (30.14 KB, image/png)
2015-09-23 10:51 UTC, Emil Sedgh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Emil Sedgh 2015-08-12 19:26:25 UTC
Application: kded5 ()
 (Compiled from sources)
Qt Version: 5.4.2
Operating System: Linux 3.16.0-4-amd64 x86_64
Distribution: Debian GNU/Linux unstable (sid)

-- Information about the crash:
I built everything from source and tried adding a new Google account.
A window opens up and asks for my Google credentials.
After I sign in successfully, it tells me its done and I can close the dialog.
When I click on 'Done', kded crashes.

It seems that the account is saved partially. A new 'G' appears on my account list but it has no title.
Also ktp is unable to connect to my Google account.

The crash can be reproduced every time.

-- Backtrace:
Application: kded5 (kded5), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f4796ed97c0 (LWP 20490))]

Thread 4 (Thread 0x7f4788b95700 (LWP 20491)):
#0  0x00007f47943c853d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f4790c1b252 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f4790c1cddf in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f4796e4b2f9 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so
#4  0x00007f4794fc825e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f47940d60a4 in start_thread (arg=0x7f4788b95700) at pthread_create.c:309
#6  0x00007f47943d107d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7f476fefe700 (LWP 20493)):
#0  0x00007f47943c853d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f4793bb6ebc in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4793bb7242 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f476ffdeaf6 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007f4793bdd955 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f47940d60a4 in start_thread (arg=0x7f476fefe700) at pthread_create.c:309
#6  0x00007f47943d107d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f474e0d5700 (LWP 20510)):
#0  0x00007f47943c853d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f477fa2b6b1 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#2  0x00007f477fa1cdb1 in pa_mainloop_poll () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#3  0x00007f477fa1d44e in pa_mainloop_iterate () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#4  0x00007f477fa1d500 in pa_mainloop_run () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#5  0x00007f477fa2b646 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#6  0x00007f477ed7b978 in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-6.0.so
#7  0x00007f47940d60a4 in start_thread (arg=0x7f474e0d5700) at pthread_create.c:309
#8  0x00007f47943d107d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f4796ed97c0 (LWP 20490)):
[KCrash Handler]
#6  0x00007f476f0f9b64 in QSharedDataPointer<Akonadi::AgentType::Private>::operator->() const () from /home/emilsedgh/kde/5/installed/lib/x86_64-linux-gnu/libKF5AkonadiCore.so.5
#7  0x00007f476f0f9960 in Akonadi::AgentType::customProperties() const () from /home/emilsedgh/kde/5/installed/lib/x86_64-linux-gnu/libKF5AkonadiCore.so.5
#8  0x00007f476f4ee08b in LookupAkonadiServices::findResource() () from /home/emilsedgh/kde/5/installed/lib/x86_64-linux-gnu/plugins/kaccounts/daemonplugins/kaccounts_akonadi_plugin.so
#9  0x00007f476f4eddba in LookupAkonadiServices::init() () from /home/emilsedgh/kde/5/installed/lib/x86_64-linux-gnu/plugins/kaccounts/daemonplugins/kaccounts_akonadi_plugin.so
#10 0x00007f476f4f2520 in LookupAkonadiServices::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () from /home/emilsedgh/kde/5/installed/lib/x86_64-linux-gnu/plugins/kaccounts/daemonplugins/kaccounts_akonadi_plugin.so
#11 0x00007f47951d91c1 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007f4796630b8c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007f4796636230 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#14 0x00007f47951a7a8b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00007f47951a9bc7 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007f47951fea23 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007f4793bb6c3d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007f4793bb6f20 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007f4793bb6fcc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007f47951fee2f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00007f47951a52ca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007f47951ace3c in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007f4796b6380c in kdemain (argc=1, argv=0x7fff9a616ba8) at /home/emilsedgh/kdesrc/frameworks/kded/src/kded.cpp:852
#24 0x0000000000400908 in main (argc=1, argv=0x7fff9a616ba8) at /tmp/kdebuild/frameworks/kded/src/kded5_dummy.cpp:3

Reported using DrKonqi
Comment 1 Martin Klapetek 2015-08-24 16:08:13 UTC
Thanks for the report

This is interestingly an unrelated crash. Can you just remove kaccounts_akonadi_plugin.so for now? It's most likely broken as it hasn't been tested for at least a year.
Comment 2 Christoph Feck 2015-09-23 10:25:34 UTC
If you can provide the information requested in comment #1, please add a comment.
Comment 3 Emil Sedgh 2015-09-23 10:44:43 UTC
I did remove the plugin and it sopped the crash. 
However, the Google plugin still doesnt work.

When I create an account, Google's auth dialog comes up. I login and it says I can close the dialog.

When I close it, an empty item appears on my account list and it never even tries to connect.
Comment 4 Emil Sedgh 2015-09-23 10:47:51 UTC
Here is kcmshell5 kcm_kaccounts output when I try to create the account:
emilsedgh@emilsedgh ~/k/5/installed> kcmshell5 kcm_kaccounts
Icon theme "oxygen" not found.
Icon theme "oxygen" not found.
Starting new account dialog for "google"
"google"
Looking for plugin ""
connection-manager.cpp 106 setupSocketConnection p2p error: QDBusError("org.freedesktop.DBus.Error.FileNotFound", "Failed to connect to socket /run/user/1000/signond/socket: No such file or directory") 1
connection-manager.cpp 132 init Peer connection unavailable, activating service
identityimpl.cpp 96 updateState Updating state:  "PendingRegistration" SignOn::IdentityImpl(0x1c85f30)
identityimpl.cpp 172 storeCredentials Storing credentials
authsessionimpl.cpp 94 initInterface
Starting auth session with "oauth2"
authsessionimpl.cpp 94 initInterface
connection-manager.cpp 106 setupSocketConnection p2p error: QDBusError("org.freedesktop.DBus.Error.FileNotFound", "Failed to connect to socket /run/user/1000/signond/socket: No such file or directory") 1
connection-manager.cpp 150 init Connected to "qt_default_session_bus"
identityimpl.cpp 96 updateState Updating state:  "Ready" SignOn::IdentityImpl(0x1c85f30)
identityimpl.cpp 96 updateState Updating state:  "NeedsUpdate" SignOn::IdentityImpl(0x1c85f30)
identityimpl.cpp 96 updateState Updating state:  "PendingUpdate" SignOn::IdentityImpl(0x1c85f30)
identityimpl.cpp 442 infoUpdated SERVER INFO UPDATED. NeedsUpdate " 0 "
identityimpl.cpp 345 storeCredentialsReply stored id: 58 old id: 0
identityimpl.cpp 381 getInfoReply QMap(("ACL", QVariant(QStringList, ("*")))("AuthMethods", QVariant(QDBusArgument, ))("Caption", QVariant(QString, "google"))("Id", QVariant(uint, 58))("Owner", QVariant(QStringList, ()))("Realms", QVariant(QStringList, ()))("RefCount", QVariant(int, 0))("StoreSecret", QVariant(bool, true))("Type", QVariant(int, 1))("UserName", QVariant(QString, ""))("UserNameSecret", QVariant(bool, false))("Validated", QVariant(bool, false)))
identityimpl.cpp 96 updateState Updating state:  "Ready" SignOn::IdentityImpl(0x1c85f30)
Info:
        Id: 58
        caption: "google"
        owner: ""
        userName: ""
identityimpl.cpp 96 updateState Updating state:  "NeedsUpdate" SignOn::IdentityImpl(0x1c85f30)
identityimpl.cpp 96 updateState Updating state:  "PendingUpdate" SignOn::IdentityImpl(0x1c85f30)
identityimpl.cpp 442 infoUpdated SERVER INFO UPDATED. NeedsUpdate " 58 "
Received session response
identityimpl.cpp 242 queryInfo Querying info.                                                                                                                                  
identityimpl.cpp 96 updateState Updating state:  "PendingUpdate" SignOn::IdentityImpl(0x1c85f30)                                                                               
identityimpl.cpp 381 getInfoReply QMap(("ACL", QVariant(QStringList, ("*")))("AuthMethods", QVariant(QDBusArgument, ))("Caption", QVariant(QString, "google"))("Id", QVariant(uint, 58))("Owner", QVariant(QStringList, ()))("Realms", QVariant(QStringList, ()))("RefCount", QVariant(int, 0))("StoreSecret", QVariant(bool, true))("Type", QVariant(int, 1))("UserName", QVariant(QString, ""))("UserNameSecret", QVariant(bool, false))("Validated", QVariant(bool, true)))
identityimpl.cpp 96 updateState Updating state:  "Ready" SignOn::IdentityImpl(0x1c85f30)
Info:
        Id: 58
        caption: "google"
        owner: ""
        userName: ""
account-service.cpp: 162 onEnabled
account-service.cpp: 169 onChanged
AccountsModel::accountCreated:  37
account.cpp: 626 account_store_cb Saved accunt ID: 37
identityimpl.cpp 381 getInfoReply QMap(("ACL", QVariant(QStringList, ("*")))("AuthMethods", QVariant(QDBusArgument, ))("Caption", QVariant(QString, "google"))("Id", QVariant(uint, 58))("Owner", QVariant(QStringList, ()))("Realms", QVariant(QStringList, ()))("RefCount", QVariant(int, 0))("StoreSecret", QVariant(bool, true))("Type", QVariant(int, 1))("UserName", QVariant(QString, ""))("UserNameSecret", QVariant(bool, false))("Validated", QVariant(bool, true)))
identityimpl.cpp 96 updateState Updating state:  "Ready" SignOn::IdentityImpl(0x1c85f30)
Comment 5 Emil Sedgh 2015-09-23 10:48:57 UTC
And here's output for ktp-auth-handler:

emilsedgh@emilsedgh ~/k/5/installed> ./lib/x86_64-linux-gnu/libexec/ktp-auth-handler --persist
Icon theme "oxygen" not found.
Icon theme "oxygen" not found.
New job started. 1 jobs currently running
Unknown signature value:  795
Unknown signature value:  795
Unknown signature value:  7
Unknown signature value:  795
Unknown signature value:  795
Unknown signature value:  795
Unknown signature value:  795
Unknown signature value:  795
Unknown signature value:  795
Unknown signature value:  794
Unknown signature value:  795
Unknown signature value:  795
Job finished. 0 jobs currently running
New job started. 1 jobs currently running
37
("X-OAUTH2", "X-GOOGLE-TOKEN", "PLAIN")
Starting X-OAuth2 auth
Status Not started
connection-manager.cpp 106 setupSocketConnection p2p error: QDBusError("org.freedesktop.DBus.Error.FileNotFound", "Failed to connect to socket /run/user/1000/signond/socket: No such file or directory") 1
connection-manager.cpp 132 init Peer connection unavailable, activating service
identityimpl.cpp 96 updateState Updating state:  "PendingRegistration" SignOn::IdentityImpl(0x1e7d6a0)
authsessionimpl.cpp 94 initInterface
authsessionimpl.cpp 94 initInterface
connection-manager.cpp 106 setupSocketConnection p2p error: QDBusError("org.freedesktop.DBus.Error.FileNotFound", "Failed to connect to socket /run/user/1000/signond/socket: No such file or directory") 1
connection-manager.cpp 150 init Connected to "qt_default_session_bus"
identityimpl.cpp 96 updateState Updating state:  "Ready" SignOn::IdentityImpl(0x1e7d6a0)
identityimpl.cpp 96 updateState Updating state:  "NeedsUpdate" SignOn::IdentityImpl(0x1e7d6a0)
identityimpl.cpp 96 updateState Updating state:  "PendingUpdate" SignOn::IdentityImpl(0x1e7d6a0)
identityimpl.cpp 442 infoUpdated SERVER INFO UPDATED. NeedsUpdate " 58 "
Received Google credentials, starting auth mechanism...
Auth failed
X-TELEPATHY-PASSWORD, X-OAUTH2 are the only supported SASL mechanism and are not available: ("X-GOOGLE-TOKEN", "PLAIN")
Error in SASL auth: "org.freedesktop.Telepathy.Error.NotImplemented" - "X-TELEPATHY-PASSWORD, X-OAUTH2 are the only supported SASL mechanism and are not available:"
Job finished. 0 jobs currently running
New job started. 1 jobs currently running
Unknown signature value:  795
Unknown signature value:  795
Unknown signature value:  7
Unknown signature value:  795
Unknown signature value:  795
Unknown signature value:  795
Unknown signature value:  795
Unknown signature value:  795
Unknown signature value:  795
Unknown signature value:  794
Unknown signature value:  795
Unknown signature value:  795
Job finished. 0 jobs currently running
New job started. 1 jobs currently running
37
("X-OAUTH2", "X-GOOGLE-TOKEN", "PLAIN")
Starting X-OAuth2 auth
Status Not started
identityimpl.cpp 96 updateState Updating state:  "PendingRegistration" SignOn::IdentityImpl(0x1e4d630)
authsessionimpl.cpp 94 initInterface
authsessionimpl.cpp 94 initInterface
identityimpl.cpp 96 updateState Updating state:  "Ready" SignOn::IdentityImpl(0x1e4d630)
identityimpl.cpp 96 updateState Updating state:  "NeedsUpdate" SignOn::IdentityImpl(0x1e4d630)
identityimpl.cpp 96 updateState Updating state:  "PendingUpdate" SignOn::IdentityImpl(0x1e4d630)
identityimpl.cpp 442 infoUpdated SERVER INFO UPDATED. NeedsUpdate " 58 "
Received Google credentials, starting auth mechanism...
Auth failed
X-TELEPATHY-PASSWORD, X-OAUTH2 are the only supported SASL mechanism and are not available: ("X-GOOGLE-TOKEN", "PLAIN")
Error in SASL auth: "org.freedesktop.Telepathy.Error.NotImplemented" - "X-TELEPATHY-PASSWORD, X-OAUTH2 are the only supported SASL mechanism and are not available:"
Job finished. 0 jobs currently running
Comment 6 Emil Sedgh 2015-09-23 10:51:13 UTC
Created attachment 94692 [details]
Screenshot with added account
Comment 7 Emil Sedgh 2015-09-23 10:56:57 UTC
Also, please note that I also have trouble using jabber provider on my setup.
For some reason it fails as well.

But Yahoo works fine.

Which means it *could* be a misconfiguration on my setup.

Also, you can poke me on IRC if I can help with testing a patch or providing more information.
Im usually available on #kde-telepathy
Comment 8 Ivan Čukić 2015-11-05 23:18:58 UTC
I can confirm this one. Yahoo works, while fot Google I get the

'X-TELEPATHY-PASSWORD, X-OAUTH2 are the only supported SASL mechanism and are not available: ("X-GOOGLE-TOKEN", "PLAIN")
Error in SASL auth: "org.freedesktop.Telepathy.Error.NotImplemented" - "X-TELEPATHY-PASSWORD, X-OAUTH2 are the only supported SASL mechanism and are not available:"
Comment 9 Martin Klapetek 2015-11-05 23:33:20 UTC
If you remove and readd the account - is it still the same problem?
Comment 10 Ivan Čukić 2015-11-06 09:02:59 UTC
Persists even with all ktp and telepathy configs removed (at least, those that I found).

Also tried to remove the auth from google (saw the idea somewhere on the net) and re-add the account, but still nothing.
Comment 11 Scarlett Moore 2015-11-12 15:53:06 UTC
I am having the exact same issue. Kubuntu 15.10 Plasma 5.4.3 KF5 5.15.0 Applications 15.08.3 

(gdb) run
Starting program: /usr/lib/x86_64-linux-gnu/libexec/ktp-auth-handler 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe4779700 (LWP 6772)]
New job started. 1 jobs currently running
Unknown signature value:  795
Unknown signature value:  795
Unknown signature value:  795
Unknown signature value:  795
Unknown signature value:  795
Unknown signature value:  795
Unknown signature value:  794
Unknown signature value:  795
Unknown signature value:  795
Unknown signature value:  795
Unknown signature value:  7
Unknown signature value:  795
No other jobs at the moment. Starting timer.
Job finished. 0 jobs currently running
New job started. 1 jobs currently running
5
("X-OAUTH2", "X-GOOGLE-TOKEN", "PLAIN")
Starting X-OAuth2 auth
Status Not started
[New Thread 0x7fffdbbb6700 (LWP 6782)]
[New Thread 0x7fffdb3b5700 (LWP 6783)]
../../../../lib/SignOn/connection-manager.cpp 106 setupSocketConnection p2p error: QDBusError("org.freedesktop.DBus.Error.FileNotFound", "Failed to connect to socket /run/user/1000/signond/socket: No such file or directory") 1
../../../../lib/SignOn/connection-manager.cpp 132 init Peer connection unavailable, activating service
../../../../lib/SignOn/identityimpl.cpp 96 updateState Updating state:  "PendingRegistration" SignOn::IdentityImpl(0x7adbc0)
../../../../lib/SignOn/authsessionimpl.cpp 94 initInterface
../../../../lib/SignOn/authsessionimpl.cpp 94 initInterface
../../../../lib/SignOn/connection-manager.cpp 150 init Connected to "libsignon-qt1"
../../../../lib/SignOn/identityimpl.cpp 96 updateState Updating state:  "Ready" SignOn::IdentityImpl(0x7adbc0)
../../../../lib/SignOn/identityimpl.cpp 96 updateState Updating state:  "NeedsUpdate" SignOn::IdentityImpl(0x7adbc0)
../../../../lib/SignOn/identityimpl.cpp 96 updateState Updating state:  "PendingUpdate" SignOn::IdentityImpl(0x7adbc0)
../../../../lib/SignOn/identityimpl.cpp 442 infoUpdated SERVER INFO UPDATED. NeedsUpdate " 5 "
Received Google credentials, starting auth mechanism...
Auth failed
X-TELEPATHY-PASSWORD, X-OAUTH2 are the only supported SASL mechanism and are not available: ("X-GOOGLE-TOKEN", "PLAIN")
Error in SASL auth: "org.freedesktop.Telepathy.Error.NotImplemented" - "X-TELEPATHY-PASSWORD, X-OAUTH2 are the only supported SASL mechanism and are not available:"
No other jobs at the moment. Starting timer.
Job finished. 0 jobs currently running
Timeout. Exiting
[Thread 0x7fffe4779700 (LWP 6772) exited]
[Thread 0x7fffdbbb6700 (LWP 6782) exited]
[Thread 0x7ffff7e0a8c0 (LWP 6768) exited]
[Inferior 1 (process 6768) exited normally]


Starting X-OAuth2 auth
Status Not started
Seems important?

Please let me know if this is something on my end... (Kubuntu) I really would like a functional KTP. What other information do you need.. ?
Thanks, Scarlett
Comment 12 Martin Klapetek 2015-11-12 17:00:31 UTC
Ok guys this bug report was about being unable to create new account, not unable to connect.

So all of you commenting with this issue I'll switch you over to bug 354949 which is actually your bug.