Viber 可执行文件在 Ubuntu 20.10 / 21.04 上崩溃

Fed*_*eli 8 gnome crash viber 20.10

我一直在使用Viber for Desktop.debhttps://download.cdn.viber.com/cdn/desktop/Linux/viber.deb下载的官方软件包)至少有 4 个正常的 Ubuntu 版本(18.10 到 20.04),没有问题. 几天前,我从 Ubuntu 20.04 升级到 20.10,现在/opt/viber/Viber可执行文件在启动时崩溃,终端上显示以下消息:

Segmentation fault (core dumped)
Run Code Online (Sandbox Code Playgroud)

系统日志有以下内容:

Oct 27 19:04:42 xxx kernel: [ 3782.065767] Viber[25573]: segfault at 0 ip 00007ff5e4804bc5 sp 00007fff2e7dc3b0 error 4 in iHD_drv_video.so[7ff5e46eb000+348000]
Oct 27 19:04:42 xxx kernel: [ 3782.065771] Code: 01 48 83 f8 42 75 e6 31 db 66 41 89 9f 58 0c 00 00 49 8b 5f 28 8b 83 f0 1d 00 00 85 c0 0f 84 ba 01 00 00 48 8b b3 e8 1d 00 00 <81> 3e 00 00 01 00 48 89 75 c8 0f 85 a3 01 00 00 44 8d 70 f0 4d 63
Run Code Online (Sandbox Code Playgroud)

/var/crash还会生成系统目录上的故障转储。

我已经从 Viber 的网站上重新安装了最新版本。

我已经从主目录中删除了~/.ViberPC~/.cache/Viber Media S.à r.l目录,但问题仍然存在。

有没有其他用户遇到同样的问题?


更新

我联系了viber.com。首先,他们的回答是建议彻底删除并重新安装。然而,这是我已经做过的事情。在通知他们之后,他们要求我发送给他们的故障转储。

目前适用于 Ubuntu 的 Viber 版本为 13.3.1,自 2020 年 7 月以来一直没有更新。因此,在发布更新之前,我们一直坚持使用此版本。

目前,临时解决方法是Viber在崩溃后重试启动,直到不崩溃为止。看起来崩溃是非常随机的,有10% 的机会Viber开始而没有崩溃。因此,我编写了以下 Bash 函数并将其添加到我的~/.bash_aliases文件末尾:

Segmentation fault (core dumped)
Run Code Online (Sandbox Code Playgroud)

要启动 Viber,我只需vib在终端中输入并等待它启动。

小智 11

似乎免费的 intel-media-va-driver 会发生段错误,但其他程序的 intel-media-va-driver-non-free 也不会发生:https : //bugs.launchpad.net/ubuntu/+source/gthumb /+错误/1903569

尝试像这样替换免费驱动程序:

apt install intel-media-va-driver-non-free
Run Code Online (Sandbox Code Playgroud)


小智 1

我有同样的问题。

奇怪但对我有用:运行有参数的 viber--help

cd /opt/viber
./Viber --help
Run Code Online (Sandbox Code Playgroud)

并编辑快捷方式/usr/share/applications/viber.desktop


Wax*_*rat 0

当通过安装时snap viber-mtd,应用程序会崩溃,如下所示:

$ /snap/bin/viber-mtd.viber
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
Qt: Session management error: None of the authentication protocols specified are supported
sh: 1: xdg-mime: not found
Qt WebEngine ICU data not found at /snap/viber-mtd/17/opt/viber/resources. Trying parent directory...
Qt WebEngine resources not found at /snap/viber-mtd/17/opt/viber/resources. Trying parent directory...
[31099:31099:1115/085234.003880:FATAL:credentials.cc(155)] Check failed: NamespaceUtils::DenySetgroups(). : Permission denied
#0 0x7f4f8d63111e base::debug::StackTrace::StackTrace()
#1 0x7f4f8d641bde logging::LogMessage::~LogMessage()
#2 0x7f4f8d641e99 logging::ErrnoLogMessage::~ErrnoLogMessage()
#3 0x7f4f8e333f7c sandbox::(anonymous namespace)::SetGidAndUidMaps()
#4 0x7f4f8e3345d5 sandbox::Credentials::CanCreateProcessInNewUserNS()
#5 0x7f4f8d2a4de5 content::ZygoteHostImpl::Init()
#6 0x7f4f8cf57314 content::BrowserMainLoop::EarlyInitialization()
#7 0x7f4f8cf5b190 content::BrowserMainRunnerImpl::Initialize()
#8 0x7f4f8cd60d19 QtWebEngineCore::WebEngineContext::WebEngineContext()
#9 0x7f4f8cd62135 QtWebEngineCore::WebEngineContext::current()
#10 0x7f4f8ccff931 QtWebEngineCore::BrowserContextAdapter::defaultContext()
#11 0x7f4f95018618 QQuickWebEngineProfile::defaultProfile()
#12 0x0000006ac8bf ApplicationPrivate::preRunningInitialization()
#13 0x0000006a6504 ViberApplication::start()
#14 0x00000067e25b ViberMain()
#15 0x7f4f89d05840 __libc_start_main
#16 0x0000004d7047 <unknown>
Run Code Online (Sandbox Code Playgroud)

经过尝试一些事情后,我最终发现应用程序成功启动,如下所示:

$ /snap/viber-mtd/current/opt/viber/Viber
Run Code Online (Sandbox Code Playgroud)

当以这种方式启动时,现在似乎工作正常。