Archeb / opentrace

A cross-platform GUI wrapper for NextTrace. Bringing you the familiar traceroute experience. OpenTrace 是 NextTrace 的跨平台 GUI 界面,带来您熟悉但更强大的用户体验。
GNU General Public License v3.0
2.2k stars 88 forks source link

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

Closed Glucy-2 closed 1 year ago

Glucy-2 commented 1 year ago

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 使用环境

Archeb commented 1 year ago

image

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

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

Glucy-2 commented 1 year ago

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

Archeb commented 1 year ago

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

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

谷歌地图可以显示吗?

fakeboboliu commented 1 year ago

在我的 sid 中正常,Cinnamon@X11

图片

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

图片

Glucy-2 commented 1 year ago

那可能是我这边的问题了

leohearts commented 8 months ago

那可能是我这边的问题了

image

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

leohearts commented 8 months ago

image

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

fakeboboliu commented 8 months ago

WEBKIT_DISABLE_COMPOSITING_MODE=1

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

leohearts commented 8 months ago

WEBKIT_DISABLE_COMPOSITING_MODE=1

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

我用 amd

leohearts commented 8 months ago

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)