KeePass / Mono in Yosemite non funziona


5

Ho installato KeePass come descritto qui ma KeePass non si avvia - Activity Monitor mi dice che Mono non risponde. Non ho mai usato KeePass prima (se questo è rilevante).

Sto usando Yosemite

Non sono sicuro che si tratti di un problema Mono o KeePass, ma ho anche provato la versione Mono 3.10 e lo stesso è successo.

Qualche esperienza con KeePass / Mono su Yosemite o idee su come risolvere i problemi?

Conosco KeePassX , ma il consenso sembra essere che KeePass sia l'opzione migliore?

MODIFICARE:

Ho appena eseguito keep dalla riga di comando e ho ottenuto il seguente output (non ho idea di cosa significhi ...):

 System.EntryPointNotFoundException: GdipCreateFromContext_macosx
  at (wrapper managed-to-native) System.Drawing.GDIPlus:GdipCreateFromContext_macosx (intptr,int,int,intptr&)
  at System.Drawing.Graphics.FromHwnd (IntPtr hwnd) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.CreateGraphics () [0x00000] in <filename unknown>:0
  at System.Windows.Forms.TextBoxBase.CreateGraphicsInternal () [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.TextBoxBase:CreateGraphicsInternal ()
  at System.Windows.Forms.Document.owner_HandleCreated (System.Object sender, System.EventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.OnHandleCreated (System.EventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.TextBoxBase.OnHandleCreated (System.EventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.RichTextBox.OnHandleCreated (System.EventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.WmCreate (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.TextBoxBase.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.RichTextBox.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000] in <filename unknown>:0
System.EntryPointNotFoundException: GdipCreateFromContext_macosx
  at (wrapper managed-to-native) System.Drawing.GDIPlus:GdipCreateFromContext_macosx (intptr,int,int,intptr&)
  at System.Drawing.Graphics.FromHwnd (IntPtr hwnd) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.CreateGraphics () [0x00000] in <filename unknown>:0
  at System.Windows.Forms.TextBoxBase.CreateGraphicsInternal () [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.TextBoxBase:CreateGraphicsInternal ()
  at System.Windows.Forms.Document.owner_HandleCreated (System.Object sender, System.EventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.OnHandleCreated (System.EventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.TextBoxBase.OnHandleCreated (System.EventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.TextBox.OnHandleCreated (System.EventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.WmCreate (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.TextBoxBase.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.TextBox.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000] in <filename unknown>:0
System.EntryPointNotFoundException: GdipCreateFromContext_macosx
  at (wrapper managed-to-native) System.Drawing.GDIPlus:GdipCreateFromContext_macosx (intptr,int,int,intptr&)
  at System.Drawing.Graphics.FromHwnd (IntPtr hwnd) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.CreateGraphics () [0x00000] in <filename unknown>:0
  at System.Windows.Forms.TextBoxBase.CreateGraphicsInternal () [0x00000] in <filename unknown>:0
  at System.Windows.Forms.TextBoxBase.TextBoxBase_FontOrColorChanged (System.Object sender, System.EventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.OnFontChanged (System.EventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.TextBoxBase.OnFontChanged (System.EventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.TextBox.OnFontChanged (System.EventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.set_Font (System.Drawing.Font value) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ComboBox.OnFontChanged (System.EventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.OnParentFontChanged (System.EventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.OnFontChanged (System.EventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ToolStrip.OnFontChanged (System.EventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.set_Font (System.Drawing.Font value) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ToolStrip.set_Font (System.Drawing.Font value) [0x00000] in <filename unknown>:0
  at KeePass.UI.GlobalWindowManager.CustomizeFont (System.Windows.Forms.Control c, System.Drawing.Font font) [0x00000] in <filename unknown>:0
  at KeePass.UI.GlobalWindowManager.CustomizeFont (System.Windows.Forms.Control c, System.Drawing.Font font) [0x00000] in <filename unknown>:0
  at KeePass.UI.GlobalWindowManager.CustomizeControl (System.Windows.Forms.Control c) [0x00000] in <filename unknown>:0
  at KeePass.Forms.MainForm.OnFormLoad (System.Object sender, System.EventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Form.OnLoad (System.EventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Form.OnLoadInternal (System.EventArgs e) [0x00000] in <filename unknown>:0
System.NullReferenceException: Object reference not set to an instance of an object
  at KeePass.Forms.MainForm.CleanUpEx () [0x00000] in <filename unknown>:0
  at KeePass.Forms.MainForm.OnFormClosing (System.Object sender, System.Windows.Forms.FormClosingEventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Form.OnFormClosing (System.Windows.Forms.FormClosingEventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Form.FireClosingEvents (CloseReason reason, Boolean cancel) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form:FireClosingEvents (System.Windows.Forms.CloseReason,bool)
  at System.Windows.Forms.Application.Exit (System.ComponentModel.CancelEventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Application.Exit () [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Application.OnThreadException (System.Exception t) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Form.OnLoadInternal (System.EventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Form.OnCreateControl () [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.CreateControl () [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.WmShowWindow (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ContainerControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at KeePass.Forms.MainForm.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000] in <filename unknown>:0

Unhandled Exception:
System.EntryPointNotFoundException: GdipCreateFromContext_macosx
  at (wrapper managed-to-native) System.Drawing.GDIPlus:GdipCreateFromContext_macosx (intptr,int,int,intptr&)
  at System.Drawing.Graphics.FromHwnd (IntPtr hwnd) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.CreateGraphics () [0x00000] in <filename unknown>:0
  at System.Windows.Forms.MessageBox+MessageBoxForm.InitFormsSize () [0x00000] in <filename unknown>:0
  at System.Windows.Forms.MessageBox+MessageBoxForm.RunDialog () [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.MessageBox/MessageBoxForm:RunDialog ()
  at System.Windows.Forms.MessageBox.Show (System.String text, System.String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton) [0x00000] in <filename unknown>:0
  at KeePassLib.Utility.MessageService.SafeShowMessageBox (System.String strText, System.String strTitle, MessageBoxButtons mb, MessageBoxIcon mi, MessageBoxDefaultButton mdb) [0x00000] in <filename unknown>:0
  at KeePassLib.Utility.MessageService.ShowFatal (System.Object[] vLines) [0x00000] in <filename unknown>:0
  at KeePass.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.EntryPointNotFoundException: GdipCreateFromContext_macosx
  at (wrapper managed-to-native) System.Drawing.GDIPlus:GdipCreateFromContext_macosx (intptr,int,int,intptr&)
  at System.Drawing.Graphics.FromHwnd (IntPtr hwnd) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.CreateGraphics () [0x00000] in <filename unknown>:0
  at System.Windows.Forms.MessageBox+MessageBoxForm.InitFormsSize () [0x00000] in <filename unknown>:0
  at System.Windows.Forms.MessageBox+MessageBoxForm.RunDialog () [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.MessageBox/MessageBoxForm:RunDialog ()
  at System.Windows.Forms.MessageBox.Show (System.String text, System.String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton) [0x00000] in <filename unknown>:0
  at KeePassLib.Utility.MessageService.SafeShowMessageBox (System.String strText, System.String strTitle, MessageBoxButtons mb, MessageBoxIcon mi, MessageBoxDefaultButton mdb) [0x00000] in <filename unknown>:0
  at KeePassLib.Utility.MessageService.ShowFatal (System.Object[] vLines) [0x00000] in <filename unknown>:0
  at KeePass.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0

Risposte:


2

Il problema può essere risolto installando una nuova versione di mono che risolve questo problema, come spiegato qui :

Prova a installare questa versione mono 3.10 e a forzare una ricostruzione della tua applicazione.

https://www.dropbox.com/s/wrjnv7p8zj1rh5u/MonoFramework-MDK-3.10.0.26.macos10.xamarin.x86.pkg?dl=0

Uno degli sviluppatori del team mono ha lavorato duramente per rintracciare e risolvere questo problema. Speriamo che questa dovrebbe essere la fine dei problemi GDI per gli utenti Xamarin.Mac.

Grazie, - Chris H



0

Ho appena riscontrato questo problema e ho provato la versione corrente di mono, 4.0.5.1, ma non ha funzionato, quindi ho eseguito lo script di disinstallazione .

mono 3.10.0.26 sembrava promettente ma volevo scaricare dagli sviluppatori. La versione più vicina trovata era 3.10.0.31 , che ha funzionato!

Utilizzando il nostro sito, riconosci di aver letto e compreso le nostre Informativa sui cookie e Informativa sulla privacy.
Licensed under cc by-sa 3.0 with attribution required.