我刚刚安装了最新版本的
Mono
和XQuartz
。我下载了Keepass-2.29
便携版。当我尝试运行它时,出现以下异常:
$ 单声道 KeePass.exe System.TypeInitializationException:异常 被类型初始值设定项抛出 System.Windows.Forms.WindowsFormsSynchronizationContext ---> System.TypeInitializationException:抛出异常 System.Windows.Forms.ThemeEngine 的类型初始值设定项 ---> System.TypeInitializationException:抛出异常 System.Windows.Forms.ThemeWin32Classic 的类型初始值设定项 ---> System.TypeInitializationException:抛出异常 System.Drawing.KnownColors 的类型初始值设定项 ---> System.TypeInitializationException:抛出异常 System.Drawing.GDIPlus 的类型初始值设定项 ---> 系统.DllNotFoundException: /Library/Frameworks/Mono.framework/Versions/3.12.1/lib/libgdiplus.dylib 在(包装器管理到本机)System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&) 在 System.Drawing.GDIPlus..cctor () [0x00000] 中:0 --- 内部异常堆栈跟踪结束 --- at System.Drawing.KnownColors..cctor () [0x00000] in :0 --- 内部异常堆栈跟踪结束 --- 在 System.Drawing.Color.get_Black () [0x00000] in :0
在System.Windows.Forms.ThemeWin32Classic..cctor()[0x00000]中 :0 --- 内部异常堆栈跟踪结束 ---
在System.Windows.Forms.ThemeVisualStyles..ctor()[0x00000]中 :0 在 System.Windows.Forms.ThemeEngine..cctor () [0x00000] in :0 --- 内部异常堆栈结束 跟踪 --- 在 System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined () [0x00000] 在 :0 处 System.Windows.Forms.Control..ctor () [0x00000] in :0 at (包装器远程调用带检查) System.Windows.Forms.Control:.ctor() at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor () [0x00000] in :0 --- 内部异常堆栈结束 跟踪---位于System.Windows.Forms.Control..ctor()[0x00000]中 :0 于 System.Windows.Forms.ScrollableControl..ctor () [0x00000] in :0 at System.Windows.Forms.ContainerControl..ctor () [0x00000] 在 :0 处 System.Windows.Forms.Form..ctor () [0x00000] in :0
在 KeePass.Forms.MainForm..ctor () [0x00000] 中:0
在(包装器远程调用带检查) KeePass.Forms.MainForm:.ctor () 在 KeePass.Program.Main (System.String[] args) [0x00000] 中 :0未处理的异常:System.TypeInitializationException:异常 由 System.Drawing.GDIPlus 的类型初始值设定项抛出 ---> 系统.DllNotFoundException: /Library/Frameworks/Mono.framework/Versions/3.12.1/lib/libgdiplus.dylib 在(包装器管理到本机)System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&) 在 System.Drawing.GDIPlus..cctor () [0x00000] 中:0 --- 内部异常堆栈跟踪结束 --- 在 System.Drawing.KnownColors..cctor () [0x00000] in :0
需要更多指导来了解这表明什么以及如何继续解决此问题。
KeePass 2.X 便携版在 Mac 上不稳定。在某些情况下,读取操作可以工作,但无法添加或更新现有的keePass 数据库。
替代方案 KeePass 2.x for Mac OS X - 也不稳定。它仍然是 2.23 版本,而 keePass 现在是 2.29。使用最新的 Mono 和 XQuartz,这个 keePass 包会抛出很多异常。
最佳工作版本是keePassX。根据我个人的使用情况,这个版本看起来比其他现有的 Mac 版 KeePass 软件包更好、更稳定。
您的 Mono 安装似乎不完整。你安装了MRE还是MDK?
您是通过 http://mono-project.com 的 pkg 安装还是通过 brew 安装?
如果您安装了MRE或通过brew安装,请尝试从mono网站安装MDK。否则只需尝试重新安装。
如果尚未完成,请考虑通过在终端中执行以下命令来安装适用于 Mac OS 的 Homebrew 包管理器:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
然后用它来安装KeepassXC:
brew install --cask keepassxc