[GH-ISSUE #22] [BUG] Linux上缺失依赖 以及百度地图无法显示 #127

Closed
opened 2026-03-01 17:50:30 +03:00 by kerem · 10 comments
Owner

Originally created by @Glucy-2 on GitHub (Sep 1, 2023).
Original GitHub issue: https://github.com/Archeb/opentrace/issues/22

Describe the bug 描述你遇到的BUG
程序报错无法启动:

Unhandled exception. System.DllNotFoundException: Unable to load shared library 'libwebkit2gtk-4.0.so.37' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibwebkit2gtk-4.0.so.37: 无法打开共享对象文件: 没有那个文件或目录
   at Eto.GtkSharp.NativeMethods.NMLinux.webkit_web_view_new()
   at Eto.GtkSharp.NativeMethods.webkit_web_view_new()
   at Eto.GtkSharp.Forms.Controls.WebViewHandler..ctor()
   at Eto.GtkSharp.Platform.<>c.<AddTo>b__12_61()
   at Eto.Widget..ctor()
   at OpenTrace.MainForm..ctor() in /home/runner/work/opentrace/opentrace/MainForm.cs:line 132
   at OpenTrace.Program.Main(String[] args) in /home/runner/work/opentrace/opentrace/Program.cs:line 36
[1]    95980 IOT instruction (core dumped)  OpenTrace

安装 libwebkit2gtk-4.0-37 包后程序能够启动,但是点击开始按钮有概率弹出此错误信息:(另外建议加一个回车开始的功能)
图片

百度地图无法显示:
图片

Environment 使用环境

  • OS: Debian GNU/Linux trixie/testing x86_64
  • Kernel: 6.4.0-3-amd64
  • DE: Plasma 5.27.7 (wayland)
  • Version 程序版本: 1.2.4.1
Originally created by @Glucy-2 on GitHub (Sep 1, 2023). Original GitHub issue: https://github.com/Archeb/opentrace/issues/22 **Describe the bug 描述你遇到的BUG** 程序报错无法启动: ``` Unhandled exception. System.DllNotFoundException: Unable to load shared library 'libwebkit2gtk-4.0.so.37' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibwebkit2gtk-4.0.so.37: 无法打开共享对象文件: 没有那个文件或目录 at Eto.GtkSharp.NativeMethods.NMLinux.webkit_web_view_new() at Eto.GtkSharp.NativeMethods.webkit_web_view_new() at Eto.GtkSharp.Forms.Controls.WebViewHandler..ctor() at Eto.GtkSharp.Platform.<>c.<AddTo>b__12_61() at Eto.Widget..ctor() at OpenTrace.MainForm..ctor() in /home/runner/work/opentrace/opentrace/MainForm.cs:line 132 at OpenTrace.Program.Main(String[] args) in /home/runner/work/opentrace/opentrace/Program.cs:line 36 [1] 95980 IOT instruction (core dumped) OpenTrace ``` 安装 `libwebkit2gtk-4.0-37` 包后程序能够启动,但是点击开始按钮有概率弹出此错误信息:(另外建议加一个回车开始的功能) ![图片](https://github.com/Archeb/opentrace/assets/53287753/ad252ff6-0514-455c-97cf-6c86d3f98a5d) 百度地图无法显示: ![图片](https://github.com/Archeb/opentrace/assets/53287753/298293ea-0af2-4425-970a-5d0b98a8db21) **Environment 使用环境** - OS: Debian GNU/Linux trixie/testing x86_64 - Kernel: 6.4.0-3-amd64 - DE: Plasma 5.27.7 (wayland) - Version 程序版本: 1.2.4.1
kerem closed this issue 2026-03-01 17:50:31 +03:00
Author
Owner

@Archeb commented on GitHub (Sep 1, 2023):

image

我这边测试 ArchLinux 6.1.45-1 KDE Plasma 上使用 webkit2gtk 2.40.5-2 包,浏览器是没啥问题的

回车开始这个其实是做了的,Windows 和 macOS 都能正常工作;Linux 为啥不行我再研究一下。

<!-- gh-comment-id:1702810321 --> @Archeb commented on GitHub (Sep 1, 2023): ![image](https://github.com/Archeb/opentrace/assets/11910831/361df9d8-047a-4e96-99a8-5e2134384453) 我这边测试 ArchLinux 6.1.45-1 KDE Plasma 上使用 webkit2gtk 2.40.5-2 包,浏览器是没啥问题的 回车开始这个其实是做了的,Windows 和 macOS 都能正常工作;Linux 为啥不行我再研究一下。
Author
Owner

@Glucy-2 commented on GitHub (Sep 1, 2023):

我试了X11和Wayland,百度地图都不显示
但是能看到连接
图片

<!-- gh-comment-id:1702878983 --> @Glucy-2 commented on GitHub (Sep 1, 2023): 我试了X11和Wayland,百度地图都不显示 但是能看到连接 ![图片](https://github.com/Archeb/opentrace/assets/53287753/83bba18b-6f6c-4c8e-8e56-6941539b6f64)
Author
Owner

@Archeb commented on GitHub (Sep 1, 2023):

回车的问题已经在 4759b4dd78 修复

浏览器这里我也只是引入了一下webview,Eto.Form(上游GUI框架)提供的可配置项其实很少,也没有什么debug办法……看不到什么修复的办法

谷歌地图可以显示吗?

<!-- gh-comment-id:1703081030 --> @Archeb commented on GitHub (Sep 1, 2023): 回车的问题已经在 4759b4dd782b649639040090267d425bbcd47512 修复 浏览器这里我也只是引入了一下webview,Eto.Form(上游GUI框架)提供的可配置项其实很少,也没有什么debug办法……看不到什么修复的办法 谷歌地图可以显示吗?
Author
Owner

@fakeboboliu commented on GitHub (Sep 1, 2023):

在我的 sid 中正常,Cinnamon@X11

图片

正好有个 AOSC vm 试试 KDE,也不能复现,小版本不同

图片

<!-- gh-comment-id:1703281260 --> @fakeboboliu commented on GitHub (Sep 1, 2023): 在我的 sid 中正常,Cinnamon@X11 ![图片](https://github.com/Archeb/opentrace/assets/7552030/55a26509-41f0-4abb-b5f4-58f4cf1de7c0) 正好有个 AOSC vm 试试 KDE,也不能复现,小版本不同 ![图片](https://github.com/Archeb/opentrace/assets/7552030/c8f45774-7f78-4c60-b275-66619c17a573)
Author
Owner

@Glucy-2 commented on GitHub (Sep 2, 2023):

那可能是我这边的问题了

<!-- gh-comment-id:1703695779 --> @Glucy-2 commented on GitHub (Sep 2, 2023): 那可能是我这边的问题了
Author
Owner

@leohearts commented on GitHub (Dec 19, 2023):

那可能是我这边的问题了

image

我这也遇到了同样的问题, 在 flatpak:org.gnome.Platform:40 中遇到了。主机 ubuntu 24.04 中直接运行没有问题。可能是一些旧版运行库导致的。

<!-- gh-comment-id:1862494679 --> @leohearts commented on GitHub (Dec 19, 2023): > 那可能是我这边的问题了 ![image](https://github.com/Archeb/opentrace/assets/24632029/c8bbee9e-d6fc-493e-88eb-143df5405c5a) 我这也遇到了同样的问题, 在 flatpak:org.gnome.Platform:40 中遇到了。主机 ubuntu 24.04 中直接运行没有问题。可能是一些旧版运行库导致的。
Author
Owner

@leohearts commented on GitHub (Dec 19, 2023):

image

WEBKIT_DISABLE_COMPOSITING_MODE=1 + Google maps = okay
WEBKIT_DISABLE_COMPOSITING_MODE=1 = Baidu maps = crash
no WEBKIT_DISABLE_COMPOSITING_MODE=1 = crash

<!-- gh-comment-id:1862541195 --> @leohearts commented on GitHub (Dec 19, 2023): ![image](https://github.com/Archeb/opentrace/assets/24632029/7b2f24f7-5e02-4746-b312-9b0ddd9d7241) WEBKIT_DISABLE_COMPOSITING_MODE=1 + Google maps = okay WEBKIT_DISABLE_COMPOSITING_MODE=1 = Baidu maps = crash no WEBKIT_DISABLE_COMPOSITING_MODE=1 = crash
Author
Owner

@fakeboboliu commented on GitHub (Dec 19, 2023):

WEBKIT_DISABLE_COMPOSITING_MODE=1

你们有在使用英伟达显卡吗? 我注意到这里有一些与这个相关的问题讨论:
https://bugs.webkit.org/show_bug.cgi?id=180739

<!-- gh-comment-id:1862632208 --> @fakeboboliu commented on GitHub (Dec 19, 2023): > WEBKIT_DISABLE_COMPOSITING_MODE=1 你们有在使用英伟达显卡吗? 我注意到这里有一些与这个相关的问题讨论: https://bugs.webkit.org/show_bug.cgi?id=180739
Author
Owner

@leohearts commented on GitHub (Dec 19, 2023):

WEBKIT_DISABLE_COMPOSITING_MODE=1

你们有在使用英伟达显卡吗? 我注意到这里有一些与这个相关的问题讨论:
https://bugs.webkit.org/show_bug.cgi?id=180739

我用 amd

<!-- gh-comment-id:1862644980 --> @leohearts commented on GitHub (Dec 19, 2023): > > WEBKIT_DISABLE_COMPOSITING_MODE=1 > > 你们有在使用英伟达显卡吗? 我注意到这里有一些与这个相关的问题讨论: > https://bugs.webkit.org/show_bug.cgi?id=180739 我用 amd
Author
Owner

@leohearts commented on GitHub (Dec 19, 2023):

changing to gnome.Sdk:44 and compile our own webkitgtk:4 fixed this ! If this can be listed on flathub just use the flatpak version. (or build your own and install from local source)

<!-- gh-comment-id:1863006040 --> @leohearts commented on GitHub (Dec 19, 2023): changing to gnome.Sdk:44 and compile our own webkitgtk:4 fixed this ! If this can be listed on flathub just use the flatpak version. (or build your own and install from local source)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentrace#127
No description provided.