2015-04-28 192 views
1

我剛剛安裝了MonoXQuartz的最新版本。我下載了Keepass-2.29便攜版。當我嘗試運行它,我得到以下異常:如何獲得在MAC OS X上運行的KeePass 2.X

$單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的 類型初始值設定項引發的異常System.DllNotFoundException: /Library/Frameworks/Mono。框架/版本在(包裝管理到本機)System.Drawing.GDIPlus/3.12.1/LIB/libgdiplus.dylib :GdiplusStartup (ULONG &,System.Drawing.GdiplusStartupInput &,System.Drawing.GdiplusStartupOutput &) 在System.Drawing.GDIPlus..cctor()[0x00000]中:0 ---內部異常堆棧跟蹤結束---在System.Drawing.KnownColors..cctor()[0x00000]中:0 - - 內部例外的結束在System.Drawing.Color.get_Black()[0x00000]處:0
at System.Windows.Forms.ThemeWin32Classic..cctor()[0x00000] in :0 --- End of inner異常堆棧跟蹤---
at System.Windows.Forms.ThemeVisualStyles..ctor()[0x00000] in :0 at System.Windows.Forms.ThemeEngine..cctor() [0x00000] in:0 - - 內部異常堆棧結束 trace --- at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined() [0x00000] in:0 at System.Windows.Forms.Control..ctor()[0x00000] in: 0 at(wrapper remoting-invoke-with-check) System.Windows.Forms.Control:.ctor()at Syste m.Windows.Forms.WindowsFormsSynchronizationContext..cctor() [0x00000] in:0 ---內部異常堆棧結束 trace ---在System.Windows.Forms.Control..ctor()[0x00000]在 :0 at System.Windows.Forms.ScrollableControl..ctor()[0x00000] in:0 at System.Windows.Forms.ContainerControl..ctor() [0x00000] in:0 at System.Windows.Forms。 Form.ctor()[0x00000] in:0
at KeePass.Forms.MainForm..ctor()[0x00000] in:0
at(wrapper remoting-invoke-with-check)KeePass.Forms.MainForm: .ector ()at KeePass.Program.Main(System.String [] args)[0x00000] in :0

未處理的異常:System.TypeInitializationException:例外 由類型初始化拋出System.Drawing.GDIPlus ---> System.DllNotFoundException: /Library/Frameworks/Mono.framework/Versions/3.12.1/lib /libgdiplus.dylib at(wrapper managed-to-native)System.Drawing.GDIPlus:GdiplusStartup (ulong &,System.Drawing.GdiplusStartupInput &,System.Drawing。GdiplusStartupOutput &) at System.Drawing.GDIPlus..cctor()[0x00000] in:0 ---內部異常堆棧跟蹤結束---在System.Drawing.KnownColors..cctor()[0x00000]中: 0

需要一些更多的指導這裏是什麼指示和如何着手解決這個問題。

回答

0

看起來像你的單聲道安裝不完整。你安裝了MRE還是MDK?

您是通過http://mono-project.com的包裝還是通過沖泡來安裝的?

如果您安裝了MRE或通過brew安裝,請嘗試從mono網站安裝MDK。否則,請嘗試重新安裝。

+0

我安裝並重新安裝了MDK,但錯誤仍然存​​在。 – user252816

+0

.dylib文件是否存在? – jstedfast

+0

您能否詳細說明一下。我不知道你指的是什麼文件。 – user252816

1

KeePass 2.X便攜版在Mac中不穩定。在某些情況下,讀操作可以工作,但不能添加或更新現有的keePass數據庫。

替代KeePass 2.x for Mac OS X - 也是不穩定的。它仍然在2.23版本,而keePass現在是2.29。隨着最新的Mono和XQuartz,這個keePass包會拋出很多異常。

Best working version is keePassX。根據我個人的使用情況,這個版本看起來比其他現有的適用於Mac的KeePass軟件包更好更穩定。

+2

KeePassX現已終止(請參閱https://www.keepassx.org/news/2015/12/533)。它與自制酒桶安裝:「釀酒桶安裝keepassx」 –