flathub / net.ankiweb.Anki

https://flathub.org/apps/details/net.ankiweb.Anki
20 stars 13 forks source link

Anki doesn't run #9

Closed charlesjt closed 5 years ago

charlesjt commented 5 years ago

With the last update when running Anki the window is displayed for a few seconds and then disappears. When executing Anki via terminal, the following output appears.

flatpak run net.ankiweb.Anki
qt: Qt: Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
[2:2:1002/123606.051204:INFO:zygote_host_impl_linux.cc(107)] No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/master/docs/linux_suid_sandbox_development.md for more information on developing with the SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.
[35:35:1002/123606.810242:WARNING:resource_bundle_qt.cpp(115)] locale_file_path.empty() for locale 
[37:37:1002/123606.916999:WARNING:resource_bundle_qt.cpp(115)] locale_file_path.empty() for locale 
[38:38:1002/123606.990757:WARNING:resource_bundle_qt.cpp(115)] locale_file_path.empty() for locale 
[2:2:1002/123607.925683:FATAL:visitedlink_master.h(499)] Check failed: used_count == used_items_ (123 vs. 122)
#0 0x7ff2b11cbe3f <unknown>
#1 0x7ff2b1200c4b <unknown>
#2 0x7ff2b1435c9c <unknown>
#3 0x7ff2b143356e <unknown>
#4 0x7ff2b143ddb2 <unknown>
#5 0x7ff2b143d277 <unknown>
#6 0x7ff2b143b9a0 <unknown>
#7 0x7ff2b143a1ca <unknown>
#8 0x7ff2b143e496 <unknown>
#9 0x7ff2b143df7b <unknown>
#10 0x7ff2b143d61f <unknown>
#11 0x7ff2b143c0bf <unknown>
#12 0x7ff2b143a38d <unknown>
#13 0x7ff2b1324949 <unknown>
#14 0x7ff2b13cbc9a <unknown>
#15 0x7ff2b12232d2 <unknown>
#16 0x7ff2b1223430 <unknown>
#17 0x7ff2b1223903 <unknown>
#18 0x7ff2af0751a6 <unknown>
#19 0x7ff2cb0d81e1 QObject::event()
#20 0x7ff2c1374b1b QApplicationPrivate::notify_helper()
#21 0x7ff2c137c8bc QApplication::notify()
#22 0x7ff2c1a5d4e4 <unknown>
#23 0x7ff2cb0a7dfa QCoreApplication::notifyInternal2()
#24 0x7ff2cb0ad0a1 QCoreApplicationPrivate::sendPostedEvents()
#25 0x7ff2cb0ad7fe QCoreApplication::sendPostedEvents()
#26 0x7ff2cb101fe6 <unknown>
#27 0x7ff2c845f1e7 g_main_context_dispatch
#28 0x7ff2c845f450 <unknown>
#29 0x7ff2c845f4fc g_main_context_iteration
#30 0x7ff2cb1019ac QEventDispatcherGlib::processEvents()
#31 0x7ff2a9596ed2 <unknown>
#32 0x7ff2cb0a5bb1 QEventLoop::processEvents()
#33 0x7ff2cb0a5ff7 QEventLoop::exec()
#34 0x7ff2cb0afcd0 QCoreApplication::exec()
#35 0x7ff2c72fc56c QGuiApplication::exec()
#36 0x7ff2c13749ad QApplication::exec()
#37 0x7ff2c1a5fe73 <unknown>
#38 0x003beb6a7b49 <unknown>
#39 0x003beb719119 <unknown>
#40 0x003beb71523a <unknown>
#41 0x003beb718c00 <unknown>
#42 0x003beb718d36 <unknown>
#43 0x003beb718f49 <unknown>
#44 0x003beb71523a <unknown>
#45 0x003beb718dce <unknown>
#46 0x003beb718f49 <unknown>
#47 0x003beb71523a <unknown>
#48 0x003beb718c00 <unknown>
#49 0x003beb718c93 <unknown>
#50 0x003beb718cbb <unknown>
#51 0x003beb7387d4 <unknown>
#52 0x003beb73aeb5 <unknown>
#53 0x003beb73b00a <unknown>
#54 0x003beb74d7d1 <unknown>
#55 0x003beb74e487 <unknown>
#56 0x000000400a37 main
#57 0x003bea220291 <unknown>
#58 0x000000400ada _start

[37:37:0100/000000.693895:ERROR:broker_posix.cc(41)] Invalid node channel message
[38:38:0100/000000.693705:ERROR:broker_posix.cc(41)] Invalid node channel message
[35:35:0100/000000.694000:ERROR:broker_posix.cc(41)] Invalid node channel message

Testing on fedora 28 - flatpak 1.0.2

dsd commented 5 years ago

I tested the newly built version on Endless 3.4, Ubuntu 18.04 and Fedora 28, the app opens just fine. Can you try moving your profile data out of the way momentarily, starting again from a blank profile, to see if it is somehow related to your user data?

Binero commented 5 years ago

I had the same issue. It was (at least for now) resolved by removing everything inside the data directory.

rm -rf ~/.var/app/net.ankiweb.Anki/data/*
dsd commented 5 years ago

If this is seen again, it would be good if someone could zip up the contents of that directory and post it (assuming there is no personal/private/sensitive data inside). Then we can investigate and look for a solution.

jurf commented 5 years ago

This seems to be related to the old broken locale setup, this should be fine now.

If this happens again and running Anki with a clean profile doesn’t help, feel free to reopen.